/* El Refugio — tema noche (se activa con html[data-tema="noche"]) */
html{transition:background-color .6s ease}
html[data-tema="noche"]{
  color-scheme:dark;
  --bg:#111311;--paper:#191b18;--ink:#ebeae4;--muted:#a3a49c;--line:#2a2d28;
  --soft:#1c1e1b;--green:#9db58f;--dark:#ebeae4;
}
html[data-tema="noche"] body{background:var(--bg);color:var(--ink)}

/* Barra superior */
html[data-tema="noche"] .nav-wrap{background:rgba(17,19,17,.82);border-bottom-color:rgba(255,255,255,.07)}
html[data-tema="noche"] .nav-links{color:#b9bab2}
html[data-tema="noche"] .nav-links a:hover{color:#fff}
html[data-tema="noche"] .brand img,
html[data-tema="noche"] .footer-logo{filter:invert(1) brightness(1.6)}

/* Botones */
html[data-tema="noche"] .btn-dark{background:#ebeae4;color:#141513}
html[data-tema="noche"] .btn-dark:hover{background:#fff}
html[data-tema="noche"] .btn-light{background:#20231f;color:var(--ink)}
html[data-tema="noche"] .hero-full .btn-light,
html[data-tema="noche"] .trek .btn-light{background:#fff;color:#161616}
html[data-tema="noche"] .lang-btn,
html[data-tema="noche"] .nav .lang-btn{background:#1c1e1b;border-color:#30332e;color:#8f9188;box-shadow:none}
html[data-tema="noche"] .nav .lang-btn span{color:#8f9188}
html[data-tema="noche"] .nav .lang-btn span.on{background:#ebeae4;color:#141513}
html[data-tema="noche"] .steps li.on{background:#ebeae4;color:#141513;border-color:#ebeae4}

/* Textos secundarios */
html[data-tema="noche"] .eyebrow,html[data-tema="noche"] .section-label,
html[data-tema="noche"] .legend,html[data-tema="noche"] .calendar-hint,
html[data-tema="noche"] .eq-title,html[data-tema="noche"] .int-eyebrow,
html[data-tema="noche"] .privacy-note{color:#9a9b93}
html[data-tema="noche"] .small-note,html[data-tema="noche"] .form-note,
html[data-tema="noche"] .feature-grid span,html[data-tema="noche"] .calendar .dow,
html[data-tema="noche"] .price-card span,html[data-tema="noche"] .ll-map figcaption,
html[data-tema="noche"] .ll-real figcaption,html[data-tema="noche"] .ll-facts small,
html[data-tema="noche"] .int-list li::before,html[data-tema="noche"] .howto-steps .n{color:#868880}
html[data-tema="noche"] .bot-answer{color:#c4c5bd}

/* Tarjetas y superficies claras */
html[data-tema="noche"] .booking-section{background:#161815}
html[data-tema="noche"] .availability-demo,html[data-tema="noche"] .booking-form,
html[data-tema="noche"] .chat,html[data-tema="noche"] .care li,
html[data-tema="noche"] .howto-steps li,html[data-tema="noche"] .eq,
html[data-tema="noche"] .rev,html[data-tema="noche"] .quick-actions button,
html[data-tema="noche"] .cupon-row .btn,html[data-tema="noche"] .tr-card{background:var(--paper);color:var(--ink);box-shadow:0 18px 50px rgba(0,0,0,.35)}
html[data-tema="noche"] .price-card,html[data-tema="noche"] .bot-msg,
html[data-tema="noche"] .icon-btn,html[data-tema="noche"] .srv,
html[data-tema="noche"] .eq em,html[data-tema="noche"] .obra-note{background:#20231f;color:var(--ink)}
html[data-tema="noche"] .acomp{background:rgba(255,255,255,.04)}
html[data-tema="noche"] input,html[data-tema="noche"] select,html[data-tema="noche"] textarea{background:#141613;color:var(--ink);border-color:#30332e}
html[data-tema="noche"] input::placeholder,html[data-tema="noche"] textarea::placeholder{color:#6f716a}
html[data-tema="noche"] input:focus,html[data-tema="noche"] select:focus,html[data-tema="noche"] textarea:focus{border-color:#7d8076}
html[data-tema="noche"] .eq-rules{border-color:#3a3d37}

/* Calendario */
html[data-tema="noche"] .calendar .day:hover{background:#262924;border-color:#3a3d37}
html[data-tema="noche"] .calendar .blocked,html[data-tema="noche"] .calendar .day.blocked{background:#3a3c37;color:#8f9188;text-decoration:line-through}
html[data-tema="noche"] .dot.blocked{background:#3a3c37}
html[data-tema="noche"] .dot{background:#555850}
html[data-tema="noche"] .calendar .day.range-start,html[data-tema="noche"] .calendar .day.range-end{background:#ebeae4;color:#141513}
html[data-tema="noche"] .calendar .day.in-range{background:#2b2f28}

/* Secciones oscuras: un tono distinto al fondo para que sigan marcando ritmo */
html[data-tema="noche"] .dark-section,html[data-tema="noche"] .trek,html[data-tema="noche"] #intro{background:#0b0c0b}
html[data-tema="noche"] .footer-contact{background:#0b0c0b;border-top:1px solid #1f221e}
html[data-tema="noche"] .policy-callout.danger{background:#262922;color:#fff;border-left-color:#9db58f}
html[data-tema="noche"] .pending,html[data-tema="noche"] .policy-callout.danger .pending{background:#3a3220;color:#f0d68a}

/* Mapas (SVG) */
html[data-tema="noche"] .ll-map svg,html[data-tema="noche"] .ll-real svg{filter:invert(.9) hue-rotate(180deg) saturate(.7);box-shadow:none}
html[data-tema="noche"] .ll-end .ll-dot{box-shadow:0 0 0 5px rgba(157,181,143,.18)}

/* Botones flotantes */
html[data-tema="noche"] .chat-toggle,html[data-tema="noche"] .sticky-cta{background:#ebeae4;color:#141513}
html[data-tema="noche"] .user-msg{background:#ebeae4;color:#141513}
html[data-tema="noche"] .cupon-msg.ok,html[data-tema="noche"] #sumRows .desc dd,html[data-tema="noche"] #sumRows .desc dt{color:#9fd09f}
html[data-tema="noche"] .cupon-msg.bad{color:#f09a9a}

/* Cielo estrellado en el fondo de la web (solo de noche); el video de portada no se toca */
.cielo{position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:0;transition:opacity 1.2s ease}
.cielo i{position:absolute;border-radius:50%;background:#fff;box-shadow:0 0 3px rgba(255,255,255,.7);animation:titila var(--d,4s) ease-in-out infinite;animation-delay:var(--r,0s)}
@keyframes titila{0%,100%{opacity:var(--o,.6)}50%{opacity:.08}}
html[data-tema="noche"] .cielo{opacity:1}
html[data-tema="noche"] .dark-section,html[data-tema="noche"] .trek,html[data-tema="noche"] .footer-contact{background:rgba(0,0,0,.32)}
html[data-tema="noche"] .booking-section{background:rgba(255,255,255,.015)}
@media (prefers-reduced-motion:reduce){.cielo i{animation:none}}

/* Textos luminosos, como estrellas */
html[data-tema="noche"] .howto-steps .n{color:#fff;background:none;text-shadow:0 0 10px rgba(255,255,255,.7),0 0 26px rgba(200,215,255,.35)}
html[data-tema="noche"] h1,html[data-tema="noche"] h2,html[data-tema="noche"] h3{color:#f7f6f1;text-shadow:0 0 22px rgba(255,255,255,.16)}
html[data-tema="noche"] .howto-steps b,html[data-tema="noche"] .care b,html[data-tema="noche"] .eq b,html[data-tema="noche"] .int-list li{color:#fbfaf6;text-shadow:0 0 12px rgba(255,255,255,.28)}
html[data-tema="noche"] .howto-steps p,html[data-tema="noche"] .eq p{color:#c9cac2}

/* Brillo de estrella en toda la web (noche) */
html[data-tema="noche"]{--ink:#f3f2ed;--muted:#bcbdb5}
html[data-tema="noche"] h1,html[data-tema="noche"] h2,html[data-tema="noche"] h3,html[data-tema="noche"] h4{color:#fbfaf6;text-shadow:0 0 16px rgba(255,255,255,.3),0 0 42px rgba(190,205,255,.14)}
html[data-tema="noche"] p,html[data-tema="noche"] li,html[data-tema="noche"] dd,html[data-tema="noche"] .lead{color:#d6d7cf}
html[data-tema="noche"] b,html[data-tema="noche"] strong,html[data-tema="noche"] dt{color:#fff;text-shadow:0 0 10px rgba(255,255,255,.25)}
html[data-tema="noche"] .eyebrow,html[data-tema="noche"] .section-label,html[data-tema="noche"] .int-eyebrow,html[data-tema="noche"] .eq-title{color:#d9dcd0;text-shadow:0 0 8px rgba(255,255,255,.35)}
html[data-tema="noche"] .nav-links a{color:#dcddd5}
html[data-tema="noche"] .nav-links a:hover{color:#fff;text-shadow:0 0 10px rgba(255,255,255,.6)}
html[data-tema="noche"] .brand img{filter:invert(1) brightness(1.6) drop-shadow(0 0 6px rgba(255,255,255,.35))}
/* Tarjetas con borde de luz */
html[data-tema="noche"] .panel,html[data-tema="noche"] .booking-form,html[data-tema="noche"] .availability-demo,
html[data-tema="noche"] .eq,html[data-tema="noche"] .rev,html[data-tema="noche"] .care li,html[data-tema="noche"] .howto-steps li,
html[data-tema="noche"] .ll-card,html[data-tema="noche"] .xp,html[data-tema="noche"] .price-card,html[data-tema="noche"] .policy-callout,
html[data-tema="noche"] .srv,html[data-tema="noche"] .obra-note,html[data-tema="noche"] details{border-color:rgba(255,255,255,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 0 28px rgba(190,205,255,.06)}
/* Íconos luminosos */
html[data-tema="noche"] main svg:not(.ll-map svg):not(.ll-real svg){color:#d7ecc8;filter:drop-shadow(0 0 5px rgba(215,236,200,.5))}
/* Botones claros con halo */
html[data-tema="noche"] .btn-dark,html[data-tema="noche"] .hero-full .btn-light,html[data-tema="noche"] .chat-toggle{box-shadow:0 0 18px rgba(255,255,255,.22)}
html[data-tema="noche"] .btn-dark:hover{box-shadow:0 0 26px rgba(255,255,255,.38)}
/* Calendario */
html[data-tema="noche"] .calendar .day{color:#eceee6}
html[data-tema="noche"] .calendar .dow{color:#a9aba2}
/* Pie de página */
html[data-tema="noche"] .footer-grid p,html[data-tema="noche"] .footer-grid a{color:#cfd1c8}
html[data-tema="noche"] .footer-grid a:hover{color:#fff;text-shadow:0 0 10px rgba(255,255,255,.5)}

/* Interruptor sol / luna */
.tema-btn{display:inline-grid;place-items:center;width:36px;height:36px;margin-right:10px;border-radius:50%;border:1px solid var(--line);background:transparent;color:var(--ink);cursor:pointer;transition:border-color .2s,background .2s;flex:none}
.tema-btn:hover{border-color:#bdbdb6}
.tema-btn:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.tema-btn svg{width:17px;height:17px}
.tema-btn .luna{display:none}
html[data-tema="noche"] .tema-btn .sol{display:none}
html[data-tema="noche"] .tema-btn .luna{display:block}
html[data-tema="noche"] .tema-btn:hover{border-color:#55584f}
