/* =========================================================================
   HOTEL LAS GAVIOTAS — CORRECCIONES FINALES
   Esta hoja se carga ÚLTIMA y corrige:
   1. Navbar en una sola fila
   2. Indicador "Estás recorriendo" que tapaba los títulos
   3. Formulario de reserva cortado en celular
   4. Sellos de Booking / Tripadvisor en el footer
   5. Modo noche completo
   6. Responsive 100% en todos los dispositivos
   ========================================================================= */

/* =========================================================================
   0. BASE / ANTI-DESBORDE HORIZONTAL
   ========================================================================= */
html { overflow-x: clip; }
body { overflow-x: clip; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}
img, video, iframe, canvas, svg { max-width: 100%; }

/* =========================================================================
   1. NAVBAR — TODO EN UNA SOLA FILA
   ========================================================================= */

/* --- Navbar transparente ---------------------------------------------------
   Antes, al hacer scroll el header se volvía una barra blanca sólida.
   Ahora queda translúcido con desenfoque: se ve el contenido pasar por detrás
   pero el texto sigue siendo legible.
   ¿Lo querés 100% transparente, sin ningún velo? Cambiá los dos valores
   rgba(...,.42) por "transparent" y borrá las líneas de backdrop-filter.
   -------------------------------------------------------------------------- */
.site-header { background: transparent; }
.site-header.scrolled {
  background: rgba(255, 255, 255, .42) !important;
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 1px 0 rgba(6, 44, 67, .07);
  border-bottom: 0;
}
body.dark-mode .site-header { background: transparent !important; }
body.dark-mode .site-header.scrolled {
  background: rgba(8, 21, 27, .42) !important;
  border-bottom: 1px solid rgba(176, 220, 233, .1);
  box-shadow: none;
}
/* Halo sutil para que el texto se lea sobre cualquier fondo */
.site-header.scrolled .brand strong,
.site-header.scrolled .primary-nav a { text-shadow: 0 1px 2px rgba(255, 255, 255, .55); }
body.dark-mode .site-header.scrolled .brand strong,
body.dark-mode .site-header.scrolled .primary-nav a { text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(10px, 1.5vw, 24px);
  min-width: 0;
}
.brand { flex: 0 0 auto; min-width: 0; white-space: nowrap; }
.brand span { min-width: 0; }
.brand strong,
.brand small { white-space: nowrap; }

.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(11px, 1.35vw, 24px);
  /* min-width:auto = nunca se encoge por debajo de su contenido.
     Con min-width:0 el último link se derramaba sobre los botones ?/♪/☾ */
  min-width: auto;
  flex: 0 1 auto;
}
.primary-nav a {
  white-space: nowrap;          /* <-- evita "El / hotel" */
  font-size: clamp(.74rem, .92vw, .88rem);
  line-height: 1.2;
  flex: 0 0 auto;
}
.premium-tools { flex: 0 0 auto; }
.header-cta {
  flex: 0 0 auto;
  white-space: nowrap;
  padding-inline: clamp(14px, 1.4vw, 23px);
}

/* Menú hamburguesa a partir de 1250px: debajo de eso los 7 links + logo +
   herramientas + CTA no entran en una fila sin pisarse entre ellos. */
@media (max-width: 1250px) {
  .header-inner { justify-content: flex-start; gap: 10px; }
  .brand { order: 1; margin-right: auto; }
  .premium-tools { order: 2; margin-left: 0; }
  .menu-toggle { order: 3; display: block; margin-left: 0; color: inherit; }
  .header-cta { display: none; }

  .primary-nav {
    position: fixed;
    z-index: 95;
    inset: var(--header-h) 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - var(--header-h) - 24px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .97);
    color: var(--ink);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a {
    padding: 13px 12px;
    font-size: .95rem;
    border-radius: 10px;
  }
  .primary-nav a:hover { background: var(--blue-50); }
  .primary-nav a::after { display: none; }
  .site-header:not(.scrolled):has(.primary-nav.open) {
    color: var(--ink);
    background: rgba(255, 255, 255, .96);
  }
}

/* Header muy angosto: achicamos las herramientas para que no desborden */
@media (max-width: 430px) {
  .premium-tools { gap: 4px; }
  .icon-tool { width: 34px; height: 34px; flex-basis: 34px; font-size: .85rem; }
  .brand img { width: 34px; height: 34px; }
  .brand strong { font-size: .88rem; }
  .menu-toggle { width: 36px; height: 36px; padding: 7px; }
}
@media (max-width: 360px) {
  .premium-tools #soundBtn { display: none; }
  .header-inner { gap: 6px; }
}

/* =========================================================================
   2. "ESTÁS RECORRIENDO" — QUE NO TAPE LOS TÍTULOS
   El panel vertical solo aparece cuando hay margen real fuera del contenido.
   Debajo de ese ancho se convierte en una píldora compacta abajo a la izq.
   ========================================================================= */

/* Pantallas anchas: se ancla al margen libre, nunca invade el contenedor */
@media (min-width: 1560px) {
  .hotel-floor-guide {
    left: max(16px, calc((100vw - var(--container)) / 2 - 148px));
    width: 132px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
}

/* Laptops y tablets: píldora compacta abajo a la izquierda */
@media (min-width: 761px) and (max-width: 1559px) {
  .hotel-floor-guide {
    left: 16px;
    top: auto;
    bottom: 22px;
    width: auto;
    max-width: min(320px, calc(100vw - 32px));
    transform: none;
  }
  .hotel-floor-guide__panel {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 13px 9px 10px;
    border-radius: 15px;
  }
  .hotel-floor-guide__heading { display: none; }
  .hotel-building {
    width: 46px;
    margin: 0;
    padding-top: 8px;
    transform: none;
  }
  .hotel-building::before { width: 21px; height: 8px; border-width: 1px; }
  .hotel-building::after { width: 52px; bottom: -4px; height: 4px; border-width: 1px; }
  .hotel-floor {
    width: 46px;
    height: 13px;
    grid-template-columns: 14px 1fr;
    border-width: 1px;
  }
  .hotel-floor:last-child { border-bottom-width: 1px; }
  .hotel-floor span { font-size: .4rem; }
  .hotel-floor::after {
    left: 17px; right: 3px; top: 3px; bottom: 3px;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 4px, transparent 4px 6px);
  }
  .hotel-floor[data-floor="0"]::before { display: none; }
  .hotel-floor.active { transform: translateX(3px); box-shadow: 0 0 0 2px rgba(86,199,223,.18); }
  .hotel-floor-guide__location {
    margin: 0;
    min-height: 0;
    width: auto;
    max-width: 190px;
    text-align: left;
  }
  .hotel-floor-guide__location strong { font-size: .68rem; }
  .hotel-floor-guide__location small { font-size: .56rem; }
}

/* Celular: que no choque con la barra de reserva ni con el chat */
@media (max-width: 760px) {
  .hotel-floor-guide {
    left: 10px;
    right: auto;
    bottom: 92px;
    max-width: calc(100vw - 90px);
  }
  .hotel-floor-guide__location { width: auto; max-width: 130px; }
}
@media (max-width: 420px) {
  .hotel-floor-guide { bottom: 88px; }
  .hotel-floor-guide__location { max-width: 108px; }
}

/* Nunca por encima de un modal abierto */
body.modal-open .hotel-floor-guide { opacity: 0; pointer-events: none; }

/* =========================================================================
   3. MODAL DE RESERVA — FIX DEL FORMULARIO CORTADO EN CELULAR
   Causa: el <dialog> usaba height:100% y max-height:100vh, que en celulares
   es MÁS ALTO que el área visible (barra del navegador). Ahora usamos dvh
   + layout flex con scroll interno y botones siempre visibles.
   ========================================================================= */
.modal {
  max-height: 100dvh;
  overscroll-behavior: contain;
}

@media (max-width: 860px) {
  .modal.booking-modal {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  .booking-modal .modal-shell.booking-wizard-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    margin: 0;
    border-radius: 0 !important;
    overflow: hidden;
  }
  .booking-modal .booking-wizard-aside {
    flex: 0 0 auto;
    max-height: 40dvh;
    overflow-y: auto;
    padding: 20px 18px 16px;
    -webkit-overflow-scrolling: touch;
  }
  .booking-modal .booking-wizard-aside h2 {
    margin-bottom: 6px;
    font-size: clamp(1.5rem, 6.5vw, 2.1rem);
  }
  .booking-modal .booking-wizard-aside > p { margin-bottom: 12px; font-size: .8rem; }
  .booking-modal .booking-progress { margin: 14px 0; }

  .booking-modal .booking-wizard-form {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    max-height: none;
    overflow: hidden;
  }
  .booking-modal .booking-step {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 22px 18px 26px;
  }
  .booking-modal .booking-wizard-actions {
    position: static;
    flex: 0 0 auto;
    min-height: 0;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 24px rgba(6, 44, 67, .07);
  }
  .booking-modal .modal-close { top: 12px; right: 12px; width: 38px; height: 38px; }

  /* Resto de modales: alto seguro y scroll propio */
  .modal.tour-modal,
  .modal.gallery-modal,
  .modal.success-modal { height: 100dvh; max-height: 100dvh; }
  .modal .modal-shell { min-height: 0; }
}

@media (max-width: 560px) {
  .booking-modal .booking-wizard-aside { max-height: 34dvh; }
  .booking-modal .booking-wizard-aside > p { display: none; }
  .booking-modal .booking-wizard-actions .button {
    flex: 1;
    min-width: 0;
    padding-inline: 12px;
    font-size: .82rem;
  }
}

/* Campos táctiles cómodos y sin zoom automático en iOS (16px mínimo) */
@media (max-width: 860px) {
  .field input,
  .field select,
  .field textarea,
  .quick-search input,
  .quick-search select,
  #chatInput {
    font-size: 16px;
  }
  .extra-option { min-height: 52px; }
}

/* =========================================================================
   4. FOOTER — SELLOS BOOKING / TRIPADVISOR
   ========================================================================= */
.footer-awards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 34px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.award-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
}
.award-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -.02em;
}
.award-mark.booking { background: #1a4fa0; color: #ffffff; }
.award-mark.tripadvisor { background: #146b48; color: #ffffff; }
.award-body { min-width: 0; }
.award-body strong {
  display: block;
  color: #ffffff;
  font-size: .92rem;
  line-height: 1.25;
}
.award-body span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .72);
  font-size: .74rem;
  line-height: 1.5;
}
.award-score {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}
.award-score b {
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .14);
  color: #ffffff;
  font-size: .74rem;
  font-weight: 800;
}
.award-score i {
  color: #ffd479;
  font-style: normal;
  font-size: .74rem;
  letter-spacing: .12em;
}
@media (max-width: 760px) {
  .footer-awards { grid-template-columns: 1fr; gap: 12px; margin-bottom: 26px; }
  .award-card { padding: 14px; }
}

/* =========================================================================
   5. RESPONSIVE — AJUSTES GENERALES
   ========================================================================= */

/* Tablet horizontal / laptop chica */
@media (max-width: 1240px) {
  .section { padding: 92px 0; }
}
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card.wide { grid-column: span 2; }
  .rooms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pano-experience-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card.wide { grid-column: auto; }
  .rooms-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.gallery-large,
  .gallery-item.gallery-wide { grid-column: auto; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  h2 { font-size: clamp(1.85rem, 8.5vw, 2.4rem); }
  .section { padding: 62px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-progress { grid-template-columns: repeat(4, 1fr); }
}

/* Tablas y bloques anchos: scroll propio en vez de romper la página */
.comparison-table-wrap,
.reservation-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table, .reservation-table { min-width: 520px; }

/* El panorama nunca debe generar scroll lateral */
.pano-frame, .pano-hotspots { overflow: hidden; }

/* Chat y barra de reserva sin superponerse en pantallas bajas */
@media (max-height: 620px) and (max-width: 860px) {
  .hotel-floor-guide { display: none; }
}

/* =========================================================================
   6. MODO NOCHE — REVISIÓN COMPLETA
   ========================================================================= */
body.dark-mode {
  --white: #0b1d25;
  --ink: #eaf6fa;
  --muted: #a7c0ca;
  --line: rgba(176, 220, 233, .16);
  --sand: #0d2129;
  --blue-50: #10262f;
  --blue-100: #163440;
  --blue-300: #8ce2f4;
  background: #08151b;
  color: #eaf6fa;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 { color: #f2fbfd; }
body.dark-mode p { color: #a7c0ca; }
body.dark-mode .eyebrow { color: #7fd8ee; }
/* Ojo: solo los <small> que heredan color, nunca los que están dentro de
   una píldora de color propio (disponibilidad, badges, etc.) */
body.dark-mode :where(p, li, figcaption, .section-copy, .footer-grid) > small { color: #9db8c2; }
body.dark-mode ::selection { background: #2a7f97; color: #f2fbfd; }
body.dark-mode .skip-link { background: #7fd8ee; color: #04222c; }

/* --- Franjas y secciones que quedaban blancas --- */
body.dark-mode .intro-strip {
  background: #0b1d25;
  border-bottom-color: rgba(176, 220, 233, .14);
}
body.dark-mode .stats-grid div { border-right-color: rgba(176, 220, 233, .14); }
body.dark-mode .stats-grid strong { color: #7fd8ee; }
body.dark-mode .stats-grid span { color: #a7c0ca; }

body.dark-mode .direct-booking-strip { background: #0a1a21; }
body.dark-mode .direct-booking-grid > div {
  border-right-color: rgba(176, 220, 233, .14);
  border-bottom-color: rgba(176, 220, 233, .14);
}
body.dark-mode .direct-booking-grid strong { color: #f2fbfd; }
body.dark-mode .direct-booking-grid small { color: #a7c0ca; }
body.dark-mode .direct-booking-grid span[aria-hidden] { color: #7fd8ee; }

body.dark-mode .about,
body.dark-mode .services-section,
body.dark-mode .gallery-section,
body.dark-mode .faq-section,
body.dark-mode .immersive360-section,
body.dark-mode .worldclass-promise { background: #08151b; }
body.dark-mode .rooms-section { background: #0a1a21; }
body.dark-mode .reviews-section { background: #08151b; }

/* --- Tarjetas y superficies --- */
body.dark-mode .service-card,
body.dark-mode .room-card,
body.dark-mode .review-card,
body.dark-mode .faq-item,
body.dark-mode .filter-panel,
body.dark-mode .promise-card,
body.dark-mode .premium-panel,
body.dark-mode .guide-card,
body.dark-mode .favorite-card,
body.dark-mode .empty-state,
body.dark-mode .surface-card {
  background: #0e222b;
  border-color: rgba(176, 220, 233, .14);
  color: #eaf6fa;
}
body.dark-mode .service-card:hover { background: #12303b; }
body.dark-mode .service-card h3,
body.dark-mode .room-card h3,
body.dark-mode .review-card strong,
body.dark-mode .faq-item summary,
body.dark-mode .promise-card h3 { color: #f2fbfd; }

/* Íconos que quedaban azul oscuro sobre fondo oscuro (contraste 1.7) */
body.dark-mode .service-icon,
body.dark-mode .contact-links > a > span,
body.dark-mode .form-section-title > span,
body.dark-mode .stat-icon,
body.dark-mode .wizard-info-card > span,
body.dark-mode .draft-status span,
body.dark-mode .success-icon,
body.dark-mode .empty-state > span {
  background: #17414f;
  color: #9fe6f8;
}

/* Etiquetas de comodidades */
body.dark-mode .amenity,
body.dark-mode .room-card .amenity,
body.dark-mode .room-amenities span,
body.dark-mode .pano-feature-pills span,
body.dark-mode .chip,
body.dark-mode .tag {
  background: #17343f;
  color: #d8f2f8;
  border-color: rgba(183, 225, 237, .16);
}

/* Tira de disponibilidad por día: mantiene sus colores semánticos */
body.dark-mode .room-availability-strip p { color: #a7c0ca; }
body.dark-mode .room-availability-strip span.free { background: #123d2b; color: #7fe0bd; }
body.dark-mode .room-availability-strip span.scarce { background: #3d3113; color: #ffd479; }
body.dark-mode .room-availability-strip span.full { background: #3d1a1c; color: #ff9aa2; }
body.dark-mode .room-availability-strip span small { color: inherit; }
body.dark-mode .occ-day { background: #123d2b; color: #7fe0bd; }
body.dark-mode .occ-day.medium { background: #3d3113; color: #ffd479; }
body.dark-mode .occ-day.high { background: #3d1a1c; color: #ff9aa2; }

/* Puntajes y precios */
body.dark-mode .room-rating strong,
body.dark-mode .review-card .rating,
body.dark-mode .rating strong,
body.dark-mode .room-price strong,
body.dark-mode .price strong { color: #8fe3f6; }
body.dark-mode .signature-row strong { color: #9fe6f8; }
body.dark-mode .signature-row span { color: #a7c0ca; }

/* --- Botones --- */
body.dark-mode .button-primary {
  background: #4bbfdd !important;
  color: #052029 !important;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(75, 191, 221, .18);
}
body.dark-mode .button-primary:hover { background: #6fd2ea !important; color: #041b23 !important; }
body.dark-mode .button-light {
  background: #163440 !important;
  color: #eaf6fa !important;
}
body.dark-mode .button-light:hover { background: #1d4353 !important; }
body.dark-mode .button-secondary {
  background: #17333e !important;
  color: #eaf6fa !important;
  border-color: rgba(180, 222, 235, .2);
}
body.dark-mode .button-secondary:hover { background: #204552 !important; }
body.dark-mode .link-button,
body.dark-mode .text-link { color: #7fd8ee; }
body.dark-mode .site-header:not(.scrolled) .header-cta {
  background: rgba(255, 255, 255, .14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, .3);
}

/* --- Navegación --- */
body.dark-mode .primary-nav {
  background: rgba(11, 29, 37, .97);
  border-color: rgba(176, 220, 233, .16);
  color: #eaf6fa;
}
body.dark-mode .primary-nav a:hover { background: rgba(127, 216, 238, .12); }
body.dark-mode .site-header:not(.scrolled):has(.primary-nav.open) {
  background: rgba(11, 29, 37, .97);
  color: #eaf6fa;
}

/* --- Formularios --- */
body.dark-mode .field input,
body.dark-mode .field select,
body.dark-mode .field textarea,
body.dark-mode .search-field input,
body.dark-mode .date-field input,
body.dark-mode .results-toolbar select,
body.dark-mode #chatInput {
  background: #0a1b22 !important;
  color: #f0fafc !important;
  border: 1px solid rgba(176, 220, 233, .2) !important;
}
body.dark-mode .field input:focus,
body.dark-mode .field select:focus,
body.dark-mode .field textarea:focus {
  border-color: #55c6de !important;
  box-shadow: 0 0 0 3px rgba(85, 198, 222, .16) !important;
}
body.dark-mode .check-row,
body.dark-mode .check-row span,
body.dark-mode .amenities-filter legend,
body.dark-mode .filter-title-row h3 { color: #eaf6fa; }
body.dark-mode .quick-search {
  background: rgba(11, 29, 37, .94);
  border-color: rgba(176, 220, 233, .22);
  color: #eaf6fa;
}
body.dark-mode .quick-search label { border-right-color: rgba(176, 220, 233, .16); }
body.dark-mode .quick-search label span { color: #a7c0ca; }
body.dark-mode .quick-search input,
body.dark-mode .quick-search select {
  background: transparent !important;
  border: 0 !important;
  color: #f0fafc !important;
}
body.dark-mode input[type="date"],
body.dark-mode input[type="number"],
body.dark-mode select,
body.dark-mode textarea { color-scheme: dark; }
body.dark-mode small.error,
body.dark-mode .field .error { color: #ff9aa2; }

/* --- Modales --- */
body.dark-mode .modal-shell,
body.dark-mode .success-card { background: #0e222b; color: #eaf6fa; }
body.dark-mode .modal-close { background: #17414f; color: #d8f2f8; }
body.dark-mode .booking-wizard-actions {
  background: #0e222b;
  border-top-color: rgba(176, 220, 233, .14);
}
body.dark-mode .booking-step-counter { color: #a7c0ca; }
body.dark-mode .wizard-info-card {
  background: #12303b;
  border-color: rgba(176, 220, 233, .14);
}
body.dark-mode .wizard-info-card p { color: #bcd4dc; }
body.dark-mode .promo-explanation article {
  background: linear-gradient(140deg, #133b49, #0f2b35);
  border-color: rgba(176, 220, 233, .16);
}
body.dark-mode .promo-explanation strong { color: #8fe3f6; }
body.dark-mode .promo-explanation span,
body.dark-mode .promo-explanation p { color: #b3ccd5; }
body.dark-mode .booking-review-card {
  background: #12303b;
  border-color: rgba(176, 220, 233, .14);
}
body.dark-mode .booking-review-card dt { color: #a7c0ca; }
body.dark-mode .booking-review-card dd { color: #f0fafc; }
body.dark-mode .booking-review-card dl > div { border-bottom-color: rgba(176, 220, 233, .12); }
body.dark-mode .review-room-line { border-bottom-color: rgba(176, 220, 233, .12); }
body.dark-mode .review-room-line small,
body.dark-mode .review-room-line span { color: #a7c0ca; }
body.dark-mode .review-room-line strong { color: #f0fafc; }
body.dark-mode .price-box { background: #16333e !important; color: #eaf6fa; }
body.dark-mode .price-box span { color: #b3ccd5; }
body.dark-mode .price-box strong { color: #f0fafc; }
body.dark-mode .price-box small { color: #9db8c2; }
body.dark-mode .price-total { border-top-color: rgba(176, 220, 233, .18); }
body.dark-mode .consent-row {
  background: #2a2416;
  border-color: rgba(255, 214, 138, .22);
  color: #f2e7cf;
}
body.dark-mode .consent-row span { color: #f2e7cf; }
body.dark-mode .consent-row strong { color: #ffd479; }
body.dark-mode .draft-status { color: #a9d2c6; }
body.dark-mode .extra-option {
  background: #12303b;
  border-color: rgba(176, 220, 233, .14);
  color: #eaf6fa;
}
body.dark-mode .extra-option b { color: #f0fafc; }
body.dark-mode .extra-option small { color: #a7c0ca; }
body.dark-mode .extra-option:has(input:checked) {
  border-color: #55c6de;
  background: #17414f;
}
body.dark-mode .currency-field small { color: #a7c0ca; }
body.dark-mode .room-unit-availability {
  background: #10312a;
  border-color: rgba(140, 226, 195, .2);
}
body.dark-mode .room-unit-availability strong { color: #7fe0bd; }
body.dark-mode .room-unit-availability small { color: #a4c8bd; }
body.dark-mode .room-urgency { background: #3a2716; color: #ffc48a; }

/* --- Galería --- */
body.dark-mode .gallery-item { background: #0e222b; }
body.dark-mode .gallery-item > span { color: #ffffff; }
body.dark-mode .gallery-reference-note { color: #a7c0ca; }
body.dark-mode .gallery-modal p { color: #eaf6fa; }

/* --- Opiniones --- */
body.dark-mode .review-form {
  background: #0e222b;
  border-color: rgba(176, 220, 233, .14);
}
body.dark-mode .review-card p { color: #bcd4dc; }
body.dark-mode .review-meta,
body.dark-mode .review-card small { color: #a7c0ca; }
body.dark-mode .stars,
body.dark-mode .review-stars { color: #ffd479; }

/* --- FAQ --- */
body.dark-mode .faq-item { border-color: rgba(176, 220, 233, .14); }
body.dark-mode .faq-item summary { color: #f2fbfd; }
body.dark-mode .faq-item p { color: #b3ccd5; }
body.dark-mode .faq-item[open] { background: #12303b; }

/* --- Ubicación y contacto --- */
body.dark-mode .location-section { background: #08151b; }
body.dark-mode .contact-card {
  background: #0e222b;
  border: 1px solid rgba(176, 220, 233, .14);
  color: #eaf6fa;
}
body.dark-mode .contact-card p { color: #b3ccd5; }
body.dark-mode .contact-links > a {
  background: #12303b;
  border-color: rgba(176, 220, 233, .14);
  color: #eaf6fa;
}
body.dark-mode .contact-links > a:hover { background: #17414f; }
body.dark-mode .contact-links small { color: #a7c0ca; }
body.dark-mode .contact-links strong { color: #f0fafc; }
body.dark-mode .map-wrap { border-color: rgba(176, 220, 233, .14); }

/* --- Footer --- */
body.dark-mode .site-footer { background: #061219; }
body.dark-mode .site-footer h3 { color: #f2fbfd; }
body.dark-mode .site-footer a { color: rgba(255, 255, 255, .78); }
body.dark-mode .site-footer a:hover { color: #ffffff; }
body.dark-mode .site-footer p { color: rgba(255, 255, 255, .68); }
body.dark-mode .footer-bottom span { color: rgba(255, 255, 255, .72); }
body.dark-mode .award-card {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .14);
}

/* El texto legal del footer también en modo claro (era casi ilegible) */
.footer-bottom span { color: rgba(255, 255, 255, .78); }

/* --- Chat --- */
body.dark-mode .chat-window { background: #0e222b; color: #eaf6fa; }
body.dark-mode .chat-header { background: #12303b; color: #f0fafc; }
body.dark-mode .chat-header small { color: #a7c0ca; }
body.dark-mode .chat-messages { background: #0b1d25; }
body.dark-mode .chat-message.bot { background: #17333e; color: #eaf6fa; }
body.dark-mode .chat-message.user { background: #2a7f97; color: #ffffff; }
body.dark-mode .chat-quick-wrap {
  background: linear-gradient(180deg, rgba(14, 34, 43, .2), #0e222b);
}
body.dark-mode .chat-quick-actions button {
  background: #17333e;
  color: #d8f2f8;
  border-color: rgba(183, 225, 237, .16);
}
body.dark-mode .chat-scroll-button { background: #17333e; color: #d8f2f8; }
body.dark-mode .chat-all-topics { background: #12303b; color: #8fe3f6; }
body.dark-mode .chat-form { background: #0e222b; border-top-color: rgba(176, 220, 233, .14); }
body.dark-mode .chat-footer { background: #0e222b; color: #9db8c2; }

/* --- Paneles premium / experiencia --- */
body.dark-mode .premium-panel h3 { color: #f2fbfd; }
body.dark-mode .weather-now { color: #8fe3f6; }
body.dark-mode .weather-meta span,
body.dark-mode .nearby-place span { color: #b3ccd5; }
body.dark-mode .nearby-place strong { color: #8fe3f6; }
body.dark-mode .nearby-place { border-bottom-color: rgba(176, 220, 233, .12); }
body.dark-mode .countdown div { background: #16333e; color: #eaf6fa; }
body.dark-mode .countdown small { color: #a7c0ca; }

/* --- Recorrido 360 --- */
body.dark-mode .pano-room-panel {
  background: #0e222b;
  border-color: rgba(176, 220, 233, .14);
  color: #eaf6fa;
}
body.dark-mode .pano-room-list button {
  background: #12303b;
  border-color: rgba(176, 220, 233, .14);
  color: #eaf6fa;
}
body.dark-mode .pano-room-list button.active {
  background: #17414f;
  border-color: #55c6de;
}
body.dark-mode .pano-room-list small { color: #a7c0ca; }
body.dark-mode .pano-disclaimer,
body.dark-mode .pano-highlight-list li { color: #b3ccd5; }
body.dark-mode .pano-spotlight { background: #12303b; border-color: rgba(176, 220, 233, .12); }

/* --- Promos --- */
body.dark-mode .promo-card h3 { color: #f2fbfd; }
body.dark-mode .promo-card p { color: #bcd4dc; }
body.dark-mode .promo-number { color: #8fe3f6; }

/* --- Comparador --- */
body.dark-mode .inline-compare h2 { color: #f2fbfd; }
body.dark-mode .comparison-table td { color: #dceff4; }

/* --- Toast / estados --- */
body.dark-mode .toast { background: #17414f; color: #f0fafc; }
body.dark-mode .connection-status { background: #17414f; color: #f0fafc; }
body.dark-mode .empty-state h3 { color: #f2fbfd; }
body.dark-mode .empty-state p { color: #a7c0ca; }
body.dark-mode .results-toolbar p,
body.dark-mode .results-toolbar label { color: #bcd4dc; }

/* --- Panel de administración en modo noche --- */
body.dark-mode.admin-body { background: #08151b; }
body.dark-mode .admin-header,
body.dark-mode .admin-panel,
body.dark-mode .admin-stats article,
body.dark-mode .admin-detail-card,
body.dark-mode .admin-review-card,
body.dark-mode .login-card {
  background: #0e222b;
  border-color: rgba(176, 220, 233, .14);
  color: #eaf6fa;
}
body.dark-mode .admin-tabs { background: #12303b; }
body.dark-mode .admin-tabs button { color: #b3ccd5; }
body.dark-mode .admin-tabs button.active { background: #17414f; color: #f0fafc; }
body.dark-mode .reservation-table th { background: #12303b; color: #dceff4; }
body.dark-mode .reservation-table td { color: #dceff4; border-color: rgba(176, 220, 233, .12); }

/* Accesibilidad: foco siempre visible */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #3fb6d6;
  outline-offset: 2px;
}
body.dark-mode :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline-color: #8fe3f6;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   7. AJUSTES SOLICITADOS — NAVBAR, HERO Y ESPACIADO
   ========================================================================= */

/* Navbar completamente transparente: sin franja, sombra ni desenfoque. */
.site-header,
.site-header.scrolled,
body.dark-mode .site-header,
body.dark-mode .site-header.scrolled {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  border-bottom: 0 !important;
}

/* Sobre el video, logo, enlaces y herramientas conservan contraste blanco. */
.site-header.over-hero,
.site-header.over-hero.scrolled {
  color: #ffffff !important;
}
.site-header.over-hero .brand strong,
.site-header.over-hero .brand small,
.site-header.over-hero .primary-nav a {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .42) !important;
}
.site-header.over-hero .icon-tool {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, .30) !important;
  background: rgba(3, 26, 38, .14) !important;
  box-shadow: none !important;
}
.site-header.over-hero .menu-toggle { color: #ffffff !important; }
.site-header.over-hero .header-cta {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, .42) !important;
  background: rgba(255, 255, 255, .12) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Fuera del video el navbar sigue transparente, adaptando solo el color. */
.site-header.scrolled:not(.over-hero) { color: var(--ink) !important; }
body.dark-mode .site-header.scrolled:not(.over-hero) { color: #edf8fb !important; }
.site-header.scrolled:not(.over-hero) .brand strong,
.site-header.scrolled:not(.over-hero) .primary-nav a { text-shadow: none !important; }

/* Mantener el desplegable móvil legible aunque la cabecera sea transparente. */
@media (max-width: 1250px) {
  .site-header .primary-nav.open {
    background: rgba(255, 255, 255, .98) !important;
    color: var(--ink) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
  }
  .site-header .primary-nav.open a {
    color: var(--ink) !important;
    text-shadow: none !important;
  }
  body.dark-mode .site-header .primary-nav.open {
    background: rgba(10, 28, 36, .98) !important;
    color: #f3fbfd !important;
  }
  body.dark-mode .site-header .primary-nav.open a { color: #f3fbfd !important; }
}

/* El recorrido cinematográfico conserva su efecto con bastante menos scroll. */
.hero-cinematic {
  height: 135svh;
  min-height: 900px;
}

/* Franja de datos y beneficios más compacta. */
.stats-grid { padding-block: 18px; }
.direct-booking-grid > div { padding: 14px 18px; }
.about { padding-top: 72px; }

@media (max-width: 1000px) {
  .hero-cinematic { height: 132svh; min-height: 820px; }
  .stats-grid { padding-block: 15px; }
  .direct-booking-grid > div { padding: 13px 16px; }
  .about { padding-top: 58px; }
}

@media (max-width: 700px) {
  .hero-cinematic { height: 125svh; min-height: 760px; }
  .stats-grid { padding-block: 12px; }
  .direct-booking-grid > div { padding: 12px 14px; }
  .about { padding-top: 46px; }
}


/* =========================================================================
   8. CORRECCIÓN DEFINITIVA — CABECERA, EXPERIENCIA 360° Y BLOQUE INFORMATIVO
   ========================================================================= */

/* En el inicio, el video ocupa visualmente toda la cabecera sin ninguna franja. */
.site-header:not(.scrolled),
body.dark-mode .site-header:not(.scrolled) {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  border-bottom: 0 !important;
}

/* Al comenzar a desplazarse, el fondo translúcido cubre TODO el ancho del header. */
.site-header.scrolled,
.site-header.scrolled.over-hero {
  color: var(--ink) !important;
  background: rgba(255, 255, 255, .80) !important;
  -webkit-backdrop-filter: blur(20px) saturate(145%) !important;
  backdrop-filter: blur(20px) saturate(145%) !important;
  box-shadow: 0 1px 0 rgba(6, 44, 67, .10), 0 8px 28px rgba(6, 44, 67, .06) !important;
  border-bottom: 1px solid rgba(7, 59, 87, .07) !important;
}
body.dark-mode .site-header.scrolled,
body.dark-mode .site-header.scrolled.over-hero {
  color: #f2fbfd !important;
  background: rgba(7, 20, 27, .80) !important;
  -webkit-backdrop-filter: blur(20px) saturate(145%) !important;
  backdrop-filter: blur(20px) saturate(145%) !important;
  box-shadow: 0 1px 0 rgba(190, 228, 238, .12), 0 9px 30px rgba(0, 0, 0, .20) !important;
  border-bottom: 1px solid rgba(190, 228, 238, .12) !important;
}

/* Nunca formar un rectángulo aislado alrededor de los enlaces de escritorio. */
.site-header .primary-nav,
.site-header.over-hero .primary-nav,
body.dark-mode .site-header .primary-nav,
body.dark-mode .site-header.over-hero .primary-nav {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Colores del header en la parte superior del video. */
.site-header:not(.scrolled) .brand strong,
.site-header:not(.scrolled) .brand small,
.site-header:not(.scrolled) .primary-nav a,
.site-header:not(.scrolled) .menu-toggle {
  color: #ffffff !important;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .50) !important;
}

/* Colores legibles cuando la cabecera ya tiene la franja translúcida. */
.site-header.scrolled .brand strong,
.site-header.scrolled .brand small,
.site-header.scrolled .primary-nav a,
.site-header.scrolled.over-hero .brand strong,
.site-header.scrolled.over-hero .brand small,
.site-header.scrolled.over-hero .primary-nav a {
  color: var(--ink) !important;
  text-shadow: none !important;
}
body.dark-mode .site-header.scrolled .brand strong,
body.dark-mode .site-header.scrolled .brand small,
body.dark-mode .site-header.scrolled .primary-nav a,
body.dark-mode .site-header.scrolled.over-hero .brand strong,
body.dark-mode .site-header.scrolled.over-hero .brand small,
body.dark-mode .site-header.scrolled.over-hero .primary-nav a {
  color: #f2fbfd !important;
  text-shadow: none !important;
}

.site-header.scrolled .icon-tool {
  color: var(--blue-800) !important;
  background: rgba(255, 255, 255, .58) !important;
  border-color: rgba(7, 78, 106, .15) !important;
  box-shadow: none !important;
}
body.dark-mode .site-header.scrolled .icon-tool {
  color: #eaf8fb !important;
  background: rgba(255, 255, 255, .07) !important;
  border-color: rgba(190, 228, 238, .18) !important;
}
.site-header.scrolled .header-cta,
.site-header.scrolled.over-hero .header-cta {
  color: #ffffff !important;
  background: var(--blue-700) !important;
  border-color: var(--blue-700) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body.dark-mode .site-header.scrolled .header-cta,
body.dark-mode .site-header.scrolled.over-hero .header-cta {
  color: #052029 !important;
  background: #55c6de !important;
  border-color: #55c6de !important;
}

/* En móvil el desplegable sí necesita su propia superficie legible. */
@media (max-width: 1250px) {
  .site-header .primary-nav.open {
    background: rgba(255, 255, 255, .98) !important;
    border: 1px solid rgba(7, 59, 87, .10) !important;
    box-shadow: 0 24px 70px rgba(0, 24, 36, .24) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    backdrop-filter: blur(18px) !important;
  }
  body.dark-mode .site-header .primary-nav.open {
    background: rgba(10, 28, 36, .98) !important;
    border-color: rgba(190, 228, 238, .18) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .48) !important;
  }
}

/* Bloque de clima, beneficio y alrededores: compacto y realmente centrado. */
.compact-premium-section {
  padding: clamp(42px, 5vw, 68px) 0 !important;
  min-height: 0 !important;
  background: linear-gradient(180deg, #f7fafb 0%, #ffffff 100%) !important;
  border-top: 1px solid rgba(7, 59, 87, .06);
  border-bottom: 1px solid rgba(7, 59, 87, .06);
}
.compact-premium-section .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.compact-premium-section .premium-grid {
  width: 100%;
  align-items: stretch;
  margin: 0;
}
.compact-premium-section .premium-panel {
  height: 100%;
  margin: 0;
}
body.dark-mode .compact-premium-section {
  background: linear-gradient(180deg, #0b1921 0%, #0e2028 100%) !important;
  border-color: rgba(190, 228, 238, .08) !important;
}

/* El tema profesional alternaba el fondo y dejaba texto blanco sobre blanco. */
.immersive360-section,
body:not(.dark-mode) .immersive360-section,
body.dark-mode .immersive360-section {
  color: #ffffff !important;
  background:
    radial-gradient(circle at 10% 0%, #0b5871 0, transparent 38%),
    linear-gradient(145deg, #021c2b, #043a52 64%, #062c43) !important;
  padding-top: clamp(72px, 7vw, 102px) !important;
  padding-bottom: clamp(72px, 7vw, 102px) !important;
}
.immersive360-section .immersive360-heading,
.immersive360-section .immersive360-heading > div,
.immersive360-section .immersive360-heading h2,
.immersive360-section .immersive360-heading > p {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.immersive360-section .immersive360-heading h2 {
  color: #ffffff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .22);
}
.immersive360-section .immersive360-heading > p {
  color: rgba(255, 255, 255, .78) !important;
}
.immersive360-section .immersive360-heading .eyebrow {
  color: #8de4ef !important;
}

@media (max-width: 900px) {
  .compact-premium-section { padding-block: 38px !important; }
}
@media (max-width: 700px) {
  .compact-premium-section { padding-block: 30px !important; }
  .immersive360-section {
    padding-top: 58px !important;
    padding-bottom: 58px !important;
  }
}

/* Ajustes de especificidad para controles y estados activos sobre el video. */
.site-header.scrolled.over-hero .icon-tool {
  color: var(--blue-800) !important;
  background: rgba(255, 255, 255, .58) !important;
  border-color: rgba(7, 78, 106, .15) !important;
}
.site-header.scrolled.over-hero .menu-toggle { color: var(--ink) !important; }
body.dark-mode .site-header.scrolled.over-hero .icon-tool {
  color: #eaf8fb !important;
  background: rgba(255, 255, 255, .07) !important;
  border-color: rgba(190, 228, 238, .18) !important;
}
body.dark-mode .site-header.scrolled.over-hero .menu-toggle { color: #f2fbfd !important; }
.site-header:not(.scrolled) .primary-nav a:hover,
.site-header:not(.scrolled) .primary-nav a:focus-visible,
.site-header:not(.scrolled) .primary-nav a.active,
body.dark-mode .site-header:not(.scrolled) .primary-nav a:hover,
body.dark-mode .site-header:not(.scrolled) .primary-nav a:focus-visible,
body.dark-mode .site-header:not(.scrolled) .primary-nav a.active {
  background: transparent !important;
}
.site-header:not(.scrolled) .primary-nav a.active::after {
  right: 0 !important;
  background: rgba(255, 255, 255, .92) !important;
}

/* Transición más directa entre el video, la información útil y Quiénes somos. */
.hero-cinematic {
  height: 118svh !important;
  min-height: 820px !important;
}
.compact-premium-section {
  padding-top: clamp(34px, 3.5vw, 48px) !important;
  padding-bottom: clamp(34px, 3.5vw, 48px) !important;
}
.compact-premium-section + .about {
  padding-top: clamp(44px, 4vw, 58px) !important;
}
@media (max-width: 1000px) {
  .hero-cinematic {
    height: 116svh !important;
    min-height: 780px !important;
  }
  .compact-premium-section + .about { padding-top: 44px !important; }
}
@media (max-width: 700px) {
  .hero-cinematic {
    height: 112svh !important;
    min-height: 700px !important;
  }
  .compact-premium-section {
    padding-top: 26px !important;
    padding-bottom: 26px !important;
  }
  .compact-premium-section + .about { padding-top: 36px !important; }
}

/* ==========================================================
   CHATBOT RESPONSIVE FINAL
   Panel compacto en escritorio y vista tipo aplicación móvil.
   ========================================================== */
.hotel-chat {
  right: clamp(14px, 2vw, 24px) !important;
  bottom: 22px !important;
  z-index: 2400 !important;
}

.chat-window {
  right: 0 !important;
  bottom: calc(100% + 14px) !important;
  width: min(380px, calc(100vw - 32px)) !important;
  height: min(520px, calc(100dvh - 180px)) !important;
  max-height: calc(100dvh - 180px) !important;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  border-radius: 20px !important;
  overflow: hidden;
  transform-origin: bottom right;
}

.chat-window[hidden] {
  display: none !important;
}

.chat-header,
.chat-quick-wrap,
.chat-all-topics,
.chat-form,
.chat-footer {
  flex: 0 0 auto;
}

.chat-header {
  padding: 13px 14px !important;
}

.chat-avatar {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
}

.chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  padding: 15px 14px 10px !important;
  overscroll-behavior: contain;
}

.chat-quick-wrap {
  padding: 6px 8px 2px !important;
}

.chat-quick-actions {
  padding-bottom: 6px !important;
}

.chat-all-topics {
  margin-bottom: 5px !important;
}

.chat-form {
  padding: 10px 11px !important;
}

.chat-form input {
  min-height: 44px;
}

.chat-footer {
  padding: 6px 10px 8px !important;
}

/* La lista completa usa el mismo contenedor y hace scroll internamente. */
.hotel-chat.show-all-topics .chat-window {
  height: min(560px, calc(100dvh - 180px)) !important;
  max-height: calc(100dvh - 180px) !important;
}
.hotel-chat.show-all-topics .chat-messages {
  flex: 0 1 145px;
  min-height: 100px;
  height: auto !important;
}
.hotel-chat.show-all-topics .chat-quick-actions {
  max-height: min(210px, 30dvh) !important;
}

/* Pantallas bajas: conservar siempre la cabecera y el formulario visibles. */
@media (min-width: 701px) and (max-height: 680px) {
  .chat-window,
  .hotel-chat.show-all-topics .chat-window {
    height: calc(100dvh - 150px) !important;
    max-height: calc(100dvh - 150px) !important;
    min-height: 280px;
  }
  .chat-messages {
    padding-top: 10px !important;
  }
  .chat-footer {
    display: none;
  }
}

/* En celular se abre como un panel completo, por encima de la barra de reserva. */
@media (max-width: 700px) {
  .hotel-chat {
    left: auto !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: calc(92px + env(safe-area-inset-bottom)) !important;
  }

  .chat-window,
  .hotel-chat.show-all-topics .chat-window {
    position: fixed !important;
    inset:
      max(10px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      calc(88px + env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left)) !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 18px !important;
    transform-origin: bottom center;
  }

  .hotel-chat.open .chat-launcher {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .chat-header {
    padding: 12px 13px !important;
  }

  .chat-messages,
  .hotel-chat.show-all-topics .chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
  }

  .hotel-chat.show-all-topics .chat-quick-actions {
    max-height: min(250px, 36dvh) !important;
  }

  .chat-form {
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 420px) {
  .chat-header small { font-size: .68rem; }
  .chat-message { max-width: 94%; }
  .chat-bubble { font-size: .84rem; }
  .chat-quick-wrap { grid-template-columns: 30px minmax(0, 1fr) 30px !important; }
  .chat-scroll-button { width: 29px !important; height: 29px !important; }
}

/* Contraste específico del chatbot en modo nocturno. */
body.dark-mode .chat-message.bot .chat-bubble {
  background: #17333e !important;
  color: #eaf6fa !important;
  border-color: rgba(176, 220, 233, .14) !important;
}
body.dark-mode .chat-message.user .chat-bubble {
  background: #2a7f97 !important;
  color: #ffffff !important;
  border-color: #2a7f97 !important;
}
body.dark-mode .chat-message-action {
  background: #1a4655 !important;
  color: #a9e8f5 !important;
}
