/* ==========================================================================
   NEXUS GROUP — "Tu marca, en foco"  (mobile first)
   ========================================================================== */

:root {
  --paper: #eee7db;
  --paper-2: #e4dacb;
  --card: #f6f1e8;
  --ink: #1e1a16;
  --ink-2: #5d554c;
  --taupe: #8f8a83;
  --clay: #b5643f;
  --olive: #7a7650;
  --rec: #d63b26;
  --line: rgba(30, 26, 22, .16);
  --font: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(22px, 5vw, 64px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px; line-height: 1.5;
  overflow-x: hidden; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--rec); outline-offset: 3px; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.label { color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); }

.h2 {
  font-size: clamp(2.2rem, 9.6vw, 5.4rem); line-height: .98; letter-spacing: -.045em;
  font-weight: 700; font-variation-settings: "opsz" 96; margin-top: 16px; max-width: 15ch;
}
/* Resaltado tipo "lápiz graso" que se dibuja al entrar en pantalla */
.mark {
  background: linear-gradient(transparent 62%, rgba(214, 59, 38, .28) 62%, rgba(214, 59, 38, .28) 92%, transparent 92%) no-repeat;
  background-size: 0% 100%;
  transition: background-size 1.1s var(--ease) .25s;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.is-in .mark, .mark.is-in { background-size: 100% 100%; }

.head { padding: 0 var(--pad); margin-bottom: 34px; }
.head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.head--center { text-align: center; }
.head--center .label { justify-content: center; }
.head--center .h2 { margin-left: auto; margin-right: auto; }

/* ----- Botones ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 99px;
  font-weight: 600; font-size: 16px; letter-spacing: -.01em;
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.btn:active { transform: scale(.96); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--rec); }
.btn--line { border: 1.5px solid var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.play { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ==========================================================================
   Claqueta (intro)
   ========================================================================== */
.slate {
  position: fixed; inset: 0; z-index: 200; background: var(--paper);
  display: grid; place-items: center;
}
.slate__board { width: min(82vw, 380px); filter: drop-shadow(0 30px 40px rgba(30,26,22,.25)); }
.slate__stick, .slate__base {
  height: 44px; display: flex; overflow: hidden; background: var(--paper);
  border: 3px solid var(--ink); border-radius: 6px 6px 0 0;
}
.slate__stick { transform-origin: 2% 100%; transform: rotate(-24deg); border-radius: 6px; margin-bottom: 4px; }
.slate__base { border-radius: 0; border-bottom: 0; }
.slate__stick i, .slate__base i { flex: 1; background: var(--ink); transform: skewX(-30deg); margin: 0 6%; }
.slate__base i { transform: skewX(30deg); }
.slate__body { background: var(--ink); color: var(--paper); padding: 6px 16px 14px; border-radius: 0 0 8px 8px; font-family: var(--mono); }
.slate__row { display: flex; border-bottom: 1px solid rgba(238,231,219,.25); }
.slate__row:last-child { border: 0; }
.slate__row > div { flex: 1; padding: 10px 0; border-right: 1px solid rgba(238,231,219,.25); padding-left: 10px; }
.slate__row > div:first-child { padding-left: 0; }
.slate__row > div:last-child { border-right: 0; }
.slate__row small { display: block; font-size: 10px; opacity: .6; letter-spacing: .1em; }
.slate__row b { font-size: 20px; font-weight: 500; }
.slate__row--big { display: block; padding: 12px 0; }
.slate__row--big b { display: block; font-family: var(--font); font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-top: 4px; }

/* ==========================================================================
   Visor fijo + header
   ========================================================================== */
.viewfinder { position: fixed; inset: 10px; z-index: 80; pointer-events: none; }
.vf { position: absolute; width: 22px; height: 22px; border: 2px solid var(--ink); opacity: .55; }
.vf--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.vf--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.vf--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.vf--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.vf-hud { display: none; position: absolute; bottom: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-2); }
.vf-hud--bl { left: 34px; }
.vf-hud--br { right: 34px; align-items: center; gap: 6px; }
.battery { display: inline-block; width: 22px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; padding: 1px; position: relative; }
.battery::after { content: ""; position: absolute; right: -4px; top: 2px; width: 2px; height: 4px; background: currentColor; }
.battery i { display: block; height: 100%; width: 70%; background: currentColor; }

.header {
  position: fixed; inset: 0 0 auto; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(18px + env(safe-area-inset-top)) calc(var(--pad) + 4px) 14px;
  transition: background .4s, box-shadow .4s;
}
.header.is-scrolled { background: rgba(238, 231, 219, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header__logo { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.03em; font-size: 17px; }
.header__logo img { width: 32px; height: 32px; }
.header__logo span { display: none; }
.rec { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: blink 1.2s steps(2) infinite; }
.rec span { color: var(--rec); font-weight: 500; }
.rec b { font-weight: 400; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@keyframes blink { 50% { opacity: .15; } }
.header__nav { display: none; }
.menu-btn { height: 40px; padding: 0 16px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; position: relative; z-index: 75; }

.menu {
  position: fixed; inset: 0; z-index: 65; background: var(--ink); color: var(--paper);
  padding: calc(110px + env(safe-area-inset-top)) var(--pad) calc(40px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.menu-open .menu { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .7s var(--ease); }
.menu-open .header { background: transparent; box-shadow: none; backdrop-filter: none; color: var(--paper); }
.menu-open .header__logo img { filter: invert(1); }
.menu-open .rec b { color: rgba(238,231,219,.6); }
.menu-open .menu-btn { background: var(--paper); color: var(--ink); }
.menu__links a { display: flex; align-items: baseline; gap: 14px; font-size: clamp(2.8rem, 13.5vw, 5rem); font-weight: 700; letter-spacing: -.05em; line-height: 1.08; }
.menu__links small { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; color: var(--rec); width: 40px; flex: none; }
.menu__foot { display: flex; gap: 24px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; opacity: .7; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(96px + env(safe-area-inset-top)) var(--pad) calc(80px + env(safe-area-inset-bottom));
  overflow: hidden;
}
.hero__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: 11px; }
.hero__title {
  margin: auto 0 0; padding-top: 30px;
  font-size: clamp(4.2rem, 24vw, 15rem); line-height: .84; letter-spacing: -.065em;
  font-weight: 800; font-variation-settings: "opsz" 96;
}
.hero__line { display: block; }
.focus { position: relative; display: inline-block; color: var(--clay); }
.focus__box { position: absolute; inset: -.02em -.1em .06em -.08em; pointer-events: none; }
.focus__box::before, .focus__box::after {
  content: ""; position: absolute; width: .22em; height: .22em; border: 3px solid var(--rec);
}
.focus__box::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.focus__box::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hero__bottom { margin-top: 28px; display: grid; gap: 22px; }
.hero__lead { font-size: 1.12rem; line-height: 1.4; color: var(--ink-2); max-width: 30ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__ticker {
  position: absolute; left: var(--pad); right: var(--pad); bottom: calc(26px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; color: var(--ink-2); font-size: 11px;
}
.hero__ticker span { transition: color .3s; }
.hero__ticker span.is-on { color: var(--rec); }
.hero__ticker span.is-on::before { content: "● "; }

/* ==========================================================================
   Clientes: historias destacadas
   ========================================================================== */
.clients { padding: 90px 0 70px; }
.highlights {
  display: flex; align-items: flex-start; gap: 18px; overflow-x: auto; padding: 6px var(--pad) 10px;
  scroll-snap-type: x proximity; scrollbar-width: none;
}
.highlights::-webkit-scrollbar { display: none; }
.hl { flex: none; width: 84px; text-align: center; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; align-self: flex-start; }
.hl__ring {
  display: block; position: relative; width: 84px; height: 84px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 210deg, var(--rec), var(--clay), var(--taupe), var(--rec));
  transition: transform .4s var(--ease);
}
.hl:active .hl__ring { transform: scale(.92); }
.hl.is-seen .hl__ring { background: var(--line); }
.hl__img {
  width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--paper);
  display: grid; place-items: center; overflow: hidden; background: var(--card);
  font-weight: 800; font-size: 22px; box-sizing: border-box; letter-spacing: -.04em;
}
.hl__img img { width: 100%; height: 100%; object-fit: cover; }   /* el logo llena el círculo, como una historia de Instagram */
.hl__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: 12.5px; line-height: 1.2; color: var(--ink-2); }
.hl__ring { flex: none; }

/* ==========================================================================
   Marcas con física
   ========================================================================== */
.pit-section { padding: 40px 0 80px; }
.pit {
  position: relative; margin: 0 var(--pad); height: min(56svh, 480px);
  border: 1.5px solid var(--ink); border-radius: 28px; overflow: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 48px,
    var(--card);
}
.pit__list { position: absolute; inset: 0; }
.pill {
  position: absolute; top: 0; left: 0; white-space: nowrap;
  padding: 12px 22px; border-radius: 99px; font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(20px, 5.6vw, 34px); line-height: 1.1;
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
  will-change: transform; visibility: hidden;
}
.pill:active { cursor: grabbing; }
.pill img { height: 1.1em; width: auto; }
.pill--ink { background: var(--ink); color: var(--paper); }
.pill--clay { background: var(--clay); color: var(--card); }
.pill--olive { background: var(--olive); color: var(--card); }
.pill--paper { background: var(--paper-2); border: 1.5px solid var(--ink); }
.pill--rec { background: var(--rec); color: var(--card); }
.pit__hint { position: absolute; top: 16px; left: 18px; color: var(--ink-2); font-size: 11px; }
.pit.is-static .pit__list { position: static; display: flex; flex-wrap: wrap; gap: 10px; padding: 60px 18px 18px; align-content: flex-end; height: 100%; }
.pit.is-static .pill { position: static; visibility: visible; }

/* ==========================================================================
   Escenas
   ========================================================================== */
.scenes { padding: 60px 0 80px; }
.scene-list { margin: 0 var(--pad); border-top: 1.5px solid var(--ink); }
.scene { border-bottom: 1.5px solid var(--ink); }
.scene__head {
  width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "num toggle" "title toggle";
  align-items: center; text-align: left; padding: 18px 0 16px; row-gap: 2px;
}
.scene__num { grid-area: num; color: var(--rec); }
.scene__title { grid-area: title; font-size: clamp(2.8rem, 14vw, 7rem); font-weight: 800; letter-spacing: -.06em; line-height: .95; font-variation-settings: "opsz" 96; transition: color .3s; }
.scene__toggle { grid-area: toggle; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); position: relative; transition: background .3s, color .3s, transform .5s var(--ease); }
.scene__toggle::before, .scene__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.scene__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.scene.is-open .scene__toggle { background: var(--ink); color: var(--paper); transform: rotate(135deg); }
.scene.is-open .scene__title { color: var(--clay); }
.scene__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.scene.is-open .scene__body { grid-template-rows: 1fr; }
.scene__body > div { overflow: hidden; }
.scene__body p { padding-top: 4px; max-width: 40ch; color: var(--ink-2); font-size: 1.08rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0 24px; }
.tags li { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; padding: 7px 12px; border-radius: 99px; background: var(--paper-2); }

/* ==========================================================================
   Hoja de contactos
   ========================================================================== */
.sheet-section { padding: 60px 0 80px; }
.filters { display: flex; gap: 8px; padding: 0 var(--pad) 22px; margin-top: -10px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; height: 38px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--ink); font-size: 14px; font-weight: 600; transition: background .3s, color .3s; }
.filters button.is-active { background: var(--ink); color: var(--paper); }
.sheet { margin: 0 var(--pad); padding: 14px 10px 18px; background: var(--card); border-radius: 6px; box-shadow: 0 1px 0 var(--line), 0 20px 40px -24px rgba(30,26,22,.35); transform: rotate(-.6deg); }
.sheet__edge { display: flex; justify-content: space-between; color: #c96a2b; font-size: 10px; padding: 0 4px 10px; }
.sheet__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
.frame { position: relative; text-align: left; display: block; width: 100%; }
.frame.is-hidden { display: none; }
.frame__pic { position: relative; aspect-ratio: 4 / 5; background: var(--ink); border-radius: 3px; overflow: hidden; }
/* Hijos posicionados (no height:100%): Safari en iPhone calculaba mal el alto y tapaba el borde inferior */
.frame__pic > * { position: absolute; inset: 5px; width: auto; height: auto; object-fit: cover; border-radius: 1px; }
.frame__pic > img, .frame__pic > video { width: calc(100% - 10px); height: calc(100% - 10px); }
.frame__cap { display: flex; justify-content: space-between; gap: 6px; margin-top: 6px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; color: var(--ink-2); }
.frame__cap b { color: #c96a2b; font-weight: 500; flex: none; }
.frame__cap span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame__circle { position: absolute; left: -8%; top: -6%; width: 116%; height: 100%; pointer-events: none; overflow: visible; }
.frame__circle path { fill: none; stroke: var(--rec); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.frame__type { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; background: var(--paper); padding: 3px 7px; border-radius: 99px; }

/* Placeholder de media: gradiente cálido + iniciales */
.ph {
  position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(70% 55% at var(--x, 30%) var(--y, 25%), var(--a), transparent 70%),
    radial-gradient(80% 60% at 80% 90%, var(--b), transparent 70%),
    var(--c);
  color: rgba(246, 241, 232, .92);
}
.ph span { font-weight: 800; font-size: clamp(28px, 9vw, 64px); letter-spacing: -.06em; line-height: 1; }
.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%) -100% 0 / 250% 100% no-repeat; animation: sheen 5s ease-in-out infinite; }
@keyframes sheen { 60%, 100% { background-position: 150% 0; } }

/* ==========================================================================
   Tira de película (Instagram)
   ========================================================================== */
.insta { padding: 60px 0 90px; overflow: hidden; }
.film {
  --perf: 14px;
  background: var(--ink); padding: calc(var(--perf) + 14px) 0; position: relative; transform: rotate(-3deg);
  margin: 10px -15% 44px; width: 130%;
}
.film::before, .film::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--perf);
  background: repeating-linear-gradient(90deg, var(--paper) 0 12px, transparent 12px 28px);
  opacity: .9; border-radius: 2px;
}
.film::before { top: 7px; }
.film::after { bottom: 7px; }
.film__track { display: flex; gap: 10px; width: max-content; will-change: transform; }
.film__frame { width: 150px; aspect-ratio: 4 / 5; border-radius: 3px; overflow: hidden; flex: none; }
.film__frame > * { width: 100%; height: 100%; object-fit: cover; }
.insta__cta { text-align: center; padding: 0 var(--pad); }

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact { padding: 70px 0 60px; }
.contact__title { margin-top: 12px; white-space: nowrap; font-size: clamp(3.4rem, 16.5vw, 12rem); font-weight: 800; letter-spacing: -.065em; line-height: .9; font-variation-settings: "opsz" 96; }
.form { display: grid; gap: 24px; padding: 0 var(--pad); }
.field { display: block; border: 0; min-width: 0; }
.field > span, .field legend { display: block; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid var(--ink);
  font: inherit; font-size: 1.3rem; font-weight: 500; color: var(--ink); padding: 8px 0; border-radius: 0; outline: none; resize: none;
}
.field input:focus, .field textarea:focus { border-color: var(--rec); }
.field ::placeholder { color: rgba(30,26,22,.32); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { padding: 10px 16px; border-radius: 99px; border: 1.5px solid var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; transition: background .25s, color .25s; }
.chips input:checked + label { background: var(--ink); color: var(--paper); }
.chips input:focus-visible + label { outline: 2px solid var(--rec); outline-offset: 2px; }
.rec-btn {
  display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; height: 66px; border-radius: 99px;
  background: var(--ink); color: var(--paper); font-size: 18px; font-weight: 700; letter-spacing: -.02em;
  transition: background .3s, transform .4s var(--ease);
}
.rec-btn:hover { background: var(--rec); }
.rec-btn:active { transform: scale(.97); }
.rec-btn__dot { width: 18px; height: 18px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 4px rgba(214,59,38,.3); animation: pulse 1.6s ease-in-out infinite; }
.rec-btn:hover .rec-btn__dot { background: var(--paper); }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(214,59,38,0); } }

.contact__list { margin: 56px var(--pad) 0; border-top: 1.5px solid var(--ink); }
.contact__list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__list > div[hidden] { display: none; }
.contact__list dt { color: var(--ink-2); }
.contact__list dd { font-weight: 600; font-size: 1.08rem; text-align: right; }
.contact__list a:hover { color: var(--rec); }

/* ----- Footer ----- */
.footer { padding: 30px var(--pad) calc(34px + env(safe-area-inset-bottom)); overflow: hidden; }
.footer__cut { font-size: clamp(5rem, 30vw, 22rem); font-weight: 800; letter-spacing: -.07em; line-height: .8; font-variation-settings: "opsz" 96; text-align: center; padding-top: .05em; }
.footer__cut .ch { display: inline-block; }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 26px; color: var(--ink-2); font-size: 11px; }

/* ----- FAB ----- */
.fab {
  position: fixed; z-index: 60; right: 20px; bottom: calc(22px + env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); box-shadow: 0 12px 24px -10px rgba(30,26,22,.6);
  transform: translateY(160%); transition: transform .6s var(--ease), background .3s;
}
.fab.is-visible { transform: none; }
.fab:hover { background: var(--rec); }
.fab svg { width: 27px; height: 27px; }
.fab path { fill: currentColor; }

/* ==========================================================================
   Visor de historias
   ========================================================================== */
.stories {
  position: fixed; inset: 0; z-index: 150; background: rgba(20, 17, 14, .96);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.stories.is-open { opacity: 1; visibility: visible; }
.stories__frame { position: relative; width: 100%; height: 100%; background: #000; overflow: hidden; }
.stories__media { position: absolute; inset: 0; }
.stories__media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stories__media .ph span { font-size: min(22vw, 120px); }
.stories__bars { position: absolute; z-index: 3; top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; gap: 4px; }
.stories__bars span { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.stories__bars i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.stories__top { position: absolute; z-index: 4; top: calc(24px + env(safe-area-inset-top)); left: 12px; right: 8px; display: flex; align-items: center; justify-content: space-between; color: #fff; }
.stories__who { display: flex; align-items: center; gap: 10px; }
.stories__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--card); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; overflow: hidden; }
.stories__avatar img { width: 100%; height: 100%; object-fit: cover; }
.stories__who b { font-size: 14px; }
.stories__who small { font-family: var(--mono); font-size: 11px; opacity: .7; }
.stories__close { width: 44px; height: 44px; font-size: 20px; color: #fff; }
.stories__caption { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 60px 18px calc(28px + env(safe-area-inset-bottom)); color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); pointer-events: none; }
.stories__caption small { font-family: var(--mono); font-size: 11px; text-transform: uppercase; opacity: .8; }
.stories__caption h3 { font-size: 1.7rem; line-height: 1.05; letter-spacing: -.035em; font-weight: 700; margin-top: 4px; }
.stories__caption a { display: inline-block; margin-top: 12px; padding: 9px 16px; border-radius: 99px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; pointer-events: auto; }
.stories__nav { position: absolute; z-index: 2; top: 0; bottom: 0; width: 35%; }
.stories__nav--prev { left: 0; }
.stories__nav--next { right: 0; width: 65%; }

/* ==========================================================================
   Tablet / desktop
   ========================================================================== */
@media (min-width: 768px) {
  .header__logo span { display: inline; }
  .vf-hud { display: flex; }
  .hero__meta { font-size: 12px; }
  .hero__bottom { grid-template-columns: 1fr auto; align-items: end; }
  .highlights { justify-content: center; gap: 28px; }
  .hl { width: 112px; }
  .hl__ring { width: 112px; height: 112px; }
  .hl__img { font-size: 28px; }
  .scene__head { grid-template-columns: 120px 1fr auto; grid-template-areas: "num title toggle"; }
  .scene__body > div { padding-left: 120px; }
  .sheet { padding: 18px 16px 24px; }
  .sheet__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 14px; }
  .film__frame { width: 210px; }
  .form { grid-template-columns: 1fr 1fr; column-gap: 32px; max-width: 1000px; }
  .form > :nth-child(n+3) { grid-column: 1 / -1; }
  .rec-btn { width: auto; padding: 0 40px; justify-self: start; }
  .contact__list { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; max-width: 1000px; }
  .contact__list > div { flex-direction: column; align-items: flex-start; gap: 6px; }
  .contact__list dd { text-align: left; }
  .stories__frame { width: auto; height: min(92vh, 860px); aspect-ratio: 9 / 16; border-radius: 18px; }
  .fab { right: 34px; bottom: 34px; }
}
@media (min-width: 1024px) {
  .header__nav { display: flex; align-items: center; gap: 4px; }
  .header__nav a { padding: 9px 14px; border-radius: 99px; font-weight: 600; font-size: 15px; transition: background .3s, color .3s; }
  .header__nav a:hover { background: var(--paper-2); }
  .header__nav .header__cta { background: var(--ink); color: var(--paper); margin-left: 6px; }
  .header__nav .header__cta:hover { background: var(--rec); }
  .menu-btn { display: none; }
  .rec { position: absolute; left: 50%; transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .mark { background-size: 100% 100%; }
}

.frame__pic > .ph { position: absolute; inset: 5px; width: auto; height: auto; }

/* ==========================================================================
   Marcas en autofoco
   ========================================================================== */
.af-section { padding: 40px 0 90px; }
.af { position: relative; margin: 0 var(--pad); padding: 10px 0; }
.af__list { display: grid; gap: clamp(4px, 1.2vw, 10px); }
.af__item {
  width: fit-content; max-width: 100%; cursor: pointer; outline: none;
  font-size: clamp(2rem, 9.4vw, 5rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.02; font-variation-settings: "opsz" 96;
  color: var(--ink); opacity: .2; filter: blur(3.5px);
  transition: opacity .6s var(--ease), filter .6s var(--ease), transform .6s var(--ease);
  transform: scale(.985); transform-origin: left center;
}
.af__item img { height: 1em; width: auto; filter: brightness(0) saturate(100%); }
.af__item.is-focus { opacity: 1; filter: none; transform: none; }
.af__box {
  position: absolute; top: 0; left: 0; pointer-events: none; display: block;
  transition: transform .55s var(--ease), width .55s var(--ease), height .55s var(--ease);
}
.af__box b { position: absolute; width: 18px; height: 18px; border: 3px solid var(--rec); }
.af__box b:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.af__box b:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.af__box b:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.af__box b:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.af__box.is-lock { animation: afLock .5s steps(2) .45s 2; }
@keyframes afLock { 50% { opacity: .2; } }
.af__hud { position: absolute; right: 0; top: -26px; color: var(--rec); font-size: 11px; }
@media (prefers-reduced-motion: reduce) { .af__item { opacity: 1; filter: none; } }

/* iPhone: sin zoom al tocar un campo */
input, select, textarea { font-size: max(16px, 1em); }

.film__frame video { width: 100%; height: 100%; object-fit: cover; background: var(--ink); }

/* Celular: sin zoom por doble toque (el pellizco para agrandar sigue funcionando) y sin zoom al tocar un campo de texto */
html, body, a, button, input, select, textarea, label, summary, [role="button"] { touch-action: manipulation; }
@media (pointer: coarse) { input, select, textarea { font-size: max(16px, 1em) !important; } }
