/* =========================================================
   FETICHE · Salón de eventos y cena show — Ramos Mejía
   Mobile-first. Breakpoints: 640 / 840 / 1000 / 1240
   ========================================================= */

/* ---------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------- */
:root {
  /* --- planos de fondo --- */
  --bg:        #0b0908;
  --bg-2:      #12100c;
  --bg-3:      #191510;
  --panel:     #221c14;
  --panel-2:   #2b2318;
  --plate:     #080706;   /* fondo del afiche contenido */

  /* --- dorado (muestreado del cartel real) --- */
  --gold-deep: #6e4a17;
  --gold:      #c08f3c;
  --gold-2:    #e8c87e;
  --gold-hi:   #f7e6b4;
  --gold-ink:  #211a0c;

  --foil: linear-gradient(180deg,
          #f7e6b4 0%, #dcab52 20%, #8a5f22 43%,
          #f2dd9e 52%, #c08f3c 72%, #6e4a17 100%);

  /* --- rojo: la luz real del salón. Solo atmósfera, nunca UI --- */
  --red-deep:  #4a0d14;
  --red:       #8e1420;

  /* --- texto --- */
  --cream:     #f2ece1;
  --cream-2:   #ded5c5;
  --muted:     #ab9f8a;
  --muted-2:   #978c7a;

  /* --- WhatsApp --- */
  --wa:        #1aa855;
  --wa-deep:   #0d6f3c;
  --wa-ink:    #05311a;

  /* --- bordes --- */
  --line-faint:  rgba(232, 200, 126, 0.10);
  --line:        rgba(232, 200, 126, 0.22);
  --line-strong: rgba(232, 200, 126, 0.42);

  /* --- espaciado --- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --space-block:   clamp(32px, 6vw,  48px);
  --space-module:  clamp(56px, 10vw, 96px);
  --space-section: clamp(64px, 11vw, 112px);

  --gap-grid: var(--s-3);
  --gutter:   clamp(20px, 5vw, 40px);
  --maxw:     1200px;
  --header-h: 72px;

  /* --- tipografía --- */
  --font-display: "Cinzel", Georgia, serif;
  --font-serif:   "Cormorant Garamond", Georgia, serif;
  --font-sans:    "Jost", "Segoe UI", system-ui, sans-serif;

  --fs-micro: 0.75rem;
  --fs-sm:    0.875rem;
  --fs-body:  1.0625rem;
  --fs-lead:  clamp(1.075rem, 1.02rem + 0.28vw, 1.25rem);
  --fs-h4:    clamp(1.2rem,  1.10rem + 0.50vw, 1.45rem);
  --fs-h3:    clamp(1.5rem,  1.30rem + 1.10vw, 2.125rem);
  --fs-h2:    clamp(2.3rem,  1.55rem + 3.40vw, 3.9rem);
  --fs-tag:   clamp(1.6rem,  1.20rem + 2.00vw, 2.60rem);

  --lh-display: 1.06; --lh-title: 1.18; --lh-lead: 1.45;
  --lh-body: 1.6;     --lh-micro: 1.4;

  /* --- forma y movimiento --- */
  --radius: 2px;
  --radius-pill: 100px;
  --shadow-1: 0 8px 24px rgba(0,0,0,.35);
  --shadow-2: 0 24px 60px rgba(0,0,0,.50);
  --glow-gold: 0 12px 30px rgba(192,143,60,.22);

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 160ms; --dur-2: 260ms; --dur-3: 420ms; --dur-4: 700ms;

  /* --- atmósfera teatral: "FETICHE en luces" --- */
  /* Marquesina: una bombita dorada que se repite en x para hacer el cartel de luces. */
  --marquee: radial-gradient(circle at center,
             var(--gold-hi) 0 1.4px,
             var(--gold-2)  1.4px 2.6px,
             rgba(232, 200, 126, .30) 2.6px 3.1px,
             transparent 3.2px);
  --bulb-gap: 15px;

  /* Grano filmico compartido por el hero y el campo fijo de toda la pagina. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-op: .05;

  /* Luz de escena: rojo de candilejas desde el piso, dorado cenital desde el techo. */
  --glow-red:      rgba(142, 20, 32, .20);
  --glow-red-soft: rgba(142, 20, 32, .10);
  --glow-amber:    rgba(192, 143, 60, .055);
  --stage-spot:    rgba(247, 230, 180, .08);
}

@media (min-width: 1000px) { :root { --header-h: 80px; } }

/* ---------------------------------------------------------
   2. BASE
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* --- Luz de escena continua: grano + viñeta fijos sobre toda la pagina.
   Encima de los fondos opacos de seccion, debajo del header (z60) y del
   flotante (z70). Mata el banding del negro en OLED y encuadra el scroll
   como una sola sala vista con un lente. --- */
body::before, body::after {
  content: ""; position: fixed; inset: 0;
  z-index: 1; pointer-events: none;
}
body::before { background: radial-gradient(120% 110% at 50% 38%, transparent 54%, rgba(4,3,3,.34)); }
body::after  { background-image: var(--grain); background-size: 180px; opacity: var(--grain-op); }

img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: var(--lh-title); margin: 0; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); position: relative; }

/* Costura entre secciones = la misma marquesina de luces, angosta. */
.section + .section::before {
  content: "";
  position: absolute; top: -4px; left: 50%;
  transform: translateX(-50%);
  width: min(560px, 72%); height: 8px;
  background: var(--marquee);
  background-size: var(--bulb-gap) 100%;
  background-repeat: repeat-x;
  background-position: center;
  filter: drop-shadow(0 0 3px rgba(247, 230, 180, .42));
  -webkit-mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
          mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

/* --- utilidades --- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: var(--gutter); top: 8px; z-index: 100;
  background: var(--gold); color: var(--gold-ink);
  padding: .7em 1.2em; border-radius: var(--radius);
}

/* --- foco visible (P0) --- */
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }
.btn-wa:focus-visible, .wa-float:focus-visible { outline-color: var(--cream); }

/* --- marco ornamental (solo 3 usos) --- */
.frame {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px var(--line-faint);
}
.frame::before, .frame::after {
  content: ""; position: absolute; width: 12px; height: 12px;
  border: 1px solid var(--gold-2); pointer-events: none; z-index: 4;
}
.frame::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }

/* ---------------------------------------------------------
   3. TIPOGRAFÍA DE SECCIÓN
   --------------------------------------------------------- */
.eyebrow, .hero-eyebrow {
  --track: .28em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-micro);
  line-height: var(--lh-micro);
  letter-spacing: var(--track);
  margin-inline-end: calc(var(--track) * -1);
  text-transform: uppercase;
  color: var(--gold);
  margin-block: 0 var(--s-4);
}
/* Regla-programa: la misma hairline que flanquea el wordmark, como en un
   playbill impreso (— AGENDA). El hero no la lleva: ya tiene la marquesina
   debajo. inline-flex sigue centrandose en .section-head y a la izquierda
   en --left. */
.eyebrow { display: inline-flex; align-items: center; gap: .85em; }
.eyebrow::before {
  content: ""; flex: 0 0 auto;
  width: clamp(22px, 5vw, 40px); height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: var(--lh-display);
  text-wrap: balance;
  margin-block: 0 var(--s-4);
  color: var(--cream);
}
/* El itálico es la linea "estrella" del bill: mas grande, no solo dorado. */
.section-title em, .hero-tagline em {
  color: var(--gold-2); font-style: italic;
  font-size: 1.05em; letter-spacing: .006em; padding-inline: .03em;
}

.section-sub {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  text-wrap: pretty;
  color: var(--muted);
  max-width: 30em;
  margin-inline: auto;
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  text-wrap: pretty;
  color: var(--cream-2);
  max-width: 34em;
  margin-block: 0 var(--s-4);
}

.section-head {
  text-align: center;
  max-width: 44em;
  margin-inline: auto;
  margin-bottom: var(--space-block);
}
.section-head--left {
  text-align: left;
  margin-inline: 0;
  margin-bottom: var(--s-5);
  max-width: none;
}

.subsection-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--fs-h3);
  color: var(--cream);
  text-align: center;
  margin-bottom: var(--space-block);
}

/* ---------------------------------------------------------
   4. BOTONES
   --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .6em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 1.05em 1.9em;
  min-height: 48px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform var(--dur-2) var(--ease-out),
              background var(--dur-2) var(--ease-out),
              color var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
.btn-lg { font-size: 1rem; padding: 1.15em 2.4em; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, #b08434);
  color: var(--gold-ink);
  box-shadow: var(--glow-gold);
}
.btn-ghost {
  background: transparent; color: var(--cream);
  border-color: rgba(242,236,225,.46);
}
.btn-wa {
  position: relative; overflow: hidden;
  /* Verde profundo + texto blanco: AA garantizado en todo el gradiente
     (blanco sobre #157a41 = 5.4:1, sobre --wa-deep = 6.3:1) y mas elegante
     que el verde kelly de plugin. */
  background: linear-gradient(140deg, #157a41, var(--wa-deep));
  color: #fff;
  box-shadow: 0 12px 30px rgba(13,111,60,.28);
}
/* Un brillo que cruza el boton al pasar el mouse (misma "luz viajera"). */
.btn-wa::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%);
  background-size: 250% 100%; background-position: 150% 0;
}
.btn-wa > * { position: relative; z-index: 1; }
.btn-nav {
  font-size: .78rem; padding: .8em 1.4em; min-height: 44px;
  background: transparent; border-color: var(--gold); color: var(--gold-2);
}
.btn .ico { flex: 0 0 auto; }

/* El boton de nav: borde dorado estatico con un sutil labio especular.
   (El haz conico animado se retiro: la "luz viajera" ahora vive en el
   wordmark, el carrusel y el CTA — un solo idioma, sin loop perpetuo.) */
.btn-nav { position: relative; box-shadow: inset 0 1px 0 rgba(247,230,180,.10); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
  .btn-nav:hover { background: var(--gold); color: var(--gold-ink); }
}

/* En pantallas angostas el CTA largo no debe partirse en dos líneas */
@media (max-width: 429px) {
  .btn { padding-inline: 1.4em; letter-spacing: .06em; }
  .btn-lg { font-size: .92rem; padding: 1.1em 1.4em; }
}

/* ---------------------------------------------------------
   5. HEADER / NAV
   --------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background var(--dur-3) var(--ease-out),
              box-shadow var(--dur-3) var(--ease-out);
}
.site-header.scrolled {
  background: rgba(11,9,8,.86);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0,0,0,.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-mark {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.35rem; letter-spacing: .30em; margin-inline-end: -.30em;
  background: var(--foil); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.brand-sub {
  font-size: var(--fs-micro); letter-spacing: .16em;
  color: var(--muted-2); text-transform: uppercase; margin-top: .5em;
}
@media (max-width: 419px) { .brand-sub { display: none; } }

/* nav = panel desplegable en mobile */
.nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-6) var(--gutter);
  background: rgba(11,9,8,.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  max-height: calc(100svh - var(--header-h));
  overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden; pointer-events: none;
  transform: translateY(-120%);
  transition: transform var(--dur-3) var(--ease-in-out), visibility 0s linear var(--dur-3);
}
.nav.open {
  visibility: visible; pointer-events: auto; transform: translateY(0);
  transition: transform var(--dur-3) var(--ease-in-out), visibility 0s;
}
body.nav-open { overflow: hidden; }

.nav-link {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 48px;
  font-size: .95rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cream);
  position: relative;
  transition: color var(--dur-1) var(--ease-out);
}
.nav .btn-nav { align-self: center; margin-top: var(--s-3); }

.nav-toggle {
  display: grid; place-items: center; gap: 5px;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  grid-auto-rows: 2px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--gold-2);
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1) var(--ease-out);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1000px) {
  .nav {
    position: static; flex-direction: row; align-items: center;
    gap: clamp(1rem, 2.2vw, 2.2rem);
    padding: 0; background: none; backdrop-filter: none; border: 0;
    max-height: none; overflow: visible;
    visibility: visible; pointer-events: auto; transform: none;
  }
  .nav-link { width: auto; min-height: 44px; font-size: .8rem; letter-spacing: .14em; }
  .nav-link::after {
    content: ""; position: absolute; left: 0; bottom: 8px;
    width: 100%; height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--dur-3) var(--ease-out);
  }
  .nav-link:hover { color: var(--gold-2); }
  .nav-link:hover::after { transform: scaleX(1); }
  .nav .btn-nav { margin-top: 0; }
  .nav-toggle { display: none; }
}

/* ---------------------------------------------------------
   6. HERO
   --------------------------------------------------------- */
.hero {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  padding-block: calc(var(--header-h) + var(--s-2)) clamp(104px, 15vh, 150px);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg picture { display: block; width: 100%; height: 100%; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  animation: heroDrift 26s var(--ease-in-out) 800ms infinite alternate both;
}
@keyframes heroDrift {
  from { transform: scale(1.02); }
  to   { transform: scale(1.07) translate3d(-1.2%, -1%, 0); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,6,5,.42) 0%, rgba(8,6,5,.30) 34%, rgba(8,6,5,.80) 100%),
    linear-gradient(0deg, rgba(142,20,32,.26), transparent 26%),
    radial-gradient(118% 88% at 50% 22%, transparent 38%, rgba(6,5,4,.86) 100%);
}
.hero-grain {
  position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; max-width: 820px; }

/* Velo de "se prenden las luces": en reposo es invisible; en la carga cae
   como un follow-spot que se abre. Centro translucido para que el wordmark
   (LCP) se vea desde el primer frame. */
.hero-veil {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 85% at 50% 42%,
              rgba(8,6,5,.32), rgba(6,4,3,.86) 55%, #050403 82%);
}

.hero-wordmark {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(8px, 2vw, 14px);
  margin: 0 0 var(--s-5);
  max-width: 100%;
}
/* Marquesina de luces: bombitas doradas repetidas, con los extremos
   difuminados para que lea como un arco de cartel y no como una reja. */
.wm-rule {
  width: clamp(64px, 20vw, 150px); height: 8px;
  background: var(--marquee);
  background-size: var(--bulb-gap) 100%;
  background-repeat: repeat-x;
  background-position: center;
  filter: drop-shadow(0 0 3px rgba(247, 230, 180, .5));
  -webkit-mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
          mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}
.wm-text {
  --track: clamp(0.16em, 0.06em + 1.2vw, 0.30em);
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.1rem, 1rem + 5.6vw, 4.6rem);
  letter-spacing: var(--track); padding-left: var(--track);
  line-height: var(--lh-display);
  /* Dos capas recortadas a las letras: un destello especular que viaja (en
     reposo, fuera de campo) sobre el foil quieto. */
  background-image:
    linear-gradient(100deg, transparent 44%, rgba(255,250,235,.9) 50%, transparent 56%),
    var(--foil);
  background-repeat: no-repeat, no-repeat;
  background-size: 220% 100%, 100% 100%;
  background-position: 170% 0, 0 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 2px 40px rgba(192,143,60,.30);
}

.hero-tagline {
  font-family: var(--font-serif); font-weight: 500;
  font-size: var(--fs-tag); line-height: var(--lh-title);
  color: var(--cream);
  margin-bottom: var(--s-4);
}
/* (El estilo del <em> del hero-tagline se define junto al de .section-title em.) */

.hero-lead {
  font-size: var(--fs-lead); line-height: var(--lh-lead); text-wrap: pretty;
  color: var(--cream-2);
  max-width: 34em; margin: 0 auto var(--s-6);
}
.hero-cta { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; }
.hero-note {
  margin-top: var(--s-5);
  font-size: var(--fs-sm); color: var(--muted-2);
}
@media (max-width: 419px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .62rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted-2);
}
.scroll-cue-arrow {
  width: 1px; height: 42px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--gold), transparent);
}
.scroll-cue-arrow::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 50%; background: var(--gold-2);
  transform: translateY(-100%);
  animation: scrollLine 2s linear infinite;
}
@keyframes scrollLine { from { transform: translateY(-100%); } to { transform: translateY(200%); } }
@media (max-width: 639px) { .scroll-cue { display: none; } }

@media (orientation: landscape) and (max-height: 520px) {
  .hero { min-height: auto; padding-block: calc(var(--header-h) + 24px) 48px; }
  .hero-lead { display: none; }
  .scroll-cue { display: none; }
}

/* ---------------------------------------------------------
   7. AGENDA · CARRUSEL (scroll-snap)
   --------------------------------------------------------- */
/* El "escenario": foco calido cenital + candilejas rojas desde el piso.
   Los radiales viven en 50% 0% / 50% 118%, o sea en el padding, nunca
   detras del texto centrado. */
.agenda {
  background:
    radial-gradient(95% 52% at 50% 0%,   var(--stage-spot), transparent 72%),
    radial-gradient(100% 48% at 50% 118%, var(--glow-red),   transparent 70%),
    var(--bg-3);
}

.carousel { position: relative; }
.carousel-viewport {
  display: flex; gap: var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.carousel-viewport::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: grid; grid-template-rows: auto auto; gap: var(--s-5);
  /* Cara con luz cenital + labio especular de 1px, apoyada sobre el piso iluminado. */
  background: linear-gradient(180deg, rgba(247,230,180,.045), transparent 42%), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-4);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(247,230,180,.06);
}

/* El afiche NUNCA se recorta: lleva fecha, hora y precio como arte.
   Placa cuadrada (1:1) para que los afiches cuadrados la llenen exacto,
   sin espacio muerto. Si un afiche viene con otra proporción, se contiene
   sobre el fondo desenfocado igual. */
.slide-media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--plate); padding: var(--s-3);
}
.slide-media > picture > img,
.slide-media > img:not(.slide-bg) {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: contain;
}
.slide-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.2);
  filter: blur(26px) brightness(.40) saturate(1.15);
}

.slide-caption { position: relative; padding: var(--s-2) var(--s-2) var(--s-3); max-width: 32em; }
/* Perforacion de entrada en la costura poster/texto. */
.slide-caption::before {
  content: ""; position: absolute; top: calc(var(--s-5) * -.5); left: 0; right: 0; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
.slide-tag {
  position: relative; overflow: hidden;
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  /* Chapa dorada clara (no el foil completo): mantiene el brillo metalico
     pero deja el texto sobre el rango claro (gold-ink sobre gold-2 = 10.7:1). */
  color: var(--gold-ink);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-2) 62%);
  padding: .5em 1.1em; border-radius: var(--radius-pill);
  margin-bottom: var(--s-3);
}
.slide-caption h3 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: var(--fs-h3); color: var(--cream);
  margin: 0 0 var(--s-2);
}
/* La fecha, grabada como una linea de marquesina (Cinzel = versales). */
.slide-when {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-sm); letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  color: var(--gold-2); margin: 0 0 var(--s-1);
}
.slide-when::before {
  content: ""; flex: 0 0 auto; width: 18px; height: 1px; background: var(--gold);
}
/* El precio, en la voz de la carta (Cormorant), no en letra chica. */
.slide-price {
  font-family: var(--font-serif); font-weight: 600;
  font-size: var(--fs-lead);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--cream); margin: 0 0 var(--s-3);
}
.slide-caption p { color: var(--cream-2); margin: 0 0 var(--s-4); }
.slide-caption .btn { font-size: .8rem; padding: .9em 1.5em; }

/* La funcion en cartel HOY: halo dorado (nunca rojo) + bombita "on air".
   El duenio mueve la clase slide--live junto con el afiche cuando pasa la fecha. */
.slide--live {
  border-color: var(--line-strong);
  box-shadow:
    var(--shadow-1), inset 0 1px 0 rgba(247,230,180,.06),
    0 0 0 1px var(--line), 0 22px 60px rgba(192,143,60,.14);
}
.slide--live .slide-tag { padding-left: 1.9em; }
.slide--live .slide-tag::before {
  content: ""; position: absolute; left: .9em; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-hi); box-shadow: 0 0 5px 1px rgba(255,250,235,.9);
}

/* Función que YA PASÓ: cartel distinto. El afiche se atenúa, el tag pasa a
   gris "Ya pasó" (sin foil ni destello) y el CTA se vuelve secundario (contorno,
   no el verde de reserva). initAgendaStatus() las reordena al final. */
.slide--past .slide-media picture img { filter: grayscale(.55) brightness(.58); }
.slide--past .slide-bg { filter: blur(26px) brightness(.26) grayscale(.5); }
.slide--past .slide-caption h3 { color: var(--cream-2); }
.slide--past .slide-when { color: var(--muted); }
.slide--past .slide-when::before { background: var(--muted); }
.slide--past .slide-price,
.slide--past .slide-caption p { color: var(--muted-2); }
.slide--past .slide-tag {
  background: var(--panel-2); color: var(--muted);
  border: 1px solid var(--line); box-shadow: none;
}
.slide--past .slide-tag::after { display: none; }
.slide--past .btn-wa {
  background: transparent; color: var(--cream);
  border: 1px solid var(--line-strong); box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .slide--past .btn-wa:hover { border-color: var(--gold); color: var(--gold-2); }
}

/* La funcion actual "pasa al frente": el afiche sube apenas y la chapa
   dorada del tag recibe un destello al llegar a ella (ver bloque de motion). */
.slide-media { transition: transform var(--dur-3) var(--ease-out); }
.slide.is-current .slide-media { transform: translateY(-4px); }
.slide-tag::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,250,235,.75) 50%, transparent 58%);
  background-size: 250% 100%; background-position: 150% 0;
}

.carousel-btn {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 3;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(11,9,8,.6); backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  color: var(--gold-2); cursor: pointer;
  transition: background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.carousel-btn.prev { left: calc(var(--gutter) * -1 + 4px); }
.carousel-btn.next { right: calc(var(--gutter) * -1 + 4px); }
.carousel-btn:active { background: var(--gold); color: var(--gold-ink); }
.carousel-btn[disabled] { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .carousel-btn:hover { background: var(--gold); color: var(--gold-ink); }
}
@media (max-width: 639px) { .carousel-btn { display: none; } }

.carousel-dots { display: flex; justify-content: center; gap: 0; margin-top: var(--s-5); }
.dot {
  width: 44px; height: 44px; padding: 0; border: 0; background: none;
  cursor: pointer; display: grid; place-items: center;
}
.dot::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: rgba(242,236,225,.45);
  transition: background var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.dot[aria-current="true"]::after { background: var(--gold); transform: scale(1.35); }

@media (min-width: 840px) {
  .slide {
    grid-template-rows: none;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    align-items: start;
    gap: var(--space-block);
    padding: var(--s-6);
    box-shadow: var(--shadow-2), inset 0 1px 0 rgba(247,230,180,.06);
  }
  .slide-caption { padding-top: var(--s-2); }
  /* La perforacion pasa a vertical, en la separacion de columnas. */
  .slide-caption::before {
    top: 0; bottom: 0; left: calc(var(--space-block) * -.5); right: auto;
    width: 1px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px);
  }
  .slide--live {
    box-shadow:
      var(--shadow-2), inset 0 1px 0 rgba(247,230,180,.06),
      0 0 0 1px var(--line), 0 26px 70px rgba(192,143,60,.16);
  }
}

/* ---------------------------------------------------------
   8. TU EVENTO
   --------------------------------------------------------- */
.tu-evento {
  background:
    radial-gradient(90% 46% at 50% 0%, var(--glow-amber), transparent 72%),
    var(--bg-2);
}

/* El alquiler del salon = una oferta con peso editorial, no un parrafo suelto:
   copy a un lado, la propuesta enmarcada como ticket al otro. */
.ev-block { text-align: center; max-width: 44em; margin-inline: auto; }
.ev-ticket {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--s-5); padding: var(--s-6);
}
.ev-price {
  margin: 0; text-align: center;
  font-size: var(--fs-body); color: var(--cream-2); line-height: var(--lh-lead);
}
@media (min-width: 840px) {
  .ev-block {
    max-width: none; text-align: left;
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: var(--space-block); align-items: center;
  }
  .ev-copy .section-sub { margin-inline: 0; }
}

/* ---------------------------------------------------------
   9. EL ESPACIO
   --------------------------------------------------------- */
.espacio {
  background:
    radial-gradient(100% 42% at 50% 118%, var(--glow-red-soft), transparent 72%),
    var(--bg);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-grid);
  margin-bottom: var(--space-module);
}
/* Mosaico: una foto protagonista 2x2 rompe la matriz de fichas iguales.
   Estrictamente dentro de >=640 para no tocar la grilla 2-up del celular. */
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, minmax(0,1fr)); grid-auto-flow: dense; }
  .g-item--feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .g-item--feature img { object-position: 50% 45%; }
}

.g-item {
  position: relative; margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden; border-radius: var(--radius);
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
}
/* Candilejas: luz dorada de piso que sube en la foto al pasar el mouse. */
.g-item::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(192,143,60,.20), transparent);
  opacity: 0; transform: translateY(22%);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.g-item picture { display: block; width: 100%; height: 100%; }
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
  transition: transform var(--dur-3) var(--ease-out);
}
.g-item--bn img { filter: sepia(.38) saturate(1.15) contrast(1.05); }
.g-item::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 44%, rgba(8,6,5,.86));
}
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: var(--s-5) var(--s-3) var(--s-3);
  font-weight: 500; font-size: var(--fs-micro);
  letter-spacing: .14em; text-transform: uppercase; color: var(--cream);
}
@media (hover: hover) and (pointer: fine) {
  .g-item:hover img { transform: scale(1.05); }
  .g-item:hover::before { opacity: 1; transform: none; }
  .g-item figcaption {
    opacity: .88; transform: translateY(5px);
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
  }
  .g-item:hover figcaption { opacity: 1; transform: none; }
}

/* --- Caja-carrusel: varias fotos se funden en la misma caja y, al hacer
   click, abren el visor grande. Patrón reutilizable para otras cajas. --- */
.g-item--gallery { cursor: zoom-in; }
.g-frames { position: absolute; inset: 0; z-index: 0; }
.g-frames picture {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity var(--dur-4) var(--ease-out);
}
.g-frames picture.is-shown { opacity: 1; }        /* la 1ª ya viene con la clase: se ve sin JS */
.g-frames img { width: 100%; height: 100%; object-fit: cover; }

.g-zoom {
  position: absolute; top: var(--s-3); right: var(--s-3); z-index: 2;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; color: var(--gold-2); pointer-events: none;
  background: rgba(11,9,8,.55); backdrop-filter: blur(4px);
  border: 1px solid var(--line-strong);
}
.g-count {
  position: absolute; bottom: var(--s-3); right: var(--s-3); z-index: 2;
  font-family: var(--font-display); font-size: var(--fs-micro); letter-spacing: .1em;
  color: var(--cream); pointer-events: none; font-variant-numeric: tabular-nums;
  background: rgba(11,9,8,.55); backdrop-filter: blur(4px);
  padding: .25em .6em; border-radius: var(--radius-pill); border: 1px solid var(--line);
}
.g-open {
  position: absolute; inset: 0; z-index: 3;
  background: none; border: 0; cursor: zoom-in;
}
/* Foco hacia adentro: la caja tiene overflow:hidden y recortaría el anillo. */
.g-open:focus-visible { outline: 3px solid var(--gold-2); outline-offset: -3px; }

/* Fichas con video: el salón en movimiento, silencioso y en loop.
   Comparte el marco/degradé/figcaption de .g-item; solo cambia el medio. */
.g-item--video .g-video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  background: var(--panel-2);
}
.g-item--video::before { z-index: 2; } /* la luz de candilejas queda sobre el video */


.services {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.services li {
  background: linear-gradient(180deg, rgba(247,230,180,.04), transparent 45%), var(--panel);
  box-shadow: inset 0 1px 0 rgba(247,230,180,.05);
  padding: var(--s-5);
  display: flex; gap: var(--s-4); align-items: flex-start;
  transition: background var(--dur-2) var(--ease-out);
}
.services h4 {
  font-family: var(--font-sans); font-weight: 600;
  font-size: var(--fs-h4); color: var(--cream); margin: 0 0 var(--s-1);
}
.services p { font-size: var(--fs-sm); color: var(--muted); }
.svc-ico, .h-ico { flex: 0 0 auto; width: 24px; height: 24px; color: var(--gold-2); }
@media (hover: hover) and (pointer: fine) {
  .services li:hover { background: linear-gradient(180deg, rgba(247,230,180,.055), transparent 45%), var(--panel-2); }
}
@media (min-width: 640px)  { .services { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* ---------------------------------------------------------
   10. NOSOTROS
   --------------------------------------------------------- */
.presentacion {
  background:
    radial-gradient(90% 46% at 50% 0%, var(--glow-amber), transparent 72%),
    var(--bg-2);
}

.pres-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: var(--space-block);
  margin-bottom: var(--space-module);
}
.pres-text p:last-child { color: var(--muted); }
/* Una sola versal dorada abre la nota de la familia, como un programa. */
.pres-text .lead::first-letter {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 3.1em; line-height: .8;
  float: left; margin: .04em .14em -.06em 0;
  color: var(--gold-2);
}
/* El logo se funde con el fondo: sin recuadro ni borde, difuminado en el canto.
   La máscara usa `closest-side`, así el 100% equivale al radio del círculo
   del logo. Las letras doradas llegan al 88% de ese radio (medido sobre la
   imagen), por eso el degradado arranca recién en 90%: se difumina el canto
   del disco sin tocar la tipografía. */
/* El canto del disco (luminancia 17,4) y el fondo de la sección (16,1) son
   casi el mismo negro, así que el contorno no se distingue solo. Se resuelve
   en tres capas: máscara ceñida al círculo para que no haya recuadro ni corte
   seco, un aro dorado tenue que dibuja el contorno, y un halo cálido afuera
   que despega el disco del fondo. */
.pres-figure {
  margin: 0;
  aspect-ratio: 1 / 1;
  position: relative;
  /* La imagen es un lienzo de 720px con el círculo (radio 320) centrado, o sea
     el canto cae en el 88,89% del radio de la caja. El degradado se centra ahí:
     entra opaco antes del canto y termina transparente después, así el borde se
     difumina en vez de cortarse, y el margen negro sobrante desaparece. */
  -webkit-mask-image: radial-gradient(circle closest-side at 50% 50%,
          #000 0 89%, rgba(0,0,0,.55) 93%, transparent 99%);
          mask-image: radial-gradient(circle closest-side at 50% 50%,
          #000 0 89%, rgba(0,0,0,.55) 93%, transparent 99%);
}
.pres-figure picture { display: block; width: 100%; height: 100%; }
.pres-figure img { width: 100%; height: 100%; object-fit: cover; }

/* Aro apoyado exactamente sobre el canto del círculo (inset 5,56% = radio 88,89%)
   más un halo cálido, porque el canto y el fondo casi no se distinguen solos. */
.pres-figure::after {
  content: "";
  position: absolute;
  inset: 5.56%;
  border-radius: 50%;
  border: 1px solid rgba(232, 200, 126, .55);
  box-shadow:
    0 0 6px 1px rgba(247, 230, 180, .30),   /* filo, para que el aro se lea nítido */
    0 0 20px 3px rgba(232, 200, 126, .24),  /* halo cercano */
    0 0 52px 12px rgba(192, 143, 60, .18),  /* halo amplio hacia el fondo */
    inset 0 0 26px rgba(232, 200, 126, .10),
    inset 0 0 60px rgba(192, 143, 60, .07);
  pointer-events: none;
}

@media (min-width: 840px) {
  .pres-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

.highlights {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.highlights li {
  background: linear-gradient(180deg, rgba(247,230,180,.04), transparent 45%), var(--panel);
  box-shadow: inset 0 1px 0 rgba(247,230,180,.05);
  display: flex; flex-direction: row; align-items: center;
  gap: var(--s-4); text-align: left;
  padding: var(--s-4) var(--s-5);
}
.h-title {
  font-weight: 600; font-size: var(--fs-h4);
  color: var(--cream); line-height: var(--lh-title);
}
.h-sub { font-size: var(--fs-sm); color: var(--muted); display: block; }
.highlights li > span:not(.h-title):not(.h-sub) { flex: 0 0 auto; }

@media (min-width: 640px) {
  .highlights { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .highlights li {
    flex-direction: column; align-items: center; text-align: center;
    gap: var(--s-2); padding: var(--s-6) var(--s-4);
  }
}
@media (min-width: 1000px) { .highlights { grid-template-columns: repeat(4, minmax(0,1fr)); } }

/* ---------------------------------------------------------
   11. CONTACTO
   --------------------------------------------------------- */
.contacto {
  background:
    radial-gradient(100% 40% at 50% 118%, var(--glow-red-soft), transparent 74%),
    var(--bg-2);
}

.contacto-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: var(--space-block);
}
.contacto-text .btn-wa { margin-block: var(--s-2) var(--s-6); }

.contact-list {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.contact-list li {
  background: linear-gradient(180deg, rgba(247,230,180,.04), transparent 45%), var(--panel);
  box-shadow: inset 0 1px 0 rgba(247,230,180,.05);
  padding: var(--s-3) var(--s-4);
  display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); align-items: baseline;
}
.c-label {
  --track: .14em;
  flex: 0 0 110px;
  font-family: var(--font-display);
  font-size: var(--fs-micro); letter-spacing: var(--track);
  margin-inline-end: calc(var(--track) * -1);
  text-transform: uppercase; color: var(--gold);
}
.c-value { color: var(--cream-2); font-size: var(--fs-body); font-variant-numeric: tabular-nums; }
.c-link {
  color: var(--gold-2);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}
.c-value-tel, .map-link, .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) and (pointer: fine) { .c-link:hover { color: var(--cream); } }
@media (max-width: 519px) { .c-label { flex-basis: 100%; } }

.map-wrap { position: relative; overflow: hidden; }
.map-frame {
  width: 100%; aspect-ratio: 4 / 3; border: 0; display: block;
  filter: invert(.92) hue-rotate(185deg) saturate(.55) brightness(.92) contrast(1.08);
}
.map-wrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(180deg, rgba(142,20,32,.12), rgba(11,9,8,.34));
  mix-blend-mode: multiply;
}
.map-link {
  margin-top: var(--s-2);
  font-size: var(--fs-micro); letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-2);
}
/* En touch el iframe atrapa el scroll vertical justo antes del footer */
@media (hover: none) {
  .map-frame { pointer-events: none; }
  .map-wrap.is-active .map-frame { pointer-events: auto; }
}

@media (min-width: 840px) {
  .contacto-grid { grid-template-columns: minmax(0,1.2fr) minmax(0,0.8fr); align-items: stretch; }
  .contacto-map { display: flex; flex-direction: column; }
  .map-wrap { flex: 1 1 auto; min-height: 340px; }
  .map-frame { height: 100%; aspect-ratio: auto; }
}

/* ---------------------------------------------------------
   12. FOOTER + WHATSAPP FLOTANTE
   --------------------------------------------------------- */
.site-footer {
  background: var(--bg-3); border-top: 1px solid var(--line);
  padding-block: var(--space-block);
  padding-bottom: calc(var(--space-block) + 76px + env(safe-area-inset-bottom, 0px));
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--s-5); text-align: center;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); line-height: 1; }
/* La regla de marquesina bajo el wordmark del footer no necesita el margen
   superior que trae .brand-sub por defecto (el gap ya la separa). */
.footer-brand .brand-sub { margin-top: 0; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-5); }
.footer-nav a {
  --track: .14em;
  font-family: var(--font-display);
  font-size: var(--fs-micro); letter-spacing: var(--track);
  margin-inline-end: calc(var(--track) * -1);
  text-transform: uppercase; color: var(--muted);
  transition: color var(--dur-1) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .footer-nav a:hover { color: var(--gold-2); } }
.footer-copy { font-size: var(--fs-micro); color: var(--muted-2); font-variant-numeric: tabular-nums; }

/* Boleteria: en el celular es el circulo verde de siempre; desde 480px se
   abre como una pastilla-ticket con aros dorados y la palabra RESERVAS.
   El verde queda (semantica WhatsApp); lo dorado es acento, no un estado. */
.wa-float {
  position: fixed; z-index: 70;
  right: max(var(--s-4), var(--gutter));
  bottom: calc(max(var(--s-4), var(--gutter)) + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  color: #fff; overflow: hidden;
  /* Verde profundo para que "Reservas" en blanco pase AA (6.3:1). */
  background: linear-gradient(140deg, #157a41, var(--wa-deep));
  border: 1px solid rgba(232,200,126,.28);
  box-shadow: 0 10px 26px rgba(13,111,60,.34);
  transition: transform var(--dur-2) var(--ease-out);
}
.wa-float svg { position: relative; z-index: 1; }
.wa-label { display: none; }
/* Destello dorado que recorre la pastilla 3 veces y descansa. */
.wa-float::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(247,230,180,.5) 50%, transparent 58%);
  background-size: 250% 100%; background-position: 150% 0;
  animation: waGlint 2.6s var(--ease-out) 3;
}
@keyframes waGlint {
  from { background-position: 150% 0; }
  to   { background-position: -150% 0; }
}
@media (min-width: 480px) {
  .wa-float {
    width: auto; height: 56px; border-radius: var(--radius-pill);
    padding: 0 20px 0 16px;
    box-shadow: 0 10px 26px rgba(13,111,60,.34),
                0 0 0 1px var(--wa-deep), 0 0 0 4px var(--bg), 0 0 0 5px var(--line);
  }
  .wa-label {
    display: inline; position: relative; z-index: 1;
    font-family: var(--font-sans); font-weight: 600;
    font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  }
}
@media (hover: hover) and (pointer: fine) { .wa-float:hover { transform: scale(1.04); } }

/* ---------------------------------------------------------
   12b. VISOR DE FOTOS (LIGHTBOX)
   --------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; justify-items: center;
  gap: clamp(4px, 2vw, 20px);
  padding: clamp(56px, 9vw, 76px) clamp(8px, 3vw, 28px);
  background: rgba(6,4,3,.93); backdrop-filter: blur(10px);
}
.lightbox[hidden] { display: none; }

.lb-stage {
  grid-column: 2; margin: 0; min-width: 0;
  display: flex; align-items: center; justify-content: center;
}
.lb-img {
  max-width: 100%; max-height: 84vh; width: auto; height: auto; object-fit: contain;
  background: var(--plate);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}

.lb-btn {
  width: 48px; height: 48px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background: rgba(11,9,8,.6); backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong); color: var(--gold-2); cursor: pointer;
  transition: background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.lb-btn:active { background: var(--gold); color: var(--gold-ink); }
.lb-btn[disabled] { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .lb-btn:not([disabled]):hover { background: var(--gold); color: var(--gold-ink); }
}
.lb-prev { grid-column: 1; }
.lb-next { grid-column: 3; }
.lb-close { position: absolute; top: clamp(12px, 3vw, 24px); right: clamp(12px, 3vw, 24px); z-index: 2; }
.lb-counter {
  position: absolute; bottom: clamp(12px, 3vw, 24px); left: 50%; transform: translateX(-50%);
  margin: 0; font-family: var(--font-display); letter-spacing: .14em;
  font-size: var(--fs-sm); color: var(--gold-2); font-variant-numeric: tabular-nums;
}
body.lb-open { overflow: hidden; }

@media (max-width: 479px) {
  .lb-btn { width: 42px; height: 42px; }
  .lb-img { max-height: 80vh; }
}

/* ---------------------------------------------------------
   13. REVEAL (solo si hay JS)
   --------------------------------------------------------- */
.js .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------
   13b. LUZ VIAJERA — un solo idioma de movimiento
   Carga teatral + spotlight del carrusel + brillo del CTA.
   Todo detras de no-preference; el reposo siempre es visible.
   --------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* Carga: se prenden las luces (follow-spot que se abre). */
  .js .hero-veil { animation: houseLights 1100ms var(--ease-out) both; }
  /* Un destello de foil recorre el wordmark, apenas despues. */
  .js .wm-text { animation: foilRake 1000ms var(--ease-out) 650ms both; }
  /* Carrusel: la chapa dorada de la funcion actual recibe el destello. */
  .slide.is-current .slide-tag::after { animation: tagGlint 900ms var(--ease-out) 1; }
}
@keyframes houseLights {
  from { opacity: 1; transform: scale(1.12); }
  to   { opacity: 0; transform: scale(1); }
}
@keyframes foilRake {
  from { background-position: -80% 0, 0 0; }
  to   { background-position: 170% 0, 0 0; }
}
@keyframes tagGlint {
  from { background-position: 150% 0; }
  to   { background-position: -150% 0; }
}
/* Hover: el mismo brillo cruza el CTA de WhatsApp. */
@media (hover: hover) and (pointer: fine) {
  .btn-wa:hover::after { animation: tagGlint 700ms var(--ease-out) 1; }
}

/* ---------------------------------------------------------
   14. PREFERENCIAS / MODOS
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero-img { animation: none !important; transform: none !important; }
  .carousel-viewport { scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .brand-mark, .wm-text {
    background: none; color: CanvasText; -webkit-text-fill-color: CanvasText;
  }
  .slide-tag { background: none; color: CanvasText; border: 1px solid CanvasText; }
  :focus-visible { outline: 3px solid Highlight; }
  .nav-toggle span { background: CanvasText; forced-color-adjust: none; }

  /* La marquesina de luces degrada a una linea solida. */
  .wm-rule, .section + .section::before {
    height: 1px; background: none; filter: none;
    border-top: 1px solid CanvasText;
    -webkit-mask: none; mask: none;
  }
  /* Capas puramente atmosfericas / decorativas: fuera. */
  body::before, body::after,
  .hero-veil, .g-item::before, .eyebrow::before,
  .slide-tag::after, .btn-wa::after, .wa-float::after,
  .slide--live .slide-tag::before,
  .slide-caption::before { display: none; }
}
