/* 054 Visual Media Lab
   Colores del Manual de Identidad (página 19).
   Nota: el manual indica RGB 215 41 33 junto al código #e42921; se usa el valor RGB (#d72921). */

:root {
  --black: #000000;
  --red: #d72921;        /* RGB 215 41 33, rojo principal */
  --red-mid: #bc1d19;    /* RGB 188 29 25 */
  --red-deep: #7d1712;   /* RGB 125 23 18 */
  --white: #ffffff;
  --grey-1: #1a1a1a;     /* apoyo: superficies */
  --grey-2: #8a8a8a;     /* apoyo: textos secundarios sobre negro */
  --line: rgba(255, 255, 255, 0.16);

  /* Placeholders de imagen (gris oscuro, medio y neutro) */
  --ph-dark: #262626;
  --ph-mid: #3a3a3a;
  --ph-neutral: #575757;

  /* Avenir Black (900) y Medium (500). Respaldo web: Figtree. */
  --font: "Avenir", "Avenir Next", "Figtree", "Segoe UI", sans-serif;

  --step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem);
  --step-3: clamp(2.2rem, 1.6rem + 2.8vw, 3.75rem);
  --step-4: clamp(2.6rem, 1.5rem + 4.2vw, 5rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.services :focus-visible { outline-color: var(--black); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--red); padding: 8px 14px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.h2 { font-size: var(--step-3); font-weight: 900; line-height: 1.04; letter-spacing: -0.02em; }
.h3 { font-size: var(--step-1); font-weight: 900; line-height: 1.2; }
.section { padding-block: clamp(72px, 10vw, 160px); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 20px 48px; margin-bottom: clamp(36px, 5vw, 72px);
}
.section-head p { max-width: 44ch; color: var(--grey-2); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border: 2px solid transparent; border-radius: 999px;
  font-weight: 900; font-size: var(--step-0); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-mid); }
.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--black); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Placeholders: bloques sólidos con proporción real del recurso futuro */
.ph {
  position: relative; width: 100%; aspect-ratio: var(--ratio, 16/9);
  background: var(--ph-mid); overflow: hidden;
}
.ph-dark { background: var(--ph-dark); }
.ph-neutral { background: var(--ph-neutral); }
.ph-label {
  position: absolute; left: 12px; bottom: 10px; font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45); letter-spacing: 0.02em;
}
.ph > img, .ph > video, .ph > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.ph > picture, .ph > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.is-real { background: var(--grey-1); }
.ph.is-real > video { object-fit: contain; background: var(--black); }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: clamp(130px, 14vw, 172px); }
.nav-menu { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav-menu ul { display: flex; gap: clamp(16px, 2.2vw, 32px); }
.nav-menu ul a {
  position: relative; text-decoration: none; font-weight: 500; font-size: var(--step--1); padding-block: 6px;
}
.nav-menu ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-menu ul a:hover::after, .nav-menu ul a[aria-current="true"]::after { transform: scaleX(1); }
.nav-cta { min-height: 40px; padding: 8px 18px; font-size: var(--step--1); }
.nav-toggle, .nav-menu-mark { display: none; }

/* ---------- Portada ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(32px, 4vw, 64px)); min-height: 100svh; display: flex; flex-direction: column;
}

/* Fondo: set de rodaje ilustrado y desenfocado. El foco (capa nítida con máscara) sigue al mouse. */
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #050505; contain: strict; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.12) 50%, rgba(0,0,0,.18) 100%),
              linear-gradient(180deg, transparent 70%, #000 100%);
}
/* Fondo desenfocado (ya viene desenfocado y con grano en la imagen). Sobresale 5% para el paralaje. */
.set-photo {
  position: absolute; left: -5%; top: -5%; width: 110%; height: 110%; max-width: none;
  object-fit: cover; object-position: 40% 50%; will-change: transform;
}
/* Lente de foco: un círculo de bordes suaves con la foto nítida, movido con transform */
.set-lens {
  position: absolute; left: 0; top: 0; width: clamp(300px, 34vw, 600px); aspect-ratio: 1; overflow: hidden;
  -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
  will-change: transform; transform: translate3d(-999px, -999px, 0);
}
.set-sharp { left: 0; top: 0; }
/* Dos columnas encuadradas: el texto (izquierda) ocupa la misma altura que video + botones (derecha).
   Arriba se alinean el titular y el video; abajo, el texto chico y los botones. */
.hero-grid {
  flex: 1; display: grid; grid-template-columns: minmax(0, 10fr) minmax(0, 14fr);
  grid-template-areas: "copy vf" "copy actions"; grid-template-rows: auto auto;
  column-gap: clamp(32px, 5vw, 80px); row-gap: 28px; align-content: center; padding-bottom: clamp(40px, 5vw, 72px);
}
.hero-copy { grid-area: copy; display: flex; flex-direction: column; justify-content: space-between; }
.viewfinder { grid-area: vf; }
.hero-actions { grid-area: actions; align-self: end; }
.hero-kicker { color: var(--grey-2); font-size: var(--step--1); margin-bottom: 20px; }
.hero h1 { font-size: var(--step-4); font-weight: 900; line-height: 0.98; letter-spacing: -0.03em; text-wrap: balance; }
.hero-lead { margin-top: 28px; max-width: 40ch; font-size: var(--step-1); line-height: 1.45; color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Visor de cámara: el recurso distintivo de la portada */
.viewfinder { position: relative; }
.vf-frame { position: relative; }
.viewfinder-screen { border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 24px 70px rgba(255,255,255,.12); }
/* El spot viene con franjas negras de cine: se amplía para llenar el visor */
.viewfinder-screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.34); }
.viewfinder.has-reel .vf-eyes { display: none; }
.vf-hud { position: absolute; inset: 0; pointer-events: none; font-weight: 900; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.vf-rec { position: absolute; top: 16px; left: 22px; display: flex; align-items: center; gap: 8px; letter-spacing: .08em; }
.vf-rec i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: blink 1s steps(2, start) infinite; }
.vf-tc { position: absolute; top: 16px; right: 22px; letter-spacing: .06em; }
.vf-corner { position: absolute; width: 28px; height: 28px; border: 2px solid var(--white); opacity: .85; }
.vf-corner.tl { top: 44px; left: 22px; border-right: 0; border-bottom: 0; }
.vf-corner.tr { top: 44px; right: 22px; border-left: 0; border-bottom: 0; }
.vf-corner.bl { bottom: 22px; left: 22px; border-right: 0; border-top: 0; }
.vf-corner.br { bottom: 22px; right: 22px; border-left: 0; border-top: 0; }
.vf-cross { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; translate: -50% -50%; opacity: .5; }
.vf-cross::before, .vf-cross::after { content: ""; position: absolute; background: var(--white); }
.vf-cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.vf-cross::after { top: 50%; left: 0; right: 0; height: 1px; }
.vf-eyes {
  position: absolute; left: 50%; top: 50%; width: 22%; translate: -50% -50%;
  transition: transform .25s var(--ease); pointer-events: none;
}
.vf-caption { margin-top: 14px; font-size: var(--step--1); color: var(--grey-2); }
@keyframes blink { to { visibility: hidden; } }

/* Cinta de peligro con la frase de enganche */
.hazard { position: relative; height: clamp(120px, 13vw, 170px); overflow: hidden; }
.tape { position: absolute; left: -6%; right: -6%; top: 50%; overflow: hidden; border-block: 3px solid var(--black); }
.tape-front { background: var(--red); color: var(--black); rotate: -2.5deg; translate: 0 -50%; z-index: 1; box-shadow: 0 12px 32px rgba(0,0,0,.55); }
.tape-back { background: var(--white); color: var(--black); rotate: 3deg; translate: 0 -40%; }
.tape-track { display: flex; width: max-content; animation: tape 40s linear infinite; will-change: transform; }
.tape-back .tape-track { animation-duration: 55s; animation-direction: reverse; }
.tape-txt {
  padding: 12px 28px; font-size: var(--step-1); font-weight: 900; text-transform: uppercase;
  letter-spacing: .02em; white-space: nowrap; line-height: 1.2;
}
.tape-back .tape-txt { font-size: var(--step-0); padding-block: 9px; }
.tape-stripes { flex: none; width: clamp(80px, 9vw, 130px); background: repeating-linear-gradient(-45deg, var(--black) 0 14px, transparent 14px 28px); }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- La empresa ---------- */
.company-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.company-logo { position: sticky; top: calc(var(--header-h) + 40px); }
.logo-mask {
  width: min(100%, 460px); aspect-ratio: 1062 / 1100; background: var(--red);
  -webkit-mask: url("../img/logo-apilado.png") center / contain no-repeat; mask: url("../img/logo-apilado.png") center / contain no-repeat;
}
.company-copy .h2 { font-size: var(--step-2); margin-bottom: 28px; max-width: 26ch; }
.company-copy > p { max-width: 62ch; color: rgba(255,255,255,.8); }
.company-copy > p + p { margin-top: 16px; }
.pillars { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pillars li {
  padding: 22px 0; border-bottom: 1px solid var(--line); font-size: var(--step-2); font-weight: 900; letter-spacing: -0.01em;
}
.pillars li:nth-child(odd) { padding-right: 16px; }
.team { margin-top: clamp(64px, 8vw, 120px); }
.team-list { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.team-list > div { padding: 22px 0; border-top: 1px solid var(--line); }
.team-list dt { font-weight: 900; margin-bottom: 6px; }
.team-list dd { color: var(--grey-2); font-size: var(--step--1); }

/* ---------- Servicios (sección blanca) ---------- */
.services { background: var(--white); color: var(--black); }
.services .section-head p { color: #555; }
.svc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); }
.svc-cats { display: flex; flex-direction: column; border-top: 2px solid var(--black); }
.svc-tab {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 18px 4px; border: 0; border-bottom: 1px solid #d0d0d0; background: none; text-align: left; cursor: pointer;
  font-size: var(--step-1); font-weight: 900; color: #6a6a6a; transition: color .2s, padding .3s var(--ease);
}
.svc-tab .count { font-size: var(--step--1); font-weight: 500; font-variant-numeric: tabular-nums; }
.svc-tab:hover { color: var(--black); }
.svc-tab[aria-selected="true"] { color: var(--black); padding-left: 16px; box-shadow: inset 4px 0 0 var(--red); }
.svc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.svc-intro { font-size: var(--step-1); line-height: 1.35; margin-bottom: 18px; }
.svc-list { display: flex; flex-direction: column; }
.svc-item {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 14px; border: 0; border-bottom: 1px solid #e3e3e3; background: none; cursor: pointer;
  text-align: left; font-weight: 500; transition: background-color .2s, color .2s;
}
.svc-item::after { content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; rotate: 45deg; opacity: .35; flex: none; }
.svc-item:hover { background: #f2f2f2; }
.svc-item[aria-pressed="true"] { background: var(--black); color: var(--white); }
.svc-item[aria-pressed="true"]::after { opacity: 1; border-color: var(--red); }
.svc-detail {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--black); color: var(--white); padding: clamp(24px, 3vw, 40px); border-radius: 6px;
}
.svc-detail .cat { color: var(--grey-2); font-size: var(--step--1); }
.svc-detail h3 { font-size: var(--step-2); font-weight: 900; line-height: 1.08; margin: 6px 0 14px; }
.svc-detail p { color: rgba(255,255,255,.82); }
.svc-detail h4 { margin: 24px 0 10px; font-size: var(--step--1); font-weight: 500; color: var(--grey-2); }
.svc-detail ul li { padding: 8px 0 8px 22px; border-top: 1px solid var(--line); position: relative; }
.svc-detail ul li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 10px; height: 2px; background: var(--red); }
.svc-detail .btn { margin-top: 26px; }
.svc-work { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.svc-work-btn { all: unset; cursor: pointer; display: grid; gap: 6px; font-size: var(--step--1); color: rgba(255,255,255,.82); }
.svc-work-btn .ph { border-radius: 4px; transition: opacity .2s; }
.svc-work-btn:hover .ph { opacity: .8; }
.svc-work-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.svc-work-btn .ph-play { width: 36px; height: 36px; }
.svc-work-btn .ph-play::after { left: 14px; top: 11px; border-left-width: 10px; border-block-width: 7px; }
.svc-detail.is-swapping > * { animation: swapIn .35s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Trabajos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: none; cursor: pointer;
  font-size: var(--step--1); font-weight: 500; transition: background-color .2s, border-color .2s, color .2s;
}
.filter:hover { border-color: var(--white); }
.filter[aria-pressed="true"] { background: var(--white); color: var(--black); border-color: var(--white); }
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; }
.work-card { grid-column: span 6; }
.work-card:nth-child(4n+1) { grid-column: 1 / span 5; }
.work-card:nth-child(4n+2) { grid-column: 7 / span 6; margin-top: clamp(40px, 8vw, 140px); }
.work-card:nth-child(4n+3) { grid-column: 2 / span 6; }
.work-card:nth-child(4n+4) { grid-column: 9 / span 4; margin-top: clamp(20px, 4vw, 60px); }
.work-card[hidden] { display: none; }
.work-btn { all: unset; display: block; width: 100%; cursor: pointer; }
.work-btn .ph { border-radius: 4px; transition: transform .5s var(--ease); }
.work-thumb { overflow: hidden; border-radius: 4px; position: relative; }
.work-thumb::after {
  content: "Ver proyecto"; position: absolute; right: 14px; bottom: 14px; padding: 8px 16px; border-radius: 999px;
  background: var(--red); font-size: var(--step--1); font-weight: 900; opacity: 0; transform: translateY(8px);
  transition: opacity .25s, transform .3s var(--ease);
}
.work-btn:hover .ph, .work-btn:focus-visible .ph { transform: scale(1.03); }
.work-btn:hover .work-thumb::after, .work-btn:focus-visible .work-thumb::after { opacity: 1; transform: none; }
.work-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.work-meta { margin-top: 14px; }
.work-meta h3 { font-size: var(--step-1); font-weight: 900; line-height: 1.2; }
.work-meta p { color: var(--grey-2); font-size: var(--step--1); margin-top: 4px; }
.work-empty { border: 1px dashed var(--line); border-radius: 6px; padding: 40px; max-width: 640px; }
.work-empty a { color: var(--white); text-decoration-color: var(--red); text-underline-offset: 3px; }

/* Detalle de proyecto */
.project {
  width: min(1100px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: 6px;
  background: var(--grey-1); color: var(--white); overflow: auto;
}
.project::backdrop { background: rgba(0,0,0,.8); }
.project[open] { animation: dialogIn .35s var(--ease); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px); } }
.project-inner { padding: clamp(20px, 4vw, 48px); }
.project-close {
  position: sticky; top: 0; float: right; z-index: 2; padding: 8px 16px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--grey-1); cursor: pointer; font-weight: 500;
}
.project-close:hover { border-color: var(--white); }
.project h2 { font-size: var(--step-3); font-weight: 900; line-height: 1.04; letter-spacing: -0.02em; max-width: 18ch; }
.project-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0; padding-block: 18px; border-block: 1px solid var(--line); }
.project-facts dt { color: var(--grey-2); font-size: var(--step--1); }
.project-facts dd { font-weight: 500; }
.project-desc { max-width: 62ch; color: rgba(255,255,255,.85); font-size: var(--step-1); line-height: 1.45; }
.project-media { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-media .ph { border-radius: 4px; }
.project-media .wide { grid-column: 1 / -1; }
.ph-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 64px; height: 64px; border-radius: 50%; background: var(--red); }
.ph-play::after { content: ""; position: absolute; left: 26px; top: 21px; border-left: 16px solid var(--white); border-block: 11px solid transparent; }

/* ---------- Diferenciales (sección roja) ---------- */
.diff { background: var(--red); }
.diff-statement { font-size: var(--step-3); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; max-width: 22ch; text-wrap: balance; }
.diff-grid { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.diff-item { border-top: 2px solid var(--black); padding-top: 18px; }
.diff-item h3 { font-size: var(--step-1); font-weight: 900; line-height: 1.2; margin-bottom: 10px; }
.diff-item p { font-size: var(--step--1); line-height: 1.55; }
.clients { margin-top: clamp(48px, 6vw, 88px); background: var(--black); padding: clamp(24px, 3vw, 40px); border-radius: 6px; }
.clients-title { font-size: var(--step-1); font-weight: 900; margin-bottom: 20px; }
.client-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.5vw, 16px); }
.client-logo { position: relative; aspect-ratio: 2 / 1; display: grid; place-items: center; background: var(--ph-dark); border-radius: 4px; }
.client-logo img { max-width: 68%; max-height: 58%; object-fit: contain; }

/* ---------- Proceso ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; position: relative; padding: 28px 22px 0 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; font-size: var(--step-2); font-weight: 900;
  color: var(--red); margin-bottom: 18px; font-variant-numeric: tabular-nums;
}
.steps li::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--white); }
.steps h3 { font-size: var(--step-0); font-weight: 900; margin-bottom: 8px; }
.steps p { font-size: var(--step--1); color: var(--grey-2); }

/* ---------- Contacto ---------- */
.contact { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-info > p { margin-top: 20px; color: rgba(255,255,255,.8); max-width: 42ch; }
.channels { margin-top: 36px; }
.channels li { display: grid; gap: 2px; padding: 16px 0; border-top: 1px solid var(--line); }
.channel-label { color: var(--grey-2); font-size: var(--step--1); }
.channels a { font-size: var(--step-1); font-weight: 900; text-decoration: none; }
.channels a:hover { color: var(--red); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; background: var(--grey-1); border: 1px solid #333; border-radius: 4px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #555; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--white); background: #222; }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-error { color: #ff7a72; font-size: var(--step--1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-note { color: var(--grey-2); font-size: var(--step--1); }
.form-status { padding: 18px 20px; border-radius: 4px; display: flex; gap: 16px; align-items: center; }
.form-status img { width: 56px; flex: none; }
.form-status.is-success { background: var(--white); color: var(--black); }
.form-status.is-success img { filter: invert(1); }
.form-status.is-error { background: var(--red-deep); }
.form-status a { font-weight: 900; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: var(--white); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 96px) 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: 32px; }
.footer-brand img { width: 200px; }
.footer-brand p { margin-top: 16px; color: var(--grey-2); font-size: var(--step--1); max-width: 30ch; }
.footer-col h2 { font-size: var(--step--1); font-weight: 500; color: var(--grey-2); margin-bottom: 14px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { text-decoration: none; font-size: var(--step--1); }
.footer-col a:hover { color: var(--red); }
.footer-legal { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: var(--step--1); color: var(--grey-2); }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .diff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .svc { grid-template-columns: 1fr; }
  .svc-cats { flex-direction: row; overflow-x: auto; border-top: 0; gap: 8px; scrollbar-width: none; padding-bottom: 4px; }
  .svc-cats::-webkit-scrollbar { display: none; }
  .svc-tab { flex: none; border: 1px solid #d0d0d0; border-radius: 999px; padding: 10px 18px; font-size: var(--step-0); }
  .svc-tab .count { display: none; }
  .svc-tab[aria-selected="true"] { padding-left: 18px; box-shadow: none; background: var(--black); color: var(--white); border-color: var(--black); }
  .team-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px;
    background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 500; position: relative; z-index: 2;
  }
  .nav-toggle-bars, .nav-toggle-bars::before { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
  .nav-toggle-bars { position: relative; height: 0; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
  .nav-toggle-bars::before { top: -4px; }
  .nav-toggle-bars::after { top: 3px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-3px) rotate(-45deg); }
  .nav-menu {
    position: fixed; inset: 0; height: 100dvh; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 32px; padding: calc(var(--header-h) + 24px) var(--gutter) 40px; background: var(--red);
    visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity .3s, transform .35s var(--ease), visibility 0s .35s;
  }
  .nav-menu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .35s var(--ease), visibility 0s; }
  .nav-menu ul { flex-direction: column; gap: 6px; }
  .nav-menu ul a { font-size: clamp(2rem, 9vw, 3rem); font-weight: 900; letter-spacing: -0.02em; }
  .nav-menu ul a::after { background: var(--black); height: 3px; }
  .nav-cta { background: var(--black); min-height: 52px; padding: 12px 26px; font-size: var(--step-0); }
  .nav-menu-mark { display: block; position: absolute; right: var(--gutter); bottom: 40px; width: 96px; }
  .site-header .brand { position: relative; z-index: 2; }

  .hero { min-height: auto; }
  .tape-back { translate: 0 -15%; }
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "vf" "copy" "actions"; row-gap: 32px; }
  .viewfinder-screen { border-radius: 14px; }
  .vf-eyes { width: 26%; }
  .company-grid { grid-template-columns: 1fr; }
  .company-logo { position: static; }
  .logo-mask { width: min(62%, 300px); }
  .svc-body { grid-template-columns: 1fr; }
  .svc-detail { position: static; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-card, .work-card:nth-child(n) { grid-column: auto; margin-top: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .diff-grid, .team-list { grid-template-columns: 1fr; }
  .pillars li { font-size: var(--step-1); }
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); row-gap: 32px; }
  .steps li { padding: 0 0 0 24px; }
  .steps li::after { top: 6px; left: -5px; }
  .steps li::before { margin-bottom: 8px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-thumb::after { opacity: 1; transform: none; }
  .form { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .project-facts { grid-template-columns: 1fr; gap: 10px; }
  .project-media { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { flex-direction: column; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .tape-track { animation: none; }
  .vf-rec i { animation: none; }
}

/* Botón "Ver todos los trabajos" bajo los destacados */
.work-more { display: flex; justify-content: center; margin-top: clamp(40px, 6vw, 80px); }
/* Página de todos los trabajos */
.work-page { padding-top: calc(var(--header-h) + clamp(32px, 5vw, 72px)); }
.work-page .h2 { font-size: var(--step-4); }
.work-back { display: inline-block; margin-bottom: 18px; color: var(--grey-2); font-size: var(--step--1); text-decoration: none; }
.work-back:hover { color: var(--white); }
