/* ==========================================================
   Sauce Boyz — Barbería en Luján
   Celeste y blanco + azul marino del logo
   ========================================================== */
:root {
  --celeste: #74acdf;
  --celeste-soft: #dcebf8;
  --ice: #f1f7fd;
  --white: #ffffff;
  --navy: #0a2d41;
  --navy-2: #12405c;
  --steel: #2a6496;      /* celeste oscuro para texto sobre blanco (AA) */
  --sun: #f2b33d;        /* sol: solo en el premio de la tarjeta */
  --ink: #0a2d41;
  --muted: #3f5a6c;
  --line: #cfe1f1;

  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 18px 40px -18px rgba(10, 45, 65, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font: 500 17px/1.6 var(--f-body);
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--celeste); color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.reels :focus-visible, .footer :focus-visible, .pole :focus-visible { outline-color: var(--white); }
html { scrollbar-color: var(--celeste) var(--ice); }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

/* ---------- Tipografía ---------- */
.h2 {
  font: 900 clamp(2.6rem, 6vw, 4.6rem)/.92 var(--f-display);
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin: 0 0 .4em;
  text-wrap: balance;
}
.h2--light { color: var(--white); }

.link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--celeste);
  transition: text-decoration-color .3s, color .3s;
}
.link:hover { color: var(--steel); text-decoration-color: currentColor; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.5em;
  border-radius: 999px; border: 2px solid transparent;
  font: 800 1rem/1 var(--f-body); letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s var(--ease), border-color .3s;
}
.btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--navy { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.btn--navy::before { /* rayas de poste que pasan al hacer hover */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: repeating-linear-gradient(-45deg, rgba(116, 172, 223, .35) 0 10px, rgba(116, 172, 223, 0) 10px 20px);
  background-size: 28.28px 28.28px; animation: pole .9s linear infinite;
  transition: opacity .3s;
}
.btn--navy:hover::before { opacity: 1; }
.btn--navy:hover { background: var(--navy-2); box-shadow: 0 22px 44px -18px rgba(10, 45, 65, .5); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--celeste { background: var(--celeste); color: var(--navy); }
.btn--celeste:hover { background: var(--white); }
.btn--sm { min-height: 44px; padding: 0 1.15em; font-size: .92rem; }
.btn--xl { min-height: 64px; padding: 0 2em; font-size: 1.15rem; }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: none; place-items: center;
  background: var(--white);
  pointer-events: none;
}
.intro__pole {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, var(--celeste) 0 34px, var(--white) 34px 68px, var(--navy) 68px 76px, var(--white) 76px 110px);
  background-size: 155.56px 155.56px;
  animation: pole 1.2s linear infinite;
  clip-path: inset(0 0 0 0);
}
.intro__sb { position: relative; width: 92px; height: auto; filter: drop-shadow(0 10px 24px rgba(10, 45, 65, .3)); }
.js .intro { display: grid; animation: intro-failsafe 0s linear 4s forwards; }
@keyframes intro-failsafe { to { visibility: hidden; } }
.is-loaded .intro { visibility: hidden; }
@keyframes pole { to { background-position: 155.56px 0; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter);
  transition: background .4s, box-shadow .4s, padding .4s var(--ease);
}
.nav.is-scrolled { background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding-block: 10px; }
.nav__logo img { width: 128px; height: auto; transition: width .4s var(--ease); }
.nav.is-scrolled .nav__logo img { width: 110px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-weight: 700; font-size: .95rem; text-decoration: none; position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--celeste); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ice); }
.hero__pin { position: relative; min-height: 100svh; overflow-x: clip; overflow-y: visible; /* las luces siguen hacia abajo, detrás de las cintas */ display: flex; align-items: center; }
.hero__pin::after { /* el fondo celeste claro del hero baja y se funde en blanco detrás de las cintas */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 34vw; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--ice), var(--white));
}
.hero__pin::before { /* foco celeste detrás de la máquina */
  content: ""; position: absolute; width: min(70vw, 900px); aspect-ratio: 1;
  right: -6vw; top: 50%; translate: 0 -50%;
  background: radial-gradient(circle, rgba(116, 172, 223, .55) 0%, rgba(116, 172, 223, .18) 42%, rgba(116, 172, 223, 0) 70%);
}
/* El área de la máquina: reserva el lugar y recibe el arrastre. La máquina se dibuja en .clipper-canvas */
.hero__stage { position: absolute; inset: 0 0 0 38%; z-index: 1; touch-action: pan-y; cursor: grab; }
.hero__stage:active { cursor: grabbing; }
.hero__fallback { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 180px; height: auto; }
.has-webgl .hero__fallback { display: none; }
.clipper-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 40; pointer-events: none; }
.clipper-canvas { visibility: hidden; }
.has-webgl .clipper-canvas { visibility: visible; }
.no-webgl .hero__fallback { display: block; position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 180px; height: auto; }

.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; padding-block: 120px 80px; pointer-events: none; }
.hero__copy, .hero__specs { pointer-events: auto; }
.hero__copy { max-width: 600px; }
.hero__title {
  margin: 0 0 22px;
  font: 900 clamp(4rem, 9vw, 6rem)/.86 var(--f-display);
  text-transform: uppercase; letter-spacing: -.015em; color: var(--navy);
}
/* padding arriba para que no se corten las tildes (LUJÁN) al enmascarar */
.hero__title .line { display: block; overflow: hidden; padding: .12em 0 .05em; margin-top: -.12em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line--big { font-size: 1.32em; line-height: .84; }

/* Barber pole DENTRO de las letras: rayas que bajan en diagonal, contorno azul marino y sombra sólida */
.hl, .pop {
  --s1: var(--celeste); --s2: var(--white); --s3: var(--navy); --edge: var(--navy);
  font-style: normal;
  background: repeating-linear-gradient(-45deg, var(--s1) 0 .13em, var(--s2) .13em .26em, var(--s3) .26em .32em, var(--s2) .32em .45em);
  background-size: .6364em .6364em; /* período diagonal × √2: el bucle no salta */
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-stroke: .028em var(--edge);
  filter: drop-shadow(.045em .05em 0 var(--edge));
  animation: pole-text 1.4s linear infinite;
  padding-right: .06em;
}
@keyframes pole-text { to { background-position: .6364em 0; } }
/* sobre azul marino: rayas claras (celeste/blanco/sol) para que se lea */
.pop--dark { --s1: var(--celeste); --s2: var(--white); --s3: var(--sun); --edge: var(--white); filter: drop-shadow(.045em .05em 0 var(--steel)); }
.pop--celeste { --s1: var(--white); --s2: var(--celeste-soft); --s3: var(--sun); }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hl, .pop { color: var(--steel); background: none; -webkit-text-stroke: 0; }
}
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 40ch; margin: 0 0 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__hint { display: flex; align-items: center; gap: 8px; margin: 26px 0 0; font-size: .85rem; font-weight: 700; color: var(--steel); }
.hero__hint svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hero__specs {
  list-style: none; padding: 0; margin: 0;
  position: absolute; left: 0; top: 50%; translate: 0 -50%;
  display: grid; gap: 14px; width: min(420px, 100%);
  visibility: hidden;
}
.hero__specs li { background: var(--white); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.hero__specs b { display: block; font: 900 1.7rem/1 var(--f-display); text-transform: uppercase; color: var(--navy); margin-bottom: 4px; }
.hero__specs span { color: var(--muted); font-size: .98rem; }

/* ---------- Cintas barber pole (dos, cruzadas) ---------- */
.pole {
  position: relative; z-index: 3; overflow: hidden;
  padding-block: clamp(34px, 5vw, 60px);
  background: none; /* deja ver las luces del hero, que siguen por detrás de las cintas */
}
.pole__band {
  position: relative; z-index: 1; width: 112%; margin-left: -6%;
  border-block: 6px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--celeste) 0 10px, var(--white) 10px 20px) 6;
}
.pole__band--a { background: var(--navy); color: var(--white); rotate: -3deg; z-index: 2; box-shadow: 0 20px 40px -20px rgba(10, 45, 65, .6); }
.pole__band--b { background: var(--celeste); color: var(--navy); rotate: 2.5deg; margin-top: -26px; border-image: repeating-linear-gradient(-45deg, var(--navy) 0 10px, var(--white) 10px 20px) 6; }
.pole__track { display: flex; align-items: center; gap: 32px; width: max-content; padding: 16px 0; animation: marquee 26s linear infinite; }
.pole__track--rev { animation-direction: reverse; animation-duration: 32s; }
.pole span { font: 900 clamp(1.8rem, 3.4vw, 2.6rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.pole i { width: 12px; height: 12px; border-radius: 50%; background: var(--celeste); flex: none; }
.pole__band--b i { background: var(--sun); box-shadow: 0 0 0 2px var(--navy); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Barra de progreso (poste) ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 5px; z-index: 70;
  background: repeating-linear-gradient(-45deg, var(--celeste) 0 8px, var(--white) 8px 16px, var(--navy) 16px 20px, var(--white) 20px 28px);
  background-size: 39.6px 39.6px; animation: pole 1s linear infinite;
  transform-origin: left; transform: scaleX(0);
  box-shadow: 0 1px 0 rgba(10, 45, 65, .15);
}

/* ---------- Manchas de color del hero ---------- */
.hero__blobs { position: absolute; inset: 0; pointer-events: none; }
.hero__blobs span { position: absolute; border-radius: 50%; animation: drift 14s ease-in-out infinite alternate; }
.hero__blobs span:nth-child(1) { width: 46vw; aspect-ratio: 1; left: -14vw; top: -18vw; background: radial-gradient(circle, rgba(116, 172, 223, .45), rgba(116, 172, 223, 0) 68%); }
.hero__blobs span:nth-child(2) { width: 30vw; aspect-ratio: 1; left: 30%; bottom: -14vw; background: radial-gradient(circle, rgba(242, 179, 61, .28), rgba(242, 179, 61, 0) 68%); animation-duration: 18s; animation-delay: -6s; }
.hero__blobs span:nth-child(3) { width: 22vw; aspect-ratio: 1; right: 4vw; top: 6vh; background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 68%); animation-duration: 11s; }
@keyframes drift { to { transform: translate(6vw, 4vh) scale(1.15); } }

/* ---------- Sello giratorio "Sacá tu turno" ---------- */
.badge {
  position: absolute; z-index: 45; right: clamp(20px, 4vw, 60px); bottom: clamp(24px, 6vh, 60px);
  width: 132px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--sun); color: var(--navy); text-decoration: none;
  box-shadow: 0 0 0 4px var(--white), 0 22px 40px -16px rgba(10, 45, 65, .55);
  transition: transform .5s var(--ease), background .3s;
}
.badge:hover { transform: scale(1.08) rotate(-8deg); background: var(--celeste); }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 12s linear infinite; }
.badge__ring text { font: 800 15.5px var(--f-body); letter-spacing: .14em; text-transform: uppercase; fill: currentColor; }
.badge__sb { width: 34px; height: auto; position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Palabras de títulos: suben enmascaradas ---------- */
.wd { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em .04em .06em; margin: -.12em -.04em -.06em; }
.wd > span { display: inline-block; }

/* ---------- Servicios ---------- */
.services { position: relative; z-index: 3; padding: clamp(80px, 12vw, 150px) 0; background: var(--white); }
.services__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.services__intro { position: sticky; top: 110px; }
.services__note { color: var(--muted); max-width: 36ch; margin: 0 0 28px; }
.menu { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.menu__row {
  display: grid; grid-template-columns: 1fr auto 56px; gap: 20px 28px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--line);
  transition: padding .4s var(--ease);
  position: relative;
}
.menu__row::before { /* barrido celeste al pasar */
  content: ""; position: absolute; inset: 6px -4px; border-radius: 18px; z-index: 0;
  background: linear-gradient(100deg, var(--celeste-soft), var(--ice) 70%);
  transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease);
}
.menu__row > * { position: relative; z-index: 1; }
.menu__row:hover { padding-inline: 18px; }
.menu__row:hover::before { transform: scaleX(1); }
.menu__row--star .menu__price { color: var(--steel); }
.menu__row--star .tag { background: var(--sun); animation: wiggle 3.2s var(--ease) infinite; }
@keyframes wiggle { 0%, 82%, 100% { rotate: 0deg; } 86% { rotate: -6deg; } 90% { rotate: 5deg; } 94% { rotate: -3deg; } }
.menu__main h3 { margin: 0 0 6px; font: 900 clamp(1.9rem, 3.2vw, 2.5rem)/1 var(--f-display); text-transform: uppercase; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.menu__main p { margin: 0; color: var(--muted); }
.tag { font: 800 .72rem/1 var(--f-body); font-style: normal; text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; border-radius: 999px; background: var(--celeste); color: var(--navy); }
.menu__meta { display: grid; justify-items: end; gap: 2px; text-align: right; }
.menu__time { font-size: .85rem; font-weight: 700; color: var(--steel); }
.menu__price { font: 900 clamp(2rem, 3.4vw, 2.7rem)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.menu__sena { font-size: .82rem; color: var(--muted); }
.menu__go {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--navy); color: var(--navy); text-decoration: none; background: var(--white);
  transition: background .3s, color .3s;
}
.menu__go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.menu__go::after { content: ""; position: absolute; inset: 0; } /* toda la fila es clickeable */
.menu__go svg { transition: transform .35s var(--ease); }
.menu__row:hover .menu__go { background: var(--navy); color: var(--white); }
.menu__row:hover .menu__go svg { transform: rotate(45deg); }
.menu__go-txt { display: none; }

/* ---------- Trabajos: visor de historias estilo Instagram ---------- */
.works { padding: clamp(80px, 10vw, 130px) 0 clamp(70px, 9vw, 110px); background: #0b1822; color: var(--white); overflow: hidden; }
.works__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.works__head .h2 { margin: 0; color: var(--white); }
.works .link { color: var(--celeste-soft); }
.works .link:hover { color: var(--white); }
.works :focus-visible { outline-color: var(--white); }
.works .pop { --s1: var(--celeste); --s2: var(--white); --s3: var(--sun); --edge: var(--white); filter: drop-shadow(.045em .05em 0 var(--steel)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.stories {
  --w: min(360px, 72vw, calc((100svh - 230px) * 9 / 16));
  --h: calc(var(--w) * 16 / 9);
  position: relative; height: var(--h);
}
/* Sin JS: fila con scroll horizontal */
.stories__stage { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); height: 100%; scrollbar-width: none; }
.sty { flex: 0 0 var(--w); height: var(--h); position: relative; border-radius: 12px; overflow: hidden; background: #1c2a35; scroll-snap-align: center; }
.sty__img { width: 100%; height: 100%; object-fit: cover; }
.sty__ui { position: absolute; inset: auto 0 0; padding: 14px; display: grid; gap: 2px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); font-size: .82rem; }
.stories__chrome, .stories__nav { display: none; }

/* Con JS: la del medio grande y las de los costados achicadas, como en Instagram */
.stories.is-live .stories__stage { display: block; overflow: visible; padding: 0; }
.stories.is-live .sty {
  position: absolute; left: 50%; top: 0; width: var(--w); margin-left: calc(var(--w) / -2);
  transform: translateX(var(--x, 0)) scale(var(--s, 1)); transform-origin: center;
  transition: transform .55s var(--ease), opacity .45s, filter .45s;
  cursor: pointer; opacity: var(--o, 1);
}
.stories.is-live .sty.is-active { cursor: default; z-index: 2; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.stories.is-live .sty:not(.is-active) .sty__img { filter: brightness(.55) saturate(.8); }
.stories.is-live .sty:not(.is-active):hover .sty__img { filter: brightness(.75); }
/* En los costados, Instagram muestra el avatar y el nombre al centro */
.stories.is-live .sty__ui { inset: 0; place-content: center; justify-items: center; text-align: center; background: none; font-size: 1.9rem; gap: 6px; }
.stories.is-live .sty__ui::before { content: ""; width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--white) url("assets/brand/sb.svg") center / 60% no-repeat; box-shadow: 0 0 0 .14em #0b1822, 0 0 0 .26em var(--sun); margin-bottom: 4px; }
.stories.is-live .sty__ui span { display: none; }
.stories.is-live .sty.is-active .sty__ui { display: none; }

.stories.is-live .stories__chrome {
  display: flex; flex-direction: column; justify-content: space-between;
  position: absolute; left: 50%; top: 0; width: var(--w); height: var(--h); margin-left: calc(var(--w) / -2);
  z-index: 3; pointer-events: none; padding: 10px 12px 12px; border-radius: 12px;
  background: linear-gradient(rgba(0, 0, 0, .45), transparent 22%, transparent 78%, rgba(0, 0, 0, .5));
}
.stories__chrome > * { pointer-events: auto; }
.stories__bars { display: flex; gap: 4px; }
.stories__bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.stories__bars i b { display: block; height: 100%; width: 100%; background: var(--white); transform-origin: left; transform: scaleX(0); }
.stories__bars i.is-done b { transform: scaleX(1); }
.stories__bars i.is-on b { animation: sty-fill var(--dur, 5s) linear forwards; }
.stories.is-held .stories__bars i.is-on b { animation-play-state: paused; }
@keyframes sty-fill { to { transform: scaleX(1); } }
.stories__top { display: flex; align-items: center; gap: 10px; margin: 10px 0 auto; }
.stories__avatar { width: 34px; height: 34px; padding: 5px; border-radius: 50%; background: var(--white); object-fit: contain; box-shadow: 0 0 0 2px #0b1822, 0 0 0 4px var(--sun); }
.stories__who { margin: 0; flex: 1; min-width: 0; display: grid; line-height: 1.2; font-size: .82rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.stories__who span { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stories__icon { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--white); }
.stories__icon:hover { background: rgba(255, 255, 255, .15); }
.stories__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.stories__icon .i-play { display: none; fill: currentColor; stroke: none; }
.stories__icon[aria-pressed="true"] .i-play { display: block; }
.stories__icon[aria-pressed="true"] .i-pause { display: none; }
.stories__bottom { display: flex; align-items: center; gap: 8px; }
.stories__reply {
  flex: 1; min-height: 44px; display: flex; align-items: center; padding: 0 16px;
  border: 1.5px solid rgba(255, 255, 255, .75); border-radius: 999px;
  color: var(--white); text-decoration: none; font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
  transition: background .3s, color .3s;
}
.stories__reply:hover { background: var(--white); color: var(--navy); }
.stories__like[aria-pressed="true"] { color: #ff3b5c; }
.stories__like[aria-pressed="true"] svg { fill: currentColor; animation: like-pop .4s var(--ease); }
@keyframes like-pop { 50% { transform: scale(1.35); } }

.stories.is-live .stories__nav {
  display: grid; place-items: center; position: absolute; top: 50%; z-index: 4;
  width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: #0b1822;
  transition: transform .3s var(--ease), background .3s;
}
.stories__nav:hover { transform: scale(1.08); background: var(--white); }
.stories__nav[disabled] { opacity: 0; pointer-events: none; }
.stories__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.stories__nav--prev { left: calc(50% - var(--w) / 2 - 60px); }
.stories__nav--next { left: calc(50% + var(--w) / 2 + 16px); }

/* ---------- Historia ---------- */
.story { padding: clamp(80px, 12vw, 150px) 0; background: var(--white); }
.story__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 100px); align-items: center; }
.story__photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5.4; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; }
.story__quote {
  margin: 0 0 28px;
  font: 800 clamp(2rem, 4.2vw, 3.4rem)/1.02 var(--f-display);
  text-transform: uppercase; text-wrap: balance;
}
.story__quote .w { color: #6f97bd; transition: color .2s; } /* 3:1 sin leer, azul marino al leer */
.story__quote .w.is-on { color: var(--navy); }
.story__text p { color: var(--muted); max-width: 52ch; margin: 0 0 22px; font-size: 1.05rem; }

/* ---------- Reels ---------- */
.reels { padding: clamp(80px, 11vw, 140px) 0; background: var(--navy); color: var(--white); overflow: hidden; }
.reels__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.reels__head .h2 { margin: 0; max-width: 14ch; }
.reels__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); }
.phone {
  position: relative; display: block; text-decoration: none;
  aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden;
  background: var(--navy-2);
  box-shadow: 0 0 0 1px rgba(116, 172, 223, .28), 0 30px 60px -30px rgba(0, 0, 0, .7);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.phone:nth-child(even) { margin-top: 44px; }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.phone:hover { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--celeste), 0 36px 70px -30px rgba(0, 0, 0, .8); }
.phone__cap {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  padding: 12px 14px; border-radius: 16px;
  background: rgba(10, 45, 65, .82); backdrop-filter: blur(8px);
  font-size: .86rem; font-weight: 700; line-height: 1.3;
}

.reels__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pausebtn { min-height: 44px; padding: 0 1.1em; border-radius: 999px; border: 1.5px solid rgba(220, 235, 248, .5); background: transparent; color: var(--celeste-soft); font-weight: 700; font-size: .88rem; cursor: pointer; transition: background .3s, color .3s; }
.pausebtn:hover, .pausebtn[aria-pressed="true"] { background: var(--celeste-soft); color: var(--navy); }
.is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }

/* ---------- Fidelidad ---------- */
.loyalty { padding: clamp(80px, 11vw, 140px) 0; background: var(--celeste); position: relative; overflow: hidden; }
.loyalty::before { /* rayas suaves que se deslizan */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .16) 0 40px, rgba(255, 255, 255, 0) 40px 80px);
  background-size: 113.14px 113.14px; animation: pole 6s linear infinite;
}
.loyalty__grid { position: relative; }
.loyalty__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.loyalty__text p { font-size: 1.12rem; max-width: 40ch; margin: 0; }
.loyalty__text b { font-weight: 800; }
.card {
  background: var(--white); border-radius: 28px; padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 40px 70px -35px rgba(10, 45, 65, .55);
  rotate: -3deg;
}
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.card__top img { width: 150px; height: auto; }
.card__top span { font: 800 .8rem/1 var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--steel); }
.card__slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.6vw, 16px); }
.card__slots li {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  border: 2px dashed var(--celeste);
  display: grid; place-items: center; text-align: center;
}
.card__slots li::before { /* sello SB */
  content: ""; position: absolute; inset: 14%;
  background: url("assets/brand/sb.svg") center / contain no-repeat;
  opacity: 0; transform: scale(1.6) rotate(-18deg);
  transition: opacity .3s, transform .5s var(--ease);
}
.card__slots li.is-stamped { border-style: solid; border-color: var(--navy); background: var(--ice); }
.card__slots li.is-stamped::before { opacity: 1; transform: scale(1) rotate(-12deg); }
.card__slots small { position: relative; z-index: 1; font: 800 .68rem/1.15 var(--f-body); text-transform: uppercase; color: var(--navy); padding: 0 6px; }
.card__slots li.is-prize { border-color: var(--navy); }
.card__slots li.is-prize.is-stamped::before { opacity: .16; }
.card__slots li.is-gold.is-stamped { background: var(--sun); border-color: var(--sun); }

/* ---------- Visitanos ---------- */
.visit { padding: clamp(80px, 11vw, 140px) 0; background: var(--white); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: stretch; }
.visit__addr { margin: 0 0 30px; font: 900 clamp(2.8rem, 6vw, 5rem)/.9 var(--f-display); text-transform: uppercase; text-wrap: balance; }
.visit__addr span { display: block; margin-top: 10px; font: 700 1.1rem/1.3 var(--f-body); text-transform: none; color: var(--steel); }
.visit__list { list-style: none; padding: 0; margin: 0 0 30px; border-top: 1px solid var(--line); }
.visit__list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.visit__list b { font-weight: 800; }
.visit__list span { color: var(--muted); text-align: right; }
.visit__list .is-open { color: #1f6b3a; font-weight: 800; }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.visit__map { border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--celeste-soft); box-shadow: var(--shadow); }
.visit__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: saturate(.85) hue-rotate(-8deg); }

/* ---------- Cierre ---------- */
.final { padding: clamp(90px, 13vw, 170px) 0; background: var(--ice); text-align: center; position: relative; overflow: hidden; }
.final::before, .final::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(18px, 3vw, 36px);
  background: repeating-linear-gradient(-45deg, var(--celeste) 0 12px, var(--white) 12px 24px, var(--navy) 24px 28px, var(--white) 28px 40px);
  background-size: 56.57px 56.57px; animation: pole-v 2s linear infinite;
}
.final::before { left: 0; } .final::after { right: 0; }
@keyframes pole-v { to { background-position: 0 56.57px; } }
.final__title { margin: 0 0 36px; font: 900 clamp(3.4rem, 9vw, 6rem)/.88 var(--f-display); text-transform: uppercase; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--white); padding: 70px 0 120px; }
.footer__grid { display: grid; gap: 32px; justify-items: center; text-align: center; }
.footer__logo { width: min(520px, 80vw); height: auto; }
.footer__social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.footer__social a { font-weight: 700; text-decoration: none; color: var(--celeste-soft); }
.footer__social a:hover { color: var(--celeste); text-decoration: underline; text-underline-offset: 5px; }
.footer__legal { margin: 0; font-size: .85rem; color: #a9c6de; }

/* ---------- Barra móvil ---------- */
.mbar { display: none; }

/* ---------- Revelado ---------- */
.js-ready [data-reveal] { opacity: 0; transform: translateY(40px); } /* solo si main.js corrió */

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .hero__stage { inset: 0 0 0 44%; }
  .hero__copy { max-width: 46%; }
  .reels__row { grid-template-columns: repeat(2, 1fr); }
  .phone:nth-child(even) { margin-top: 0; }
  .phone:nth-child(odd) { margin-top: 0; }
}

@media (max-width: 760px) {
  .stories { --w: min(320px, 74vw, calc((100svh - 200px) * 9 / 16)); }
  .stories__nav--prev { left: calc(50% - var(--w) / 2 - 22px); }
  .stories__nav--next { left: calc(50% + var(--w) / 2 - 22px); }
  .stories.is-live .stories__nav { width: 40px; height: 40px; margin-top: -20px; }
  body { font-size: 16px; padding-bottom: 76px; }
  .nav { padding: 10px 16px; }
  .nav__logo img { width: 104px; }
  .nav .nav__cta { display: none; }

  .hero__pin { flex-direction: column; align-items: stretch; min-height: auto; }
  .hero__pin::before { width: 120vw; right: -10vw; top: 30%; }
  .hero__stage { position: relative; inset: auto; height: 50svh; min-height: 330px; margin-top: 64px; }
  .hero__grid { padding-block: 0 56px; }
  .hero__title { font-size: clamp(3rem, 13.5vw, 4.4rem); }
  .badge { display: none; }
  .pole__band--b { margin-top: -18px; }
  .hero__copy { width: 100%; max-width: none; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__hint { display: none; }
  .hero__specs { position: static; translate: none; visibility: visible; margin-top: 34px; width: 100%; }

  .services__grid, .story__grid, .loyalty__grid, .visit__grid { grid-template-columns: 1fr; }
  .services__intro { position: static; }
  .services__intro .btn { width: 100%; }
  .menu__row { grid-template-columns: 1fr auto; padding: 24px 0; }
  .menu__row:hover { padding-inline: 0; background: none; }
  .menu__go { grid-column: 1 / -1; width: auto; height: 48px; border-radius: 999px; gap: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
  .menu__go-txt { display: inline; }
  .menu__main { grid-column: 1 / -1; }
  .menu__meta { grid-column: 1 / -1; grid-template-columns: auto auto 1fr; justify-items: start; align-items: baseline; gap: 12px; text-align: left; }
  .menu__price { order: -1; }
  .menu__sena { justify-self: end; }

  .story__photo { aspect-ratio: 4 / 4.4; }

  .reels__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .reels__row::-webkit-scrollbar { display: none; }
  .phone { flex: 0 0 64vw; scroll-snap-align: center; }

  .card { rotate: -2deg; }
  .visit__ctas .btn { flex: 1 1 100%; }
  .visit__map, .visit__map iframe { min-height: 320px; }
  .final__title { font-size: clamp(3rem, 16vw, 4.6rem); }
  .final .btn--xl { width: 100%; }

  .mbar {
    display: flex; gap: 8px;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    padding: 8px; border-radius: 999px;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px);
    box-shadow: 0 14px 34px -12px rgba(10, 45, 65, .45);
  }
  .mbar a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--celeste-soft); color: var(--navy); }
  .mbar a svg { width: 22px; height: 22px; fill: currentColor; }
  .mbar a:last-child svg { fill: none; stroke: currentColor; stroke-width: 2; }
  .mbar__main { flex: 1; width: auto !important; border-radius: 999px !important; background: var(--navy) !important; color: var(--white) !important; font-weight: 800; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) and (min-width: 761px) {
  .hero__specs { position: static; translate: none; visibility: visible; margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .js-ready [data-reveal] { opacity: 1; transform: none; }
  .intro { display: none; }
}
