/* ════════════════════════════════════════════════════════════════
   EP. MARKETING VISUAL · styles.css
   1 Tokens · 2 Base · 3 Layout · 4 Componentes · 5 Secciones · 6 Utilidades
   Mobile first. Cortes: 480 · 768 · 1024 · 1920
   ════════════════════════════════════════════════════════════════ */

/* ── Tipografía: Darker Grotesque (OFL), autoalojada ─────────────── */
@font-face { font-family: "Darker Grotesque"; src: url("../assets/fonts/darker-grotesque-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Darker Grotesque"; src: url("../assets/fonts/darker-grotesque-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Darker Grotesque"; src: url("../assets/fonts/darker-grotesque-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Darker Grotesque"; src: url("../assets/fonts/darker-grotesque-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ═══ 1 · TOKENS ═══ */
:root {
  --black: #000000;
  --charcoal: #111111;
  --ink: #0A0A0A;
  --paper: #FFFFFF;
  --bone: #FFFFFF;
  --soft: #BDBDBD;              /* texto secundario sobre negro: 11:1 */
  --line: rgba(255, 255, 255, .25);

  --font: "Darker Grotesque", "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  /* Jerarquía: un solo salto claro entre nivel y nivel.
     Darker Grotesque tiene mayúsculas bajas (.563em): los tamaños lo compensan. */
  --display-xl: clamp(48px, 16.4vw, 320px);
  --display-l: clamp(44px, max(9.6vw, min(15vw, 64px)), 190px);
  --h3: clamp(32px, 2.5vw, 44px);
  --lead: clamp(24px, 1.9vw, 32px);
  --body: 22px;
  --ui: 18px;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px; --s7: 160px;
  --gutter: 16px;
  --margin: 20px;
  --nav-h: 68px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}
@media (min-width: 768px) { :root { --gutter: 24px; --margin: 32px; --nav-h: 80px; } }

/* ═══ 2 · BASE ═══ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { background: var(--black); color-scheme: dark; -webkit-text-size-adjust: 100%; }
html:has(dialog:modal) { overflow: hidden; }
body {
  min-height: 100svh;
  color: var(--bone);
  font: 500 var(--body)/1.25 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
picture { display: block; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
b { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
button { padding: 0; border: 0; background: none; cursor: pointer; text-align: inherit; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; }
.section--paper :focus-visible, .story :focus-visible, .person--paper :focus-visible { outline-color: var(--ink); }
::selection { background: var(--bone); color: var(--ink); }
dialog {
  position: fixed; inset: 0;
  width: 100%; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--black); color: var(--bone);
}
dialog::backdrop { background: var(--black); }
@keyframes fade { from { opacity: 0 } }

/* Grano de película sutil sobre todos los fondos: 8 posiciones a 12 fps */
body::after { content: ""; position: fixed; inset: -80px; z-index: 101; pointer-events: none; background: url("../assets/img/grain.png") 0 0 / 256px; animation: grain .667s steps(1) infinite; }
@keyframes grain {
  0% { transform: translate(0, 0) } 12.5% { transform: translate(-32px, 22px) } 25% { transform: translate(28px, -44px) } 37.5% { transform: translate(-58px, -18px) }
  50% { transform: translate(46px, 36px) } 62.5% { transform: translate(-14px, 60px) } 75% { transform: translate(62px, -8px) } 87.5% { transform: translate(-40px, -52px) }
}

/* ═══ 3 · LAYOUT ═══ */
/* Un solo lienzo de Three.js detrás de toda la página; las secciones oscuras son transparentes */
.bg { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease-out; pointer-events: none; }
.bg.is-live { opacity: 1; }
.section { position: relative; padding: calc(var(--nav-h) + var(--s4)) var(--margin) var(--s5); }
.section--paper { background: var(--paper); color: var(--ink); }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s3) var(--s4); }
@media (min-width: 1024px) {
  .section { padding-bottom: var(--s6); }
  .section:not(.team__head) { min-height: 100svh; }
}

/* ═══ 4 · COMPONENTES ═══ */

/* Titulares: lo que pesa es lo que importa (700), lo que acompaña va en 400 */
.display-xl, .display-l { font-weight: 400; text-wrap: nowrap; letter-spacing: -.03em; margin-left: -.035em; }
.display-xl { font-size: var(--display-xl); line-height: .66; }
.display-l { font-size: var(--display-l); line-height: .72; }
.h3 { font-size: var(--h3); font-weight: 700; line-height: .95; letter-spacing: -.01em; }
.lead { font-size: var(--lead); font-weight: 500; line-height: 1.14; max-width: 34ch; text-wrap: pretty; }
.text { color: var(--soft); max-width: 34ch; text-wrap: pretty; }

/* Máscara por línea. El relleno evita recortar acentos y descendentes. */
.mask { display: block; overflow: hidden; overflow: clip; padding: .18em .08em .24em; margin: -.18em -.08em -.24em; }
.ln { display: block; }
.display-xl, .display-l, .person__name { display: grid; justify-items: start; }
.duo { display: grid; justify-items: start; }
@media (min-width: 768px) {
  .duo { display: block; }
  .duo .mask { display: inline-block; vertical-align: top; }
}
.js .mask > .ln { transform: translateY(120%); }
.js .bk { visibility: hidden; }
.is-static .mask > .ln { transform: none; }
.is-static .bk { visibility: visible; }

/* Corchetes rectos [ ], solo en la portada */
.bkline { display: block; padding: .16em 0 .1em; margin-left: .03em; }
.bk { position: relative; display: inline-block; padding: 0 .31em 0 .26em; }
.bk > i { position: absolute; top: -.02em; bottom: -.1em; width: .15em; border: .045em solid currentColor; pointer-events: none; }
.bk > i:first-child { left: 0; border-right: 0; }
.bk > i:last-child { right: 0; border-left: 0; }
.bk > b { display: inline-block; }

/* Logo */
.ep { display: block; fill: currentColor; overflow: visible; }
.logo { display: flex; align-items: center; min-width: 44px; min-height: 44px; }
.logo .ep { height: 24px; width: auto; aspect-ratio: 588 / 358; }

/* Píldora */
.pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 52px; padding: 0 10px 0 24px;
  border: 1px solid currentColor; border-radius: 99px;
  font-size: 21px; font-weight: 700; line-height: 1; white-space: nowrap;
  transition: background-color 400ms var(--ease-io), color 400ms var(--ease-io);
}
.pill__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #000; color: #fff; font-family: Arial, sans-serif; font-size: 18px; transition: transform 400ms var(--ease-out); }
.pill--solid { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.pill--sm { height: 40px; padding: 0 18px; gap: 8px; font-size: 18px; }
.pill--sm::before { content: ""; position: absolute; inset: -3px 0; }
@media (hover: hover) {
  .pill--solid:hover { background: transparent; color: var(--bone); }
  .pill--solid:hover .pill__icon { background: #fff; color: #000; }
  .pill--line:hover { background: #fff; color: #000; }
  .pill:hover .pill__icon { transform: translateX(4px); }
}

.stack { display: grid; gap: var(--s3); align-content: start; }
.under { margin-top: var(--s4); max-width: 60ch; }
.sprite { position: absolute; }

/* Enlace con subrayado que se dibuja */
.link { position: relative; display: inline-block; padding-block: 11px; font-weight: 700; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 400ms var(--ease-io); }
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
@media (hover: none) { .link::before { content: ""; position: absolute; inset: 50% -8px auto; height: 44px; transform: translateY(-50%); } }

/* Flechas redondas */
.round { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--bone); border-radius: 50%; font-size: 22px; line-height: 1; transition: background-color 300ms, color 300ms, opacity 300ms; }
.round:disabled { opacity: .35; cursor: default; }
@media (hover: hover) { .round:not(:disabled):hover { background: var(--bone); color: var(--ink); } }

/* Filtros entre corchetes */
.filters { display: flex; flex-wrap: wrap; gap: 0 var(--s3); }
.tag { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; font-size: 22px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; transition: color 300ms; }
.tag { color: var(--soft); }
.tag[aria-pressed="true"] { color: #fff; box-shadow: inset 0 -2px 0 #fff; }
@media (hover: hover) { .tag:hover { color: #fff; } }

/* Palabra masiva de borde a borde. --k = ancho de la palabra en em. */
.massive { display: block; container-type: inline-size; font-weight: 700; line-height: .6; letter-spacing: -.035em; white-space: nowrap; }
.massive > .mask { font-size: calc(100cqi / var(--k)); padding-inline: 0; margin-inline: 0; }
.massive--launch { --k: 6.58; }
.massive--launch .ln { margin-left: -.05em; }

/* Cursor VER: aparece solo sobre trabajos y fotos */
.cursor { position: fixed; left: 0; top: 0; z-index: 120; width: 90px; height: 90px; margin: -45px 0 0 -45px; pointer-events: none; visibility: hidden; }
.cursor::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--bone); transform: scale(0); transition: transform 300ms var(--ease-out); }
.cursor span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font-size: 18px; font-weight: 700; opacity: 0; transition: opacity 200ms; }
.cursor.is-view { visibility: visible; }
.cursor.is-view::before { transform: none; }
.cursor.is-view span { opacity: 1; }

/* Lightbox */
.lightbox { padding: 0 var(--margin); overflow: hidden; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox__top, .lightbox__bottom { display: flex; justify-content: space-between; align-items: center; min-height: 76px; gap: var(--s3); font-size: var(--ui); font-weight: 700; }
.lightbox__bottom .link { margin-left: var(--s2); }
.lightbox__close { min-height: 44px; min-width: 44px; padding-inline: 4px; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; }
.lightbox__stage > * { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; min-height: 0; animation: fade 400ms var(--ease-io); }
.lightbox__arrows { display: flex; gap: 12px; }
.lightbox__arrows[hidden], .lightbox [hidden] { display: none; }

/* ═══ 5 · SECCIONES ═══ */

/* ── Navegación ───────────────────────────────────────────────── */
.skip { position: fixed; left: var(--margin); top: 12px; z-index: 200; padding: 14px 20px; background: var(--bone); color: var(--ink); font-weight: 700; transform: translateY(-200%); }
.skip:focus { transform: none; }
.nav { position: fixed; inset: 0 0 auto; z-index: 100; display: flex; justify-content: space-between; align-items: center; height: var(--nav-h); padding: 0 var(--margin); color: #fff; mix-blend-mode: difference; transition: transform 500ms var(--ease-io); }
.nav.is-hidden:not(:focus-within) { transform: translateY(-100%); }
.nav__main, .nav__cta { display: none; }
/* Hamburguesa: tres rayitas */
.burger { display: grid; align-content: center; justify-items: end; gap: 7px; width: 48px; height: 48px; margin-right: -6px; padding-right: 6px; }
.burger i { display: block; width: 30px; height: 2px; background: currentColor; }
.burger--close { position: relative; }
.burger--close i { position: absolute; right: 6px; top: 23px; }
.burger--close i:first-child { transform: rotate(45deg); }
.burger--close i:last-child { transform: rotate(-45deg); }
@media (min-width: 1024px) {
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav__main { display: block; }
  .nav__main ul { display: flex; gap: .35em; }
  .nav__main li:not(:last-child)::after { content: ","; }
  .nav__main .link, .nav__cta { padding-block: 12px; font-weight: 500; }
  .nav__main, .nav__cta { font-size: 20px; font-weight: 500; }
  .nav__cta { justify-self: end; }
  .nav__cta { display: inline-block; }
  .nav > .burger { display: none; }
}
.menu { overflow-y: auto; padding: 0 var(--margin) var(--s4); }
.menu[open] { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s4); animation: fade 400ms var(--ease-io); }
.menu__top { display: flex; justify-content: space-between; align-items: center; min-height: var(--nav-h); }
.menu__links a { display: block; padding-block: 12px; font-size: clamp(44px, min(16vw, 9svh), 120px); font-weight: 400; line-height: .74; letter-spacing: -.02em; }
.menu__contact { display: grid; }
.menu__contact a { display: flex; align-items: center; min-height: 48px; border-top: 1px solid var(--line); }

/* ── 00 · Portada: título al pie, corchetes que se abren ──────── */
.hero { --fs: clamp(46px, 16.4vw, 150px); position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(28px, 5svh, 56px); min-height: 100svh; padding: var(--nav-h) var(--margin) 100px; }
.hero__title { font-size: var(--fs); font-weight: 400; line-height: .72; letter-spacing: -.03em; white-space: nowrap; margin-left: -.03em; }
.hero__l1 .ln { font-weight: 400; }
/* El logo a la altura exacta de las mayúsculas, apoyado en la línea de base */
.hero__l1 .ep { display: inline-block; height: calc(.563em * 358 / 351); width: auto; aspect-ratio: 588 / 358; vertical-align: calc(.563em * -7 / 351); margin-left: .06em; }
.hero__title .bk { line-height: .76; }
.hero__title .bk b span { display: block; }
.hero__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.hero__down { display: grid; place-items: center; width: 52px; height: 52px; font-size: 34px; }
.hero__down span { display: block; }
@media (max-width: 767px) { .hero__down { display: none; } }
@media (min-width: 768px) {
  .hero { --fs: min(10.4vw, 24svh, 240px); padding-bottom: var(--s4); }
  .hero__foot { padding-right: 108px; }
  .hero__title .bk b span { display: inline; }
  .hero__title .bk { line-height: .72; }
}

/* ── Declaración: cuadro negro sobre foto en barrido (Numinous) ─ */
.statement { position: relative; height: 150svh; }
.statement__stick { position: sticky; top: 0; height: 100svh; overflow: clip; background: #000; }
.smear { position: absolute; inset: 0; }
.smear picture, .smear img, .smear canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.smear img { filter: grayscale(1) blur(14px); transform: scale(1.08); }
.smear canvas { opacity: 0; transition: opacity .8s; }
.smear.is-live canvas { opacity: 1; }
.statement__card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--nav-h) + var(--s4)) var(--margin) var(--s4); background: #000; }
.js .statement__card { padding: calc(16svh + var(--s3)) calc(13vw + var(--s3)); }
.is-static .statement__card { padding: calc(var(--nav-h) + var(--s4)) var(--margin) var(--s4); }
.statement__title { max-width: 11em; font-size: clamp(40px, 5.4vw, 104px); font-weight: 400; line-height: .84; letter-spacing: -.03em; text-wrap: balance; }
.statement__mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: clamp(64px, 7vw, 120px); line-height: .72; }
.statement__mark .ep { height: .5em; width: auto; aspect-ratio: 588 / 358; }
.statement .lead { max-width: 30ch; }
@media (max-width: 767px) { .js .statement__card { padding: calc(16svh + 16px) calc(13vw + 12px); } .statement .lead { font-size: 21px; } }

/* ── 01 · Servicios: un servicio por cuadro, línea de tiempo ──── */
.reel__frame { position: relative; display: flex; flex-direction: column; padding: calc(var(--nav-h) + var(--s2)) var(--margin) var(--s3); }
.reel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2) var(--s4); }
.reel__head h2 { font-size: var(--h3); line-height: .95; }
.reel__list { display: grid; gap: var(--s6); margin-top: var(--s5); }
.reel__name { font-size: clamp(46px, 8.2vw, 160px); font-weight: 700; line-height: .74; letter-spacing: -.03em; text-wrap: balance; margin-left: -.03em; }
.reel__text { max-width: 46ch; margin-top: clamp(24px, 4svh, 48px); font-size: var(--lead); line-height: 1.16; color: var(--soft); text-wrap: pretty; }
.ruler { position: relative; height: 44px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 1px, transparent 1px 10px) 0 100% / 100% 8px no-repeat; }
.ruler__head { position: absolute; left: 0; bottom: 0; width: 1px; height: 26px; background: #fff; }
.ruler__head::before { content: ""; position: absolute; left: -3px; top: -8px; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.reel__nav { display: none; }
.js .reel.is-timeline { height: calc(100svh + var(--n) * 46svh); }
.js .is-timeline .reel__frame { position: sticky; top: 0; height: 100svh; overflow: clip; }
.js .is-timeline .reel__list { position: relative; flex: 1; min-height: 0; margin: 0; }
.js .is-timeline .reel__item { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.w { display: inline-block; overflow: hidden; overflow: clip; padding: .14em .05em .24em; margin: -.14em -.05em -.24em; vertical-align: top; }
.w > span { display: inline-block; }
.js .is-timeline .reel__nav { display: block; padding-right: 96px; }
.reel__ticks { display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.reel__ticks button { width: 100%; min-height: 44px; text-align: left; font-size: 20px; line-height: 1; color: var(--soft); transition: color 250ms; }
.reel__ticks button[aria-current="true"] { color: #fff; font-weight: 700; }
@media (min-width: 1024px) {
  .js .is-timeline .reel__item { padding-inline: calc((100vw - var(--margin) * 2 + var(--gutter)) / 12); }
}
@media (max-width: 767px) {
  .js .is-timeline .reel__nav { padding-right: 0; }
  .js .is-timeline .reel__frame { padding-bottom: 92px; } /* lugar para el botón del chat */
  .reel__head .pill { display: none; }
  .reel__ticks button { font-size: 17px; text-align: left; }
}
@media (max-height: 640px) { .reel__name { font-size: clamp(38px, 12svh, 90px); } }

/* ── 02 · Lanzamientos: tinta sobre blanco ────────────────────── */
.launch { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s6); }
.launch__body { display: grid; gap: var(--s4); }
.launch .lead { font-weight: 500; }
@media (min-width: 1024px) {
  .launch__body { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: end; }
  .launch__body .display-l { grid-column: 1 / span 8; }
  .launch__body .stack { grid-column: 9 / -1; }
}

/* ── 03 · Trabajos: todos del mismo tamaño ────────────── */
.slider { margin: var(--s4) calc(var(--margin) * -1) 0; }
.slider__track { display: flex; gap: var(--gutter); padding-inline: var(--margin); scroll-padding-inline: var(--margin); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.slider__track.is-dragging .project__card { pointer-events: none; }
.project { flex: none; width: 70vw; scroll-snap-align: start; padding-block: 12px; }
.project[hidden] { display: none; }
.project__card { display: block; width: 100%; }
.frame { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--charcoal); }
.frame--type { display: flex; align-items: flex-end; padding: 20px; font-size: clamp(44px, 4.2vw, 80px); font-weight: 700; line-height: .74; letter-spacing: -.03em; }
@media (min-width: 768px) { .project { width: 34vw; } }
@media (min-width: 1024px) { .project { width: calc((100vw - var(--margin) - var(--gutter) * 4) / 4.3); } }
.frame picture { height: 100%; }
.frame img { filter: grayscale(1); transition: filter 600ms var(--ease-out), transform 600ms var(--ease-out); -webkit-user-drag: none; }
.project__card:focus-visible .frame img { filter: none; }
@media (hover: hover) { .project__card:hover .frame img { filter: none; transform: scale(1.03); } }
.project__name { display: block; margin-top: 18px; font-size: 30px; font-weight: 700; line-height: .9; }
.project__meta { display: block; margin-top: 8px; color: var(--soft); font-size: 20px; line-height: 1; }
.slider { position: relative; }
.slider__canvas { position: absolute; left: 0; top: 0; z-index: 1; width: 100%; pointer-events: none; }
.project.is-gl .frame { background: transparent; }
.project.is-gl .frame img { opacity: 0; }
.slider__count { font-size: 20px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.slider__controls { display: flex; align-items: center; gap: var(--s4); margin: var(--s4) var(--margin) 0; }
.slider__controls .ruler { flex: 1; }
.slider__arrows { display: flex; gap: 12px; }
@media (hover: hover) and (pointer: fine) { .slider__track { cursor: grab; } .slider__track.is-dragging { cursor: grabbing; } }

/* ── 04 · Contamos historias: blanco arriba, franja abajo (Soundhouse) ─ */
.story { background: var(--paper); color: var(--ink); }
.story__top { display: grid; gap: var(--s5); padding: calc(var(--nav-h) + var(--s4)) var(--margin) var(--s4); }
.story__cols { display: grid; gap: var(--s3); align-items: end; }
.story__cols p { text-wrap: pretty; }
.strip { position: relative; height: clamp(300px, 56svh, 640px); overflow: hidden; background: #111; }
.strip img { filter: grayscale(1) contrast(1.1); object-position: 50% 42%; transform: none; }
@media (min-width: 1024px) {
  .story__cols { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); }
  .story__cols > :first-child { grid-column: 1 / span 4; }
  .story__cols > :nth-child(2) { grid-column: 7 / span 3; }
  .story__cols > :nth-child(3) { grid-column: 10 / span 3; }
}

/* ── 05 · Portfolio ───────────────────────────────────────────── */
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: var(--s4); min-height: 60vh; align-content: start; }
.photo[hidden] { display: none; }
.photo__card { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; }
.photo__card picture { height: 100%; }
.photo__card img { filter: grayscale(1) contrast(1.08); transition: filter 600ms var(--ease-out), transform 600ms var(--ease-out); }
.photo__card:focus-visible img { filter: none; }
@media (hover: hover) { .photo__card:hover img { filter: none; transform: scale(1.03); } }
@media (min-width: 768px) { .photos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .photos { grid-template-columns: repeat(3, 1fr); } }

/* ── 06 · Cómo trabajamos ─────────────────────────────────────── */
.steps { display: grid; margin: var(--s5) 0; }
.step { display: grid; grid-template-columns: 2px 1fr; column-gap: var(--s3); padding-bottom: var(--s4); }
.step > * { grid-column: 2; }
.step__line { grid-column: 1; grid-row: 1 / span 3; position: relative; background: var(--line); margin-bottom: calc(var(--s4) * -1); }
.step:last-child .step__line { margin-bottom: 0; }
.step__line i { position: absolute; inset: 0; background: var(--bone); transform: scaleY(var(--p, 0)); transform-origin: top; }
.step__num { font-size: 88px; font-weight: 300; line-height: .72; letter-spacing: -.03em; }
.step .h3 { margin-top: var(--s3); }
.step .text { margin-top: 12px; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { display: block; padding: 0 var(--gutter) 0 0; }
  .step__num { font-size: clamp(96px, 9vw, 170px); line-height: .66; margin-left: -.03em; }
  .step .h3 { font-size: clamp(24px, 2.1vw, 40px); }
  .step__line { display: block; height: 2px; margin: var(--s3) calc(var(--gutter) * -1) 0 0 !important; }
  .step__line i { transform: scaleX(var(--p, 0)); transform-origin: left; }
}

/* ── 07 · Equipo ──────────────────────────────────────────────── */
.team__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s3); }
.team__grid { display: grid; }
.person { display: flex; flex-direction: column; min-height: 68svh; padding: var(--s4) var(--margin); }
.person--paper { background: var(--paper); color: var(--ink); }
.person--dark { background: rgba(0, 0, 0, .35); }
.person__name { font-size: clamp(68px, 21vw, 120px); font-weight: 400; line-height: .8; letter-spacing: -.03em; margin-left: -.03em; }
.person .lead { margin-top: auto; padding-top: var(--s5); }
@media (min-width: 768px) {
  .team__grid { grid-template-columns: 1fr 1fr; }
  .person { min-height: 84svh; }
  .person__name { font-size: clamp(64px, 10vw, 200px); }
}

/* ── 08 · Hablemos: título, formulario y canales directos ─────── */
.contact { display: grid; gap: var(--s5); }
.contact__intro { display: grid; gap: var(--s4); align-content: start; }
.form { display: grid; gap: 14px; align-content: start; scroll-margin-top: var(--nav-h); }
.field label { display: block; font-size: 20px; font-weight: 700; line-height: 1.1; }
.field :is(input, select, textarea) { display: block; width: 100%; min-height: 52px; padding: 8px 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .55); border-radius: 0; background: transparent; font-size: 26px; line-height: 1.2; appearance: none; outline-offset: 0; transition: border-color 300ms; }
.field :is(input, select, textarea):hover { border-color: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.field select { padding-right: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none' stroke='%23FFFFFF' stroke-width='1.5'%3E%3Cpath d='m1 1 6 6 6-6'/%3E%3C/svg%3E") right 4px center no-repeat; cursor: pointer; }
.field option { background: #111; color: #fff; }
.field :is(input, select, textarea):-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s; }
.field__error { min-height: 22px; margin-top: 4px; font-size: 19px; font-weight: 700; line-height: 22px; }
.field [aria-invalid="true"] { border-bottom: 3px solid #fff; }
.form__end { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.form__note { max-width: 34ch; font-size: 20px; line-height: 1.1; color: var(--soft); }
.form__status:empty { display: none; }
.chans { display: grid; gap: 0 var(--gutter); }
.chan { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; min-height: 84px; padding: 16px 0; border-top: 1px solid var(--line); transition: padding 500ms var(--ease-out); }
.chan__label { grid-column: 1; font-size: 18px; line-height: 1; color: var(--soft); }
.chan__val { grid-column: 1; font-size: clamp(21px, 5.6vw, 30px); font-weight: 700; line-height: 1; overflow-wrap: anywhere; }
.chan__arrow { grid-column: 2; grid-row: 1 / span 2; font-size: 24px; }
@media (hover: hover) { .chan:hover { padding-left: 12px; } }
@media (min-width: 768px) {
  .form { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); }
  .field:nth-child(n + 3), .form__end, .form__status { grid-column: 1 / -1; }
  .chans { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .contact { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: var(--s6); }
  .contact__intro { grid-column: 1 / span 7; }
  .form { grid-column: 8 / -1; padding-top: 6px; }
  .chans { grid-column: 1 / -1; }
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer { display: grid; gap: var(--s5); margin-inline: var(--margin); padding: var(--s5) 0 var(--s4); border-top: 1px solid var(--line); }
.footer__line { font-size: var(--lead); line-height: 1.05; }
.footer__cols { display: grid; gap: var(--s4) var(--gutter); }
.footer__head { margin-bottom: var(--s1); font-weight: 700; }
.footer__cols .link { font-weight: 500; overflow-wrap: anywhere; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2); padding: var(--s3) 0 0; border-top: 1px solid var(--line); font-size: var(--ui); color: var(--soft); }
@media (min-width: 480px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) {
  .footer__cols { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: clamp(40px, 6vw, 110px); }
  .footer__cols .link { padding-block: 5px; }
  .footer__cols .link::after { bottom: 4px; }
}
@media (min-width: 1024px) {
  .footer { grid-template-columns: 1fr auto; align-items: start; }
  .footer__base { grid-column: 1 / -1; padding-right: 130px; } /* lugar para el botón del chat */
}

/* ═══ 6 · UTILIDADES ═══ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .mask > .ln { transform: none !important; }
  .js .bk { visibility: visible !important; }
  .step__line i { transform: none !important; }
  .cursor { display: none !important; }
}
@media print { .cursor, .nav { display: none; } .js .mask > .ln { transform: none; } }
@media (max-width: 767px) and (max-height: 700px) { .hero { --fs: 15.5vw; } }
