/* ==========================================================================
   HOTEL LA LOLITA — UNIFIED TOPBAR, FOOTER & ACCESSIBILITY SYSTEM
   Applies to all pages across hotellalolita.com
   ========================================================================== */

/* 1. ESCALADO DE TEXTO (4 niveles reales: small, normal, large, xlarge)
   Sobrescribe tanto html como encabezados con clamp(..., vw, ...) para que
   ABSOLUTAMENTE TODOS los textos y títulos aumenten o disminuyan. */
html[data-a11y-text="small"] {
    font-size: 87.5% !important;
    --a11y-scale: 0.875;
}
html[data-a11y-text="large"] {
    font-size: 115% !important;
    --a11y-scale: 1.15;
}
html[data-a11y-text="xlarge"] {
    font-size: 128% !important;
    --a11y-scale: 1.28;
}

html[data-a11y-text="small"],
html[data-a11y-text="large"],
html[data-a11y-text="xlarge"] {
    --fs-kicker: 0.78rem !important;
    --fs-body: 1rem !important;
    --fs-lead: 1.2rem !important;
    --fs-h4: 1.35rem !important;
    --fs-h3: 1.7rem !important;
    --fs-h2: 2.4rem !important;
    --fs-h1: 3.1rem !important;
    --fs-display: 3.6rem !important;
}

html[data-a11y-text="small"] body,
html[data-a11y-text="large"] body,
html[data-a11y-text="xlarge"] body {
    font-size: 1rem !important;
}

/* Reemplazar tamaños bloqueados en vw por unidades rem escalables */
html[data-a11y-text="small"] :is(.hero-title, .huesped-hero-title, .hero h1),
html[data-a11y-text="large"] :is(.hero-title, .huesped-hero-title, .hero h1),
html[data-a11y-text="xlarge"] :is(.hero-title, .huesped-hero-title, .hero h1) {
    font-size: 3.1rem !important;
    line-height: 1.12 !important;
}
html[data-a11y-text="small"] :is(.hero-subtitle, .hero-description, .huesped-hero-lead, .lead),
html[data-a11y-text="large"] :is(.hero-subtitle, .hero-description, .huesped-hero-lead, .lead),
html[data-a11y-text="xlarge"] :is(.hero-subtitle, .hero-description, .huesped-hero-lead, .lead) {
    font-size: 1.18rem !important;
}
html[data-a11y-text="small"] :is(.section-title, .rooms-header-title h2, .about-content h2, .huesped-section-header h2, .huesped-cta h2, .post-hero h1, .legal-hero h1, .blog-hero h1, .legal-header h1),
html[data-a11y-text="large"] :is(.section-title, .rooms-header-title h2, .about-content h2, .huesped-section-header h2, .huesped-cta h2, .post-hero h1, .legal-hero h1, .blog-hero h1, .legal-header h1),
html[data-a11y-text="xlarge"] :is(.section-title, .rooms-header-title h2, .about-content h2, .huesped-section-header h2, .huesped-cta h2, .post-hero h1, .legal-hero h1, .blog-hero h1, .legal-header h1) {
    font-size: 2.25rem !important;
    line-height: 1.15 !important;
}
html[data-a11y-text="small"] :is(.post-body h2, .legal-body h2, .legal-section h2, .post-related h2, .location-info h3, .post-card h2),
html[data-a11y-text="large"] :is(.post-body h2, .legal-body h2, .legal-section h2, .post-related h2, .location-info h3, .post-card h2),
html[data-a11y-text="xlarge"] :is(.post-body h2, .legal-body h2, .legal-section h2, .post-related h2, .location-info h3, .post-card h2) {
    font-size: 1.6rem !important;
    line-height: 1.22 !important;
}
html[data-a11y-text="small"] :is(.post-body h3, .legal-body h3, .legal-section h3, .room-card-name, .why-card h3, .faq-cluster-title, .wifi-card-floor, .contacto-card-label, .horario-card-head h3, .regla-item h3, .pueblo-item h3, .dia-card .dia-head .titulo, .related-card h3),
html[data-a11y-text="large"] :is(.post-body h3, .legal-body h3, .legal-section h3, .room-card-name, .why-card h3, .faq-cluster-title, .wifi-card-floor, .contacto-card-label, .horario-card-head h3, .regla-item h3, .pueblo-item h3, .dia-card .dia-head .titulo, .related-card h3),
html[data-a11y-text="xlarge"] :is(.post-body h3, .legal-body h3, .legal-section h3, .room-card-name, .why-card h3, .faq-cluster-title, .wifi-card-floor, .contacto-card-label, .horario-card-head h3, .regla-item h3, .pueblo-item h3, .dia-card .dia-head .titulo, .related-card h3) {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
}
html[data-a11y-text="small"] :is(main p, main li, main td, main th, main dd, main dt, .faq-question, .faq-answer-inner, .why-card p, .room-card-capacity, .room-feat, .qs-value, .loc-feat, .contacto-card-value, .wifi-ssid, .wifi-pass),
html[data-a11y-text="large"] :is(main p, main li, main td, main th, main dd, main dt, .faq-question, .faq-answer-inner, .why-card p, .room-card-capacity, .room-feat, .qs-value, .loc-feat, .contacto-card-value, .wifi-ssid, .wifi-pass),
html[data-a11y-text="xlarge"] :is(main p, main li, main td, main th, main dd, main dt, .faq-question, .faq-answer-inner, .why-card p, .room-card-capacity, .room-feat, .qs-value, .loc-feat, .contacto-card-value, .wifi-ssid, .wifi-pass) {
    font-size: 1rem !important;
    line-height: 1.65 !important;
}
@media (max-width: 768px) {
    html[data-a11y-text="small"] :is(.hero-title, .huesped-hero-title, .hero h1),
    html[data-a11y-text="large"] :is(.hero-title, .huesped-hero-title, .hero h1),
    html[data-a11y-text="xlarge"] :is(.hero-title, .huesped-hero-title, .hero h1) {
        font-size: 2.15rem !important;
    }
    html[data-a11y-text="small"] :is(.section-title, .post-hero h1, .legal-hero h1, .blog-hero h1, .huesped-section-header h2),
    html[data-a11y-text="large"] :is(.section-title, .post-hero h1, .legal-hero h1, .blog-hero h1, .huesped-section-header h2),
    html[data-a11y-text="xlarge"] :is(.section-title, .post-hero h1, .legal-hero h1, .blog-hero h1, .huesped-section-header h2) {
        font-size: 1.8rem !important;
    }
}

/* 2. SKIP LINK & FOCUS */
.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 10030;
    padding: 12px 18px;
    transform: translateY(calc(-100% - 16px));
    background: #8b3a18;
    color: #fff !important;
    font: 700 .9rem/1.4 Montserrat, system-ui, sans-serif;
    text-decoration: underline;
    text-underline-offset: 3px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.skip-link:focus { transform: translateY(0); }
#main-content:focus { outline: 3px solid #b8552a; outline-offset: 4px; }

/* 3. TOPBAR UNIFICADO (.site-utility + header + .a11y-widget)
   Garantiza exactamente el mismo diseño, contenedor (1180px), tipografía y botones en las 22 páginas. */
.site-utility {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1002 !important;
    height: 34px !important;
    border-bottom: 1px solid rgba(26,24,20,.14) !important;
    background: rgba(255,255,255,.92) !important;
    color: #1a1814 !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}
.site-utility-inner,
.site-utility > .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 1180px !important;
    height: 100% !important;
    margin: 0 auto !important;
    padding: 0 150px 0 clamp(20px, 5vw, 48px) !important;
}
.site-audience {
    display: flex !important;
    align-items: stretch !important;
    height: 100% !important;
}
.site-audience a {
    display: flex !important;
    align-items: center !important;
    padding: 0 22px !important;
    color: #5c554a !important;
    font: 500 11.5px/1 Montserrat, system-ui, sans-serif !important;
    text-decoration: none !important;
    transition: color .2s, background .2s !important;
}
.site-audience a + a { border-left: 1px solid rgba(26,24,20,.16) !important; }
.site-audience a.active {
    color: #1a1814 !important;
    font-weight: 700 !important;
    box-shadow: inset 0 -2px 0 #b8552a !important;
}
.site-audience a:hover {
    color: #1a1814 !important;
    background: rgba(184,85,42,.08) !important;
}

.a11y-widget {
    position: fixed !important;
    top: 0 !important;
    right: calc(clamp(20px, 5vw, 48px) + 24px);
    z-index: 10020 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 34px !important;
    font-family: Montserrat, system-ui, sans-serif !important;
}
.a11y-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-width: 54px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-left: 1px solid rgba(26,24,20,.16) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #5c554a !important;
    box-shadow: none !important;
    cursor: pointer !important;
    font: 600 11.5px/1.2 Montserrat, system-ui, sans-serif !important;
}
.a11y-trigger sup { font-size: 9.5px !important; line-height: 1 !important; }
.a11y-trigger:hover,
.a11y-trigger:focus-visible,
.a11y-trigger[aria-expanded="true"] {
    background: rgba(184,85,42,.1) !important;
    color: #1a1814 !important;
    outline: 2px solid #8b3a18 !important;
    outline-offset: -2px !important;
}
.a11y-panel {
    position: absolute !important;
    right: 0 !important;
    top: 34px !important;
    display: grid;
    width: 215px !important;
    padding: 7px 0 !important;
    border-radius: 0 0 6px 6px !important;
    background: #2b2926 !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    box-shadow: 0 10px 26px rgba(0,0,0,.4) !important;
}
.a11y-panel[hidden] { display: none !important; }
.a11y-option {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 11px 14px !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    text-align: left !important;
    cursor: pointer !important;
    font: 500 13px/1.35 Montserrat, system-ui, sans-serif !important;
}
.a11y-option:hover,
.a11y-option:focus-visible {
    background: rgba(255,255,255,.15) !important;
    outline: 2px solid #f0b18d !important;
    outline-offset: -2px !important;
}
.a11y-option[aria-pressed="true"],
.a11y-option.is-active {
    background: rgba(184,85,42,.35) !important;
    font-weight: 700 !important;
}
.a11y-option i,
.a11y-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* HEADER PRINCIPAL UNIFICADO */
body.has-accessibility { padding-top: 34px; }
body.has-accessibility > header,
.header#header {
    position: fixed !important;
    top: 34px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    height: auto !important;
    padding: 12px 0 !important;
    background: rgba(255,255,255,.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(26,24,20,.08) !important;
    box-shadow: 0 2px 8px rgba(26,24,20,.07) !important;
    transition: background .3s ease, box-shadow .3s ease, border-color .3s ease !important;
}
body.has-accessibility > header > .container,
.header#header > .container {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 clamp(20px, 5vw, 48px) !important;
}
body.has-accessibility > header .header-inner,
.header#header .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.has-accessibility > header .logo,
body.has-accessibility > header .logo span,
.header#header .logo,
.header#header .logo span {
    color: #1A1814 !important;
}
body.has-accessibility > header .logo,
.header#header .logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 17.6px !important;
    font-weight: 600 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
}
body.has-accessibility > header .logo > img,
.header#header .logo > img {
    display: block !important;
    width: auto !important;
    height: 36px !important;
    flex: 0 0 auto !important;
    object-fit: contain !important;
}
body.has-accessibility > header .logo-text,
.header#header .logo-text {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.1 !important;
}
body.has-accessibility > header .logo-text > span,
.header#header .logo-text > span {
    display: block !important;
    visibility: visible !important;
}
body.has-accessibility > header .logo-text > span:first-child,
.header#header .logo-text > span:first-child {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 17.6px !important;
    font-weight: 600 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}
body.has-accessibility > header .logo-sub,
.header#header .logo-sub {
    margin-top: 1px !important;
    font-family: Montserrat, system-ui, sans-serif !important;
    font-size: 9.6px !important;
    font-weight: 500 !important;
    letter-spacing: .12em !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
    opacity: .75 !important;
}

/* Botones de navegación en el topbar */
body.has-accessibility > header nav,
.header#header .header-nav {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
body.has-accessibility > header nav ul {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
body.has-accessibility > header nav ul li { list-style: none !important; margin: 0 !important; }
body.has-accessibility > header nav ul a,
.header#header .header-nav .header-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 38px !important;
    padding: 8px 14px !important;
    border: 1.5px solid #1A1814 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #1A1814 !important;
    font: 600 13.1px/1.2 Montserrat, system-ui, sans-serif !important;
    letter-spacing: .04em !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    transition: background .2s, color .2s, border-color .2s !important;
}
body.has-accessibility > header nav ul a:hover,
body.has-accessibility > header nav ul a:focus-visible,
.header#header .header-nav .header-link:hover,
.header#header .header-nav .header-link:focus-visible {
    background: #1A1814 !important;
    color: #FFFFFF !important;
    border-color: #1A1814 !important;
}
body.has-accessibility > header nav ul a[href*="wa.me"],
.header#header .header-nav .btn-wa {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 38px !important;
    padding: 10px 22px !important;
    border: 1.5px solid #25D366 !important;
    border-radius: 10px !important;
    background: #25D366 !important;
    color: #FFFFFF !important;
    font: 700 13.1px/1.2 Montserrat, system-ui, sans-serif !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 14px rgba(37,211,102,.35) !important;
    transition: background .2s, border-color .2s, box-shadow .2s, transform .2s !important;
}
body.has-accessibility > header nav ul a[href*="wa.me"]:hover,
body.has-accessibility > header nav ul a[href*="wa.me"]:focus-visible,
.header#header .header-nav .btn-wa:hover,
.header#header .header-nav .btn-wa:focus-visible {
    border-color: #1DA851 !important;
    background: #1DA851 !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 20px rgba(37,211,102,.45) !important;
}
body.has-accessibility > header nav ul a[href*="wa.me"] i,
.header#header .header-nav .btn-wa i {
    font-size: 15px !important;
    color: #FFFFFF !important;
}

/* Hamburger y menú móvil unificado */
body.has-accessibility > header .hamburger,
.header#header .hamburger {
    display: none;
    flex: 0 0 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0 8px;
    border: 1.5px solid #1A1814 !important;
    border-radius: 8px;
    background: transparent !important;
    cursor: pointer;
    transition: all .3s;
}
body.has-accessibility > header .hamburger span,
.header#header .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #1A1814 !important;
    transition: all .3s;
}
body.has-accessibility > header .hamburger.active span:nth-child(1),
.header#header .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.has-accessibility > header .hamburger.active span:nth-child(2),
.header#header .hamburger.active span:nth-child(2) { opacity: 0; }
body.has-accessibility > header .hamburger.active span:nth-child(3),
.header#header .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.has-accessibility .mobile-nav,
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    background: rgba(20,18,16,.97) !important;
}
body.has-accessibility .mobile-nav.active,
.mobile-nav.active { display: flex !important; }
body.has-accessibility .mobile-nav-close,
.mobile-nav-close {
    position: absolute;
    top: 16px;
    right: 20px;
    padding: 4px 10px;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.85) !important;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}
body.has-accessibility .mobile-nav a,
.mobile-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 300px;
    padding: 12px 24px;
    border: 1.5px solid rgba(255,255,255,.28) !important;
    border-radius: 10px;
    color: #fff !important;
    background: transparent;
    font: 600 1.05rem/1.3 Montserrat, system-ui, sans-serif;
    letter-spacing: .08em;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: all .25s;
}
body.has-accessibility .mobile-nav a:hover,
body.has-accessibility .mobile-nav a:focus-visible,
.mobile-nav a:hover,
.mobile-nav a:focus-visible {
    background: rgba(255,255,255,.12) !important;
    border-color: rgba(255,255,255,.65) !important;
    outline: 2px solid #f0b18d;
    outline-offset: 2px;
}
body.has-accessibility .mobile-nav a.btn-wa,
.mobile-nav a.btn-wa {
    border-color: #25d366 !important;
    background: #25d366 !important;
    color: #fff !important;
    font-size: 1rem;
}

@media (max-width: 1020px) {
    body.has-accessibility > header nav,
    .header#header .header-nav { display: none !important; }
    body.has-accessibility > header .hamburger,
    .header#header .hamburger { display: flex !important; }
}

@media (max-width: 1020px) {
    .a11y-widget { right: 0 !important; }
    .site-utility-inner,
    .site-utility > .container { padding-right: 82px !important; }
    .site-audience a { padding: 0 12px !important; font-size: 10.5px !important; }
    .a11y-trigger { min-width: 48px !important; min-height: 34px !important; padding: 0 12px !important; }
    .a11y-label { display: none !important; }
}

/* Espaciado superior para que el header fijo no tape contenido en páginas legales/internas */
body.has-accessibility .legal-page {
    padding-top: 110px !important;
}

/* 4. MODO NOCHE (DARK MODE) COMPLETO Y CONSISTENTE */
html[data-theme="dark"] {
    --bg: #141210 !important;
    --bg-warm: #1E1B18 !important;
    --bg-alt: #1E1B18 !important;
    --surface: #221F1B !important;
    --ink: #F5F1EA !important;
    --ink-mid: #D8D2C7 !important;
    --ink-soft: #B8B0A4 !important;
    --ink-muted: #9E9689 !important;
    --ink-paper: #F5F1EA !important;
    --accent: #D8825A !important;
    --accent-dark: #F0B18D !important;
    --accent-light: #F0B18D !important;
    --accent-soft: rgba(216,130,90,.2) !important;
    --border: rgba(245,241,234,.14) !important;
    --border-strong: rgba(245,241,234,.24) !important;
    --rule: rgba(245,241,234,.2) !important;
    color-scheme: dark;
}

html[data-theme="dark"] body {
    background-color: #141210 !important;
    color: #F5F1EA !important;
}

/* Topbar y Header en Modo Noche */
html[data-theme="dark"] .site-utility {
    background: rgba(24,22,19,.94) !important;
    border-bottom-color: rgba(255,255,255,.14) !important;
    color: #F5F1EA !important;
}
html[data-theme="dark"] .site-audience a { color: #C4BEB5 !important; }
html[data-theme="dark"] .site-audience a.active {
    color: #FFFFFF !important;
    box-shadow: inset 0 -2px 0 #F0B18D !important;
}
html[data-theme="dark"] .site-audience a:hover {
    color: #FFFFFF !important;
    background: rgba(240,177,141,.12) !important;
}
html[data-theme="dark"] .site-audience a + a { border-left-color: rgba(255,255,255,.16) !important; }

html[data-theme="dark"] .a11y-trigger {
    color: #F0ECE5 !important;
    border-left-color: rgba(255,255,255,.16) !important;
}
html[data-theme="dark"] .a11y-trigger:hover,
html[data-theme="dark"] .a11y-trigger:focus-visible,
html[data-theme="dark"] .a11y-trigger[aria-expanded="true"] {
    background: rgba(240,177,141,.15) !important;
    color: #FFFFFF !important;
    outline-color: #F0B18D !important;
}
html[data-theme="dark"] .a11y-panel {
    background: #1E1B18 !important;
    border-color: rgba(255,255,255,.2) !important;
}

html[data-theme="dark"] body.has-accessibility > header,
html[data-theme="dark"] .header#header {
    background: rgba(20,18,16,.95) !important;
    border-bottom-color: rgba(255,255,255,.12) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.4) !important;
}
html[data-theme="dark"] body.has-accessibility > header .logo,
html[data-theme="dark"] body.has-accessibility > header .logo span,
html[data-theme="dark"] .header#header .logo,
html[data-theme="dark"] .header#header .logo span {
    color: #F5F1EA !important;
}
html[data-theme="dark"] body.has-accessibility > header nav ul a:not([href*="wa.me"]),
html[data-theme="dark"] .header#header .header-nav .header-link {
    color: #F5F1EA !important;
    border-color: rgba(245,241,234,.35) !important;
    background: transparent !important;
}
html[data-theme="dark"] body.has-accessibility > header nav ul a:not([href*="wa.me"]):hover,
html[data-theme="dark"] body.has-accessibility > header nav ul a:not([href*="wa.me"]):focus-visible,
html[data-theme="dark"] .header#header .header-nav .header-link:hover,
html[data-theme="dark"] .header#header .header-nav .header-link:focus-visible {
    background: rgba(245,241,234,.14) !important;
    color: #FFFFFF !important;
    border-color: #F5F1EA !important;
}
html[data-theme="dark"] body.has-accessibility > header .hamburger,
html[data-theme="dark"] .header#header .hamburger {
    border-color: rgba(245,241,234,.45) !important;
}
html[data-theme="dark"] body.has-accessibility > header .hamburger span,
html[data-theme="dark"] .header#header .hamburger span {
    background: #F5F1EA !important;
}

/* Secciones y contenedores en Modo Noche (preservando imágenes de hero) */
html[data-theme="dark"] body :is(main, article, aside, .post-hero, .post-body, .post-related, .legal-hero, .legal-body, .legal-page, .blog-hero, .huesped-main, .huesped-section:not(.huesped-section--emergencia)) {
    background-color: #141210 !important;
    background-image: none !important;
    color: #F5F1EA !important;
}
html[data-theme="dark"] body .huesped-section--alt,
html[data-theme="dark"] body .post-related,
html[data-theme="dark"] body .why-section,
html[data-theme="dark"] body .location-section {
    background-color: #1B1916 !important;
}
html[data-theme="dark"] body .huesped-section--emergencia {
    background-color: #0E0C0A !important;
    color: #F5F1EA !important;
}

/* Tarjetas, bloques, tablas y callouts en Modo Noche */
html[data-theme="dark"] body :is(
    .post-callout, .tip-box, .highlight-card, .ficha, .ficha-item,
    .dia-card, .jornada-card, .resumen-card, .artista-card, .grupos-list,
    .related-card, .post-card, .doc-card, .doc-card-head, .doc-card-body, .doc-note,
    .legal-content, .privacy-toc, .privacy-highlight, .privacy-contact-box,
    .wifi-card, .contacto-card:not(.contacto-card--primary), .horario-card, .regla-item, .pueblo-item,
    .huesped-section-foot, .cuna-item, .espro-item, .quehacer-item, .llegar-item, .faq-item
) {
    background-color: #211E1A !important;
    background-image: none !important;
    color: #F5F1EA !important;
    border-color: rgba(245,241,234,.16) !important;
}
html[data-theme="dark"] body :is(.wifi-qr, .wifi-ssid, .wifi-pass) {
    background-color: #161412 !important;
    color: #F5F1EA !important;
    border-color: rgba(245,241,234,.22) !important;
}
html[data-theme="dark"] body .wifi-qr img {
    background-color: #FFFFFF !important;
    padding: 4px !important;
}
html[data-theme="dark"] body :is(.wifi-copy, .wifi-toggle) {
    background-color: #28241F !important;
    color: #F5F1EA !important;
    border-color: rgba(245,241,234,.28) !important;
}
html[data-theme="dark"] body :is(.wifi-copy:hover, .wifi-toggle:hover, .wifi-toggle[aria-pressed="true"]) {
    background-color: #D8825A !important;
    color: #141210 !important;
    border-color: #D8825A !important;
}
html[data-theme="dark"] body .contacto-card--primary {
    background-color: #2C221C !important;
    border-color: #D8825A !important;
    color: #F5F1EA !important;
}
html[data-theme="dark"] body .doc-card-status {
    background-color: rgba(45,134,89,.25) !important;
    color: #70D89B !important;
    border: 1px solid rgba(112,216,155,.4) !important;
}
html[data-theme="dark"] body :is(.post-cta, .legal-cta, .huesped-section--cta) {
    background: #231C18 !important;
    border-color: #D8825A !important;
    color: #F5F1EA !important;
}

/* Tablas en Modo Noche (evita filas pares con fondo claro #faf6ee) */
html[data-theme="dark"] body :is(table, .post-table, .privacy-table) {
    background-color: #1E1B18 !important;
    color: #F5F1EA !important;
    border-color: rgba(245,241,234,.18) !important;
}
html[data-theme="dark"] body :is(.post-table th, .privacy-table th, table th) {
    background-color: #2D2620 !important;
    color: #FFFFFF !important;
    border-color: rgba(245,241,234,.22) !important;
}
html[data-theme="dark"] body :is(.post-table td, .privacy-table td, table td, .post-table tr:nth-child(even) td, .privacy-table tr:nth-child(even) td, table tr:nth-child(even) td) {
    background-color: #1E1B18 !important;
    color: #F0ECE5 !important;
    border-color: rgba(245,241,234,.14) !important;
}
html[data-theme="dark"] body :is(.post-table tr:nth-child(even) td, .privacy-table tr:nth-child(even) td, table tr:nth-child(even) td) {
    background-color: #25211D !important;
}

/* Tipografía y textos secundarios en Modo Noche */
html[data-theme="dark"] body :is(
    h1, h2, h3, h4, h5, h6, p, li, dt, dd, label, figcaption, blockquote, strong, b,
    .meta, .lead, .breadcrumb, .evento .titulo, .evento .desc, .evento .hora,
    .dia-card .dia-head .fecha, .dia-card .dia-head .titulo,
    .ficha-item .label, .ficha-item .val,
    .wifi-card-floor, .wifi-card-sub, .wifi-field-label, .wifi-qr-label,
    .contacto-card-label, .contacto-card-sub, .contacto-card-value,
    .horario-card-head h3, .regla-item h3, .pueblo-item h3,
    .doc-meta-row dt, .doc-meta-row dd, .legal-date
) {
    color: #F0ECE5 !important;
}
html[data-theme="dark"] body :is(.kicker, .tag, .horario-card-time, .huesped-section-header .kicker, .huesped-section-header .section-num) {
    color: #F0B18D !important;
}
html[data-theme="dark"] body .related-card .tag,
html[data-theme="dark"] body .post-card .tag {
    background-color: #8B3A18 !important;
    color: #FFFFFF !important;
}
html[data-theme="dark"] body a:not(.btn):not(.btn-wa):not(.btn-hero-primary):not(.btn-hero-ghost):not(.room-card-wa):not(.a11y-trigger):not(.a11y-option):not(.developer-tab):not(.wa-fab):not(.header-link):not(.contacto-card):not(.emergencia-card) {
    color: #F0B18D !important;
}
html[data-theme="dark"] body :is(input, select, textarea) {
    background: #25221E !important;
    color: #FFFFFF !important;
    border-color: rgba(245,241,234,.3) !important;
}

/* 5. MODO ALTO CONTRASTE (WCAG AAA)
   Elimina filter: contrast() (que lavaba textos grises/beige sobre fondos claros)
   y aplica colores puros de máximo contraste tanto en Modo Día como en Modo Noche. */
html[data-a11y-contrast="high"] body > * {
    filter: none !important;
}

/* 5A. ALTO CONTRASTE EN MODO DÍA (Blanco puro #FFF y Negro puro #000) */
html[data-a11y-contrast="high"]:not([data-theme="dark"]) {
    --bg: #FFFFFF !important;
    --bg-warm: #F4F4F4 !important;
    --bg-alt: #F4F4F4 !important;
    --surface: #FFFFFF !important;
    --ink: #000000 !important;
    --ink-mid: #000000 !important;
    --ink-soft: #000000 !important;
    --ink-muted: #000000 !important;
    --accent: #6E2200 !important;
    --accent-dark: #4A1600 !important;
    --border: #000000 !important;
    --border-strong: #000000 !important;
    --rule: #000000 !important;
}
html[data-a11y-contrast="high"]:not([data-theme="dark"]) body {
    background: #FFFFFF !important;
    color: #000000 !important;
}
html[data-a11y-contrast="high"]:not([data-theme="dark"]) .site-utility {
    background: #FFFFFF !important;
    border-bottom: 2px solid #000000 !important;
}
html[data-a11y-contrast="high"]:not([data-theme="dark"]) .site-audience a,
html[data-a11y-contrast="high"]:not([data-theme="dark"]) .a11y-trigger {
    color: #000000 !important;
    font-weight: 700 !important;
    border-color: #000000 !important;
}
html[data-a11y-contrast="high"]:not([data-theme="dark"]) body.has-accessibility > header,
html[data-a11y-contrast="high"]:not([data-theme="dark"]) .header#header {
    background: #FFFFFF !important;
    border-bottom: 2px solid #000000 !important;
    box-shadow: none !important;
}
html[data-a11y-contrast="high"]:not([data-theme="dark"]) body.has-accessibility > header nav ul a:not([href*="wa.me"]),
html[data-a11y-contrast="high"]:not([data-theme="dark"]) .header#header .header-nav .header-link {
    border: 2px solid #000000 !important;
    color: #000000 !important;
    font-weight: 700 !important;
}
html[data-a11y-contrast="high"]:not([data-theme="dark"]) body.has-accessibility > header nav ul a[href*="wa.me"],
html[data-a11y-contrast="high"]:not([data-theme="dark"]) .header#header .header-nav .btn-wa,
html[data-a11y-contrast="high"] .room-card-wa {
    background: #0B5E2B !important;
    border: 2px solid #000000 !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

/* Todos los textos sobre secciones claras en negro puro #000 */
html[data-a11y-contrast="high"]:not([data-theme="dark"]) :is(
    main, .rooms-section, .why-section, .gallery-section, .location-section, .faq-section, .quick-stats,
    .post-hero, .post-body, .post-related, .legal-hero, .legal-body, .legal-page, .blog-hero,
    .huesped-section:not(.huesped-section--emergencia), .room-modal-box
) :is(
    h1, h2, h3, h4, h5, h6, p, li, dt, dd, span, label, strong, b, em, small, td, th,
    .section-tag, .section-title, .section-sub, .avail-today, .sync-indicator,
    .qs-label, .qs-value, .room-card-name, .room-card-capacity, .room-card-availability,
    .room-feat, .room-card-price-label, .room-card-price, .room-card-details,
    .why-card h3, .why-card p, .gallery-filter:not(.active), .loc-feat,
    .faq-cluster-title, .faq-cluster-count, .faq-question, .faq-answer-inner,
    .meta, .lead, .breadcrumb, .kicker, .evento .hora, .evento .titulo, .evento .desc,
    .ficha-item .label, .ficha-item .val, .wifi-card-floor, .wifi-card-sub, .wifi-field-label,
    .wifi-ssid, .wifi-pass, .wifi-qr-label, .horario-card-head h3, .horario-card-time,
    .regla-item h3, .pueblo-item h3, .legal-date, .rm-title, .rm-subtitle, .rm-price-main, .rm-price-sub,
    .rm-unit-num, .rm-unit-floor, .rm-select-hint, .rm-booking-label, .rm-booking-note, .rm-price-row, .rm-price-total
) {
    color: #000000 !important;
    opacity: 1 !important;
}
html[data-a11y-contrast="high"]:not([data-theme="dark"]) :is(
    .room-card, .why-card, .faq-item, .qs-item, .post-callout, .tip-box, .highlight-card,
    .ficha, .dia-card, .jornada-card, .resumen-card, .artista-card, .grupos-list,
    .related-card, .post-card, .doc-card, .legal-content, .privacy-toc, .privacy-highlight,
    .privacy-contact-box, .wifi-card, .wifi-qr, .wifi-ssid, .wifi-pass,
    .contacto-card:not(.contacto-card--primary), .horario-card, .regla-item, .pueblo-item,
    .rm-unit-card, .rm-date-field, .rm-price-strip, .rm-price-box, .room-feat, .rm-feature
) {
    background: #FFFFFF !important;
    border: 2px solid #000000 !important;
    box-shadow: none !important;
}
html[data-a11y-contrast="high"]:not([data-theme="dark"]) :is(
    .post-body a, .legal-body a, .faq-answer-inner a, .location-info a:not(.btn-wa), .pueblo-link, .room-card-details, .breadcrumb a
) {
    color: #4A1600 !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
}
/* Preservar texto blanco en bloques oscuros (Hero, Emergencias, Footer, CTAs oscuros, badges) */
html[data-a11y-contrast="high"]:not([data-theme="dark"]) .hero-overlay,
html[data-a11y-contrast="high"]:not([data-theme="dark"]) .huesped-hero::after {
    background: rgba(0,0,0,.82) !important;
}
html[data-a11y-contrast="high"]:not([data-theme="dark"]) :is(
    .hero, .huesped-hero, .huesped-section--emergencia, footer.footer, .grupos-cta, .post-cta, .legal-cta, .contacto-card--primary
) :is(h1, h2, h3, h4, p, span, strong, em, a:not(.btn-wa), li, i) {
    color: #FFFFFF !important;
    opacity: 1 !important;
}
html[data-a11y-contrast="high"]:not([data-theme="dark"]) :is(.room-card-badge, .rm-room-badge, .related-card .tag, .post-card .tag, .gallery-filter.active) {
    background: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #000000 !important;
}
html[data-a11y-contrast="high"]:not([data-theme="dark"]) .grupos-cta .btn-wa {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

/* 5B. ALTO CONTRASTE EN MODO NOCHE (Negro puro #000, Blanco puro #FFF y Acentos Amarillo/Ámbar WCAG AAA) */
html[data-theme="dark"][data-a11y-contrast="high"] {
    --bg: #000000 !important;
    --bg-warm: #0A0A0A !important;
    --bg-alt: #0A0A0A !important;
    --surface: #121212 !important;
    --ink: #FFFFFF !important;
    --ink-mid: #FFFFFF !important;
    --ink-soft: #FFFFFF !important;
    --ink-muted: #F5F5F5 !important;
    --accent: #FFD60A !important;
    --accent-light: #FFD60A !important;
    --accent-dark: #FFD60A !important;
    --border: #FFFFFF !important;
    --border-strong: #FFFFFF !important;
    --rule: #FFFFFF !important;
}
html[data-theme="dark"][data-a11y-contrast="high"] body,
html[data-theme="dark"][data-a11y-contrast="high"] body :is(main, article, section:not(.hero):not(.huesped-hero), .post-hero, .post-body, .post-related, .legal-hero, .legal-body, .legal-page, .blog-hero, .huesped-main, .huesped-section) {
    background-color: #000000 !important;
    color: #FFFFFF !important;
}
html[data-theme="dark"][data-a11y-contrast="high"] .site-utility,
html[data-theme="dark"][data-a11y-contrast="high"] body.has-accessibility > header,
html[data-theme="dark"][data-a11y-contrast="high"] .header#header {
    background: #000000 !important;
    border-bottom: 2px solid #FFFFFF !important;
}
html[data-theme="dark"][data-a11y-contrast="high"] body.has-accessibility > header nav ul a:not([href*="wa.me"]),
html[data-theme="dark"][data-a11y-contrast="high"] .header#header .header-nav .header-link {
    border: 2px solid #FFFFFF !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
}
html[data-theme="dark"][data-a11y-contrast="high"] :is(
    .room-card, .why-card, .faq-item, .qs-item, .post-callout, .tip-box, .highlight-card,
    .ficha, .dia-card, .jornada-card, .resumen-card, .artista-card, .grupos-list,
    .related-card, .post-card, .doc-card, .legal-content, .privacy-toc, .privacy-highlight,
    .privacy-contact-box, .wifi-card, .wifi-qr, .wifi-ssid, .wifi-pass,
    .contacto-card, .horario-card, .regla-item, .pueblo-item, .emergencia-card,
    .rm-unit-card, .rm-date-field, .rm-price-strip, .rm-price-box, .room-feat, .rm-feature, .room-modal-box
) {
    background-color: #0D0D0D !important;
    border: 2px solid #FFFFFF !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
}
html[data-theme="dark"][data-a11y-contrast="high"] body :is(
    h1, h2, h3, h4, h5, h6, p, li, dt, dd, span, label, strong, b, td, th,
    .section-title, .section-sub, .qs-label, .qs-value, .room-card-name, .room-card-capacity,
    .room-feat, .room-card-price-label, .room-card-price, .why-card h3, .why-card p,
    .faq-cluster-title, .faq-cluster-count, .faq-question, .faq-answer-inner,
    .meta, .lead, .breadcrumb, .evento .hora, .evento .titulo, .evento .desc,
    .ficha-item .label, .ficha-item .val, .wifi-card-floor, .wifi-card-sub, .wifi-field-label,
    .wifi-ssid, .wifi-pass, .wifi-qr-label, .contacto-card-label, .contacto-card-sub, .contacto-card-value,
    .horario-card-head h3, .regla-item h3, .pueblo-item h3, .legal-date,
    .rm-title, .rm-subtitle, .rm-price-main, .rm-price-sub, .rm-unit-num, .rm-unit-floor, .rm-select-hint
) {
    color: #FFFFFF !important;
    opacity: 1 !important;
}
html[data-theme="dark"][data-a11y-contrast="high"] body :is(
    a:not(.btn):not(.btn-wa):not(.btn-hero-primary):not(.room-card-wa):not(.header-link):not(.a11y-trigger):not(.a11y-option):not(.wa-fab):not(.developer-tab),
    .section-tag, .kicker, .avail-today, .room-card-details, .horario-card-time, .faq-question i
) {
    color: #FFD60A !important;
}

/* 6. BOTONES FLOTANTES COMPARTIDOS (WhatsApp FAB & Developer Tab) */
.wa-fab {
    position: fixed;
    right: 24px;
    bottom: 90px;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(37,211,102,.4);
    text-decoration: none;
    transform: none;
    transition: background .3s ease, box-shadow .3s ease;
}
.wa-fab i { font-size: 1.7rem; color: #fff !important; }
.wa-fab:hover { background: #1da851; box-shadow: 0 8px 28px rgba(37,211,102,.55); color: #fff !important; transform: none; }
html[data-theme="dark"] body a.wa-fab { background: #25D366 !important; color: #fff !important; }
@media (max-width: 860px) { .wa-fab { bottom: 24px !important; right: 16px; width: 56px; height: 56px; font-size: 1.5rem; } }
@media (prefers-reduced-motion: reduce) { .wa-fab, .skip-link { transition: none !important; animation: none !important; } }

.developer-tab {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 10030;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 142px;
    padding: 10px 6px;
    border: 0;
    border-radius: 8px 0 0 8px;
    background: #b8552a;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
    writing-mode: vertical-rl;
    transform: translateY(-50%);
    font: 600 .72rem Montserrat, system-ui, sans-serif;
    letter-spacing: .02em;
    text-decoration: none;
}
.developer-tab span { display: block; transform: rotate(180deg); color: #fff !important; }
.developer-tab:hover,
.developer-tab:focus-visible { background: #8b3a18; color: #fff !important; }
html[data-theme="dark"] body a.developer-tab { color: #fff !important; }
html[data-a11y-contrast="high"] .developer-tab,
html[data-a11y-contrast="high"] .wa-fab { outline: 2px solid #000; }
@media (max-width: 600px) { .developer-tab { width: 28px; height: 124px; font-size: .64rem; } }

/* 7. FOOTER COMPARTIDO */
body.has-accessibility > footer.footer {
    display: block;
    padding: 60px 0 32px;
    border-top: 0;
    background: #1a1814 !important;
    color: rgba(255,255,255,.75) !important;
}
body.has-accessibility > footer.footer > .container {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 clamp(20px, 5vw, 48px) !important;
}
body.has-accessibility > footer.footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
    text-align: left;
}
body.has-accessibility > footer.footer .footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff !important;
    font: 600 1.1rem/1.1 'Playfair Display', Georgia, serif !important;
    letter-spacing: normal !important;
    text-decoration: none;
    text-transform: none !important;
}
body.has-accessibility > footer.footer .footer-brand .logo img { display: block; width: auto; height: 36px; object-fit: contain; }
body.has-accessibility > footer.footer .footer-brand .logo-text { display: flex; flex-direction: column; }
body.has-accessibility > footer.footer .footer-brand .logo-text > span { display: block; visibility: visible; color: #fff !important; }
body.has-accessibility > footer.footer .footer-brand .logo-sub { margin-top: 2px; font: 500 .6rem/1.1 Montserrat, sans-serif; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
body.has-accessibility > footer.footer .footer-brand p { max-width: 360px; color: rgba(255,255,255,.75) !important; font-size: .88rem; line-height: 1.7; }
body.has-accessibility > footer.footer .footer-social-links { display: flex; gap: 12px; margin-top: 20px; }
body.has-accessibility > footer.footer .footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.8) !important;
    font-size: .95rem;
    text-decoration: none;
    transition: all .2s;
}
body.has-accessibility > footer.footer .footer-social-icon:hover { background: rgba(255,255,255,.2); color: #fff !important; }
body.has-accessibility > footer.footer .footer-social-wa { background: rgba(37,211,102,.2); color: #25d366 !important; }
body.has-accessibility > footer.footer .footer-social-wa:hover { background: rgba(37,211,102,.35); }
body.has-accessibility > footer.footer .footer-col h4 {
    margin-bottom: 18px;
    color: #fff !important;
    font: 700 .8rem/1.3 Montserrat, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}
body.has-accessibility > footer.footer .footer-links { display: flex; flex-direction: column; gap: 10px; list-style: none; }
body.has-accessibility > footer.footer .footer-links li { display: flex; align-items: center; }
body.has-accessibility > footer.footer .footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.75) !important;
    font: 400 .85rem/1.5 Montserrat, sans-serif;
    text-decoration: none;
    transition: color .2s;
}
body.has-accessibility > footer.footer .footer-links a:hover,
body.has-accessibility > footer.footer .footer-links a:focus-visible { color: #fff !important; }
body.has-accessibility > footer.footer .footer-links a i { width: 16px; text-align: center; }
body.has-accessibility > footer.footer .footer-bottom {
    display: block;
    padding: 24px 0 0;
    border-top: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.75) !important;
    font-size: .78rem;
}
body.has-accessibility > footer.footer .footer-bottom-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    flex-wrap: wrap;
}
body.has-accessibility > footer.footer .footer-bottom-row p { margin: 0; color: rgba(255,255,255,.75) !important; font-size: inherit; }
body.has-accessibility > footer.footer .footer-bottom-row a { color: rgba(255,255,255,.85) !important; }
body.has-accessibility > footer.footer .footer-bottom-row a:hover { color: #fff !important; }
body.has-accessibility > footer.footer .footer-credit { color: rgba(245,241,234,.75) !important; font-size: .72rem; font-style: italic; }
body.has-accessibility > footer.footer .footer-credit strong { color: #f0b18d !important; font-style: normal; font-weight: 600; }
body.has-accessibility > footer.footer .footer-credit-link { color: #f0b18d !important; }
html[data-theme="dark"] body.has-accessibility > footer.footer { background: #0c0a08 !important; color: rgba(255,255,255,.8) !important; }
@media (max-width: 900px) {
    body.has-accessibility > footer.footer .footer-grid { gap: 32px; }
}
@media (max-width: 700px) {
    body.has-accessibility > footer.footer { padding: 48px 0 28px; }
    body.has-accessibility > footer.footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
    body.has-accessibility > footer.footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    body.has-accessibility > footer.footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    body.has-accessibility > footer.footer .footer-brand { grid-column: auto; }
    body.has-accessibility > footer.footer .footer-bottom-row { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
}

/* 8. BANNER GLOBAL DE COOKIES Y PANEL DE PREFERENCIAS */
.cookie-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10035 !important;
    padding: 16px 20px !important;
    background: #1a1814 !important;
    color: #f5f1ea !important;
    border-top: 1px solid rgba(240,177,141,.28) !important;
    box-shadow: 0 -8px 28px rgba(0,0,0,.35) !important;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(100%) !important;
    transition: transform .3s ease, visibility .3s ease !important;
}
.cookie-banner.active {
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}
.cookie-content {
    max-width: 1180px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    flex-wrap: wrap !important;
    position: relative !important;
    padding-right: 36px !important;
}
.cookie-text {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    flex: 1 1 320px !important;
    font: 400 .88rem/1.55 Montserrat, system-ui, sans-serif !important;
    color: #f5f1ea !important;
}
.cookie-text p {
    margin: 0 !important;
    color: #f5f1ea !important;
    font-size: .88rem !important;
    line-height: 1.55 !important;
}
.cookie-icon {
    color: #f0b18d !important;
    font-size: 1.2rem !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
}
.cookie-link {
    color: #f0b18d !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}
.cookie-link:hover,
.cookie-link:focus-visible {
    color: #ffffff !important;
}
.cookie-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
    flex-wrap: wrap !important;
}
.cookie-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 40px !important;
    padding: 9px 20px !important;
    border-radius: 8px !important;
    border: 1.5px solid #b8552a !important;
    background: #b8552a !important;
    color: #ffffff !important;
    font: 600 .84rem/1.2 Montserrat, system-ui, sans-serif !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background .2s ease, border-color .2s ease, color .2s ease !important;
}
.cookie-btn:hover,
.cookie-btn:focus-visible {
    background: #9c431d !important;
    border-color: #9c431d !important;
    color: #ffffff !important;
    outline: 2px solid #f0b18d;
    outline-offset: 2px;
}
.cookie-btn.cookie-btn--muted {
    background: transparent !important;
    color: #f5f1ea !important;
    border: 1.5px solid rgba(245,241,234,.55) !important;
    opacity: 1 !important;
}
.cookie-btn.cookie-btn--muted:hover,
.cookie-btn.cookie-btn--muted:focus-visible {
    background: rgba(245,241,234,.14) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}
.cookie-close {
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: 0 !important;
    color: #f5f1ea !important;
    opacity: .75 !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
}
.cookie-close:hover,
.cookie-close:focus-visible {
    opacity: 1 !important;
    background: rgba(255,255,255,.12) !important;
    color: #ffffff !important;
}

/* Panel interactivo de estado de cookies en aviso-cookies.html */
.cookie-status-box {
    margin: 20px 0;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid rgba(184,85,42,.3);
    background: rgba(184,85,42,.08);
}
.cookie-status-box p {
    margin: 0 0 12px !important;
    font-weight: 600;
}
.cookie-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.cookie-status-box .cookie-btn.cookie-btn--muted {
    color: var(--ink, #1a1814) !important;
    border-color: rgba(26,24,20,.45) !important;
}
.cookie-status-box .cookie-btn.cookie-btn--muted:hover {
    background: rgba(26,24,20,.08) !important;
}

/* Modo Noche para Banner y Panel de Cookies */
html[data-theme="dark"] .cookie-banner {
    background: #12100e !important;
    border-top: 1px solid rgba(240,177,141,.35) !important;
}
html[data-theme="dark"] .cookie-status-box {
    background: #211e1a !important;
    border-color: rgba(240,177,141,.35) !important;
}
html[data-theme="dark"] .cookie-status-box .cookie-btn.cookie-btn--muted {
    color: #f5f1ea !important;
    border-color: rgba(245,241,234,.55) !important;
}

/* Alto Contraste Modo Día para Banner de Cookies */
html[data-a11y-contrast="high"]:not([data-theme="dark"]) .cookie-banner {
    background: #FFFFFF !important;
    color: #000000 !important;
    border-top: 3px solid #000000 !important;
    box-shadow: 0 -4px 0 rgba(0,0,0,.15) !important;
}
html[data-a11y-contrast="high"]:not([data-theme="dark"]) .cookie-banner :is(p, span, .cookie-text, .cookie-icon, .cookie-close) {
    color: #000000 !important;
    opacity: 1 !important;
}
html[data-a11y-contrast="high"]:not([data-theme="dark"]) .cookie-banner .cookie-link {
    color: #4A1600 !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}
html[data-a11y-contrast="high"]:not([data-theme="dark"]) .cookie-btn:not(.cookie-btn--muted) {
    background: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #000000 !important;
    font-weight: 700 !important;
}
html[data-a11y-contrast="high"]:not([data-theme="dark"]) .cookie-btn.cookie-btn--muted {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
    font-weight: 700 !important;
}
html[data-a11y-contrast="high"]:not([data-theme="dark"]) .cookie-status-box {
    background: #FFFFFF !important;
    border: 2px solid #000000 !important;
}

/* Alto Contraste Modo Noche para Banner de Cookies */
html[data-theme="dark"][data-a11y-contrast="high"] .cookie-banner {
    background: #000000 !important;
    color: #FFFFFF !important;
    border-top: 3px solid #FFFFFF !important;
    box-shadow: none !important;
}
html[data-theme="dark"][data-a11y-contrast="high"] .cookie-banner :is(p, span, .cookie-text, .cookie-close) {
    color: #FFFFFF !important;
    opacity: 1 !important;
}
html[data-theme="dark"][data-a11y-contrast="high"] .cookie-banner :is(.cookie-icon, .cookie-link) {
    color: #FFD60A !important;
    font-weight: 700 !important;
}
html[data-theme="dark"][data-a11y-contrast="high"] .cookie-btn:not(.cookie-btn--muted) {
    background: #FFD60A !important;
    color: #000000 !important;
    border: 2px solid #FFD60A !important;
    font-weight: 700 !important;
}
html[data-theme="dark"][data-a11y-contrast="high"] .cookie-btn.cookie-btn--muted {
    background: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
    font-weight: 700 !important;
}
html[data-theme="dark"][data-a11y-contrast="high"] .cookie-status-box {
    background: #0D0D0D !important;
    border: 2px solid #FFFFFF !important;
}

@media (max-width: 640px) {
    .cookie-banner { padding: 14px 16px !important; }
    .cookie-content { padding-right: 28px !important; gap: 12px !important; }
    .cookie-actions { width: 100% !important; }
    .cookie-actions .cookie-btn { flex: 1 1 140px !important; text-align: center !important; }
    .cookie-close { top: 8px !important; transform: none !important; }
}

/* 9. BLOQUE DE CONVERSIÓN RÁPIDA EN ARTÍCULOS DEL BLOG (.blog-quick-booking) */
.blog-quick-booking {
    margin: 28px 0 34px !important;
    padding: 22px 24px !important;
    border-radius: 14px !important;
    border: 1.5px solid rgba(184,85,42,.38) !important;
    background: linear-gradient(135deg, #fdfaf5 0%, #f7ede0 100%) !important;
    box-shadow: 0 8px 24px rgba(26,24,20,.07) !important;
}
.blog-qb-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 11px !important;
    border-radius: 100px !important;
    background: #b8552a !important;
    color: #ffffff !important;
    font: 700 .7rem/1.2 Montserrat, system-ui, sans-serif !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    margin-bottom: 10px !important;
}
.blog-qb-title {
    margin: 0 0 8px !important;
    font: 700 1.28rem/1.3 'Playfair Display', Georgia, serif !important;
    color: #1a1814 !important;
}
.blog-qb-desc {
    margin: 0 0 14px !important;
    font: 400 .94rem/1.55 Montserrat, system-ui, sans-serif !important;
    color: #3a342b !important;
}
.blog-qb-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
}
.blog-qb-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 11px !important;
    border-radius: 8px !important;
    background: rgba(255,255,255,.88) !important;
    border: 1px solid rgba(26,24,20,.14) !important;
    color: #1a1814 !important;
    font: 600 .78rem/1.2 Montserrat, system-ui, sans-serif !important;
}
.blog-qb-pill i {
    color: #b8552a !important;
}
.blog-qb-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    align-items: center !important;
}
.blog-qb-btn-wa {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 11px 22px !important;
    border-radius: 10px !important;
    background: #1b873f !important;
    border: 1.5px solid #1b873f !important;
    color: #ffffff !important;
    font: 700 .86rem/1.2 Montserrat, system-ui, sans-serif !important;
    text-decoration: none !important;
    transition: background .2s ease, transform .15s ease !important;
}
.blog-qb-btn-wa:hover,
.blog-qb-btn-wa:focus-visible {
    background: #146930 !important;
    border-color: #146930 !important;
    color: #ffffff !important;
}
.blog-qb-btn-rooms {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 11px 18px !important;
    border-radius: 10px !important;
    background: transparent !important;
    border: 1.5px solid #1a1814 !important;
    color: #1a1814 !important;
    font: 600 .84rem/1.2 Montserrat, system-ui, sans-serif !important;
    text-decoration: none !important;
}
.blog-qb-btn-rooms:hover,
.blog-qb-btn-rooms:focus-visible {
    background: rgba(26,24,20,.08) !important;
    color: #1a1814 !important;
}

/* Modo Noche para .blog-quick-booking */
html[data-theme="dark"] .blog-quick-booking {
    background: #221d18 !important;
    border-color: rgba(240,177,141,.4) !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .blog-qb-title,
html[data-theme="dark"] .blog-qb-desc {
    color: #f5f1ea !important;
}
html[data-theme="dark"] .blog-qb-pill {
    background: #161412 !important;
    border-color: rgba(245,241,234,.22) !important;
    color: #f5f1ea !important;
}
html[data-theme="dark"] .blog-qb-pill i {
    color: #f0b18d !important;
}
html[data-theme="dark"] .blog-qb-btn-rooms {
    border-color: rgba(245,241,234,.55) !important;
    color: #f5f1ea !important;
}
html[data-theme="dark"] .blog-qb-btn-rooms:hover {
    background: rgba(245,241,234,.12) !important;
    color: #ffffff !important;
}

/* Alto Contraste para .blog-quick-booking */
html[data-a11y-contrast="high"]:not([data-theme="dark"]) .blog-quick-booking {
    background: #FFFFFF !important;
    border: 2px solid #000000 !important;
    box-shadow: none !important;
}
html[data-a11y-contrast="high"]:not([data-theme="dark"]) .blog-qb-badge {
    background: #000000 !important;
    color: #FFFFFF !important;
}
html[data-a11y-contrast="high"]:not([data-theme="dark"]) .blog-qb-pill {
    background: #FFFFFF !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
}
html[data-a11y-contrast="high"]:not([data-theme="dark"]) .blog-qb-btn-wa {
    background: #0B5E2B !important;
    border: 2px solid #000000 !important;
    color: #FFFFFF !important;
}
html[data-a11y-contrast="high"]:not([data-theme="dark"]) .blog-qb-btn-rooms {
    background: #FFFFFF !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    font-weight: 700 !important;
}
html[data-theme="dark"][data-a11y-contrast="high"] .blog-quick-booking {
    background: #0D0D0D !important;
    border: 2px solid #FFFFFF !important;
}
html[data-theme="dark"][data-a11y-contrast="high"] .blog-qb-badge {
    background: #FFD60A !important;
    color: #000000 !important;
}
html[data-theme="dark"][data-a11y-contrast="high"] .blog-qb-pill {
    background: #000000 !important;
    border: 2px solid #FFFFFF !important;
    color: #FFFFFF !important;
}
html[data-theme="dark"][data-a11y-contrast="high"] .blog-qb-btn-rooms {
    background: #000000 !important;
    border: 2px solid #FFD60A !important;
    color: #FFD60A !important;
}

@media (max-width: 600px) {
    .blog-quick-booking { padding: 18px 16px !important; }
    .blog-qb-actions .blog-qb-btn-wa,
    .blog-qb-actions .blog-qb-btn-rooms { width: 100% !important; }
}
