/* === DOMATOUR SLATE BLUE LUXURY DESIGN SYSTEM === */

:root {
    --primary: #170a49;
    --primary-light: #293d54;
    --accent: #00e1c2; /* Turquesa Domatour */
    --background: linear-gradient(135deg, #f8f8f8 0%, #f5f4f5 100%);
    --surface: rgba(255, 255, 255, 0.95);
    --text-main: #334155;
    --text-muted: #64748b;
    --border: rgba(226, 232, 240, 0.8);
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 30px -3px rgb(0 0 0 / 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-blur: blur(16px);
    --pink: #ff0066; /* Rosado Domatour */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', 'Inter', sans-serif;
    background: var(--background);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Montserrat', 'Outfit', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.main-header {
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 52px;
    /* Aumentado un 30% (de 40px a 52px) */
}

.main-nav a {
    color: var(--pink);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    opacity: 1;
    color: var(--accent);
}

.wsp-btn-header {
    background-color: var(--accent);
    color: var(--primary);
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.wsp-btn-header:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* MAIN HERO */
.main-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0 0 0;
    color: white;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(23, 10, 73, 0.95) 0%, rgba(23, 10, 73, 0.7) 50%, rgba(23, 10, 73, 0.2) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
}

.hero-main-box {
    max-width: 600px;
    padding: 40px 0;
}

.hero-tag {
    background: var(--pink);
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(255, 0, 102, 0.3);
}

.hero-main-box h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-main-box p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    font-family: 'Lato', sans-serif;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.search-bar {
    max-width: 100%;
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.search-bar i {
    color: var(--primary);
}

.search-bar input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 1.1rem;
    color: var(--text-main);
    font-family: 'Lato', sans-serif;
}

.trust-banner {
    position: relative;
    z-index: 2;
    background: rgba(23, 10, 73, 0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

.trust-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.trust-item i {
    color: var(--accent);
    font-size: 1.2rem;
}

@media (max-width: 900px) {
    .hero-main-box h1 {
        font-size: 2.8rem;
    }
    .trust-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-overlay {
        background: linear-gradient(to right, rgba(23, 10, 73, 0.95) 0%, rgba(23, 10, 73, 0.85) 100%);
    }
}

/* STORE LAYOUT */
.store-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px; /* Cambiado de -60px para no tapar el banner de confianza */
}

/* TOPBAR FILTERS */
.filters-topbar {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 50;
}

.pills-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none; /* Firefox */
}

.pills-container::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.pill-btn {
    background: #f1f5f9;
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill-btn:hover {
    background: #e2e8f0;
    color: var(--primary);
}

.pill-btn.active {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(0, 225, 194, 0.3);
}

.dropdown-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.dropdown-filter {
    flex: 1;
    min-width: 200px;
}

.dropdown-filter select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: white;
    color: var(--primary);
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230F172A%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat, repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: .65em auto, 100%;
    transition: 0.3s;
}

.dropdown-filter select:hover, .dropdown-filter select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.1);
}

.sync-status-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    justify-content: flex-end;
    margin-top: -10px;
}

.sync-status-topbar i {
    color: #22c55e;
}

.filter-group {
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    transition: 0.3s;
}

.filter-header:hover h3 {
    color: var(--accent);
}

.filter-header h3 {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
}

.filter-header i {
    font-size: 0.9rem;
    color: var(--primary); /* Cambiado de text-muted a primary para visibilidad */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.filter-header:hover i {
    opacity: 1;
    color: var(--accent);
}

.filter-options {
    max-height: 800px; /* Incrementado para seguridad */
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    padding-top: 15px;
    opacity: 1;
}

/* Estado Colapsado */
.filter-group.collapsed .filter-options {
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0;
    pointer-events: none;
}

.filter-group.collapsed .filter-header i {
    transform: rotate(-180deg);
}

/* Estilo para items deshabilitados o mensajes vacíos */
.filter-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.empty-filter-msg {
    display: block;
    padding: 10px 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed var(--border);
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}

.filter-item:hover {
    color: var(--accent);
}

.filter-item input {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    accent-color: var(--primary);
}

/* PRICE BLOCKS */
.price-blocks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-block {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    background: white;
    text-align: left;
}

.price-block:hover {
    border-color: var(--accent);
    background: #f0f9ff;
}

.price-block.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* CATALOG HEADER & SWITCHER */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background: white;
    padding: 15px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.view-switcher {
    display: flex;
    gap: 5px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
}

.view-switcher button {
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-muted);
    transition: 0.3s;
}
.view-switcher button.active {
    background: white;
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

/* --- PRODUCT GRID SYSTEM --- */

/* MODO LISTA (Horizontal) */
.product-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Reducido de 20px */
}

.product-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
    height: auto;
}

.product-grid.list-view .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-grid.list-view .card-info {
    padding: 10px 25px; /* Reducido de 15px 30px */
}

/* MODO GRILLA (Vertical y 30% más pequeño) */
.product-grid.grid-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Regresamos a 3 columnas por petición del usuario */
    gap: 15px;
}

.product-grid.grid-view .product-card {
    display: flex; /* Añadido flex para igualar altura */
    flex-direction: column;
    height: 100%;
}

.product-grid.grid-view .card-image {
    width: 100%;
    height: 140px; 
}

.product-grid.grid-view .card-info {
    padding: 12px; /* Reducción de padding */
}

.product-grid.grid-view .card-info h2 {
    font-size: 1rem; /* Fuente más pequeña */
}

.product-grid.grid-view .card-logistics {
    font-size: 0.75rem;
    padding-top: 10px;
    margin-bottom: 10px;
}

.product-grid.grid-view .price {
    font-size: 1.2rem;
}

.product-grid.grid-view .btn-more {
    padding: 8px 15px;
    font-size: 0.8rem;
}

/* ELEMENTOS COMUNES DE TARJETA */
.product-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: var(--glass-border);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; /* Añadido para estirar el contenido */
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: rgba(230, 0, 126, 0.5); /* Accent transparent */
}

.card-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.product-grid.list-view .card-image-container {
    width: 320px;
    flex-shrink: 0;
    display: flex;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.product-card:hover .card-image {
    transform: scale(1.05);
}

.stamp-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 70px; /* Tamaño decorativo */
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.25));
    transform: rotate(6deg);
    pointer-events: none;
    z-index: 5;
    transition: 0.3s ease;
}

.product-card:hover .stamp-overlay {
    transform: rotate(0deg) scale(1.1);
}

.card-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-type {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    width: fit-content;
    margin-bottom: 10px;
}

.card-info h2 {
    font-size: 1.15rem; /* Más pequeño para la grilla */
    color: var(--primary);
    margin-bottom: 5px;
    line-height: 1.2;
}

.card-extra-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 15px;
}

.origin-tag, .months-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.origin-tag b, .months-tag b {
    color: var(--primary-light);
}

.card-logistics {
    display: flex;
    flex-direction: column; /* Stacked para ahorrar ancho */
    gap: 8px;
    margin-bottom: 15px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.log-item {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.log-item i {
    color: var(--primary);
    margin-right: 5px;
}

.card-price-action {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.4rem; /* Reducido */
    font-weight: 900;
    color: var(--primary);
}

.price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.card-btns {
    display: flex;
    gap: 8px;
}

.grid-view .card-btns {
    flex-direction: column;
    align-items: flex-end; /* Alineamos los botones a la derecha */
    width: 100%;
    gap: 5px;
}

.grid-view .card-btns button, 
.grid-view .card-btns a {
    width: 100%; /* Ocupar el ancho disponible del contenedor */
    max-width: 150px; /* Limitar para que no sea excesivo */
    min-width: 140px; /* Asegurar que ambos tengan el mismo ancho base */
    padding: 8px 15px; 
    font-size: 0.8rem;
    text-align: center;
    justify-content: center;
}

.btn-more {
    background: white;
    color: var(--pink);
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    border: 2px solid var(--pink);
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 150px;
    text-align: center;
}

.btn-more:hover {
    background: var(--pink);
    color: white;
}

.btn-wsp {
    background: var(--accent);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    justify-content: center;
}

.btn-wsp:hover {
    filter: brightness(1.1);
    box-shadow: 0 10px 20px rgba(0, 225, 194, 0.2);
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    position: relative;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.2) transparent;
}

/* Scrollbar Minimalista para Webkit (Chrome/Safari) */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 10px 0; /* Para que no toque los bordes redondeados */
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.15);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.3);
}

.modal-banner-container {
    position: relative;
    width: 100%;
    background: #f1f5f9;
}

.modal-banner {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.modal-stamp {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 110px;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.35));
    transform: rotate(5deg);
    z-index: 10;
}

.modal-body-padding {
    padding: 30px 45px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-footer {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* ENRICHED CONTENT STYLES */
.program-brief {
    margin: 15px 0;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.6;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
    background: #f0f9ff;
    padding: 15px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.program-specs ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 15px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.program-specs li {
    font-size: 0.9rem;
}

.vte-excursions {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.vte-excursions li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
}

.vte-excursions li::before {
    content: '\f1b9'; /* Icono de bus/auto */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
}

.itinerary-details h5 {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin: 25px 0 10px;
    border-bottom: 2px solid var(--accent);
    width: fit-content;
    padding-bottom: 4px;
}

/* Navegación por Meses */
.month-nav {
    background: #f8fafc;
    padding: 15px;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
}

.month-nav a {
    background: white;
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid #cbd5e1;
    color: var(--primary) !important;
    text-decoration: none !important;
    font-size: 0.8rem !important;
    font-weight: 600;
    transition: 0.2s;
}

.month-nav a:hover {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
}

.month-section h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

/* Ocultar precios en tours opcionales */
.opt-tour-price {
    display: none !important;
}

/* OPTIONAL TOURS STYLES */
.optional-tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 15px 0 30px;
}

.opt-tour-item {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: 0.3s;
}

.opt-tour-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.opt-tour-info strong {
    display: block;
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.opt-tour-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.opt-tour-price {
    background: var(--accent);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    margin-left: 10px;
}

/* TABLE ITINERARY */
.table-itinerary {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9rem;
}

.table-itinerary th {
    background: #f1f5f9;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.table-itinerary th, .table-itinerary td {
    padding: 10px;
    font-size: 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table-itinerary small {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
}

.table-itinerary tr:hover {
    background: #f8fafc;
}


/* ============================================================
   UX REFINEMENTS v1.16 - OVERRIDES (At the end for precedence)
   ============================================================ */

/* 1. Alineación Perfecta de Tarjetas en Grilla */
.product-grid.grid-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.product-grid.grid-view .product-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: white;
}

/* Modo Lista: Forzamos comportamiento horizontal */
.product-grid.list-view .product-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
}

.product-grid.grid-view .card-info {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.card-price-action {
    margin-top: auto !important;
    padding-top: 15px;
}

/* 2. Scrollbar Minimalista y Redondeado */
.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 15px 0;
}
.modal-content::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* 3. Botón de Reserva en Modal (Píldora Verde Premium) */
.modal-btn-wsp {
    background: var(--accent) !important;
    color: var(--primary) !important;
    padding: 14px 45px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 225, 194, 0.3) !important;
    transition: 0.3s !important;
}
.modal-btn-wsp:hover {
    transform: translateY(-3px) !important;
    filter: brightness(1.1) !important;
}

/* 4. Ocultar Precios de Tours Opcionales */
.opt-tour-price {
    display: none !important;
}

/* 5. Estilos para Navegación por Meses */
.month-nav {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
}

.month-nav a {
    background: white;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid #cbd5e1;
    color: var(--primary) !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    font-weight: 600;
    transition: 0.2s;
    display: inline-block;
}

.month-nav a:hover {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
}

.month-section h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    color: var(--primary);
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Indicador de Sincronización & Dashboard de Salud */
.sync-status-sidebar {
    margin-top: 30px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    position: relative;
    cursor: help;
    transition: 0.3s ease;
}

.sync-status-sidebar:hover {
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: var(--accent);
}

.sync-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sync-status-sidebar i {
    color: #22c55e;
    font-size: 1rem;
}

.sync-status-sidebar span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sync-status-sidebar strong {
    display: block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
}

.health-dashboard {
    display: none;
    margin-top: 15px;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    animation: fadeIn 0.3s ease;
}

.sync-status-sidebar:hover .health-dashboard {
    display: block;
}

.source-health-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    margin-bottom: 8px;
    padding: 5px 8px;
    border-radius: 6px;
    background: #fff;
}

.source-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-success { background: #22c55e; box-shadow: 0 0 5px #22c55e; }
.status-error { background: #ef4444; box-shadow: 0 0 5px #ef4444; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
.manual-section {
    margin-bottom: 25px;
}
.manual-section h5 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.manual-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
}
.includes-box {
    background: rgba(23, 10, 73, 0.03);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}
.itinerary-box {
    padding: 10px 0;
}

/* RESPONSIVE FIXES */
@media (max-width: 900px) {
    .product-grid.grid-view {
        grid-template-columns: 1fr;
    }
}
/* --- MAIN FOOTER --- */
.main-footer {
    background: #0f172a; /* Deep Navy */
    color: #f8fafc;
    padding: 80px 0 0 0;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.brand-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    transition: 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.schedule-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.small-text {
    font-size: 0.8rem;
    color: #64748b;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #64748b;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* BOTÓN DESCARGA PDF */
.download-pdf-btn {
    background: var(--accent);
    color: var(--primary) !important;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 225, 194, 0.25);
    border: none;
    cursor: pointer;
}

.download-pdf-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 225, 194, 0.4);
    color: var(--primary) !important;
}

.download-pdf-btn i {
    font-size: 1.2rem;
}

