/* La Bahía · estilos
   Paleta tomada del logo: marrón tierra + palma, sobre crema. */

:root {
  --sand: #f4eadc;
  --sand-soft: rgba(244, 234, 220, 0.72);
  --earth: #84604a;
  --palm: #5e4636;
  --night: #1c120d;

  --glass-tint: rgba(255, 246, 232, 0.10);
  --glass-tint-strong: rgba(255, 246, 232, 0.20);
  --glass-edge: rgba(255, 246, 232, 0.26);
  --glass-hi: rgba(255, 255, 255, 0.38);
  --blur: 16px;

  --r-lg: 28px;
  --r-md: 20px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);

  --font-sans: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --font-display: "Londrina Solid", Impact, "Arial Black", sans-serif; /* solo títulos de sección */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --col: 560px;
  --gutter: clamp(18px, 5.5vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: radial-gradient(120% 80% at 50% 0%, #3a2619 0%, var(--night) 70%) var(--night);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--sand);
  background: transparent; /* el fondo vive en html; si el body pinta, tapa el video */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
h2, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

/* Sin el recuadro azul del navegador al hacer clic/tocar. El anillo crema solo aparece con teclado. */
*, *::before, *::after { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
}
dialog:focus, dialog:focus-visible, main:focus, [tabindex="-1"]:focus { outline: none; }
a, button, label, .cover, .cta, .chip, .slot, .cal__day, .segmented__opt {
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation; /* sin retraso ni zoom por doble toque */
}
::selection { background: rgba(132, 96, 74, 0.6); color: #fff; }

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Video de fondo ---------- */
/* Fondo: UNA sola capa fija al viewport, independiente del contenido.
   Medidas estables: 100vw no cambia cuando aparece/desaparece la barra de scroll (al abrir un
   cuadro) y 100lvh no cambia cuando la barra del navegador móvil se oculta. Así el video nunca
   se re-escala ni se re-encuadra. El contenido (.page) va por encima, con z-index mayor. */
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  min-width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  overflow: hidden;
  background: var(--night);
  pointer-events: none;
  contain: strict;
  transform: translate3d(0, 0, 0); /* capa propia en la GPU: el scroll no la repinta */
}
.backdrop__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.backdrop__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 38% at 50% 38%, rgba(20, 12, 8, 0.42), transparent 75%),
    linear-gradient(to bottom, rgba(28, 18, 13, 0.40), rgba(28, 18, 13, 0.44) 55%, rgba(28, 18, 13, 0.62));
}

/* ---------- Layout ---------- */
.page {
  position: relative;
  z-index: 1; /* por delante del fondo fijo */
  width: 100%;
  max-width: calc(var(--col) + var(--gutter) * 2);
  margin: 0 auto;
  padding:
    max(clamp(28px, 7vh, 56px), env(safe-area-inset-top))
    max(var(--gutter), env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 6vw, 40px);
}

.block { display: flex; flex-direction: column; gap: 14px; }

.title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 11.5vw, 3.7rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  padding-inline: 6px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

/* ---------- Cristal ---------- */
.glass {
  position: relative;
  background: var(--glass-tint);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 10px 30px -8px rgba(0, 0, 0, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.18);
  isolation: isolate;
}
/* reflejo superior */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0) 38%);
  pointer-events: none;
  z-index: -1;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(58, 40, 29, 0.78); }
}

/* Placa clara: el logo es marrón y necesita fondo claro para leerse sobre el video */
.plate {
  background: rgba(244, 234, 220, 0.86);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 14px 36px -10px rgba(0, 0, 0, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.18);
}
.hero__logo {
  width: min(82vw, 400px);
  height: auto;
  /* halo claro para que el logo marrón se lea sobre el video, sin alterar el archivo */
  filter: drop-shadow(0 0 2px rgba(244, 234, 220, 0.95)) drop-shadow(0 0 2px rgba(244, 234, 220, 0.9)) drop-shadow(0 0 16px rgba(244, 234, 220, 0.5));
}
.plate--mini {
  border-radius: 16px;
  padding: 10px 18px;
  width: 132px;
}
.foot__logo {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(244, 234, 220, 0.5)) drop-shadow(0 0 2px rgba(244, 234, 220, 0.6));
}

/* ---------- Encabezado ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* ocupa la pantalla inicial: del botón de reserva solo asoma el borde superior */
  min-height: calc(100vh - 124px);
  min-height: calc(100svh - 124px);
}

.socials {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 4.5vw, 22px);
}
.social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 26px;
  color: #fff;
  /* sin círculo: solo icono blanco con halo, igual que el logo */
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.45)) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.social:active { transform: scale(0.9); }
@media (hover: hover) {
  .social:hover { transform: translateY(-2px) scale(1.08); }
}
.socials--foot .social { font-size: 22px; }

/* Enlaces pendientes de configurar */
[data-pending] { cursor: default; }
.social[data-pending] { opacity: 0.85; }

/* ---------- Botón de reserva · Liquid Glass ----------
   Capas: (1) cuerpo translúcido + backdrop-filter (+ refracción SVG en Chromium),
   (2) aros de luz y aberración cromática mínima con inset box-shadow,
   (3) ::before = canto óptico de luminosidad variable (mask),
   (4) ::after  = reflejo del entorno arriba + cáustica abajo + luz del cursor.
   --mx/--my (px) y --rx (%) los actualiza main.js con el cursor. */
@property --lit { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --rx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.block--cta { align-items: center; }
.cta {
  font: inherit;
  margin: 0;
  cursor: pointer;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  --mx: 50%;
  --my: 0%;
  --rx: 50%;
  --lit: 0;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  min-height: 60px;
  padding: 0 28px;
  border-radius: 999px;
  color: #fff;
  /* grosor del cristal: más claro arriba, casi limpio al centro, algo de cuerpo abajo */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.045) 48%, rgba(255, 255, 255, 0.085) 100%),
    rgba(24, 15, 10, 0.17);
  -webkit-backdrop-filter: blur(8px) saturate(180%) brightness(1.08);
  backdrop-filter: blur(8px) saturate(180%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, 0.08); /* el canto real lo dibuja ::before */
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.55),          /* aro superior */
    inset 0 -1px 1px rgba(255, 255, 255, 0.16),           /* aro inferior */
    inset 2px 0 3px -1px rgba(255, 176, 128, 0.14),       /* aberración cálida (izq.) */
    inset -2px 0 3px -1px rgba(128, 190, 255, 0.14),      /* aberración fría (der.) */
    inset 0 0 20px rgba(255, 255, 255, 0.09),             /* luz interior */
    inset 0 -12px 20px -10px rgba(0, 0, 0, 0.26),         /* peso en la base */
    0 16px 30px -12px rgba(0, 0, 0, 0.55),                /* sombra proyectada */
    0 3px 8px rgba(0, 0, 0, 0.2);                         /* contacto */
  overflow: hidden;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    --lit 0.5s var(--ease),
    --rx 0.6s var(--ease);
}
/* Refracción: solo Chromium admite filtros SVG en backdrop-filter.
   Safari/Firefox conservan el cristal de arriba sin cambios. */
@supports (backdrop-filter: url(#a)) and (not (-webkit-hyphens: none)) and (not (-moz-appearance: none)) {
  .cta {
    -webkit-backdrop-filter: url(#lg-refract) blur(7px) saturate(180%) brightness(1.08);
    backdrop-filter: url(#lg-refract) blur(7px) saturate(180%) brightness(1.08);
  }
}
.cta__icon,
.cta__label { position: relative; z-index: 2; }
.cta__icon {
  font-size: 22px;
  flex: none;
  stroke-width: 1.8;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.35));
}
.cta__label {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* canto óptico: luminosidad variable (foco arriba-izq., destello abajo-der., zonas casi vacías) */
.cta::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  border-radius: inherit;
  padding: 1.25px;
  background:
    radial-gradient(60% 140% at 14% 0%, rgba(255, 255, 255, 0.95), transparent 60%),
    radial-gradient(45% 120% at 92% 100%, rgba(255, 255, 255, 0.60), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0.14));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0.85;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

/* reflejo del entorno + cáustica + luz del cursor */
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    radial-gradient(130px 70px at var(--mx) var(--my), rgba(255, 255, 255, calc(0.22 * var(--lit))), transparent 70%),
    radial-gradient(46% 34% at var(--rx) 0%, rgba(255, 255, 255, calc(0.30 + 0.10 * var(--lit))), transparent 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.02) 34%, transparent 46%),
    radial-gradient(55% 40% at 50% 118%, rgba(255, 255, 255, 0.14), transparent 100%);
  pointer-events: none;
}

.cta:active {
  transform: scale(0.988);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.4),
    inset 0 -1px 1px rgba(255, 255, 255, 0.12),
    inset 2px 0 3px -1px rgba(255, 176, 128, 0.12),
    inset -2px 0 3px -1px rgba(128, 190, 255, 0.12),
    inset 0 0 24px rgba(255, 255, 255, 0.14),
    inset 0 8px 16px -6px rgba(0, 0, 0, 0.3),
    0 8px 18px -10px rgba(0, 0, 0, 0.55),
    0 2px 5px rgba(0, 0, 0, 0.2);
}
.cta:active::before { opacity: 0.6; }
@media (hover: hover) {
  .cta:hover {
    --lit: 1;
    transform: translateY(-1px);
    box-shadow:
      inset 0 1.5px 1px rgba(255, 255, 255, 0.7),
      inset 0 -1px 1px rgba(255, 255, 255, 0.22),
      inset 2px 0 3px -1px rgba(255, 176, 128, 0.18),
      inset -2px 0 3px -1px rgba(128, 190, 255, 0.18),
      inset 0 0 24px rgba(255, 255, 255, 0.12),
      inset 0 -12px 20px -10px rgba(0, 0, 0, 0.26),
      0 20px 34px -12px rgba(0, 0, 0, 0.6),
      0 3px 8px rgba(0, 0, 0, 0.22);
  }
  .cta:hover::before { opacity: 1; }
}
.cta[data-pending] { opacity: 0.85; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cta { background: rgba(70, 48, 35, 0.72); }
}

/* ---------- Carta ---------- */
.cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  max-height: 72vh;
  max-height: 72dvh;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.6), inset 0 1px 0 var(--glass-hi);
  transition: transform 0.5s var(--ease);
  isolation: isolate;
}
.cover__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: transform 1.1s var(--ease);
  background:
    radial-gradient(80% 60% at 28% 18%, rgba(244, 234, 220, 0.20), transparent 65%),
    radial-gradient(90% 70% at 85% 95%, rgba(28, 18, 13, 0.7), transparent 70%),
    linear-gradient(160deg, var(--earth), var(--palm) 60%, #3b2a20);
}
/* grano de papel, solo en la portada pendiente */
.cover__art:not(.has-image)::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.cover__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%; /* conserva el rostro y el neón al recortar */
}
.cover:has(.has-image)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, rgba(20, 12, 8, 0.55), transparent 42%);
  pointer-events: none;
}
.cover__chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: rgba(255, 246, 232, 0.16);
}
.cover__text {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.03em;
  padding-top: 2px;
}
.cover__go {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  background: rgba(255, 246, 232, 0.22);
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease);
}
.cover:active { transform: scale(0.985); }
@media (hover: hover) {
  .cover:hover .cover__art { transform: scale(1.035); }
  .cover:hover .cover__go { transform: translate(2px, -2px); background: rgba(255, 246, 232, 0.34); }
}
.cover[data-pending] { cursor: default; }

/* Botón «Cómo llegar»: misma tipografía de los títulos, en su trazo más delgado */
.place {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand);
  transition: transform 0.25s var(--ease), background-color 0.3s var(--ease);
}
.place[hidden] { display: none; }
.place .icon { font-size: 20px; stroke-width: 1.6; flex: none; }
.place__text { padding-top: 2px; }
.place:active { transform: scale(0.98); }
@media (hover: hover) { .place:hover { background-color: rgba(255, 246, 232, 0.2); } }

/* ---------- Marcos (mapa y horarios) ---------- */
.frame { border-radius: var(--r-lg); overflow: hidden; }

.map {
  aspect-ratio: 4 / 3;
  min-height: 260px;
  max-height: 420px;
  width: 100%;
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map__pending {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 246, 232, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 246, 232, 0.10) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
}

.hours { padding: 4px 24px; }
.hours__list { display: block; }
.hours__row {
  display: grid;
  gap: 6px;
  padding: 20px 0;
}
.hours__row + .hours__row { border-top: 1px solid rgba(255, 246, 232, 0.14); }
.hours__row dt {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--sand-soft);
}
.hours__row dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.55rem, 7.2vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.hours__time { white-space: nowrap; }
.hours__dash { opacity: 0.45; }
.hours__ghost {
  display: block;
  height: 10px;
  margin: 24px 0;
  border-radius: 999px;
  background: rgba(255, 246, 232, 0.10);
}
.hours__ghost:nth-child(2) { width: 78%; }
.hours__ghost:nth-child(3) { width: 58%; }

/* ---------- Footer ---------- */
.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 8px;
  text-align: center;
}
.foot__legal { font-size: 0.78rem; color: var(--sand-soft); }
.foot__credit {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(244, 234, 220, 0.5);
  margin-top: -10px;
}

/* ---------- Preloader ----------
   Capa 1 (crema, fondo original) dibuja el logo y sube; la capa 2 (oscura), que espera
   detrás, baja DESPUÉS y sale por abajo. Estados, tiempos y curvas: js/preloader.js. */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  contain: strict;
}
.pre-seen .preloader { display: none; }
.pre-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  /* capas promovidas a la GPU desde el inicio: sin tirón al arrancar el desplazamiento */
  will-change: transform;
  transform: translateZ(0);
}
.pre-layer--one {
  z-index: 2;
  background: var(--sand);
  box-shadow: 0 24px 60px -12px rgba(28, 18, 13, 0.4);
}
.pre-layer--two {
  z-index: 1; /* ya está detrás de la capa 1 desde el inicio; baja cuando la capa 1 terminó de subir */
  background: radial-gradient(120% 80% at 50% 0%, #3a2619 0%, var(--night) 70%);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5);
}
.pre-logo {
  position: relative;
  width: min(68vw, 360px);
  aspect-ratio: 1467 / 475;
}
.pre-logo__strokes,
.pre-logo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pre-logo__strokes { overflow: visible; }
.pre-logo__strokes path {
  fill: none;
  stroke: var(--earth);
  stroke-width: 6;
  stroke-linejoin: round;
}
/* capa 1: el logo completo aparece cuando termina el dibujo */
.pre-layer--one .pre-logo__img { opacity: 0; }

/* ---------- Entrada y aparición progresiva ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Sin animar opacidad: un ancestro con opacidad < 1 impide que el cristal (backdrop-filter) vea el
   video, y al terminar la animación el desenfoque aparecía de golpe como una capa. La cortina ya
   oculta el contenido hasta que baja; aquí solo se desliza. */
.js [data-enter] {
  transform: translateY(14px);
}
.js.is-ready [data-enter] {
  animation: enter 1.1s var(--ease) both;
}
.js.is-ready .hero { animation-delay: 0.05s; }
.js.is-ready .block--cta { animation-delay: 0.3s; }
@keyframes enter {
  from { transform: translateY(14px); }
  to   { transform: none; }
}

/* ---------- Cuadro «en desarrollo» (carta) ---------- */
.soon {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(100% - 32px, 460px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  aspect-ratio: 1 / 1;
  padding: 40px 32px 32px;
  border-radius: 28px;
  color: var(--sand);
  background: rgba(36, 24, 17, 0.58);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 0 40px rgba(255, 255, 255, 0.04),
    0 30px 80px -20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}
.soon[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; }
.soon.is-open { opacity: 1; transform: none; }
.soon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(70% 24% at 24% 0%, rgba(255, 255, 255, 0.16), transparent 100%);
  pointer-events: none;
}
.soon::backdrop {
  background: rgba(12, 7, 4, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.soon.is-open::backdrop { opacity: 1; }
.soon__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 11vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
}
.soon__title--long { font-size: clamp(1.9rem, 8vw, 2.5rem); line-height: 1.02; max-width: 15ch; }
.soon__text { display: grid; gap: 10px; max-width: 32ch; font-size: 1.1rem; line-height: 1.45; color: var(--sand-soft); }
.soon__text p { margin: 0; }
.soon__ok { width: 100%; max-width: 260px; margin-top: 8px; flex: none; }
.soon__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  color: var(--sand);
  cursor: pointer;
  background: rgba(255, 246, 232, 0.12);
  border: 1px solid rgba(255, 246, 232, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.soon__close:active { transform: scale(0.94); }
@media (hover: hover) { .soon__close:hover { background: rgba(255, 246, 232, 0.22); } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .soon { background: rgba(36, 24, 17, 0.95); }
}

/* ---------- Formulario de reservas ---------- */
html.is-locked { overflow: hidden; }
[tabindex="-1"]:focus { outline: none; }

.booking {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sand);
  width: min(100% - 20px, 680px);
  max-width: none;
  max-height: none;
  height: calc(100vh - 20px);
  height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  max-height: 920px;
  overflow: visible;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}
.booking.is-open { opacity: 1; transform: none; }
.booking::backdrop {
  background: rgba(12, 7, 4, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.booking.is-open::backdrop { opacity: 1; }

.booking__sheet {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(36, 24, 17, 0.58);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 0 40px rgba(255, 255, 255, 0.04),
    0 30px 80px -20px rgba(0, 0, 0, 0.7);
}
.booking__sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(70% 22% at 22% 0%, rgba(255, 255, 255, 0.16), transparent 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%);
  pointer-events: none;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .booking__sheet { background: rgba(36, 24, 17, 0.95); }
}

.booking__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 10px 26px;
}
.booking__headtext { display: grid; gap: 6px; min-width: 0; }
.booking__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.3rem, 9vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
}
.booking__count {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--sand-soft);
}
.progress {
  display: flex;
  gap: 6px;
  padding: 6px 26px 4px;
}
.progress span {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 246, 232, 0.16);
  transition: background-color 0.5s var(--ease);
}
.progress span.is-done { background: rgba(244, 234, 220, 0.85); }
.progress span.is-current { background: rgba(244, 234, 220, 0.5); }
.booking__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 22px;
  color: var(--sand);
  cursor: pointer;
  background: rgba(255, 246, 232, 0.12);
  border: 1px solid rgba(255, 246, 232, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.booking__close:active { transform: scale(0.94); }
@media (hover: hover) {
  .booking__close:hover { background: rgba(255, 246, 232, 0.22); }
}

.booking__panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.booking__panel[hidden] { display: none; }
.booking__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 10px 26px 24px;
}
.booking__foot {
  display: flex;
  gap: 12px;
  padding: 14px 26px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 246, 232, 0.12);
  background: linear-gradient(to top, rgba(20, 12, 8, 0.35), transparent);
}
.booking__foot .btn { flex: 1; }

/* Campos */
.field { min-width: 0; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field__label {
  display: block;
  margin-bottom: 9px;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--sand-soft);
}
.step__title {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 8.5vw, 2.7rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
}
.step { min-width: 0; }
.step[hidden] { display: none; }
.step.is-fwd { animation: step-fwd 0.5s var(--ease) both; }
.step.is-back { animation: step-back 0.5s var(--ease) both; }
@keyframes step-fwd { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes step-back { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.step .field-row { margin-top: 2px; }
.step > .field--reveal { margin-top: 22px; }
.field__hint { margin-top: 7px; font-size: 0.82rem; color: rgba(244, 234, 220, 0.6); }
.field__hint:empty { display: none; }
.field__error { margin-top: 7px; font-size: 0.88rem; line-height: 1.35; color: #ffb4a2; }
.field__error:empty { display: none; }
.field--reveal:not([hidden]) { animation: reveal-in 0.4s var(--ease) both; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.field-row { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; gap: 14px; } }

.input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 246, 232, 0.24);
  background: rgba(255, 246, 232, 0.07);
  color: var(--sand);
  font: inherit;
  font-size: 16px; /* evita el zoom automático en iOS */
  color-scheme: dark;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.input::placeholder { color: rgba(244, 234, 220, 0.4); }
.input:focus { outline: none; border-color: rgba(255, 246, 232, 0.65); background: rgba(255, 246, 232, 0.11); box-shadow: 0 0 0 3px rgba(244, 234, 220, 0.16); }
.input[aria-invalid="true"] { border-color: #ffb4a2; box-shadow: 0 0 0 3px rgba(255, 180, 162, 0.14); }
.input:disabled { opacity: 0.55; }
.input::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.8; cursor: pointer; }
.input--select {
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f4eadc' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.input--select option { background: #2a1b13; color: var(--sand); }
.input--area { padding: 14px 16px; min-height: 100px; resize: vertical; line-height: 1.45; }

.stepper { display: grid; grid-template-columns: 52px 1fr 52px; gap: 10px; }
.stepper__input { text-align: center; font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper__btn {
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255, 246, 232, 0.24);
  background: rgba(255, 246, 232, 0.1);
  color: var(--sand);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.3s var(--ease);
}
.stepper__btn:active { transform: scale(0.94); }
@media (hover: hover) { .stepper__btn:hover { background: rgba(255, 246, 232, 0.18); } }

/* Calendario */
.cal {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 246, 232, 0.2);
  background: rgba(255, 246, 232, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.cal__head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal__month {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.04em;
}
.cal__nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  color: var(--sand);
  cursor: pointer;
  background: rgba(255, 246, 232, 0.1);
  border: 1px solid rgba(255, 246, 232, 0.24);
  transition: background-color 0.3s var(--ease), opacity 0.3s var(--ease), transform 0.25s var(--ease);
}
.cal__nav:active { transform: scale(0.92); }
.cal__nav:disabled { opacity: 0.25; cursor: default; }
@media (hover: hover) { .cal__nav:not(:disabled):hover { background: rgba(255, 246, 232, 0.2); } }
.cal__week, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__week { margin-bottom: 6px; }
.cal__week span {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--sand-soft);
}
.cal__day {
  aspect-ratio: 1;
  min-height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--sand);
  font: inherit;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}
.cal__day:disabled { opacity: 0.28; cursor: default; }
.cal__day.is-today { border-color: rgba(244, 234, 220, 0.55); }
.cal__day:not(:disabled):active { transform: scale(0.92); }
@media (hover: hover) { .cal__day:not(:disabled):not(.is-selected):hover { background: rgba(255, 246, 232, 0.16); } }
.cal__day.is-selected { background: rgba(244, 234, 220, 0.92); border-color: rgba(244, 234, 220, 0.92); color: #2e1f16; font-weight: 700; }
[data-invalid] .cal { border-color: rgba(255, 180, 162, 0.6); }

/* Horas */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
.slots:empty { display: none; }
.slot { position: relative; display: block; cursor: pointer; }
.slot input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.slot span {
  display: block;
  padding: 12px 6px;
  border-radius: 14px;
  text-align: center;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  border: 1px solid rgba(255, 246, 232, 0.24);
  background: rgba(255, 246, 232, 0.07);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.slot--late span { border-style: dashed; }
.slot input:checked + span { background: rgba(244, 234, 220, 0.92); border-color: rgba(244, 234, 220, 0.92); color: #2e1f16; font-weight: 700; }
.slot input:focus-visible + span { outline: 2px solid var(--sand); outline-offset: 3px; }
@media (hover: hover) { .slot input:not(:checked):hover + span { background: rgba(255, 246, 232, 0.16); } }
[data-invalid] .slot span { border-color: rgba(255, 180, 162, 0.5); }
.step .field + .field { margin-top: 22px; }

/* Opciones (motivo y servicio especial) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip, .segmented__opt { position: relative; display: block; cursor: pointer; }
.chip input, .segmented__opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: block;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 246, 232, 0.26);
  background: rgba(255, 246, 232, 0.07);
  font-size: 0.97rem;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.chip input:checked + span,
.segmented__opt input:checked + span {
  background: rgba(244, 234, 220, 0.92);
  border-color: rgba(244, 234, 220, 0.92);
  color: #2e1f16;
  font-weight: 600;
}
.chip input:focus-visible + span,
.segmented__opt input:focus-visible + span { outline: 2px solid var(--sand); outline-offset: 3px; }
@media (hover: hover) {
  .chip input:not(:checked):hover + span,
  .segmented__opt input:not(:checked):hover + span { background: rgba(255, 246, 232, 0.14); }
}
[data-invalid] .chip span { border-color: rgba(255, 180, 162, 0.6); }

.segmented {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 246, 232, 0.24);
  background: rgba(255, 246, 232, 0.06);
}
.segmented__opt span {
  display: block;
  min-width: 84px;
  padding: 10px 26px;
  border-radius: 999px;
  text-align: center;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

/* Botones */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 246, 232, 0.3);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), filter 0.3s var(--ease);
}
.btn .icon { font-size: 22px; flex: none; }
.booking__foot--wiz .btn--ghost { flex: 0 0 34%; }
.btn:active { transform: scale(0.985); }
.btn--primary {
  color: #2e1f16;
  background: linear-gradient(180deg, rgba(250, 243, 233, 0.96), rgba(236, 222, 204, 0.9));
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 24px -10px rgba(0, 0, 0, 0.55);
}
.btn--ghost { color: var(--sand); background: rgba(255, 246, 232, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22); }
@media (hover: hover) {
  .btn--primary:hover { filter: brightness(1.04); }
  .btn--ghost:hover { background: rgba(255, 246, 232, 0.18); }
}
@media (max-width: 479px) {
  .booking__foot--split { flex-direction: column-reverse; }
}

/* Resumen */
.summary__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 8.5vw, 2.7rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
}
.summary {
  margin: 0;
  padding: 4px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 246, 232, 0.2);
  background: rgba(255, 246, 232, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.summary__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 14px;
  row-gap: 4px;
  padding: 14px 0;
}
.summary__row dd { grid-column: 1; }
.summary__edit {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 246, 232, 0.26);
  background: rgba(255, 246, 232, 0.08);
  color: var(--sand);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.3s var(--ease);
}
@media (hover: hover) { .summary__edit:hover { background: rgba(255, 246, 232, 0.18); } }
.summary__row + .summary__row { border-top: 1px solid rgba(255, 246, 232, 0.12); }
.summary__row dt {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--sand-soft);
}
.summary__row dd { font-size: 1.1rem; line-height: 1.35; overflow-wrap: anywhere; }
.summary__note { font-size: 0.88rem; line-height: 1.45; color: var(--sand-soft); }
.summary__alert {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.4;
  border: 1px solid rgba(255, 246, 232, 0.25);
  background: rgba(255, 246, 232, 0.1);
}
.summary__alert[hidden] { display: none; }
.summary__alert[data-tone="error"] { border-color: rgba(255, 180, 162, 0.5); background: rgba(255, 180, 162, 0.1); color: #ffd3c8; }
.summary__alert a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

@media (max-width: 379px) {
  .booking__head { padding: 16px 14px 8px 20px; }
  .booking__scroll { padding-inline: 20px; }
  .booking__foot { padding-inline: 20px; }
  .chip span { padding: 11px 15px; }
}

/* ---------- Pantallas amplias ---------- */
@media (min-width: 720px) {
  :root { --blur: 20px; }
  .map { aspect-ratio: 16 / 10; }
  .hours { padding-inline: 30px; }
}

/* ---------- Pantallas muy pequeñas ---------- */
@media (max-width: 340px) {
  .cta { padding: 0 18px; }
  .cta__label { font-size: 0.95rem; }
  .cover__chip { left: 10px; bottom: 10px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal, .js [data-enter] { opacity: 1; transform: none; }
}
