/* =========================================================
   V31 - Ajustes finales
   1) Botón Reservar experiencia inmediatamente debajo del H1.
   2) WhatsApp comercial forzado a 34633515387.
   3) Carrito flotante con fecha/hora compacta cuando hay turno elegido.
   ========================================================= */

body.language-gate-active:not(.app-ready) .booking-cart-floating {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* HOME: el CTA vive dentro del bloque de título, no en el pie del hero. */
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 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 0 !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 {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !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 {
  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;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: clamp(18px, 3.2vh, 30px) auto 0 !important;
  width: min(520px, 100%) !important;
  max-width: min(520px, calc(100vw - 36px)) !important;
  z-index: 7 !important;
}

html body[data-active-view="inicio"] .hero-content .reserve-pill:hover,
html body.app-single-focus[data-active-view="inicio"] .hero-content .reserve-pill:hover,
html body:not([data-active-view]) .hero-content .reserve-pill:hover {
  transform: translateY(-4px) !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 {
    position: absolute !important;
    left: 50% !important;
    top: 46% !important;
    width: min(980px, calc(100vw - 96px)) !important;
    max-width: 980px !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !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%, 880px) !important;
    max-width: 880px !important;
    font-size: clamp(3rem, 5vw, 5.4rem) !important;
    line-height: .98 !important;
    letter-spacing: .075em !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: 62px !important;
    padding: 0 30px !important;
    font-size: clamp(.86rem, 1vw, 1rem) !important;
    letter-spacing: .28em !important;
  }
}

@media (max-width: 760px) {
  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: clamp(58px, 13vh, 92px) !important;
    width: min(100% - 28px, 420px) !important;
    margin: 0 !important;
    transform: translateX(-50%) !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.9rem, 10.4vw, 3.25rem) !important;
    line-height: .96 !important;
    letter-spacing: .08em !important;
    max-width: 10.4em !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(.58rem, 2.25vw, .72rem) !important;
    line-height: 1.45 !important;
    letter-spacing: .23em !important;
    margin-bottom: 14px !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: 52px !important;
    width: min(352px, 100%) !important;
    padding: 0 18px !important;
    font-size: .76rem !important;
    letter-spacing: .22em !important;
    margin-top: clamp(16px, 2.8vh, 22px) !important;
  }
}

@media (max-width: 390px) {
  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: clamp(48px, 10.8vh, 70px) !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.74rem, 9.6vw, 2.85rem) !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: 48px !important;
    font-size: .69rem !important;
    letter-spacing: .19em !important;
  }
}

/* Carrito compacto junto al selector de idioma. */
.booking-cart-floating {
  position: fixed;
  top: 18px;
  right: 92px;
  z-index: 10019;
  min-height: 42px;
  max-width: 142px;
  border: 1px solid rgba(19, 184, 111, .42);
  border-radius: 999px;
  padding: 7px 10px 7px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(2, 16, 29, .52);
  color: #fff;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0,0,0,.18), 0 0 24px rgba(19, 184, 111, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px) scale(.96);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.booking-cart-floating.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

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

.booking-cart-label {
  color: #20df87;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .055em;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(32, 223, 135, .38);
}

@keyframes bookingCartShake {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  20% { transform: rotate(-9deg) translateY(-1px); }
  40% { transform: rotate(8deg) translateY(0); }
  60% { transform: rotate(-6deg) translateY(-1px); }
  80% { transform: rotate(5deg) translateY(0); }
}

@media (max-width: 640px) {
  .booking-cart-floating {
    top: 12px;
    right: 80px;
    min-height: 38px;
    max-width: 124px;
    padding: 6px 8px;
    gap: 4px;
  }

  .booking-cart-icon {
    width: 21px;
    height: 21px;
    font-size: .9rem;
  }

  .booking-cart-label {
    font-size: .58rem;
    letter-spacing: .035em;
  }
}

@media (max-width: 360px) {
  .booking-cart-floating {
    right: 74px;
    max-width: 112px;
    padding-inline: 7px;
  }

  .booking-cart-label { font-size: .52rem; }
}
