/**
 * ============================================================================
 * MÓDULO: Motor de Reservas Web (Público)
 * Descripción: Estilos premium para el embudo de ventas. 
 * Cumplimiento: Responsive, Cero Inline Styles, Soporte Multi-Tema.
 * ============================================================================
 */

/* ============================================================================
   1. UTILIDADES GLOBALES WEB Y RESET
   ============================================================================ */
html {
    scroll-behavior: smooth;
}

.d-none { 
    display: none !important; 
}

.web-public-body { 
    background-color: var(--bg-base); 
    color: var(--text-primary); 
    font-family: var(--font-body); 
    margin: 0; padding: 0; 
}

.web-container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* Obliga al contenido principal a ocupar la pantalla empujando el footer abajo */
.web-main-content {
    min-height: calc(100vh - 180px);
}

/* ============================================================================
   2. CABECERA (HEADER) Y NAVEGACIÓN
   ============================================================================ */
.mobile-menu-btn { display: none; }
.web-header { 
    background: var(--bg-surface); 
    padding: 15px 0; 
    border-bottom: 1px solid var(--border-default); 
    position: sticky; top: 0; 
    z-index: 9999; /* Capa altísima para flotar sobre el contenido */
}

.header-inner { display: flex; justify-content: space-between; align-items: center; }

/*  NUEVO: Clases limpias para el Branding Dinámico del Header */
.hotel-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.hotel-brand-img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.hotel-brand-text {
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', var(--font-display, sans-serif);
    font-size: 1.3rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.hotel-logo { 
    display: flex; align-items: center; gap: 8px; 
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; 
    color: var(--text-primary); text-decoration: none; 
}
.logo-icon { color: var(--accent-primary); }

.desktop-nav { display: flex; gap: 20px; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-weight: 600; transition: color 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--accent-primary); }

.header-actions-group { display: flex; align-items: center; gap: 15px; }

.btn-login-portal { 
    background: color-mix(in srgb, var(--accent-primary) 15%, transparent); 
    color: var(--accent-primary); padding: 8px 16px; border-radius: var(--radius-sm); 
    text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 5px; 
    transition: background 0.3s, color 0.3s;
}
.btn-login-portal:hover {
    background: var(--accent-primary);
    color: #fff;
}

/* ============================================================================
   3. SELECTOR DE TEMAS (CUSTOM DROPDOWN)
   ============================================================================ */
.custom-theme-dropdown { position: relative; display: inline-block; }

.btn-theme-toggle {
    background: var(--bg-surface); 
    color: var(--text-primary) !important;
    border: 1px solid var(--border-default); padding: 8px 16px;
    border-radius: 20px; font-size: 0.85rem; cursor: pointer;
    display: flex; align-items: center; gap: 6px;
    font-family: var(--font-body); font-weight: 600;
    transition: border-color 0.3s, background 0.3s;
}
.btn-theme-toggle:hover { border-color: var(--accent-primary); }

.theme-dropdown-menu {
    position: absolute; top: 110%; right: 0;
    background: var(--bg-elevated); border: 1px solid var(--border-default);
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    width: 200px; display: flex; flex-direction: column;
    overflow: hidden; 
    z-index: 10000; /* ¡Vital! Capa absoluta máxima para no ser tapado por el texto Hero */
}

.theme-option {
    background: transparent; border: none; padding: 12px 15px;
    text-align: left; font-size: 0.9rem; color: var(--text-primary);
    cursor: pointer; display: flex; align-items: center; gap: 10px;
    transition: background 0.2s; font-family: var(--font-body);
}
.theme-option:hover {
    background: color-mix(in srgb, var(--accent-primary) 10%, transparent);
    color: var(--accent-primary);
}
.theme-option.active { 
    background: color-mix(in srgb, var(--accent-primary) 15%, transparent); 
    color: var(--accent-primary) !important; 
    font-weight: 800;
}

/* ============================================================================
   4. HERO Y BUSCADOR DINÁMICO
   ============================================================================ */
.booking-hero { 
    position: relative;
    padding: 100px 0 80px; 
    text-align: center; 
    /*  FIX: Fondo local y dinámico inyectado por variable CSS */
    background: var(--hero-bg, url('../../images/web/hero-dark.jpg')) center/cover no-repeat;
    color: #fff;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /*  FIX: El overlay ahora recibe una variable dinámica, con un valor por defecto si falla */
    background: var(--hero-overlay-bg, linear-gradient(135deg, rgba(10, 15, 30, 0.8) 0%, rgba(20, 25, 45, 0.6) 100%)); 
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; }

.hero-title { font-size: 3.5rem; font-family: var(--font-display); margin-bottom: 15px; line-height: 1.2; color: #fff !important; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.9) !important; margin-bottom: 40px; text-shadow: 0 1px 5px rgba(0,0,0,0.5); }

.search-widget { 
    background: color-mix(in srgb, var(--bg-surface) 85%, rgba(255,255,255,0.05)); 
    padding: 25px; 
    border-radius: var(--radius-lg); 
    
    /*  AUMENTO DE CUERPO: 
       - El borde de color ahora tiene 60% de opacidad.
       - El resplandor (aura) sube a 25% de opacidad y se extiende un poco más (40px).
    */
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.6), 
        0 0 0 1px color-mix(in srgb, var(--accent-primary) 60%, transparent),
        0 0 40px color-mix(in srgb, var(--accent-primary) 25%, transparent);
        
    display: inline-block; 
    width: 100%; 
    max-width: 900px; 
    text-align: left; 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.booking-mode-toggle { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 2px solid var(--border-default); padding-bottom: 15px; }
.btn-mode { 
    background: transparent; color: var(--text-secondary); border: none; 
    padding: 8px 16px; font-size: 1rem; font-weight: 700; cursor: pointer; 
    display: flex; align-items: center; gap: 8px; border-radius: var(--radius-sm); transition: all 0.3s;
}
.btn-mode:hover { background: color-mix(in srgb, var(--text-secondary) 10%, transparent); }
.btn-mode.active { background: color-mix(in srgb, var(--accent-primary) 15%, transparent); color: var(--accent-primary); }

.search-form { display: flex; flex-direction: column; gap: 20px; }
.dynamic-fields-row { display: flex; flex-wrap: wrap; gap: 15px; align-items: flex-end; width: 100%; justify-content: flex-end; /*  Lo ancla a la derecha */ }

.search-group { flex: 1 1 200px; min-width: 140px; display: flex; flex-direction: column; gap: 8px; }
.search-group label { font-size: 0.80rem; font-weight: 800; color: var(--text-secondary); text-transform: uppercase; }

.search-group input, 
.search-group select { 
    height: 45px; 
    padding: 0 12px; 
    /*  FIX: Borde explícitamente blanco translúcido para que siempre se vea el contorno */
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-radius: var(--radius-sm); 
    
    /*  FIX: Fondo del input más claro que el formulario para evitar que se hunda */
    background: color-mix(in srgb, var(--bg-surface) 40%, rgba(255,255,255,0.08)); 
    color: var(--text-primary); 
    font-family: var(--font-body); 
    font-size: 1rem; 
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Efecto al pasar el mouse (Ilumina la caja) */
.search-group input:hover, 
.search-group select:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: color-mix(in srgb, var(--bg-surface) 20%, rgba(255,255,255,0.12));
}

/* Efecto al hacer clic (Mantiene tu color de acento) */
.search-group input:focus, 
.search-group select:focus { 
    outline: none; 
    border-color: var(--accent-primary); 
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-primary) 20%, transparent);
    background: var(--bg-surface);
}

.btn-search { 
    background: var(--accent-primary); color: #fff; border: none; padding: 12px 24px; 
    border-radius: var(--radius-sm); font-size: 1rem; font-weight: 700; cursor: pointer; 
    transition: background 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; height: 45px; 
    flex: 0 0 auto; min-width: 220px; /*  FIX: Ancho fijo, ya no se estira ni rompe el diseño */
}
.btn-search:hover { background: color-mix(in srgb, var(--accent-primary) 80%, black); }

/* ============================================================================
   4.5. SECCIÓN BENEFICIOS (CON SCROLL MARGIN)
   ============================================================================ */
/*  FIX: Evita que el Header Fijo tape el inicio de las secciones al hacer clic en el menú */
.booking-features, 
.room-catalog-section, 
.web-footer { 
    scroll-margin-top: 80px; 
}

/* Le damos un fondo ligerísimamente distinto para separarlo del catálogo */
.booking-features { 
    padding: 80px 0; 
    background: color-mix(in srgb, var(--bg-surface) 30%, var(--bg-base)); 
    border-bottom: 1px solid var(--border-default); 
}

/* Título de la sección */
.features-header {
    text-align: center;
    margin-bottom: 50px;
}
.features-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}
.features-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; }
.feature-item { padding: 20px; background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-lg); transition: transform 0.3s; }
.feature-item:hover { transform: translateY(-5px); border-color: var(--accent-primary); }
.feature-icon { width: 70px; height: 70px; margin: 0 auto 20px; background: color-mix(in srgb, var(--accent-primary) 15%, transparent); color: var(--accent-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; transition: transform 0.3s; }
.feature-item:hover .feature-icon { transform: scale(1.1); }
.feature-item h3 { font-family: var(--font-display); color: var(--text-primary); margin-bottom: 10px; font-size: 1.25rem; }
.feature-item p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* ============================================================================
   5. RESULTADOS DE BÚSQUEDA Y TARJETAS
   ============================================================================ */
.booking-results { padding: 60px 0; min-height: 40vh; }

.empty-search-state { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
.empty-search-state i { font-size: 4rem; color: var(--border-strong); margin-bottom: 10px; display: inline-block; }
.results-loader { text-align: center; padding: 40px; font-size: 1.2rem; color: var(--accent-primary); font-weight: 600; }

.room-result-card { 
    background: var(--bg-surface); border: 1px solid var(--border-default); 
    border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; 
    margin-bottom: 20px; transition: transform 0.3s, box-shadow 0.3s; 
}
.room-result-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-primary); }

.rrc-content { padding: 25px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }

/*  FIX: Obligamos al texto a cederle el espacio a la derecha al botón de reserva */
.rrc-info { flex: 1 1 300px; min-width: 0; } 

.rrc-info h3 { margin: 0 0 10px 0; font-size: 1.5rem; font-family: var(--font-display); }
.rrc-info p { margin: 0 0 15px 0; color: var(--text-secondary); line-height: 1.5;}

.rrc-features { display: flex; flex-wrap: wrap; gap: 15px; font-size: 0.9rem; color: var(--text-muted); }
.rrc-features span { display: flex; align-items: center; gap: 5px; font-weight: 500;}

.rrc-price-box { 
    text-align: right; background: color-mix(in srgb, var(--bg-base) 50%, transparent); 
    padding: 20px; border-radius: var(--radius-md); min-width: 220px; border: 1px solid var(--border-default);
}
.rrc-price-box span { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 5px; text-transform: uppercase; font-weight: 700;}
.rrc-price-box strong { display: block; font-size: 2.2rem; color: var(--accent-primary); font-family: var(--font-display); line-height: 1; margin-bottom: 15px; }

.btn-book-now { 
    background: var(--accent-primary); color: #fff; text-decoration: none; border: none; cursor: pointer;
    padding: 12px 20px; border-radius: var(--radius-sm); font-weight: 700; font-family: var(--font-body); font-size: 1rem;
    display: inline-block; width: 100%; text-align: center; transition: background 0.3s; 
}
.btn-book-now:hover { background: color-mix(in srgb, var(--accent-primary) 80%, black); }

/* ============================================================================
   6. MODAL DE CHECKOUT
   ============================================================================ */
.booking-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    display: flex; justify-content: flex-end; z-index: 10000;
}

.booking-checkout-panel {
    width: 100%; max-width: 450px; background: var(--bg-surface);
    height: 100%; box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    display: flex; flex-direction: column; animation: slideInRight 0.3s ease-out;
}
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }

.checkout-header { padding: 20px 25px; border-bottom: 1px solid var(--border-default); display: flex; justify-content: space-between; align-items: center; }
.checkout-header h3 { margin: 0; font-family: var(--font-display); color: var(--text-primary); }
.btn-close-modal { background: none; border: none; font-size: 1.5rem; color: var(--text-secondary); cursor: pointer; transition: color 0.2s;}
.btn-close-modal:hover { color: var(--status-error); }

.checkout-body { padding: 25px; overflow-y: auto; flex: 1; }

.checkout-summary { 
    background: var(--bg-elevated); padding: 25px; border-radius: var(--radius-lg); 
    border: 2px solid color-mix(in srgb, var(--accent-primary) 30%, transparent); 
    margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative; overflow: hidden;
}
.checkout-summary { 
    background: var(--bg-elevated); 
    padding: 20px; 
    border-radius: var(--radius-md); 
    border: 1px solid var(--border-default); 
    margin-bottom: 25px; 
}
.summary-label { 
    font-size: 0.70rem; 
    text-transform: uppercase; 
    color: var(--text-secondary); 
    font-weight: 800; 
    margin-bottom: 5px; 
    display: block; 
}
.summary-room-title { 
    color: var(--accent-primary); 
    font-size: 1.3rem; 
    display: block; 
    margin-bottom: 10px; 
    font-family: var(--font-display); 
}
.summary-dates { 
    display: block; 
    background: rgba(0,0,0,0.05); 
    padding: 8px; 
    border-radius: var(--radius-sm); 
    color: var(--text-primary); 
    font-size: 0.9rem; 
    margin-bottom: 15px; 
    border-left: 3px solid var(--accent-primary);
}
.summary-price { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px dashed var(--border-strong); padding-top: 20px; margin-top: 10px; }
.summary-price span { font-size: 0.85rem; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; }
.summary-price strong { font-size: 2rem; color: var(--status-success); font-family: var(--font-display); line-height: 1; }

.checkout-section-title { margin: 20px 0 10px; font-family: var(--font-display); color: var(--text-primary); }
.mb-15 { margin-bottom: 15px; }
.mb-25 { margin-bottom: 25px; }
/*  FIX: Layout proporcional y robusto */
.input-row-group { 
    display: grid; 
    grid-template-columns: 40% 60%; /* 40% para el Select, 60% para el Input */
    gap: 10px; 
    width: 100%;
}

/*  FIX: Botón de confirmación ancho completo */
.btn-full-width { 
    width: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-top: 10px;
}
.select-doc-type { width: 100%; } 
.input-doc-number { width: 100%; }
/*  FIX: Diseño Premium para nota informativa */
.checkout-info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: color-mix(in srgb, var(--bg-base) 60%, transparent);
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
    margin-top: 20px;
}
.checkout-info-icon {
    color: var(--accent-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.checkout-info-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ============================================================================
   6.5. MOTOR DE UP-SELLING: EXTRAS CHECKOUT
   ============================================================================ */
.checkout-extras-section .section-label {
    display: block;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.extra-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.extra-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.extra-checkbox {
    display: none; /* Oculta el checkbox feo nativo */
}

.extra-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.extra-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.extra-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-secondary);
}

.extra-check-icon {
    font-size: 1.5rem;
    color: transparent;
    transition: color 0.3s ease;
}

/*  LA MAGIA CSS: Cambia el estilo de la tarjeta si el checkbox oculto está marcado */
.extra-card:has(.extra-checkbox:checked) {
    border-color: var(--accent-primary);
    background: color-mix(in srgb, var(--accent-primary) 5%, transparent);
}

.extra-card:has(.extra-checkbox:checked) .extra-check-icon {
    color: var(--accent-primary);
}

/* ============================================================================
   7. FOOTER
   ============================================================================ */
.web-footer { 
    background: var(--bg-surface); 
    border-top: 1px solid var(--border-default); 
    padding: 60px 0 20px; 
    margin-top: 0; /*  FIX: Eliminamos los 60px de margen que creaban la franja vacía */
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 30px; }
.footer-brand { max-width: 400px; }
.footer-desc { color: var(--text-secondary); margin-top: 15px; line-height: 1.6; }
.footer-contact h3 { font-family: var(--font-display); margin-bottom: 15px; color: var(--text-primary); }
.footer-contact p { color: var(--text-secondary); margin-bottom: 10px; display: flex; align-items: center; gap: 8px;}
.footer-bottom { text-align: center; color: var(--text-muted); font-size: 0.85rem; padding-top: 20px; border-top: 1px solid var(--border-default); }

/*  NUEVO: Clases limpias para el Branding Dinámico del Footer */
.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* ============================================================================
   7.1. BRANDING DEL FOOTER (LOGO IMPONENTE)
   ============================================================================ */
.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo-img {
    max-height: 80px; /* 🚀 LOGO GIGANTE: Pasamos de 35px a 80px */
    filter: grayscale(100%) brightness(150%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    filter: grayscale(0%) brightness(100%);
    opacity: 1;
}

.footer-logo-icon {
    color: var(--accent-primary);
    font-size: 3.5rem; /* 🚀 Icono gigante en caso no haya logo */
}

.footer-logo-text {
    font-weight: 800;
    font-size: 2.2rem; /* 🚀 Texto Imponente (antes 1.2rem) */
    font-family: var(--font-display);
    color: var(--text-primary);
    letter-spacing: -1px;
}

.contact-icon {
    color: var(--accent-primary);
    margin-right: 5px;
}

.fiscal-data { margin-bottom: 25px; }
.fiscal-data p { margin-bottom: 8px; }

/* ============================================================================
   7.2. ENLACES DE CONTACTO (BADGES PREMIUM)
   ============================================================================ */
.contact-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    margin-left: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

/* Badge WhatsApp (Verde Translúcido) */
.wa-badge {
    background: color-mix(in srgb, #25D366 15%, transparent);
    color: #25D366;
    border: 1px solid color-mix(in srgb, #25D366 30%, transparent);
}

.wa-badge:hover {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 10px color-mix(in srgb, #25D366 40%, transparent);
    transform: translateY(-2px);
}

/* Badge Correo (Usa el color de acento de tu tema) */
.mail-badge {
    background: color-mix(in srgb, var(--accent-primary) 15%, transparent);
    color: var(--accent-primary);
    border: 1px solid color-mix(in srgb, var(--accent-primary) 30%, transparent);
}

.mail-badge:hover {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--accent-primary) 40%, transparent);
    transform: translateY(-2px);
}

/* ============================================================================
   8. RESPONSIVE DESIGN (APP NATIVA)
   ============================================================================ */
@media (max-width: 768px) {
    /* Cabecera y Menú */
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; background: transparent; border: none; color: var(--text-primary); font-size: 1.8rem; cursor: pointer; padding: 5px; transition: color 0.3s; }
    .mobile-menu-btn:hover { color: var(--accent-primary); }
    
    /* Botón Tema más sutil */
    .btn-theme-toggle { padding: 6px 12px; font-size: 0.8rem; }
    .btn-theme-toggle i { font-size: 1.1rem; }
    
    /* Overlay Menú Móvil - Fondo oscuro translúcido */
    .mobile-nav-overlay { 
        position: fixed; top: 70px; left: 0; width: 100%; height: calc(100vh - 70px); 
        background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); 
        z-index: 9998; display: flex; flex-direction: column; 
        justify-content: flex-start; /* Alinea el menú arriba, eliminando el blanco total */
        animation: fadeIn 0.3s ease;
    }
    
    /* Caja compacta del menú */
    .mobile-nav-menu { 
        background: var(--bg-surface); padding: 20px; 
        border-radius: 0 0 var(--radius-lg) var(--radius-lg); 
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        display: flex; flex-direction: column; gap: 10px; width: 100%; 
        animation: slideDown 0.3s ease; box-sizing: border-box;
    }
    .mobile-nav-link { padding: 15px; background: var(--bg-surface); border-radius: var(--radius-md); color: var(--text-primary); text-decoration: none; font-weight: 700; font-size: 1.1rem; text-align: center; border: 1px solid var(--border-default); transition: all 0.3s; }
    .mobile-nav-link.active { background: color-mix(in srgb, var(--accent-primary) 15%, transparent); color: var(--accent-primary); border-color: var(--accent-primary); }

    /* Hero y Buscador */
    .booking-hero { padding: 40px 0; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 25px; }
    
    .search-widget { padding: 15px; border-radius: var(--radius-md); width: 100%; box-sizing: border-box; height: auto; }
    .search-form { gap: 15px !important; } /* Fuerza la unión del formulario */
    
    /* FIX: Evitar separación gigante en los inputs */
    .dynamic-fields-row { flex-direction: column; align-items: stretch; width: 100%; gap: 15px; justify-content: flex-start; }
    .search-group { 
        min-width: 100%; 
        width: 100%; 
        box-sizing: border-box; 
        margin-bottom: 0; 
        flex: none; /* 🚀 LA MAGIA: Esto mata los 200px de alto fantasma */
    }
    
    /* Input y Botón 100% */
    .search-group input, .search-group select, .search-group .choices__inner { width: 100%; }
    .btn-search { min-width: 100%; width: 100%; margin-top: 5px; }

    /* Tarjetas de Resultados */
    .booking-results { padding: 30px 0; }
    .room-result-card { width: 100%; box-sizing: border-box; margin-bottom: 15px; }
    .rrc-content { padding: 15px; flex-direction: column; gap: 15px; align-items: stretch; }
    
    .rrc-info { width: 100%; flex: none; }
    .rrc-info h3 { font-size: 1.3rem; margin-bottom: 8px; }
    
    /* FIX: Mantener los iconos de capacidad y disponibilidad en la misma línea */
    .rrc-features { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
    
    .rrc-price-box { width: 100%; min-width: auto; text-align: center; padding: 15px; box-sizing: border-box; margin-top: 0; }
    .rrc-price-box strong { font-size: 1.8rem; margin-bottom: 10px; }
    .btn-book-now { width: 100%; }

    /* Catálogo y Beneficios */
    .features-grid, .catalog-grid { grid-template-columns: 1fr; }
    
    /* Footer */
    .footer-inner { flex-direction: column; gap: 30px; text-align: center; }
    .footer-brand { margin: 0 auto; max-width: 100%; }
    .footer-logo-wrapper { justify-content: center; }
    .footer-contact-actions { align-items: stretch; }
    .contact-badge { margin-left: 0; margin-top: 5px; }
}

/* Animaciones del menú móvil */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideDown { 
    from { opacity: 0; transform: translateY(-20px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* ============================================================================
   9. REGLAS DE CONTRASTE ESTRICTO Y FONDOS DINÁMICOS
   ============================================================================ */

/* 🌙 Por defecto (Temas oscuros: Nebula, Titanium, Aurora) */
:root, html[data-theme="nebula"], html[data-theme="titanium"], html[data-theme="aurora"] {
    --hero-bg: url('../../images/web/hero-dark.jpg');
    --hero-overlay-bg: linear-gradient(135deg, rgba(10, 15, 30, 0.8) 0%, rgba(20, 25, 45, 0.7) 100%);
}

/* ☀️ Tema Polar (Claro) */
html[data-theme="polar"] {
    --hero-bg: url('../../images/web/hero-light.jpg');
    /*  FIX: Overlay blanco tipo cristal esmerilado para que el texto negro resalte a la perfección */
    --hero-overlay-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 245, 255, 0.6) 100%);
}

/* Fuerza la lectura oscura en elementos clave solo para el tema Polar */
html[data-theme="polar"] .hero-title,
html[data-theme="polar"] .hero-subtitle,
html[data-theme="polar"] .search-group label {
    color: var(--text-primary) !important; 
}

/* ============================================================================
   10. CHOICES.JS PREMIUM OVERRIDES (DISEÑO DEFINITIVO)
   ============================================================================ */
.search-group {
    position: relative;
}
.search-group:focus-within {
    z-index: 9999; 
}

.search-group .choices {
    margin-bottom: 0;
}

.search-group .choices__inner {
    background: color-mix(in srgb, var(--bg-surface) 40%, rgba(255,255,255,0.08));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    height: 45px; 
    min-height: 45px;
    display: flex;
    align-items: center;
    box-shadow: none; 
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.search-group .choices:hover .choices__inner {
    border-color: rgba(255, 255, 255, 0.4);
    background: color-mix(in srgb, var(--bg-surface) 20%, rgba(255,255,255,0.12));
}

.search-group .choices__inner .choices__item {
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
}

.search-group .choices__list--dropdown {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    word-break: break-word;
    margin-top: 5px; 
}

.search-group .choices__list--dropdown .choices__item {
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 10px 15px;
}

.search-group .choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: color-mix(in srgb, var(--accent-primary) 15%, transparent);
    color: var(--accent-primary);
}

.search-group .choices__list--dropdown .choices__item--choice.is-selected {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.search-group .choices[data-type*="select-one"]::after {
    border-color: var(--text-secondary) transparent transparent transparent;
}
.search-group .choices[data-type*="select-one"].is-open::after {
    border-color: transparent transparent var(--text-secondary) transparent;
}

/* ============================================================================
   11. FIX: ICONOS NATIVOS DE FECHA Y HORA EN TEMAS OSCUROS
   ============================================================================ */
html:not([data-theme="polar"]) .search-group input[type="date"]::-webkit-calendar-picker-indicator,
html:not([data-theme="polar"]) .search-group input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s;
}

html:not([data-theme="polar"]) .search-group input[type="date"]:hover::-webkit-calendar-picker-indicator,
html:not([data-theme="polar"]) .search-group input[type="time"]:hover::-webkit-calendar-picker-indicator {
    opacity: 1; 
}

/* ============================================================================
   12. TRANSICIONES ELEGANTES DE TEMA (SMOOTH FADE)
   ============================================================================ */
.web-public-body,
.web-header,
.hero-overlay,
.search-widget,
.booking-features,
.web-footer,
.rrc-price-box,
.search-group input[type="date"],
.search-group input[type="time"],
.search-group .choices__inner,
.search-group .choices__list--dropdown,
.custom-theme-dropdown .theme-dropdown-menu,
.checkout-header h3,
.checkout-section-title,
.booking-checkout-panel,
.room-catalog-section,
.cc-image-wrapper,
.cc-details {
    transition: background-color 0.5s ease-in-out, background 0.5s ease-in-out, color 0.5s ease-in-out, border-color 0.5s ease-in-out;
}

.room-result-card,
.catalog-card {
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.5s ease-in-out, border-color 0.5s ease-in-out;
}

.btn-theme-toggle {
    transition: border-color 0.3s, background-color 0.5s ease-in-out, color 0.5s ease-in-out;
}

/* ============================================================================
   13. CATÁLOGO DE HABITACIONES (DISEÑO PURO)
   ============================================================================ */
.room-catalog-section {
    padding: 80px 0;
    background: color-mix(in srgb, var(--bg-surface) 50%, var(--bg-base));
}

.catalog-header {
    text-align: center;
    margin-bottom: 50px;
}

.catalog-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.catalog-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.catalog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.cc-image-wrapper {
    position: relative;
    height: 220px;
    background: var(--bg-elevated);
}

.cc-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cc-gallery-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 5px;
}

.cc-empty-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-muted);
    font-size: 1.2rem;
}
.cc-empty-image i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.cc-details {
    padding: 25px;
}

.cc-title {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-primary);
}

.cc-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    min-height: 65px;
}

.cc-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid var(--border-default);
    padding-top: 20px;
}

.cc-capacity {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.cap-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.mt-5 {
    margin-top: 5px;
}

.cc-price-box {
    text-align: right;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    display: block;
}

.price-value {
    color: var(--accent-primary);
    font-size: 1.5rem;
    font-family: var(--font-display);
}

.catalog-empty-msg {
    text-align: center;
    grid-column: 1 / -1;
    color: var(--text-secondary);
    padding: 40px;
    font-size: 1.1rem;
}

/* ============================================================================
   15. LIGHTBOX DE GALERÍA PREMIUM
   ============================================================================ */
.lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 20000; display: flex; align-items: center; justify-content: center; }
.lightbox-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(10px); z-index: 1; }
.lightbox-header { position: absolute; top: 20px; left: 0; width: 100%; display: flex; justify-content: space-between; padding: 0 30px; z-index: 3; align-items: center; box-sizing: border-box; }
.lightbox-counter { color: #fff; font-family: var(--font-display); font-size: 1.2rem; background: rgba(255,255,255,0.15); padding: 8px 20px; border-radius: 30px; backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.2); }
.lightbox-close { font-size: 2rem; color: #fff; border: none; background: rgba(0,0,0,0.4); width: 45px; height: 45px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; border: 1px solid rgba(255,255,255,0.2); }
.lightbox-close:hover { background: var(--status-error); transform: scale(1.1); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; width: 60px; height: 60px; cursor: pointer; font-size: 2.5rem; border-radius: 50%; z-index: 3; display: flex; align-items: center; justify-content: center; transition: all 0.3s; backdrop-filter: blur(5px); }
.lightbox-nav:hover { background: var(--accent-primary); border-color: var(--accent-primary); transform: translateY(-50%) scale(1.1); }
.lightbox-nav.prev { left: 30px; }
.lightbox-nav.next { right: 30px; }
.lightbox-content { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; width: 85%; height: 85vh; }
.lightbox-content img { max-width: 100%; max-height: 100%; border-radius: var(--radius-lg); box-shadow: 0 25px 50px rgba(0,0,0,0.5); object-fit: contain; animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ============================================================================
   16. MODAL DE ÉXITO PREMIUM (NATIVO WEB)
   ============================================================================ */
.success-modal-wrapper {
    z-index: 100005;
    align-items: center;
    justify-content: center;
}

.success-modal-panel {
    max-width: 450px;
    height: auto;
    width: 90%;
    text-align: center;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease-out;
}

.success-icon-wrapper {
    border-bottom: none;
    justify-content: center;
    padding-bottom: 0;
}

.success-icon-wrapper i {
    font-size: 4.5rem;
    color: var(--status-success);
}

.success-body {
    padding: 10px 25px 25px;
    overflow-y: hidden;
}

.success-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.success-msg {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.5;
}

.success-code-box {
    background: color-mix(in srgb, var(--accent-primary) 10%, transparent);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 2px dashed var(--accent-primary);
    margin-bottom: 30px;
}

.success-code-text {
    font-size: 2.2rem;
    color: var(--accent-primary);
    font-family: var(--font-display);
    letter-spacing: 3px;
}

.btn-success-action {
    justify-content: center;
    border-radius: var(--radius-sm);
}

/* Fix para bloquear scroll limpiamente */
body.modal-open-strict {
    overflow: hidden;
}

/* ============================================================================
   17. FIX: OCULTAR SCROLLBAR VISUAL EN CHOICES.JS
   ============================================================================ */
.search-group .choices__list--dropdown .choices__list::-webkit-scrollbar {
    display: none; /* Chrome, Safari y Opera */
}

.search-group .choices__list--dropdown .choices__list {
    -ms-overflow-style: none;  /* IE y Edge */
    scrollbar-width: none;  /* Firefox */
}