/* =========================================================
   V33 - Reparación inicio + selector idioma/carrito integrado
   Archivos a subir: index.html + assets/css/v33-reparacion-inicio.css
   ========================================================= */

/* Selector de idioma + carrito dentro del mismo contenedor flotante */
.lang-floating-pill {
  position: fixed !important;
  top: max(14px, env(safe-area-inset-top)) !important;
  right: max(14px, env(safe-area-inset-right)) !important;
  z-index: 10030 !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  border-radius: 999px !important;
  background: rgba(2, 16, 29, .58) !important;
  color: #fff !important;
  backdrop-filter: blur(18px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.22) !important;
}

.lang-floating-pill .lang-floating-btn,
.lang-floating-pill .booking-cart-floating {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #fff !important;
  font-family: inherit !important;
}

.lang-floating-pill .lang-floating-btn {
  min-width: 68px !important;
  min-height: 44px !important;
  padding: 0 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: pointer !important;
}

.lang-floating-pill .booking-cart-floating {
  min-height: 44px !important;
  max-width: 0 !important;
  width: 0 !important;
  padding: 0 !important;
  gap: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: max-width .22s ease, width .22s ease, padding .22s ease, opacity .18s ease, visibility .18s ease !important;
}

.lang-floating-pill .booking-cart-floating.is-visible {
  width: auto !important;
  max-width: 132px !important;
  padding: 0 10px 0 8px !important;
  border-left: 1px solid rgba(255,255,255,.20) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.lang-floating-pill .booking-cart-icon {
  width: 19px !important;
  height: 19px !important;
  display: inline-grid !important;
  place-items: center !important;
  font-size: .86rem !important;
  line-height: 1 !important;
  transform-origin: center bottom !important;
  animation: bookingCartShake .82s ease-in-out infinite !important;
}

.lang-floating-pill .booking-cart-label {
  max-width: 78px !important;
  display: inline-block !important;
  color: #20df87 !important;
  font-size: .56rem !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: .025em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  text-shadow: 0 0 12px rgba(32, 223, 135, .42) !important;
}

.lang-floating-pill .lang-floating-btn:focus-visible,
.lang-floating-pill .booking-cart-floating:focus-visible {
  outline: 2px solid rgba(32, 223, 135, .86) !important;
  outline-offset: -3px !important;
}

/* Inicio centrado: título + botón siempre al medio de la pantalla */
html body[data-active-view="inicio"] .hero-content,
html body.app-single-focus[data-active-view="inicio"] .hero-content,
html body:not([data-active-view]) .hero-content {
  position: absolute !important;
  left: 50% !important;
  top: 48% !important;
  width: min(960px, calc(100vw - 40px)) !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  z-index: 5 !important;
}

html body[data-active-view="inicio"] .hero-content .eyebrow,
html body.app-single-focus[data-active-view="inicio"] .hero-content .eyebrow,
html body:not([data-active-view]) .hero-content .eyebrow,
html body[data-active-view="inicio"] .hero h1,
html body.app-single-focus[data-active-view="inicio"] .hero h1,
html body:not([data-active-view]) .hero h1 {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html body[data-active-view="inicio"] .hero-content .reserve-pill,
html body.app-single-focus[data-active-view="inicio"] .hero-content .reserve-pill,
html body:not([data-active-view]) .hero-content .reserve-pill {
  position: static !important;
  transform: none !important;
  margin: clamp(14px, 2.2vh, 22px) auto 0 !important;
  width: min(520px, calc(100vw - 42px)) !important;
  max-width: 520px !important;
}

@media (min-width: 761px) {
  html body[data-active-view="inicio"] .hero-content,
  html body.app-single-focus[data-active-view="inicio"] .hero-content,
  html body:not([data-active-view]) .hero-content {
    top: 48% !important;
  }

  html body[data-active-view="inicio"] .hero h1,
  html body.app-single-focus[data-active-view="inicio"] .hero h1,
  html body:not([data-active-view]) .hero h1 {
    width: min(100%, 900px) !important;
    max-width: 900px !important;
    font-size: clamp(2.75rem, 4.35vw, 5.15rem) !important;
    line-height: .98 !important;
    letter-spacing: .075em !important;
  }
}

@media (max-width: 760px) {
  html body[data-active-view="inicio"] .hero,
  html body.app-single-focus[data-active-view="inicio"] .hero,
  html body:not([data-active-view]) .hero {
    min-height: 100svh !important;
    height: 100svh !important;
  }

  html body[data-active-view="inicio"] .hero-content,
  html body.app-single-focus[data-active-view="inicio"] .hero-content,
  html body:not([data-active-view]) .hero-content {
    top: 45% !important;
    width: min(100% - 28px, 430px) !important;
  }

  html body[data-active-view="inicio"] .hero-content .eyebrow,
  html body.app-single-focus[data-active-view="inicio"] .hero-content .eyebrow,
  html body:not([data-active-view]) .hero-content .eyebrow {
    font-size: clamp(.56rem, 2vw, .7rem) !important;
    line-height: 1.42 !important;
    letter-spacing: .22em !important;
    margin-bottom: clamp(8px, 1.6vh, 13px) !important;
  }

  html body[data-active-view="inicio"] .hero h1,
  html body.app-single-focus[data-active-view="inicio"] .hero h1,
  html body:not([data-active-view]) .hero h1 {
    font-size: clamp(1.78rem, 9.5vw, 3rem) !important;
    line-height: .96 !important;
    letter-spacing: .08em !important;
    max-width: 10.7em !important;
  }

  html body[data-active-view="inicio"] .hero-content .reserve-pill,
  html body.app-single-focus[data-active-view="inicio"] .hero-content .reserve-pill,
  html body:not([data-active-view]) .hero-content .reserve-pill {
    min-height: 50px !important;
    width: min(352px, 100%) !important;
    padding: 0 18px !important;
    font-size: .75rem !important;
    letter-spacing: .2em !important;
    margin-top: clamp(12px, 2vh, 18px) !important;
  }

  .lang-floating-pill {
    top: max(12px, env(safe-area-inset-top)) !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    min-height: 40px !important;
  }

  .lang-floating-pill .lang-floating-btn {
    min-width: 64px !important;
    min-height: 40px !important;
    padding-inline: 11px !important;
  }

  .lang-floating-pill .booking-cart-floating {
    min-height: 40px !important;
  }

  .lang-floating-pill .booking-cart-floating.is-visible {
    max-width: 120px !important;
    padding: 0 8px 0 7px !important;
  }

  .lang-floating-pill .booking-cart-icon {
    width: 17px !important;
    height: 17px !important;
    font-size: .78rem !important;
  }

  .lang-floating-pill .booking-cart-label {
    max-width: 68px !important;
    font-size: .50rem !important;
    letter-spacing: .01em !important;
  }
}

@media (max-width: 370px) {
  html body[data-active-view="inicio"] .hero-content,
  html body.app-single-focus[data-active-view="inicio"] .hero-content,
  html body:not([data-active-view]) .hero-content {
    top: 44% !important;
  }

  html body[data-active-view="inicio"] .hero h1,
  html body.app-single-focus[data-active-view="inicio"] .hero h1,
  html body:not([data-active-view]) .hero h1 {
    font-size: clamp(1.58rem, 8.7vw, 2.55rem) !important;
  }

  html body[data-active-view="inicio"] .hero-content .reserve-pill,
  html body.app-single-focus[data-active-view="inicio"] .hero-content .reserve-pill,
  html body:not([data-active-view]) .hero-content .reserve-pill {
    min-height: 47px !important;
    font-size: .66rem !important;
    letter-spacing: .17em !important;
  }
}

/* Botonera inferior: un poco más legible sin romper la grilla */
html body .app-tabbar .app-tabbar-shell {
  min-height: 66px !important;
}

html body .app-tabbar .app-tabbar-shell > a {
  min-height: 62px !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
  gap: 5px !important;
}

html body .app-tabbar .tab-icon {
  font-size: clamp(.82rem, 2.5vw, 1.02rem) !important;
  line-height: 1 !important;
}

html body .app-tabbar .app-tabbar-shell > a span:last-child {
  font-size: clamp(.62rem, 1.65vw, .76rem) !important;
  line-height: 1.05 !important;
  letter-spacing: .03em !important;
}

html body .app-tabbar .app-tabbar-shell > a.app-center-reserve .tab-icon {
  font-size: clamp(.92rem, 2.75vw, 1.1rem) !important;
}

@media (max-width: 420px) {
  html body .app-tabbar .app-tabbar-shell {
    min-height: 64px !important;
  }

  html body .app-tabbar .app-tabbar-shell > a {
    min-height: 60px !important;
    gap: 4px !important;
  }

  html body .app-tabbar .app-tabbar-shell > a span:last-child {
    font-size: clamp(.58rem, 2.45vw, .68rem) !important;
  }
}
