/* dfsstudio — hoja de contactos */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../assets/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #050505;          /* la mesa, a oscuras */
  --film: #0e0e0e;            /* base de la película */
  --film-edge: #151515;
  --perf: #2b2b29;            /* perforación: la luz de la mesa asomando */
  --perf-lit: #4a4a47;
  --rule: #232323;
  --light: #f4f4f1;           /* luz de mesa */
  --text: #f4f4f1;
  --muted: #a3a39e;
  --faint: #7c7c78;
  --cyan: #00f0ff;            /* lápiz graso. Solo sobre oscuro */
  --error: #ff8f80;

  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1360px;
  --bar-h: 64px;

  /* Tamaño de fotograma y de perforación */
  --perf-band: 26px;
  --frame-gap: 14px;
  --perf-h: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2726%27%3E%3Crect x=%275%27 y=%278%27 width=%2714%27 height=%2710%27 rx=%272.5%27/%3E%3C/svg%3E");
  --perf-v: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2726%27 height=%2724%27%3E%3Crect x=%278%27 y=%275%27 width=%2710%27 height=%2714%27 rx=%272.5%27/%3E%3C/svg%3E");

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 16px);
  scrollbar-color: #333 var(--ground);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

::selection { background: var(--cyan); color: #000; }
input, textarea { caret-color: var(--cyan); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: #2e2e2e; border: 2px solid var(--ground); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--cyan); color: #000; padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Texto de borde: la impresión en el margen de la película */
.edge {
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--muted);
  font-weight: 500;
}
/* Solo las etiquetas cortas van en mayúsculas */
.frame__sector,
.contact__direct dt,
.timeline .edge,
.viewer__info .edge,
.service .edge:not(.edge--long) { text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Controles ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  background: var(--cyan); color: #000;
  font-weight: 650; font-size: 1rem; letter-spacing: -0.005em;
  text-decoration: none; border: 0; border-radius: 3px; cursor: pointer;
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}
.btn:hover { background: var(--light); }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 38px; padding: 7px 16px; font-size: 0.9375rem; }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
  transition: text-decoration-color 200ms var(--ease), color 200ms var(--ease);
}
.link:hover { color: var(--cyan); }
.icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Barra ---------- */

.bar {
  position: sticky; top: 0; z-index: 50;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 32px;
  padding-inline: var(--gutter);
  background: var(--ground);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease);
}
.bar.is-scrolled { border-bottom-color: var(--rule); }
.bar__brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em;
}
.bar__brand img { width: 22px; height: auto; }
.bar__nav { display: flex; gap: 26px; margin-left: auto; }
.bar__nav a {
  color: var(--muted); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
  padding-block: 6px; transition: color 200ms var(--ease);
}
.bar__nav a:hover, .bar__nav a.is-current { color: var(--text); }

/* ---------- Película: perforaciones ---------- */

/* Una perforación: rectángulo de esquinas redondeadas. Se usa como máscara para poder colorearla. */
.strip { position: relative; background: var(--film); }
.strip::before,
.strip::after {
  content: ""; position: absolute; pointer-events: none;
  background: var(--perf);
  -webkit-mask-repeat: round; mask-repeat: round;
}

/* Tira vertical: perforaciones a izquierda y derecha */
.strip--v { padding-inline: var(--perf-band); }
.strip--v::before,
.strip--v::after {
  top: 0; bottom: 0; width: var(--perf-band);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='24'%3E%3Crect x='8' y='5' width='10' height='14' rx='2.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='24'%3E%3Crect x='8' y='5' width='10' height='14' rx='2.5'/%3E%3C/svg%3E");
  -webkit-mask-size: 26px 24px; mask-size: 26px 24px;
}
.strip--v::before { left: 0; }
.strip--v::after { right: 0; }

/* Tira horizontal: perforaciones arriba y abajo */
.strip--h,
.strip--wide { padding-block: var(--perf-band); }
.strip--h::before,
.strip--h::after,
.strip--wide::before,
.strip--wide::after {
  left: 0; right: 0; height: var(--perf-band);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='26'%3E%3Crect x='5' y='8' width='14' height='10' rx='2.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='26'%3E%3Crect x='5' y='8' width='14' height='10' rx='2.5'/%3E%3C/svg%3E");
  -webkit-mask-size: 24px 26px; mask-size: 24px 26px;
}
.strip--h::before, .strip--wide::before { top: 0; }
.strip--h::after, .strip--wide::after { bottom: 0; }

/* ---------- Fotograma y exposición ---------- */

.frame {
  --exp: 0.8;
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: #000; cursor: pointer;
  border-radius: 2px;
  -webkit-tap-highlight-color: transparent;
}
.frame > img,
.frame > video,
.frame__media {
  width: 100%; height: 100%; object-fit: cover; border-radius: 2px;
  filter: brightness(var(--exp)) saturate(calc(0.55 + var(--exp) * 0.45));
  transition: filter 520ms var(--ease);
}
.frame:focus-visible { outline-offset: 12px; }

/* El trazo de lápiz graso alrededor del fotograma elegido */
.loop {
  position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px);
  fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none; overflow: visible;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 420ms var(--ease);
}

.frame:hover,
.frame:focus-visible,
.frame.is-pick,
.frame.is-active,
.frame.is-selected { --exp: 1; }
.frame:hover .loop,
.frame:focus-visible .loop,
.frame.is-active .loop,
.frame.is-selected .loop { clip-path: inset(0 0 0 0); }

/* Revelado en secuencia: antes de entrar en pantalla, el fotograma está casi sin revelar */
.js [data-develop]:not(.is-developed) .frame { --exp: 0.2; }
.js [data-develop] .frame > img,
.js [data-develop] .frame > video { transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-develop].is-developed .frame:hover > img,
.js [data-develop].is-developed .frame:hover > video,
.js [data-develop].is-developed .frame.is-active > img,
.js [data-develop].is-developed .frame.is-active > video,
.js [data-develop].is-developed .frame:focus-visible > img,
.js [data-develop].is-developed .frame:focus-visible > video { transition-delay: 0ms; }

.frame__play {
  position: absolute; left: 14px; bottom: 14px;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(5, 5, 5, 0.72); color: var(--light);
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.frame__play svg { width: 14px; height: 14px; fill: currentColor; margin-left: 2px; }
.frame:hover .frame__play { background: var(--cyan); color: #000; }

/* ---------- Primera pantalla ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - var(--bar-h));
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
  max-width: var(--max); margin-inline: auto;
  padding: clamp(24px, 4vh, 48px) var(--gutter);
}

.hero__copy { display: grid; gap: 28px; align-content: center; }
.hero__title {
  font-size: clamp(2.6rem, 5.9vw, 5.75rem);
  line-height: 0.98; letter-spacing: -0.038em; font-weight: 750;
  text-wrap: balance; max-width: 14ch;
}
.mark { position: relative; display: inline-block; white-space: nowrap; }
.mark__stroke {
  position: absolute; left: -0.04em; right: -0.02em; bottom: -0.02em;
  width: calc(100% + 0.06em); height: 0.2em; overflow: visible;
  fill: none; stroke: var(--cyan); stroke-width: 5; stroke-linecap: round;
}
.js .mark__stroke { clip-path: inset(0 100% 0 0); animation: draw 900ms var(--ease) 350ms forwards; }
@keyframes draw { to { clip-path: inset(0 0 0 0); } }

.hero__lede { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); color: var(--muted); max-width: 42ch; line-height: 1.55; }
.hero__lede strong { color: var(--text); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__edge { padding-top: 20px; border-top: 1px solid var(--rule); max-width: 52ch; }

.hero__strip {
  height: calc(100svh - var(--bar-h) - 2 * clamp(24px, 4vh, 48px) - 48px);
  min-height: 520px; max-height: 920px;
  justify-self: center; width: min(100%, 380px);
  overflow: hidden; border-radius: 2px;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
.hero__strip .strip__track {
  position: absolute; left: var(--perf-band); right: var(--perf-band); top: 50%;
  display: grid; gap: var(--frame-gap);
  transform: translateY(-50%);
}
.hero__strip .frame { aspect-ratio: 9 / 16; }
.frame--dim { --exp: 0.3; cursor: default; }
.hero__reel { display: grid; gap: 16px; justify-items: center; align-self: center; width: 100%; }
.hero__caption { text-align: center; max-width: 32ch; }

/* ---------- Secciones ---------- */

.section {
  max-width: var(--max); margin-inline: auto;
  padding: clamp(88px, 12vw, 168px) var(--gutter) 0;
}
.section__head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px 48px; align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section__head h2,
.about h2,
.contact h2 {
  font-size: clamp(2.25rem, 4.6vw, 4.25rem);
  line-height: 1; letter-spacing: -0.035em; font-weight: 750;
  text-wrap: balance;
}
.section__head p { color: var(--muted); max-width: 54ch; font-size: 1.125rem; }

/* ---------- Reels: la hoja ---------- */

/* Un rollo continuo cortado en tiras iguales. Las columnas no dejan hueco: la película es continua. */
.sheet {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: clamp(28px, 3vw, 44px);
}
.sheet > li {
  position: relative; background: var(--film);
  padding: calc(var(--perf-band) + 2px) 8px 0;
  counter-increment: frame;
}
.sheet > li:nth-child(4n + 1) { border-radius: 2px 0 0 2px; }
.sheet > li:nth-child(4n) { border-radius: 0 2px 2px 0; }
.sheet > li::before,
.sheet > li::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--perf-band);
  background: var(--perf); pointer-events: none;
  -webkit-mask-image: var(--perf-h); mask-image: var(--perf-h);
  -webkit-mask-size: 24px 26px; mask-size: 24px 26px;
  -webkit-mask-repeat: round; mask-repeat: round;
}
.sheet > li::before { top: 0; }
.sheet > li::after { bottom: 0; }
.sheet .frame { aspect-ratio: 9 / 16; }

.frame__edge {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px;
  padding: 14px 2px calc(var(--perf-band) + 12px);
}
.frame__title { font-weight: 600; font-size: 0.9375rem; line-height: 1.3; color: var(--text); }
.frame__no {
  display: inline-block; min-width: 2.2em; font-variant-numeric: tabular-nums;
  color: var(--faint); font-weight: 500;
}
.frame__sector,
.frame__credit {
  font-size: 0.75rem; letter-spacing: 0.04em; color: var(--muted); font-weight: 500; line-height: 1.4;
}
.frame__sector { padding-left: 2.2em; }
.frame__credit { grid-column: 1 / -1; padding-left: 2.2em; font-size: 0.75rem; color: var(--muted); text-transform: none; letter-spacing: 0.005em; }

/* Visualizaciones: celda apagada hasta que haya un dato real */
.frame__views { grid-column: 1 / -1; padding-left: 2.2em; font-size: 0.75rem; color: var(--cyan); }

/* ---------- Webs ---------- */

.webs { display: grid; gap: clamp(56px, 7vw, 96px); }
.web {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(24px, 4vw, 56px); align-items: end;
}
.web:nth-child(even) { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.web:nth-child(even) .web__frame { order: 2; }
.web__frame {
  display: block; padding-inline: 14px; border-radius: 2px;
}
.web__frame img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; border-radius: 2px;
  filter: brightness(var(--exp, 0.85)); transition: filter 520ms var(--ease);
}
.web__frame { --exp: 0.85; }
.web__frame:hover, .web__frame:focus-visible, .web__frame.is-active { --exp: 1; }
.web__frame .loop { inset: calc(var(--perf-band) - 9px) 5px; width: calc(100% - 10px); height: calc(100% - 2 * var(--perf-band) + 18px); }
.web__frame:hover .loop, .web__frame:focus-visible .loop, .web__frame.is-active .loop { clip-path: inset(0 0 0 0); }
.web__text { display: grid; gap: 12px; justify-items: start; padding-bottom: var(--perf-band); }
.web__text h3, .feature__text h3 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.web__text p:not(.edge), .feature__text p:not(.edge) { color: var(--muted); max-width: 36ch; }
.web__text .link, .feature__text .link { margin-top: 8px; }

/* ---------- Diseño gráfico ---------- */

.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px); align-items: end;
  margin-bottom: clamp(64px, 8vw, 112px);
}
.feature__frame { aspect-ratio: 4 / 5; --exp: 0.8; }
.feature__frame > img { aspect-ratio: 4 / 5; }
.feature__text { display: grid; gap: 12px; justify-items: start; }
.feature__text h3 { font-size: clamp(2.25rem, 4vw, 3.5rem); }

.posters .roll__label { display: flex; gap: 12px; margin-bottom: 14px; }
.roll__label span { color: var(--text); }
.strip--scroll {
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
  scrollbar-width: thin;
}
.strip--scroll::before,
.strip--scroll::after { width: var(--scroll-w, 100%); right: auto; }
.strip--scroll .strip__track {
  display: flex; gap: var(--frame-gap); padding-inline: 16px; width: max-content;
}
.strip--scroll li { scroll-snap-align: start; }
.strip--scroll .frame { height: clamp(300px, 34vw, 460px); width: auto; aspect-ratio: 4 / 5; }
.strip--scroll li.is-wide .frame { aspect-ratio: 12 / 5; }

/* ---------- Servicios: la mesa de luz ---------- */

.section--light {
  max-width: none; margin-top: clamp(88px, 12vw, 168px);
  background: var(--light); color: var(--ground);
  padding-bottom: clamp(88px, 11vw, 152px);
}
.section--light > * { max-width: calc(var(--max) - 2 * var(--gutter)); margin-inline: auto; }
.section--light .section__head p { color: #45453f; }
.section--light .edge { color: #55554f; }
.section--light :focus-visible { outline-color: var(--ground); }
.section--light ::selection { background: var(--ground); color: var(--light); }

.services { border-top: 1.5px solid var(--ground); }
.service {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 12px 48px; align-items: baseline;
  padding-block: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid rgba(5, 5, 5, 0.2);
}
.service h3 { font-size: clamp(1.5rem, 2.6vw, 2.375rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.service p:not(.edge) { color: #2c2c28; max-width: 44ch; }
.service .edge { justify-self: end; text-align: right; }

/* ---------- Sobre mí ---------- */

.about {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 104px); align-items: start;
}
.about__photo { padding-block: 16px; border-radius: 2px; }
.about__frame { position: relative; aspect-ratio: 4 / 5; background: #000; border-radius: 2px; overflow: hidden; }
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.about__empty {
  position: absolute; inset: 0; display: none; place-items: center;
  border: 1px dashed #333; color: var(--faint);
}
.about__frame.is-missing img { display: none; }
.about__frame.is-missing .about__empty { display: grid; }

.about__text { display: grid; gap: 28px; padding-top: 16px; }
.about__lede { font-size: clamp(1.25rem, 1.9vw, 1.625rem); line-height: 1.4; letter-spacing: -0.012em; max-width: 34ch; }
.timeline { display: grid; border-top: 1px solid var(--rule); }
.timeline li {
  display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 6px 32px;
  padding-block: 20px; border-bottom: 1px solid var(--rule);
}
.timeline li .edge { padding-top: 4px; }
.timeline p:not(.edge) { color: var(--muted); max-width: 58ch; }
.timeline strong { color: var(--text); font-weight: 600; }
.tools { color: var(--muted); max-width: 64ch; }
.tools .edge { display: block; margin-bottom: 6px; }

/* ---------- Testimonios (preparado, oculto sin datos) ---------- */

.testimonials__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px 56px; }
.testimonials__list blockquote { margin: 0; font-size: 1.25rem; line-height: 1.45; letter-spacing: -0.01em; }
.testimonials__list figcaption { margin-top: 14px; }

/* ---------- Agencias ---------- */

.agencies {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 20px 48px; align-items: start;
}
.agencies h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance;
  padding-top: 28px; border-top: 1px solid var(--rule);
}
.agencies__text { display: grid; gap: 20px; justify-items: start; padding-top: 28px; border-top: 1px solid var(--rule); }
.agencies__text p { color: var(--muted); max-width: 48ch; font-size: 1.125rem; }

/* ---------- Contacto ---------- */

.contact {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px); align-items: start;
  padding-bottom: clamp(88px, 11vw, 152px);
}
.contact__intro { display: grid; gap: 20px; position: sticky; top: calc(var(--bar-h) + 32px); }
.contact__intro > p { color: var(--muted); font-size: 1.125rem; }
.contact__direct { display: grid; gap: 18px; margin-top: 16px; }
.contact__direct dd { margin-top: 4px; font-size: 1.125rem; }

.form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--film); border-radius: 3px;
}
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field input,
.field select,
.field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--ground); border: 1px solid #333; border-radius: 3px;
  font-size: 1rem; line-height: 1.4;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a3a39e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field select option { background: var(--film); }
.field ::placeholder { color: var(--faint); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #4a4a4a; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }
.field__error { color: var(--error); font-size: 0.875rem; min-height: 0; }
.field__error:empty { display: none; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.form__note { color: var(--muted); font-size: 0.875rem; max-width: 40ch; }
.form__status {
  padding: 16px 18px; border-radius: 3px;
  background: var(--ground); border: 1px solid var(--cyan);
}
.form__status a { color: var(--cyan); }

/* ---------- Pie ---------- */

.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  max-width: var(--max); margin-inline: auto;
  padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9375rem;
}
.foot img { width: 18px; height: auto; }
.foot .edge { margin-left: auto; }

/* ---------- Visor ---------- */

.viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: clamp(16px, 3vw, 40px); border: 0;
  background: var(--ground); color: var(--text);
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px clamp(24px, 4vw, 56px);
}
.viewer[open] { display: grid; animation: viewer-in 360ms var(--ease); }
.viewer::backdrop { background: var(--ground); }
@keyframes viewer-in { from { opacity: 0; } }

.viewer__controls { grid-column: 1 / -1; grid-row: 1; display: flex; justify-content: flex-end; gap: 8px; }
.viewer__stage {
  grid-column: 1; grid-row: 2; min-height: 0;
  display: grid; place-items: center;
}
.viewer__stage video,
.viewer__stage img {
  max-width: 100%; max-height: calc(100dvh - 2 * clamp(16px, 3vw, 40px) - 64px); width: auto; height: auto;
  border-radius: 3px; background: #000; object-fit: contain;
}
.viewer__stage video { aspect-ratio: 9 / 16; height: calc(100dvh - 2 * clamp(16px, 3vw, 40px) - 64px); }
.viewer__info { grid-column: 2; grid-row: 2; align-self: end; display: grid; gap: 10px; padding-bottom: 8px; }
.viewer__info h2 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.viewer__info p:not(.edge) { color: var(--muted); }
.viewer__views { color: var(--text) !important; }
.viewer__note { font-size: 0.875rem; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 3px; }

.iconbtn {
  display: grid; place-items: center; width: 48px; height: 48px;
  background: var(--film); border: 1px solid var(--rule); border-radius: 50%; cursor: pointer;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}
.iconbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn:hover { background: #1c1c1c; border-color: #3a3a3a; }
.iconbtn[hidden] { display: none; }

/* ---------- Adaptación ---------- */

@media (max-width: 1080px) {
  .sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheet > li:nth-child(n) { border-radius: 0; }
  .sheet > li:nth-child(3n + 1) { border-radius: 2px 0 0 2px; }
  .sheet > li:nth-child(3n) { border-radius: 0 2px 2px 0; }
  .bar__nav { gap: 20px; }
}

@media (max-width: 860px) {
  :root { --bar-h: 58px; }
  .bar__nav { display: none; }
  .bar { justify-content: space-between; }

  .hero { grid-template-columns: 1fr; min-height: 0; gap: 40px; padding-top: 32px; }
  .hero__copy { gap: 22px; }
  .hero__title { max-width: 16ch; }
  .hero__strip {
    height: 480px; min-height: 0; width: 264px;
    -webkit-mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent);
    mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent);
  }
  .hero__strip .frame { width: 100%; }

  .section__head { grid-template-columns: 1fr; }

  /* Móvil: una sola tira vertical continua, perforaciones a los lados */
  .sheet { grid-template-columns: 1fr; row-gap: 0; max-width: 460px; margin-inline: auto; }
  .sheet > li,
  .sheet > li:nth-child(n) {
    padding: 10px var(--perf-band) 0; border-radius: 0;
  }
  .sheet > li:first-child { padding-top: 22px; border-radius: 2px 2px 0 0; }
  .sheet > li:last-child { padding-bottom: 12px; border-radius: 0 0 2px 2px; }
  .sheet > li::before,
  .sheet > li::after {
    top: 0; bottom: 0; left: auto; right: auto; width: var(--perf-band); height: auto;
    -webkit-mask-image: var(--perf-v); mask-image: var(--perf-v);
    -webkit-mask-size: 26px 24px; mask-size: 26px 24px;
  }
  .sheet > li::before { left: 0; }
  .sheet > li::after { right: 0; }
  .frame__edge { padding: 12px 2px 16px; }

  .web,
  .web:nth-child(even) { grid-template-columns: 1fr; }
  .web:nth-child(even) .web__frame { order: 0; }
  .web__text { padding-bottom: 0; }

  .feature { grid-template-columns: 1fr; }
  .feature__frame { max-width: 460px; }

  .service { grid-template-columns: 1fr; gap: 10px; }
  .service .edge { justify-self: start; text-align: left; }

  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 360px; }
  .timeline li { grid-template-columns: 1fr; }

  .agencies { grid-template-columns: 1fr; gap: 0; }
  .agencies__text { border-top: 0; padding-top: 16px; }

  .contact { grid-template-columns: 1fr; }
  .contact__intro { position: static; }
  .form { grid-template-columns: 1fr; }

  .viewer {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 12px 12px calc(16px + env(safe-area-inset-bottom, 0px));
    gap: 12px;
  }
  .viewer__info { grid-column: 1; grid-row: 3; gap: 4px; }
  .viewer__info h2 { font-size: 1.5rem; }
  .viewer__stage video,
  .viewer__stage img { max-height: calc(100dvh - 220px); }
  .viewer__stage video { height: calc(100dvh - 220px); }
  .viewer__stage { grid-row: 2; }
}

@media (max-width: 420px) {
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .foot .edge { margin-left: 0; width: 100%; }
}

@media (hover: none) {
  .frame__play { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js .mark__stroke { clip-path: none; animation: none; }
}

/* Visor: título primero, datos debajo */
.viewer__meta { color: var(--muted); }
.frame.is-pick + .frame__edge .frame__no { position: relative; color: var(--cyan); }
.frame.is-pick + .frame__edge .frame__no::before {
  content: ""; position: absolute; left: -0.4em; top: 50%; width: 1.95em; height: 1.95em;
  transform: translateY(-50%); border-radius: 50%; box-shadow: 0 0 0 1.5px var(--cyan);
}

/* ---------- Consentimiento y primera capa ---------- */

.field--check { gap: 6px; }
.check { display: flex; align-items: flex-start; gap: 12px; }
.check label { font-weight: 500; font-size: 0.9375rem; line-height: 1.45; padding-top: 1px; }
.check a, .form__layer a { color: var(--text); text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.check a:hover, .form__layer a:hover { color: var(--cyan); }
.check input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 22px; height: 22px; min-height: 0; padding: 0; margin: 0; border-radius: 3px;
  background: var(--ground); border: 1px solid #4a4a4a; cursor: pointer;
  display: grid; place-items: center;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.check input::after {
  content: ""; width: 12px; height: 9px; background: #000;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 9'%3E%3Cpath d='M1 4.5l3.2 3.2L11 1' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 9'%3E%3Cpath d='M1 4.5l3.2 3.2L11 1' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0; transform: scale(0.6); transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}
.check input:checked { background: var(--cyan); border-color: var(--cyan); }
.check input:checked::after { opacity: 1; transform: none; }
.check input:hover { border-color: #6a6a6a; }
.check input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.field.is-invalid .check input { border-color: var(--error); }
.field--check .field__error { padding-left: 34px; }

.form__layer {
  display: grid; gap: 10px;
  padding-top: 16px; border-top: 1px solid var(--rule);
  font-size: 0.8125rem; line-height: 1.5; color: var(--muted);
}
.form__layer-title { color: var(--text); font-weight: 600; }
.form__layer dl { display: grid; gap: 6px; margin: 0; }
.form__layer dl > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; }
.form__layer dt { color: var(--text); font-weight: 500; }
.form__layer dd { margin: 0; }

/* ---------- Pie: enlaces legales ---------- */

.foot__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-left: auto; }
.foot__legal a { color: var(--muted); text-decoration: none; font-size: 0.875rem; transition: color 200ms var(--ease); }
.foot__legal a:hover, .foot__legal a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; }
.foot .foot__legal + .edge { margin-left: 0; }

/* ---------- Páginas legales ---------- */

.legal {
  max-width: var(--max); margin-inline: auto;
  padding: clamp(56px, 8vw, 112px) var(--gutter) clamp(88px, 10vw, 140px);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 6vw, 96px);
}
.legal__head { display: grid; gap: 20px; align-content: start; position: sticky; top: calc(var(--bar-h) + 32px); }
.legal__head h1 { font-size: clamp(2.5rem, 4.6vw, 4.25rem); line-height: 1; letter-spacing: -0.035em; font-weight: 750; text-wrap: balance; }
.legal__head p { color: var(--muted); max-width: 34ch; }
/* Tira perforada como filete */
.perf-rule {
  height: var(--perf-band); width: min(100%, 240px); border-radius: 2px; background: var(--film); position: relative;
}
.perf-rule::before {
  content: ""; position: absolute; inset: 0; background: var(--perf);
  -webkit-mask-image: var(--perf-h); mask-image: var(--perf-h);
  -webkit-mask-size: 24px 26px; mask-size: 24px 26px;
  -webkit-mask-repeat: round; mask-repeat: round;
}
.legal__nav { display: grid; gap: 8px; margin-top: 8px; }
.legal__nav a { color: var(--muted); text-decoration: none; font-weight: 500; width: fit-content; }
.legal__nav a:hover { color: var(--text); }
.legal__nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 5px; }

.prose { max-width: 68ch; color: #d9d9d4; }
.prose > * + * { margin-top: 1em; }
.prose h2 {
  font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; color: var(--text);
  margin-top: 2.6em; padding-top: 22px; border-top: 1px solid var(--rule); text-wrap: balance;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.0625rem; font-weight: 650; color: var(--text); margin-top: 1.8em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 0.78em; width: 10px; height: 1.5px; background: var(--faint); }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose a:hover { color: var(--cyan); }
.prose .pending { color: var(--cyan); font-weight: 600; }

.facts { display: grid; border-top: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 24px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--muted); font-size: 0.875rem; font-weight: 500; padding-top: 2px; }
.facts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; }
  .legal__head { position: static; }
  .legal__nav { grid-auto-flow: column; justify-content: start; gap: 20px; }
  .facts > div { grid-template-columns: 1fr; }
  .form__layer dl > div { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 420px) {
  .foot__legal { margin-left: 0; width: 100%; }
}

/* Primera pantalla: visualizaciones del reel destacado */
.hero__views { display: block; margin-top: 4px; color: var(--cyan); font-weight: 600; }
