/* =========================================================
   V28 - Pantalla completa real + flujo de reserva refinado
   ========================================================= */

/* La app no continúa visualmente hasta que termina el logo y se elige idioma. */
body.language-gate-active:not(.app-ready) .site-header,
body.language-gate-active:not(.app-ready) main,
body.language-gate-active:not(.app-ready) nav.app-tabbar,
body.language-gate-active:not(.app-ready) .lang-floating-btn,
body.language-gate-active:not(.app-ready) .toast {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.language-gate-active:not(.app-ready) .page-loader,
body.language-gate-active:not(.app-ready) .lang-modal.open {
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Los eyebrow dark se eliminan también por CSS por si alguna traducción/extensión los vuelve a crear. */
.eyebrow.dark {
  display: none !important;
}

/* El top status queda desactivado definitivamente. */
.top-status-bar {
  display: none !important;
}

/* Mantiene anti zoom de formularios en móvil. */
input,
textarea,
select {
  font-size: 16px !important;
  line-height: 1.35 !important;
}

/* Menú inferior con blur más consistente para evitar cruce visual con el contenido. */
html body nav#navLinks.app-tabbar > .app-tabbar-shell,
html body .app-tabbar .app-tabbar-shell {
  background: rgba(255, 255, 255, .78) !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  box-shadow: 0 18px 48px rgba(2, 16, 29, .20) !important;
  backdrop-filter: blur(28px) saturate(165%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(165%) !important;
}

html body[data-active-view="inicio"] nav#navLinks.app-tabbar > .app-tabbar-shell,
html body:not([data-active-view]) nav#navLinks.app-tabbar > .app-tabbar-shell,
html body[data-active-view="inicio"] .app-tabbar .app-tabbar-shell,
html body:not([data-active-view]) .app-tabbar .app-tabbar-shell {
  background: rgba(2, 16, 29, .50) !important;
  border-color: rgba(255, 255, 255, .22) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .36) !important;
}

/* =========================================================
   DESKTOP / NOTEBOOK: pantalla completa real, no formato celular
   ========================================================= */
@media (min-width: 761px) {
  html,
  body {
    width: 100% !important;
    max-width: none !important;
    overflow-x: hidden !important;
  }

  html body,
  html body.app-single-focus,
  html body[data-active-view="inicio"],
  html body:not([data-active-view]) {
    background: #f3f7fa !important;
  }

  html body[data-active-view="inicio"],
  html body:not([data-active-view]) {
    background: #02101d !important;
  }

  html body .site-header,
  html body[data-active-view="inicio"] .site-header,
  html body:not([data-active-view]) .site-header,
  html body main {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html body[data-active-view="inicio"] .site-header,
  html body[data-active-view="inicio"] .hero,
  html body:not([data-active-view]) .site-header,
  html body:not([data-active-view]) .hero {
    min-height: 100dvh !important;
    width: 100% !important;
    max-width: none !important;
  }

  html body .site-header .hero-bg,
  html body .site-header .home-video-bg {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  html body .hero-content {
    width: min(1120px, calc(100% - 96px)) !important;
    max-width: 1120px !important;
    margin-top: -40px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  html body .hero h1 {
    font-size: clamp(5rem, 8.2vw, 9.2rem) !important;
    line-height: .86 !important;
    letter-spacing: .07em !important;
  }

  html body .hero .eyebrow {
    font-size: clamp(.85rem, 1.1vw, 1.05rem) !important;
    letter-spacing: .26em !important;
  }

  html body .reserve-pill {
    left: 50% !important;
    width: min(520px, calc(100% - 96px)) !important;
    max-width: 520px !important;
    min-height: 74px !important;
    bottom: 16vh !important;
    transform: translateX(-50%) !important;
  }

  html body .reserve-pill:hover {
    transform: translateX(-50%) translateY(-5px) !important;
  }

  html body nav#navLinks.app-tabbar,
  html body .app-tabbar {
    width: min(820px, calc(100vw - 64px)) !important;
    max-width: min(820px, calc(100vw - 64px)) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: max(18px, env(safe-area-inset-bottom, 0px)) !important;
  }

  html body nav#navLinks.app-tabbar > .app-tabbar-shell,
  html body .app-tabbar .app-tabbar-shell {
    min-height: 68px !important;
    height: 68px !important;
    border-radius: 30px !important;
  }

  html body .app-tabbar .app-tabbar-shell > a,
  html body .app-tabbar .app-tabbar-shell > a:not(:last-child),
  html body .app-tabbar .app-tabbar-shell > a:not(:last-of-type),
  html body .app-tabbar .app-tabbar-shell > a:not(.app-center-reserve),
  html body .app-tabbar .app-tabbar-shell > a.app-center-reserve {
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    font-size: .68rem !important;
    letter-spacing: .11em !important;
  }

  html body .content-section,
  html body .booking-section,
  html body .contact-section,
  html body .intro-strip,
  html body .glass-section > *,
  html body.app-single-focus .content-section.active-focus,
  html body.app-single-focus .contact-section.active-focus,
  html body.app-single-focus .booking-section.active-focus {
    width: min(1180px, calc(100% - 64px)) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html body.app-single-focus main > section.active-focus {
    min-height: 100dvh !important;
    padding-top: clamp(42px, 5vw, 76px) !important;
    padding-bottom: calc(190px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html body.app-single-focus[data-active-view="tarifas"] .pricing-grid,
  html body.app-single-focus[data-active-view="faq"] .faq-grid,
  html body.app-single-focus[data-active-view="ubicacion"] .location-card-grid,
  html body .pricing-grid,
  html body .faq-grid,
  html body .location-card-grid {
    width: 100% !important;
  }

  html body .section-heading {
    width: min(920px, 100%) !important;
    max-width: 920px !important;
    margin-bottom: 28px !important;
  }

  html body .section-heading h2 {
    font-size: clamp(2.6rem, 4.3vw, 5.1rem) !important;
    line-height: .92 !important;
  }

  html body .section-heading p {
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: 1.04rem !important;
    line-height: 1.65 !important;
  }

  html body .booking-section.active-focus,
  html body[data-active-view="reservas"] .booking-section,
  html body .booking-section {
    width: min(1180px, calc(100% - 64px)) !important;
    max-width: 1180px !important;
    padding-top: clamp(30px, 4vw, 56px) !important;
    padding-bottom: calc(210px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html body .booking-grid {
    width: 100% !important;
    max-width: none !important;
  }

  html body .calendar-panel,
  html body .side-panel {
    width: 100% !important;
    max-width: none !important;
    min-height: clamp(520px, calc(100dvh - 285px), 780px) !important;
    padding: clamp(24px, 3vw, 34px) !important;
    border-radius: 34px !important;
  }

  html body .booking-section[data-reservation-step="slots"] .side-panel,
  html body .booking-section[data-reservation-step="form"] .side-panel {
    max-width: 880px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html body .month-card,
  html body .single-month-card {
    max-width: 980px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html body .day-cell {
    min-height: 58px !important;
    font-size: 1.02rem !important;
  }
}

/* =========================================================
   Reserva tipo app: pasos separados y resumen fijo abajo
   ========================================================= */
html body[data-active-view="reservas"] .booking-section {
  padding-bottom: calc(206px + env(safe-area-inset-bottom, 0px)) !important;
}

html body .reservation-flow-controls {
  display: grid !important;
  grid-template-columns: minmax(110px, 150px) minmax(0, 1fr) minmax(110px, 150px) !important;
  align-items: center !important;
  gap: clamp(12px, 3vw, 24px) !important;
  width: 100% !important;
  max-width: 880px !important;
  margin: 22px auto 28px !important;
  padding: 10px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .72) !important;
  border: 1px solid rgba(11, 33, 52, .08) !important;
  box-shadow: 0 16px 40px rgba(16, 49, 75, .10) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

html body .flow-btn {
  min-height: 48px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

html body .flow-step-indicator {
  min-height: 48px !important;
  padding: 11px 18px !important;
  border-radius: 999px !important;
  letter-spacing: .08em !important;
}

html body[data-active-view="reservas"] .reservation-live-summary {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  transform: translateX(-50%) !important;
  z-index: 10005 !important;
  width: min(980px, calc(100vw - 32px)) !important;
  max-width: min(980px, calc(100vw - 32px)) !important;
  margin: 0 !important;
  padding: 15px 18px !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, .91) !important;
  color: #102334 !important;
  border: 1px solid rgba(11, 33, 52, .10) !important;
  box-shadow: 0 20px 58px rgba(2, 16, 29, .18) !important;
  backdrop-filter: blur(22px) saturate(155%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(155%) !important;
}

html body:not([data-active-view="reservas"]) .reservation-live-summary {
  position: static !important;
  transform: none !important;
}

html body[data-active-view="reservas"] .reservation-live-summary::before {
  content: "Resumen de reserva";
  display: block;
  margin-bottom: 4px;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(16, 35, 52, .58);
}

html body .booking-section[data-reservation-step="slots"] .selected-date-box,
html body .booking-section[data-reservation-step="form"] .selected-date-box {
  margin-bottom: 24px !important;
}

html body .slot-list {
  display: grid !important;
  gap: 16px !important;
}

html body .reservation-form {
  gap: 18px !important;
}

html body .form-heading {
  margin-bottom: 6px !important;
}

@media (max-width: 760px) {
  html body[data-active-view="reservas"] .booking-section {
    padding-bottom: calc(190px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html body .reservation-flow-controls {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    margin: 18px auto 24px !important;
    padding: 12px !important;
    border-radius: 26px !important;
    gap: 10px !important;
  }

  html body .flow-step-indicator {
    order: -1 !important;
    width: 100% !important;
    white-space: normal !important;
  }

  html body .flow-btn {
    width: 100% !important;
  }

  html body .flow-back[style*="hidden"] {
    display: none !important;
  }

  html body[data-active-view="reservas"] .reservation-live-summary {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 13px 14px !important;
    border-radius: 20px !important;
    font-size: .9rem !important;
  }
}

@media (min-width: 900px) {
  html body .pricing-grid,
  html body.app-single-focus[data-active-view="tarifas"] .pricing-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }

  html body .faq-grid,
  html body.app-single-focus[data-active-view="faq"] .faq-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }

  html body .location-card-grid,
  html body .two-col,
  html body.app-single-focus[data-active-view="ubicacion"] .location-card-grid {
    display: grid !important;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr) !important;
    gap: 28px !important;
    align-items: center !important;
  }
}
