/* Andrés Villena · Pista v4 (ver DIRECTION.md)
   Retícula suiza, negro + neón, Helvetica Now Display. Portadas en B/N que cobran color. Bilingüe ES/EN. */

@font-face { font-family: "Helvetica Now Display"; src: url("../fonts/HelveticaNowDisplay-Thin.woff2") format("woff2"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Now Display"; src: url("../fonts/HelveticaNowDisplay-ExtLt.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Now Display"; src: url("../fonts/HelveticaNowDisplay-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Now Display"; src: url("../fonts/HelveticaNowDisplay-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Now Display"; src: url("../fonts/HelveticaNowDisplay-ExtBlk.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --paper: #F4F4F0;
  --white: #FFFFFF;
  --ink: #0B0B0B;
  --ink-2: #161616;
  --muted: #6E6E68;
  --muted-on-ink: #9C9C96;
  --neon: #DBFF1F;
  --on-neon: #0B0B0B;
  --hair: #0B0B0B;
  --hair-on-ink: #2E2E2E;
  --err: #C4001A;

  --font: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-move: cubic-bezier(0.77, 0, 0.175, 1);
  --t: 240ms;

  --gutter: clamp(16px, 2.4vw, 32px);
  --top: 56px;
  color-scheme: light;
}

/* Idioma: el HTML lleva los dos textos y se muestra uno */
html:not(.en) .en, html.en .es { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--top) + 8px); }
html.lock { overflow: hidden; }
body {
  margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--neon); color: var(--on-neon); }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; box-shadow: 0 0 0 4px var(--ink); }
[hidden] { display: none !important; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
figure { margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--neon); color: var(--on-neon); padding: 10px 14px; font-weight: 700; }
.skip:focus { left: 8px; }

/* Tipografía */
.cond { font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.86; }
.label, .side, .aside, .foot, .mono { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.45; }
.on-ink { background: var(--ink); color: var(--white); }

/* ---------- Cabecera ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: stretch; height: var(--top);
  background: var(--ink); color: var(--white); border-bottom: 1px solid var(--hair-on-ink);
}
.top .mark { display: flex; align-items: center; margin-right: auto; padding-inline: var(--gutter); text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; font-size: 15px; white-space: nowrap; }
.top nav { display: flex; align-items: stretch; }
.top nav a, .lang a, .lang span {
  display: flex; align-items: center; padding-inline: 18px; text-decoration: none;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  border-left: 1px solid var(--hair-on-ink); color: var(--muted-on-ink);
  transition: color var(--t) ease, background-color var(--t) ease;
}
.top nav a[aria-current="page"] { color: var(--white); }
.top nav a.cta { background: var(--neon); color: var(--on-neon); border-left: 0; }
.lang { display: flex; border-left: 1px solid var(--hair-on-ink); }
.lang a, .lang span { padding-inline: 12px; }
.lang > * + * { border-left: 1px solid var(--hair-on-ink); }
.lang span[aria-current] { color: var(--neon); }
@media (hover: hover) and (pointer: fine) {
  .top nav a:not(.cta):hover, .lang a:hover { color: var(--white); background: var(--ink-2); }
}
.burger { display: none; padding-inline: 18px; border: 0; border-left: 1px solid var(--hair-on-ink); background: var(--ink); color: var(--white); cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.drawer { position: fixed; inset: var(--top) 0 auto 0; z-index: 49; background: var(--ink); border-bottom: 1px solid var(--hair-on-ink);
  transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden;
  transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out), visibility 0s linear 220ms; }
.drawer.open { transform: none; opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.drawer a { display: block; padding: 14px var(--gutter); color: var(--white); text-decoration: none; border-top: 1px solid var(--hair-on-ink);
  font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; font-size: clamp(34px, 10vw, 52px); line-height: 1; }
.drawer a[aria-current="page"] { color: var(--neon); }
@media (max-width: 900px) { .top nav { display: none; } .burger { display: block; } }

/* ---------- Hero: retrato a sangre + nombre gigante ---------- */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate;
  min-height: clamp(600px, calc(100svh - var(--top)), 1080px); display: grid; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 12% 40%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,11,0) 30%, rgba(11,11,11,.55) 100%); }
.hero-in {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto auto auto;
  padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(20px, 3vw, 36px); column-gap: var(--gutter);
}
.hero-role { grid-column: 7 / -1; grid-row: 1; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-on-ink); border-top: 1px solid var(--hair-on-ink); padding-top: 12px; }
.name { grid-column: 6 / -1; grid-row: 3; align-self: end; color: var(--neon); font-size: clamp(64px, 12vw, 240px); white-space: nowrap; line-height: 0.82; letter-spacing: -0.035em; margin: 0 0 clamp(16px, 2vw, 28px) -0.05em; }
.name .ch { display: inline-block; }
.manifesto { grid-column: 6 / -1; grid-row: 4; font-size: clamp(24px, 2.7vw, 46px); font-weight: 200; line-height: 1.04; letter-spacing: -0.02em; max-width: 22ch; }
.manifesto em { font-style: normal; font-weight: 700; color: var(--neon); }
.hero-foot { grid-column: 6 / -1; grid-row: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(20px, 2.6vw, 36px); border-top: 1px solid var(--hair-on-ink); padding-top: 16px; }
.scroll { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-on-ink); display: flex; align-items: center; gap: 10px; }
.scroll::after { content: ""; width: 1px; height: 36px; background: var(--neon); transform-origin: top; animation: drip 1.6s var(--ease-move) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 760px) {
  .hero { display: block; min-height: 0; }
  .hero-bg { position: relative; inset: auto; z-index: 0; }
  .hero-bg img { aspect-ratio: 760 / 900; height: auto; max-height: 82svh; object-position: 50% 30%; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(11,11,11,0) 50%, rgba(11,11,11,1) 100%); }
  .hero-in { display: flex; flex-direction: column; position: relative; z-index: 1; margin-top: -19vw; padding-top: 0; }
  .name { order: 1; align-self: stretch; margin-bottom: 20px; }
  .manifesto { order: 2; }
  .hero-role { order: 3; margin-top: 22px; }
  .hero-foot { order: 4; }
  .hero-foot .btn { flex: 1; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  height: 56px; padding: 0 22px; border: 1px solid currentColor; text-decoration: none; cursor: pointer;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
  background: transparent; transition: transform 140ms var(--ease-out), background-color var(--t) ease, color var(--t) ease;
}
.btn:active { transform: scale(0.97); }
.btn-neon { background: var(--neon); color: var(--on-neon); border-color: var(--neon); }
.btn-ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn .arr { display: inline-block; transition: transform var(--t) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .arr { transform: translateX(4px); }
  .btn-neon:hover { background: var(--white); border-color: var(--white); }
  .btn-line:hover, .more .btn:hover { background: var(--ink); color: var(--neon); }
}

/* ---------- Cinta de logos (la única animación continua) ---------- */
.tape { background: var(--neon); overflow: hidden; border-block: 1px solid var(--ink); }
.tape-track { display: flex; align-items: center; width: max-content; animation: tape 40s linear infinite; }
.logo {
  flex: none; display: block; width: calc(var(--lh) * 1.3215); height: var(--lh); margin-right: clamp(12px, 2vw, 32px);
  --lh: clamp(80px, 8.6vw, 128px);
  background: var(--ink);
  -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center;
  mask-size: contain; mask-repeat: no-repeat; mask-position: center;
}
.logo[data-l="volkswagen"] { scale: 1.6; } .logo[data-l="fcbarcelona"] { scale: 1.35; } .logo[data-l="mango"] { scale: 1.15; } .logo[data-l="monogram"] { scale: 1.2; }
@keyframes tape { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) { .tape:hover .tape-track { animation-play-state: paused; } }

/* ---------- Cabeceras de sección ---------- */
.shead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; border-bottom: 1px solid var(--hair); padding: clamp(56px, 8vw, 128px) var(--gutter) 16px; gap: 12px var(--gutter); }
.shead h2 { grid-column: span 9; font-size: clamp(38px, 9vw, 168px); }
.shead .side { grid-column: span 3; justify-self: end; text-align: right; padding-bottom: 6px; }
.on-ink .shead { border-color: var(--hair-on-ink); }
.on-ink .side { color: var(--muted-on-ink); }
@media (max-width: 820px) { .shead h2, .shead .side { grid-column: span 12; justify-self: start; text-align: left; } }

/* ---------- Filtros ---------- */
.filters {
  position: sticky; top: var(--top); z-index: 30; background: var(--paper);
  display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--hair);
}
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 18px;
  border: 0; border-right: 1px solid var(--hair); background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
  transition: background-color var(--t) ease, color var(--t) ease;
}
.filters button sup { font-size: 10px; font-weight: 400; color: var(--muted); top: -0.4em; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--neon); }
.filters button[aria-pressed="true"] sup { color: var(--white); }
@media (hover: hover) and (pointer: fine) { .filters button:not([aria-pressed="true"]):hover { background: var(--neon); } }

/* ---------- Rejilla de proyectos ---------- */
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 1px; background: var(--hair); border-bottom: 1px solid var(--hair); }
.cell { grid-column: span 3; background: var(--paper); text-decoration: none; display: flex; flex-direction: column; min-width: 0; }
.cell.m { grid-column: span 4; }
.cell.l { grid-column: span 6; }
.cell.xl { grid-column: span 8; grid-row: span 2; }
.cell .img { position: relative; overflow: hidden; flex: 1; background: var(--ink); }
.cell img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3;
  filter: grayscale(1) contrast(1.08); scale: 1.06;
  transition: filter 420ms var(--ease-out), scale 520ms var(--ease-out);
}
.cell.xl .img { min-height: 380px; }
.cell.xl img { aspect-ratio: auto; position: absolute; inset: 0; }
.cell .cap {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline;
  padding: 12px 14px 14px; border-top: 1px solid var(--hair); transition: background-color var(--t) ease;
}
.cell .cap .idx { grid-row: 1 / span 2; font-weight: 700; font-size: 13px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.cell .cap strong { font-weight: 700; font-size: 18px; letter-spacing: -0.015em; line-height: 1.15; }
.cell.l .cap strong, .cell.xl .cap strong { font-size: clamp(20px, 1.9vw, 28px); font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; }
.cell .cap .yr { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cell .cap .who { grid-column: 2 / -1; font-size: 13px; color: var(--muted); margin-top: 2px; }
.cell .cap .go { grid-column: 2 / -1; display: none; margin-top: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.type-cover { width: 100%; height: 100%; min-height: 100%; aspect-ratio: 4 / 3; display: grid; place-items: end start; padding: 16px; background: var(--ink); color: var(--neon);
  font-weight: 700; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.9; font-size: clamp(30px, 3.2vw, 54px); }

/* Color al pasar el ratón (o al cruzar el centro de la pantalla en táctil) */
.cell.on img { filter: grayscale(0) contrast(1); scale: 1.02; }
.cell.on .cap { background: var(--neon); }
.cell.on .cap .who { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .cell:hover img, .cell:focus-visible img { filter: grayscale(0) contrast(1); scale: 1.1; }
  .cell:hover .cap, .cell:focus-visible .cap { background: var(--neon); }
  .cell:hover .cap .who { color: var(--ink); }
  .work:has(.cell:hover) .cell:not(:hover) img { filter: grayscale(1) contrast(1.08) brightness(0.72); }
}
@media (hover: none), (pointer: coarse) { .cell .cap .go { display: block; } }
.cell:active { transform: scale(0.99); transition: transform 120ms var(--ease-out); }

@media (max-width: 1100px) { .cell { grid-column: span 4; } .cell.m { grid-column: span 6; } .cell.l, .cell.xl { grid-column: span 12; } .cell.xl { grid-row: auto; } .cell.xl img { position: static; aspect-ratio: 16 / 10; } .cell.xl .img { min-height: 0; } }
@media (max-width: 640px) { .cell, .cell.m, .cell.l, .cell.xl { grid-column: span 12; } .cell img, .cell.xl img { aspect-ratio: 4 / 3.4; } }
.more { display: flex; justify-content: flex-end; border-bottom: 1px solid var(--hair); }
.more .btn { border: 0; border-left: 1px solid var(--hair); height: 64px; }
@media (max-width: 640px) { .more .btn { flex: 1; border-left: 0; } }
.empty { padding: 40px var(--gutter); font-weight: 700; }

/* Etiqueta que sigue al cursor */
.cursor-tag {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  background: var(--neon); color: var(--on-neon); padding: 9px 12px; white-space: nowrap;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  opacity: 0; scale: 0.9; transition: opacity 160ms var(--ease-out), scale 160ms var(--ease-out);
}
.cursor-tag.show { opacity: 1; scale: 1; }

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: clamp(20px, 3vw, 36px) var(--gutter); border-right: 1px solid var(--hair-on-ink); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 280px; }
.stat:last-child { border-right: 0; }
.stat .n { font-size: clamp(52px, 5.6vw, 112px); color: var(--neon); font-weight: 700; letter-spacing: -0.04em; line-height: 0.86; white-space: nowrap; }
.stat p { font-size: 14px; max-width: 26ch; color: var(--muted-on-ink); }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--hair-on-ink); } .stat { min-height: 200px; } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } .stat, .stat:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--hair-on-ink); min-height: 0; flex-direction: row; align-items: end; gap: 20px; } .stat .n { min-width: 4.2ch; } }

/* ---------- Servicios (inicio) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--hair); }
.svc { padding: 22px var(--gutter) 30px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); display: flex; flex-direction: column; gap: 16px; min-height: 360px; text-decoration: none; transition: background-color var(--t) ease; }
.svc:nth-child(3n) { border-right: 0; } .svc:nth-last-child(-n+3) { border-bottom: 0; }
.svc .no { font-size: 12px; font-weight: 700; }
.svc h3 { font-size: clamp(32px, 3vw, 52px); }
.svc p { color: var(--muted); max-width: 30ch; }
.svc .ex { margin-top: auto; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 12px; border-top: 1px solid var(--hair); }
@media (hover: hover) and (pointer: fine) { .svc:hover { background: var(--neon); } .svc:hover p { color: var(--ink); } }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: 1fr 1fr; } .svc, .svc:nth-child(3n) { border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); } .svc:nth-child(2n) { border-right: 0; } .svc:nth-last-child(-n+2) { border-bottom: 0; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } .svc, .svc:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--hair); min-height: 0; } .svc:last-child { border-bottom: 0; } }

/* Frase "sobre mí" */
.teaser { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px var(--gutter); align-items: end; padding: clamp(56px, 9vw, 150px) var(--gutter); border-bottom: 1px solid var(--hair); }
.teaser p { grid-column: 1 / span 10; font-size: clamp(30px, 4.6vw, 80px); font-weight: 200; line-height: 1.02; letter-spacing: -0.035em; }
.teaser p em { font-style: normal; font-weight: 700; }
.teaser .btn { grid-column: 11 / -1; justify-self: end; }
@media (max-width: 820px) { .teaser p, .teaser .btn { grid-column: 1 / -1; justify-self: start; } }

/* ---------- Llamada final ---------- */
.cta { background: var(--ink); color: var(--white); overflow: hidden; }
.cta .big { display: block; padding: clamp(24px, 4vw, 56px) var(--gutter) 0; font-size: clamp(64px, 15vw, 300px); color: var(--neon); text-decoration: none; white-space: nowrap; margin-left: -0.05em; letter-spacing: -0.035em; }
.cta-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-top: 1px solid var(--hair-on-ink); margin-top: 24px; }
.cta-row > * { padding: 20px var(--gutter); }
.cta-row .l { grid-column: span 6; border-right: 1px solid var(--hair-on-ink); font-size: clamp(20px, 2vw, 30px); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.cta-row .r { grid-column: span 6; display: flex; flex-direction: column; gap: 14px; justify-content: space-between; }
.cta-row .mail { font-size: clamp(16px, 1.6vw, 22px); color: var(--white); text-decoration: none; word-break: break-all; }
@media (max-width: 820px) { .cta-row .l, .cta-row .r { grid-column: span 12; border-right: 0; } .cta-row .l { border-bottom: 1px solid var(--hair-on-ink); } }

.foot { background: var(--ink); color: var(--muted-on-ink); border-top: 1px solid var(--hair-on-ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot a { text-decoration: none; }
.foot ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: var(--neon); } }

/* ---------- Cabecera de páginas internas ---------- */
.phead { border-bottom: 1px solid var(--hair); overflow: hidden; }
.phead h1 { display: block; padding: clamp(28px, 5vw, 64px) var(--gutter) 0; font-size: clamp(64px, 14vw, 260px); white-space: nowrap; margin-left: -0.05em; letter-spacing: -0.035em; line-height: 0.82; }
.phead .h-xl { white-space: normal; font-size: clamp(44px, 7.6vw, 140px); line-height: 0.86; letter-spacing: -0.04em; text-transform: uppercase; max-width: 14ch; overflow-wrap: anywhere; padding-bottom: clamp(18px, 2.4vw, 32px); margin-left: 0; }
.phead .row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-top: 1px solid var(--hair); margin-top: clamp(16px, 2vw, 28px); }
.phead .row > * { padding: 14px var(--gutter); }
.phead .row .lead { grid-column: span 8; font-size: clamp(19px, 1.8vw, 26px); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; border-right: 1px solid var(--hair); }
.phead .row .aside { grid-column: span 4; }
@media (max-width: 820px) { .phead .row .lead, .phead .row .aside { grid-column: span 12; border-right: 0; } .phead .row .lead { border-bottom: 1px solid var(--hair); } }

/* ---------- Ficha de proyecto ---------- */
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--hair); }
.case-meta > div { padding: 14px var(--gutter); border-right: 1px solid var(--hair); min-width: 0; }
.case-meta > div:last-child { border-right: 0; }
.case-meta .k { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.case-meta .v { font-weight: 700; }
@media (max-width: 820px) { .case-meta { grid-template-columns: 1fr 1fr; } .case-meta > div:nth-child(2) { border-right: 0; } .case-meta > div:nth-child(-n+2) { border-bottom: 1px solid var(--hair); } }
.case-cover { border-bottom: 1px solid var(--hair); background: var(--ink); overflow: hidden; }
.case-cover img { width: 100%; max-height: 88vh; object-fit: cover; }
.case-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-bottom: 1px solid var(--hair); }
.case-body .hook { grid-column: span 5; padding: clamp(20px, 3vw, 40px) var(--gutter); border-right: 1px solid var(--hair); font-size: clamp(26px, 2.8vw, 46px); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; }
.case-body .txt { grid-column: span 7; padding: clamp(20px, 3vw, 40px) var(--gutter); display: flex; flex-direction: column; gap: 16px; }
.case-body .txt p { max-width: 62ch; font-size: 18px; }
.case-body .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.case-body .chips a { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid var(--ink); padding: 4px 8px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .case-body .chips a:hover { background: var(--neon); } }
@media (max-width: 820px) { .case-body .hook, .case-body .txt { grid-column: span 12; border-right: 0; } .case-body .hook { border-bottom: 1px solid var(--hair); } }
.case-stats { background: var(--ink); color: var(--white); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.case-stats .stat { min-height: 220px; }
@media (max-width: 820px) { .case-stats { grid-template-columns: 1fr; } .case-stats .stat { border-right: 0; border-bottom: 1px solid var(--hair-on-ink); min-height: 0; } }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--hair); border-bottom: 1px solid var(--hair); }
.gallery > * { background: var(--ink); min-width: 0; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery .full { grid-column: 1 / -1; }
.gallery .full img { aspect-ratio: 16 / 8; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } .gallery .full img { aspect-ratio: 4 / 3; } }
.ph { display: grid; place-content: center; gap: 6px; text-align: center; padding: 28px; aspect-ratio: 16 / 9; background: var(--ink-2) !important; color: var(--muted-on-ink); font-size: 12px; border: 1px dashed var(--hair-on-ink); }
.ph b { color: var(--neon); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.credits { padding: 20px var(--gutter); border-bottom: 1px solid var(--hair); font-size: 13px; color: var(--muted); }
.next { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0 var(--gutter); text-decoration: none; background: var(--neon); color: var(--on-neon); border-bottom: 1px solid var(--ink); padding: 16px var(--gutter) 22px; overflow: hidden; }
.next .k { grid-column: 1 / -1; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.next .t { font-weight: 700; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.84; font-size: clamp(44px, 7.6vw, 140px); }
.next .thumb { width: clamp(120px, 22vw, 340px); background: var(--ink); }
.next .thumb img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; filter: grayscale(1); transition: filter 420ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .next:hover .thumb img { filter: none; } .next:hover .t { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.08em; } }
@media (max-width: 640px) { .next { grid-template-columns: 1fr; } .next .thumb { display: none; } }

/* ---------- Sobre mí ---------- */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-bottom: 1px solid var(--hair); }
.about .ph-col { grid-column: span 5; border-right: 1px solid var(--hair); background: var(--ink); }
.about .ph-col img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.about .tx { grid-column: span 7; padding: clamp(20px, 3vw, 44px) var(--gutter); display: flex; flex-direction: column; gap: 18px; }
.about .tx p { max-width: 60ch; font-size: 18px; }
.about .tx .big { font-size: clamp(26px, 2.8vw, 46px); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; max-width: 22ch; }
@media (max-width: 820px) { .about .ph-col, .about .tx { grid-column: span 12; border-right: 0; } .about .ph-col img { max-height: 70svh; } }
.table { width: 100%; border-collapse: collapse; }
.table td { border-bottom: 1px solid var(--hair); padding: 14px var(--gutter); vertical-align: top; }
.table td:first-child { width: 22%; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table td:nth-child(2) { font-weight: 700; width: 38%; }
.table td:nth-child(3) { color: var(--muted); }
@media (max-width: 700px) { .table td { display: block; border-bottom: 0; padding: 2px var(--gutter); width: auto !important; } .table tr { display: block; border-bottom: 1px solid var(--hair); padding: 12px 0; } }
.tools { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--hair); }
.tools span { padding: 14px 18px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin-bottom: -1px; font-size: 14px; font-weight: 700; }

/* ---------- Servicios ---------- */
.svc-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-bottom: 1px solid var(--hair); }
.svc-row .no { grid-column: span 1; padding: 22px var(--gutter); font-weight: 700; font-size: 13px; }
.svc-row h2 { grid-column: span 5; padding: 18px var(--gutter) 18px 0; font-size: clamp(44px, 6vw, 110px); border-right: 1px solid var(--hair); }
.svc-row .d { grid-column: span 6; padding: 22px var(--gutter); display: flex; flex-direction: column; gap: 14px; }
.svc-row .d p { font-size: clamp(18px, 1.5vw, 22px); font-weight: 700; letter-spacing: -0.01em; max-width: 40ch; }
.svc-row ul { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.svc-row li { padding: 8px 0; border-top: 1px solid var(--hair); }
@media (max-width: 820px) { .svc-row .no { grid-column: span 12; padding-bottom: 0; } .svc-row h2, .svc-row .d { grid-column: span 12; border-right: 0; padding-left: var(--gutter); } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-bottom: 1px solid var(--hair); }
.contact .info { grid-column: span 4; border-right: 1px solid var(--hair); }
.contact .info > div { padding: 16px var(--gutter); border-bottom: 1px solid var(--hair); }
.contact .info .k { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.contact .info .v { font-weight: 700; font-size: 19px; text-decoration: none; word-break: break-word; }
.contact form { grid-column: span 8; }
.f { display: grid; grid-template-columns: 180px minmax(0, 1fr); border-bottom: 1px solid var(--hair); }
.f label { padding: 18px var(--gutter); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; border-right: 1px solid var(--hair); }
.f .ctl { display: flex; flex-direction: column; min-width: 0; }
.f input, .f select, .f textarea { width: 100%; border: 0; background: transparent; padding: 16px var(--gutter); font-size: 19px; font-weight: 700; border-radius: 0; min-height: 56px; }
.f textarea { min-height: 170px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; background: var(--white); box-shadow: inset 4px 0 0 var(--neon); }
.f .help, .f .err { padding: 0 var(--gutter) 12px; font-size: 13px; }
.f .help { color: var(--muted); }
.f .err { color: var(--err); display: none; }
.f.invalid .err { display: block; }
.f.invalid label { color: var(--err); }
.hp { position: absolute; left: -9999px; }
.send { display: flex; justify-content: flex-end; }
.send .btn { border: 0; border-left: 1px solid var(--hair); height: 72px; font-size: 14px; }
@media (max-width: 820px) { .contact .info, .contact form { grid-column: span 12; border-right: 0; } .f { grid-template-columns: 1fr; } .f label { border-right: 0; padding-bottom: 0; } .send .btn { flex: 1; border-left: 0; } }

.thanks { background: var(--ink); color: var(--white); min-height: calc(100dvh - var(--top)); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.thanks .big { padding: clamp(24px, 4vw, 56px) var(--gutter) 0; font-size: clamp(64px, 18vw, 330px); color: var(--neon); white-space: nowrap; letter-spacing: -0.035em; margin-left: -0.05em; }

/* ---------- Movimiento ---------- */
@keyframes rise { from { transform: translateY(0.5em); opacity: 0; } to { transform: none; opacity: 1; } }
.js .name .ch { animation: rise 320ms var(--ease-out) both; animation-delay: calc(120ms + var(--i) * 32ms); }
.js .hero .manifesto, .js .hero .hero-foot, .js .hero .hero-role { animation: rise 320ms var(--ease-out) both; animation-delay: 560ms; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out); transition-delay: calc(var(--d, 0) * 50ms); }

/* Desplazamiento ligado al scroll: solo donde el navegador lo soporta */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-bg img { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes drift { to { transform: translateY(12%) scale(1.06); } }
    .cell img { animation: par linear both; animation-timeline: view(); }
    @keyframes par { from { translate: 0 -3%; } to { translate: 0 3%; } }
    .shead h2 { animation: slide linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    @keyframes slide { from { transform: translateX(6%); } to { transform: none; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  .tape-track, .scroll::after { animation: none; }
  .js .name .ch, .js .hero .manifesto, .js .hero .hero-foot, .js .hero .hero-role { animation: none; }
  .js .reveal { transform: none; }
  .js .reveal.in { transition: opacity 150ms ease; }
  .cell img, .btn, .btn .arr, .drawer, .cursor-tag { transition: none; }
  .btn:active, .cell:active { transform: none; }
}

/* =====================  v4  ===================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.on-ink .btn-line, .cta .btn-line, .thanks .btn-line { color: var(--white); }
.drawer .wa { color: var(--neon); font-size: clamp(22px, 6vw, 30px); }
.wa-inline { color: inherit; text-decoration: none; border-bottom: 2px solid var(--neon); }

/* Barra de progreso de lectura */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; background: var(--neon); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* Transiciones entre páginas (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 220ms var(--ease-move) both; }
::view-transition-new(root) { animation: vt-in 360ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-16px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(24px); } }

/* Hero: el retrato entra con un zoom lento */
.js .hero-bg img { animation: kb 1600ms var(--ease-out) both; }
@keyframes kb { from { transform: scale(1.12); filter: brightness(.4); } to { transform: none; filter: none; } }

/* Titulares que entran palabra a palabra */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.split .w > span { display: inline-block; }
.js .split .w > span { transform: translateY(105%); transition: transform 700ms var(--ease-out); transition-delay: calc(var(--i) * 70ms); }
.js .split.in .w > span { transform: none; }
.shead h2 { animation: none !important; }

/* Portadas: B/N, se destapan al entrar y cobran color con el ratón o el dedo */
.js .cell.reveal { opacity: 1; transform: none; }
.js .cell.reveal .img { clip-path: inset(100% 0 0 0); transition: clip-path 800ms var(--ease-move); transition-delay: calc(var(--d, 0) * 80ms); }
.js .cell.reveal.in .img { clip-path: inset(0 0 0 0); }
.js .cell.reveal .cap > * { opacity: 0; transform: translateY(10px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); transition-delay: calc(300ms + var(--d, 0) * 80ms); }
.js .cell.reveal.in .cap > * { opacity: 1; transform: none; }
.cell .go { display: none; }
@media (hover: none), (pointer: coarse) { .cell .cap .go { display: block; } }

/* Cinta de servicios que acelera con el scroll */
.mq { overflow: hidden; background: var(--ink); color: var(--white); padding: clamp(18px, 3vw, 40px) 0; border-block: 1px solid var(--ink); }
.mq-row { display: flex; width: max-content; will-change: transform; }
.mq-row span { font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.95; font-size: clamp(44px, 8vw, 140px); white-space: nowrap; padding-right: 0.45em; }
.mq-row span::after { content: "✶"; color: var(--neon); font-size: 0.5em; vertical-align: 0.35em; margin-left: 0.45em; }
.mq-row.out span { color: transparent; -webkit-text-stroke: 1.5px var(--white); }
.mq-row.out span::after { -webkit-text-stroke: 0; }

/* ---------- Ficha de proyecto v4 ---------- */
.case-head { border-bottom: 1px solid var(--hair); padding: clamp(22px, 4vw, 48px) var(--gutter) clamp(20px, 3vw, 36px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px var(--gutter); align-items: end; }
.crumbs { grid-column: 1 / -1; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.crumbs a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--neon); }
.case-head h1 { grid-column: 1 / span 8; font-size: clamp(46px, 8vw, 150px); line-height: 0.86; letter-spacing: -0.035em; text-transform: uppercase; overflow-wrap: anywhere; }
.case-head .hook { grid-column: 9 / -1; font-size: clamp(20px, 1.9vw, 30px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; padding-bottom: 0.3em; }
@media (max-width: 900px) { .case-head h1, .case-head .hook { grid-column: 1 / -1; } }
.case-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-bottom: 1px solid var(--hair); }
.case-cover { grid-column: span 8; background: var(--ink); overflow: hidden; border-right: 1px solid var(--hair); }
.case-cover img, .case-cover .type-cover { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 808 / 632; }
.case-meta { grid-column: span 4; display: flex; flex-direction: column; border: 0; }
.case-meta > div { padding: 16px var(--gutter); border-bottom: 1px solid var(--hair); border-right: 0; }
.case-meta > div:last-child { border-bottom: 0; flex: 1; }
.case-meta .k { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.case-meta .v { font-weight: 700; font-size: 18px; line-height: 1.25; }
.case-meta .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.case-meta .chips a { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid var(--ink); padding: 4px 8px; text-decoration: none; transition: background-color var(--t) ease; }
@media (hover: hover) and (pointer: fine) { .case-meta .chips a:hover { background: var(--neon); } }
@media (max-width: 900px) { .case-cover, .case-meta { grid-column: 1 / -1; border-right: 0; } .case-cover { border-bottom: 1px solid var(--hair); } .case-meta { display: grid; grid-template-columns: 1fr 1fr; } .case-meta > div:nth-child(odd) { border-right: 1px solid var(--hair); } .case-meta > .tagrow { grid-column: 1 / -1; border-right: 0 !important; } }
.case-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-bottom: 1px solid var(--hair); }
.case-body .kicker { grid-column: span 4; padding: clamp(20px, 3vw, 40px) var(--gutter); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; border-right: 1px solid var(--hair); }
.case-body .txt { grid-column: span 8; padding: clamp(20px, 3vw, 40px) var(--gutter); display: flex; flex-direction: column; gap: 18px; }
.case-body .txt p { max-width: 64ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; }
.case-body .txt p:first-child { font-size: clamp(20px, 1.8vw, 28px); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
@media (max-width: 820px) { .case-body .kicker, .case-body .txt { grid-column: 1 / -1; border-right: 0; } .case-body .kicker { padding-bottom: 0; } }
.case-stats .stat { border-bottom: 0; }
.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery figure { margin: 0; background: #E9E9E4; min-width: 0; overflow: hidden; display: grid; place-items: center; }
.gallery .full { grid-column: 1 / -1; background: var(--ink); }
.gallery .full img { width: 100%; height: auto; aspect-ratio: auto; object-fit: initial; max-height: none; }
.gallery .half { aspect-ratio: 1 / 1; padding: clamp(14px, 3vw, 48px); }
.gallery .lone { grid-column: 1 / -1; aspect-ratio: 16 / 9; padding: clamp(14px, 3vw, 48px); }
.gallery .half img, .gallery .lone img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: auto; }
.js .gallery .reveal { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease-move); }
.js .gallery .reveal.in { clip-path: inset(0); }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } .gallery .half { aspect-ratio: auto; } .gallery .lone { aspect-ratio: auto; } }
.credits b { color: var(--ink); }
.pn { display: grid; grid-template-columns: 1fr 2fr; border-bottom: 1px solid var(--ink); }
.pn a { text-decoration: none; padding: 16px var(--gutter) 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pn .k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.pn .t { font-weight: 700; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.86; overflow-wrap: anywhere; }
.pn .prev { border-right: 1px solid var(--ink); }
.pn .prev .t { font-size: clamp(26px, 3vw, 52px); }
.pn .next { background: var(--neon); color: var(--on-neon); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px var(--gutter); border-bottom: 0; }
.pn .next .k { grid-column: 1 / -1; padding: 0; margin: 0; }
.pn .next .t { font-size: clamp(40px, 6.4vw, 120px); padding: 0; }
.pn .next .thumb { width: clamp(110px, 18vw, 300px); background: var(--ink); overflow: hidden; }
.pn .next .thumb img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; filter: grayscale(1); transition: filter 420ms var(--ease-out), scale 520ms var(--ease-out); }
.pn .next.on .thumb img { filter: none; }
@media (hover: hover) and (pointer: fine) { .pn .next:hover .thumb img { filter: none; scale: 1.06; } .pn .prev:hover { background: var(--ink); color: var(--neon); } }
@media (max-width: 700px) { .pn { grid-template-columns: 1fr; } .pn .prev { border-right: 0; border-bottom: 1px solid var(--ink); } .pn .next .thumb { display: none; } }
.related .shead h2 { font-size: clamp(36px, 6vw, 110px); }

/* Parallax suave de la portada en la ficha */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .case-cover img { animation: par2 linear both; animation-timeline: view(); }
    @keyframes par2 { from { transform: scale(1.12) translateY(-4%); } to { transform: scale(1.12) translateY(4%); } }
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero-bg img { animation: none; }
  .js .split .w > span { transform: none; transition: none; }
  .js .cell.reveal .img, .js .gallery .reveal { clip-path: none; transition: none; }
  .js .cell.reveal .cap > * { opacity: 1; transform: none; transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

.svc-row .btn, .svc .ex { white-space: normal; text-align: left; }
@media (max-width: 640px) { .svc-row .btn { height: auto; min-height: 56px; padding-block: 12px; } }

/* =====================  v5  ===================== */
.kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Pilares (inicio y servicios) ---------- */
.pillars { background: var(--ink); color: var(--white); border-bottom: 1px solid var(--hair-on-ink); }
.pl-head { padding: clamp(56px, 8vw, 120px) var(--gutter) clamp(28px, 4vw, 56px); display: grid; gap: 22px; }
.pl-head .kicker { color: var(--neon); }
.pl-claim { font-weight: 700; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.88; font-size: clamp(42px, 7.4vw, 136px); max-width: 15ch; }
.pl-list { border-top: 1px solid var(--hair-on-ink); }
.pl { position: relative; display: grid; grid-template-columns: 70px minmax(0, 6fr) minmax(0, 5fr); gap: 0 var(--gutter); align-items: start; padding: clamp(22px, 3vw, 40px) var(--gutter); border-bottom: 1px solid var(--hair-on-ink); text-decoration: none; color: var(--white); isolation: isolate; overflow: hidden; transition: color 260ms var(--ease-out); }
.pl::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--neon); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 420ms var(--ease-move); }
.pl .no { font-size: 13px; font-weight: 700; padding-top: 0.6em; color: var(--neon); transition: color 260ms ease; }
.pl h3 { font-size: clamp(40px, 6.4vw, 118px); line-height: 0.86; letter-spacing: -0.035em; }
.pl-tx { display: flex; flex-direction: column; gap: 14px; padding-top: 0.4em; }
.pl-tx p { font-size: clamp(16px, 1.25vw, 19px); color: var(--muted-on-ink); max-width: 46ch; transition: color 260ms ease; }
.pl-tx ul { list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 700; }
.pl-tx li { padding: 7px 0; border-top: 1px solid var(--hair-on-ink); transition: border-color 260ms ease; }
.pl .ex { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.pl-img { position: absolute; right: clamp(16px, 4vw, 64px); top: 50%; width: clamp(200px, 22vw, 340px); aspect-ratio: 4 / 3; overflow: hidden; z-index: 1; pointer-events: none;
  transform: translateY(-50%) rotate(-3deg) scale(.86); opacity: 0; clip-path: inset(100% 0 0 0); transition: clip-path 520ms var(--ease-move), opacity 200ms ease, transform 520ms var(--ease-out); }
.pl-img img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .pl:hover { color: var(--ink); }
  .pl:hover::before { transform: scaleY(1); }
  .pl:hover .no, .pl:hover .pl-tx p { color: var(--ink); }
  .pl:hover .pl-tx li { border-color: rgba(11,11,11,.35); }
  .pl:hover .pl-img { opacity: 1; clip-path: inset(0); transform: translateY(-50%) rotate(-3deg) scale(1); }
  .pl:hover .pl-tx { opacity: 0.0; }
}
.pl-tx { transition: opacity 200ms ease; }
@media (max-width: 900px) {
  .pl { grid-template-columns: 1fr; gap: 14px; }
  .pl .no { padding-top: 0; }
  .pl-img { position: relative; right: auto; top: auto; width: 100%; aspect-ratio: 16 / 9; opacity: 1; clip-path: none; transform: none; order: 2; }
}
.duo { padding: clamp(48px, 7vw, 110px) var(--gutter); display: grid; gap: clamp(28px, 4vw, 56px); }
.duo-line { font-size: clamp(36px, 6.2vw, 116px); line-height: 0.92; letter-spacing: -0.035em; text-transform: uppercase; }
.duo-line .h { font-weight: 200; }
.duo-line .x { color: var(--neon); font-weight: 700; display: inline-block; animation: spin 6s linear infinite; }
.duo-line .a { font-weight: 700; color: var(--neon); }
.duo-line .s { display: block; font-size: 0.42em; font-weight: 400; text-transform: none; letter-spacing: -0.02em; margin-top: 0.5em; color: var(--white); }
@keyframes spin { to { transform: rotate(360deg); } }
.duo-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); align-items: start; border-top: 1px solid var(--hair-on-ink); padding-top: 22px; }
.duo-tx { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.3; color: var(--muted-on-ink); max-width: 36ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { display: flex; flex-direction: column; gap: 8px; padding: 0 18px 0 0; border-left: 1px solid var(--hair-on-ink); padding-left: 18px; }
.steps .no { font-size: 12px; font-weight: 700; color: var(--neon); }
.steps b { font-size: clamp(22px, 2vw, 32px); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; }
.steps span:last-child { font-size: 14px; color: var(--muted-on-ink); }
@media (max-width: 820px) { .duo-row { grid-template-columns: 1fr; } .steps { grid-template-columns: 1fr; gap: 16px; } .steps li { border-left: 0; padding-left: 0; border-top: 1px solid var(--hair-on-ink); padding-top: 12px; } }

/* ---------- Ficha estilo Behance ---------- */
.cs-hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; }
.cs-hero:not(.small) { min-height: clamp(520px, calc(100svh - var(--top)), 1100px); display: grid; align-items: end; }
.cs-hero:not(.small) .cs-hero-img { position: absolute; inset: 0; margin: 0; }
.cs-hero:not(.small) .cs-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.cs-hero:not(.small) .cs-hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,11,.15) 0%, rgba(11,11,11,0) 35%, rgba(11,11,11,.85) 100%); }
.cs-hero-txt { position: relative; padding: clamp(22px, 4vw, 56px) var(--gutter); display: grid; gap: 16px; }
.cs-hero .crumbs { color: var(--muted-on-ink); }
.cs-hero .crumbs a { color: var(--white); }
.cs-hero h1 { font-size: clamp(48px, 9vw, 176px); line-height: 0.84; letter-spacing: -0.04em; text-transform: uppercase; max-width: 13ch; overflow-wrap: anywhere; }
.cs-hero:not(.small) h1 { color: var(--neon); }
.cs-hero.small { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--hair); }
.cs-hero.small .cs-hero-txt { align-content: end; border-right: 1px solid var(--hair); }
.cs-hero.small .crumbs { color: var(--muted); } .cs-hero.small .crumbs a { color: var(--ink); }
.cs-hero.small h1 { font-size: clamp(40px, 5.6vw, 104px); }
.cs-hero.small .cs-hero-img { margin: 0; background: #E9E9E4; display: grid; place-items: center; padding: clamp(16px, 4vw, 64px); }
.cs-hero.small .cs-hero-img img { width: 100%; height: auto; max-height: 78svh; object-fit: contain; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
@media (max-width: 900px) { .cs-hero.small { grid-template-columns: 1fr; } .cs-hero.small .cs-hero-txt { border-right: 0; border-bottom: 1px solid var(--hair); } }
.js .cs-hero .cs-hero-img img { animation: kb 1600ms var(--ease-out) both; }

.cs-intro { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); border-bottom: 1px solid var(--hair); }
.cs-lead { padding: clamp(28px, 5vw, 72px) var(--gutter); display: flex; flex-direction: column; gap: 22px; border-right: 1px solid var(--hair); }
.cs-lead .hook { font-size: clamp(28px, 3.4vw, 58px); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; max-width: 20ch; }
.cs-lead .first { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.55; max-width: 60ch; }
.cs-meta { display: flex; flex-direction: column; }
.cs-meta > div { padding: 16px var(--gutter); border-bottom: 1px solid var(--hair); }
.cs-meta > div:last-child { border-bottom: 0; }
.cs-meta .k { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.cs-meta .v { font-weight: 700; font-size: 18px; line-height: 1.25; }
.cs-meta .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cs-meta .chips a { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid var(--ink); padding: 4px 8px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .cs-meta .chips a:hover { background: var(--neon); } }
@media (max-width: 900px) { .cs-intro { grid-template-columns: 1fr; } .cs-lead { border-right: 0; border-bottom: 1px solid var(--hair); } .cs-meta { display: grid; grid-template-columns: 1fr 1fr; } .cs-meta > div:nth-child(odd):not(.tagrow) { border-right: 1px solid var(--hair); } .cs-meta .tagrow { grid-column: 1 / -1; } }

.cs-story { background: var(--ink); display: flex; flex-direction: column; gap: 1px; }
.cs-story figure { margin: 0; background: var(--ink); overflow: hidden; cursor: zoom-in; }
.cs-story img { display: block; width: 100%; height: auto; }
.m-full img { width: 100%; height: auto; max-height: 120svh; object-fit: cover; }
.m-row { display: flex; gap: 1px; }
.m-row figure { flex: var(--r) 1 0; min-width: 0; }
.m-row img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--r); }
@media (max-width: 700px) { .m-row { flex-direction: column; } }
.m-text { background: var(--paper); color: var(--ink); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gutter); padding: clamp(40px, 7vw, 120px) var(--gutter); }
.m-text .no, .sp-txt .no { font-size: 12px; font-weight: 700; padding-top: 0.5em; }
.m-text p { font-size: clamp(22px, 2.4vw, 40px); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; max-width: 30ch; }
@media (max-width: 700px) { .m-text { grid-template-columns: 1fr; gap: 10px; } }
.m-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1px; background: var(--ink); }
.sp-txt { background: var(--paper); color: var(--ink); padding: clamp(32px, 5vw, 80px) var(--gutter); display: flex; flex-direction: column; gap: 14px; }
.sp-txt > * { position: sticky; top: calc(var(--top) + 24px); }
.sp-txt .no { top: calc(var(--top) + 8px); }
.sp-txt p { font-size: clamp(19px, 1.7vw, 27px); font-weight: 700; line-height: 1.22; letter-spacing: -0.02em; }
.sp-imgs { display: flex; flex-direction: column; gap: 1px; }
@media (max-width: 900px) { .m-split { grid-template-columns: 1fr; } .sp-txt > * { position: static; } }

/* Galería deslizable */
.m-car { background: var(--ink); color: var(--white); padding: clamp(18px, 3vw, 40px) 0; }
.car-track { display: flex; gap: clamp(8px, 1.2vw, 16px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 0 var(--gutter); scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.car-track::-webkit-scrollbar { display: none; }
.car-track.drag { cursor: grabbing; scroll-snap-type: none; }
.car-track figure { flex: none; height: clamp(260px, 64svh, 760px); aspect-ratio: var(--r); max-width: 88vw; scroll-snap-align: start; }
.car-track img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.car-ui { display: flex; align-items: center; gap: 10px; padding: 16px var(--gutter) 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.car-count b { color: var(--neon); font-size: 1.6em; }
.car-hint { margin-right: auto; color: var(--muted-on-ink); margin-left: 16px; }
.car-ui button { width: 48px; height: 48px; border: 1px solid var(--hair-on-ink); background: transparent; color: var(--white); cursor: pointer; font-size: 18px; transition: background-color var(--t) ease, color var(--t) ease; }
@media (hover: hover) and (pointer: fine) { .car-ui button:hover { background: var(--neon); color: var(--ink); border-color: var(--neon); } }
.car-ui button:active { transform: scale(0.95); }

/* Entrada de las imágenes de la ficha */
.js .cs .rv { clip-path: inset(0 0 100% 0); transition: clip-path 1000ms var(--ease-move); }
.js .cs .rv.in { clip-path: inset(0); }
.js .cs .rv img { transform: scale(1.12); transition: transform 1400ms var(--ease-out); }
.js .cs .rv.in img { transform: none; }
.js .cs .m-text.rv { clip-path: none; opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .cs .m-text.rv.in { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .cs-story figure img { transition: transform 900ms var(--ease-out), filter 300ms ease; } .cs-story figure:hover img { filter: brightness(1.06); } }

/* Visor a pantalla completa */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(11,11,11,.96); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lb[hidden] { display: none; }
.lb-f { margin: 0; height: 100svh; display: grid; place-items: center; padding: 56px 0; }
.lb-f img { max-width: 100%; max-height: calc(100svh - 112px); object-fit: contain; animation: lbin 320ms var(--ease-out); }
@keyframes lbin { from { opacity: 0; transform: scale(.96); } }
.lb button { background: transparent; border: 0; color: var(--white); font-size: 28px; cursor: pointer; height: 64px; }
.lb-x { position: absolute; top: 8px; right: 12px; width: 56px; font-size: 40px !important; }
.lb-c { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--muted-on-ink); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
@media (hover: hover) and (pointer: fine) { .lb button:hover { color: var(--neon); } }
@media (max-width: 640px) { .lb { grid-template-columns: 1fr; } .lb-p, .lb-n { position: absolute; bottom: 4px; } .lb-p { left: 8px; } .lb-n { right: 8px; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cs-hero:not(.small) .cs-hero-img img { animation: heroPar linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
    @keyframes heroPar { to { transform: translateY(14%) scale(1.08); } }
    .m-full { overflow: hidden; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .cs .rv, .js .cs .rv img, .js .cs .m-text.rv { clip-path: none; transform: none; opacity: 1; transition: none; }
  .duo-line .x { animation: none; }
  .pl::before, .pl-img { transition: none; }
}

/* ---------- v6: orden de Behance, vídeos y gifs ---------- */
.m-head { margin: 0; background: var(--ink); color: var(--white); padding: clamp(56px, 8vw, 140px) var(--gutter) clamp(18px, 2.4vw, 32px); font-size: clamp(44px, 8.5vw, 150px); line-height: 0.9; text-transform: uppercase; letter-spacing: -0.02em; }
.m-vid { background: var(--ink); padding: clamp(18px, 3vw, 40px) var(--gutter); display: flex; justify-content: center; }
.cs-story figure.vf { cursor: auto; background: #000; }
.m-vid .vf { width: min(100%, calc(84svh * var(--r))); aspect-ratio: var(--r); }
.vf iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.m-vcar .car-track figure.vf { height: clamp(240px, 62svh, 720px); }
.m-vcar .car-track { cursor: default; }
.m-loop video { display: block; width: 100%; height: auto; background: var(--ink); }
.cs-story figure.m-loop { cursor: auto; }
.m-full.tall { display: flex; justify-content: center; background: var(--ink); }
.m-full.tall img { width: auto; max-width: 100%; max-height: 100svh; object-fit: contain; }
.m-loop.tall { display: flex; justify-content: center; }
.m-loop.tall video { width: auto; max-width: 100%; max-height: 100svh; }

/* ---------- v7: maquetación tipo Behance ---------- */
.cs-story > figure, .cs-story > .m-row, .cs-story > .m-cap, .cs-story > .m-vid { width: min(100%, 1600px); align-self: center; }
.cs-story .m-full img { width: 100%; height: auto; max-height: none; object-fit: initial; }
.cs-story .m-full.tall img { width: auto; max-width: 100%; max-height: 100svh; object-fit: contain; }
.cs-story .m-row img { height: auto; }
.m-cap { margin: 0; background: var(--ink); color: var(--muted-on-ink); padding: 14px var(--gutter) clamp(26px, 3vw, 44px); font-size: clamp(14px, 1.1vw, 17px); font-weight: 700; line-height: 1.4; letter-spacing: 0.005em; }
.m-cap::before { content: "↑ "; color: var(--neon); }
.cs-hero.small .cs-hero-img img { max-height: 70svh; }
/* Qué hago, sin imágenes */
.pl h3 { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 760px) { .pl h3 { font-size: clamp(34px, 11vw, 56px); } }
.pl-img { display: none !important; }
@media (hover: hover) and (pointer: fine) { .pl:hover .pl-tx { opacity: 1; } .pl:hover .pl-tx p, .pl:hover .ex { color: var(--ink); } }
.pl-intro { font-size: clamp(17px, 1.4vw, 22px); color: var(--muted-on-ink); max-width: 52ch; line-height: 1.45; }
.hero-role b { color: var(--white); font-weight: 700; }

/* ===== v8 · Behance layout (bx) ===== */
.cs-story.bx { display: block; gap: 0; padding: 0; color: var(--ink); }
.cs-story.bx.bx-dk, .bx-m.bx-dk { color: var(--white); }
.bx-m.bx-lt { color: var(--ink); }
.bx-m { margin-top: var(--gap); }
.bx-end { height: clamp(48px, 7vw, 110px); }
.cs-story.bx figure { margin: 0; background: transparent; overflow: hidden; }
.cs-story.bx img, .cs-story.bx video { display: block; width: 100%; height: auto; }
.bx-grid { display: flex; flex-direction: column; gap: var(--rg); }
.bx-row { display: flex; gap: var(--cg); width: var(--w, 100%); margin-left: var(--x, 0); }
.bx-row figure { flex: calc(var(--r) * 1000) 1 0; min-width: 0; }
.bx-row figure img, .bx-row figure video { aspect-ratio: var(--r); object-fit: cover; height: auto; }
.bx-t { width: var(--w); margin-left: var(--x); }
.bx-t .bx-h { margin: 0 0 0.45em; font-size: clamp(26px, 2.9vw, 52px); font-weight: 700; line-height: 1.02; letter-spacing: -0.025em; text-transform: none; }
.bx-t .bx-k { margin: 0 0 0.2em; font-size: clamp(13px, 1vw, 16px); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; }
.bx-t .bx-k + p:not(.bx-k) { margin-top: 1.4em; }
.bx-t p { margin: 0 0 1em; font-size: clamp(16px, 1.42vw, 24px); line-height: 1.45; max-width: 62ch; }
.bx-t[style*="center"] p { margin-left: auto; margin-right: auto; }
.bx-t[style*="right"] p { margin-left: auto; }
.bx-t p:last-child { margin-bottom: 0; }
.bx-t a { color: inherit; text-decoration: underline; text-decoration-color: var(--neon); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bx-v { display: flex; justify-content: center; }
.bx-v > figure { width: min(var(--w), calc(88svh * var(--r))); aspect-ratio: var(--r); }
.bx-v.bx-full > figure { width: 100%; }
.cs-story.bx .vf { background: #000; cursor: auto; }
.cs-story.bx .bx-loop { cursor: auto; }
.cs-story.bx .bx-v .bx-loop video { width: 100%; height: 100%; object-fit: cover; }
.bx-pend { display: grid; place-items: center; background: var(--ink) !important; color: var(--neon); border: 1px dashed var(--neon); }
.bx-pend span { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.cs-story.bx figure img[data-full] { cursor: zoom-in; }
.js .cs .bx-t.rv { clip-path: none; opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .cs .bx-t.rv.in { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .bx-t { width: auto; margin-left: var(--gutter); margin-right: var(--gutter); text-align: left !important; }
  .bx-t p { margin-left: 0 !important; }
  .bx-m.bx-tm { padding-top: 12px; }
  .bx-v > figure { width: min(100%, calc(80svh * var(--r))); }
}
@media (prefers-reduced-motion: reduce) { .js .cs .bx-t.rv { opacity: 1; transform: none; transition: none; } }
