/* ============ Tokens ============ */
:root {
  --bg: #f4f2ee;
  --surface: #ffffff;
  --sunken: #ebe8e2;
  --ink: #161616;
  --muted: #6b6862;
  --line: rgba(22, 22, 22, .12);
  --accent: #2e3bf0;
  --accent-ink: #ffffff;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 18px;
  --gut: clamp(16px, 4.5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212; --surface: #1b1b1b; --sunken: #232323;
    --ink: #edebe6; --muted: #9a968f; --line: rgba(237, 235, 230, .14);
    --accent: #8f97ff; --accent-ink: #121212;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121212; --surface: #1b1b1b; --sunken: #232323;
  --ink: #edebe6; --muted: #9a968f; --line: rgba(237, 235, 230, .14);
  --accent: #8f97ff; --accent-ink: #121212;
  color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gut); }
.label { font: 500 12px/1.3 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* ============ Header ============ */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { font-weight: 600; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 999px; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); background: var(--sunken); }
.nav .cta { background: var(--ink); color: var(--bg); }
.nav .cta:hover { background: var(--accent); color: var(--accent-ink); }
.theme {
  all: unset; cursor: pointer; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted);
}
.theme:hover { color: var(--ink); background: var(--sunken); }
.theme:focus-visible { outline: 2px solid var(--accent); }

/* ============ Hero ============ */
.hero { padding-top: clamp(56px, 10vw, 132px); padding-bottom: clamp(56px, 8vw, 110px); }
.status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1fb26b; box-shadow: 0 0 0 4px color-mix(in srgb, #1fb26b 22%, transparent); }
.hero h1 {
  font-weight: 500; letter-spacing: -.035em; line-height: 1.02;
  font-size: clamp(40px, 6.6vw, 92px); max-width: 15ch;
}
.hero .intro { margin-top: 28px; max-width: 54ch; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 500; font-size: 15px; padding: 13px 20px; border-radius: 999px;
  background: var(--ink); color: var(--bg); transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); background: transparent; color: var(--ink); }

.proof { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 12px; margin-top: clamp(48px, 7vw, 88px); }
.proof > * {
  background: var(--surface); border-radius: var(--r); padding: clamp(20px, 2.2vw, 28px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 200px;
  text-decoration: none; border: 1px solid var(--line);
}
.proof b { display: block; font-weight: 500; letter-spacing: -.04em; line-height: 1; font-size: clamp(44px, 5vw, 72px); }
.proof b small { font-size: .45em; letter-spacing: -.02em; color: var(--muted); margin-left: 4px; }
.proof p { font-size: 15px; color: var(--muted); max-width: 40ch; }
.proof p strong { color: var(--ink); font-weight: 500; }
.proof .main { background: var(--ink); color: var(--bg); border-color: transparent; }
.proof .main p { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.proof .main p strong { color: var(--bg); }
.proof .main .label { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.proof .facts3 { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(18px, 2.4vw, 36px); }
.proof .facts3 span { display: block; font-size: 13px; color: color-mix(in srgb, var(--bg) 62%, transparent); }
.proof .facts3 b { font-size: clamp(30px, 3vw, 44px); }

/* ============ Sections ============ */
.sec { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.h2 { font-weight: 500; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(36px, 5vw, 68px); }

/* Filtro */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button {
  all: unset; cursor: pointer; font-size: 14px; padding: 9px 16px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); transition: all .2s;
}
.filters button:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.filters button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.filters .n { font-family: var(--mono); font-size: 11px; opacity: .6; margin-left: 4px; }

/* Tarjetas de trabajo */
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 3vw, 40px) clamp(16px, 2vw, 24px); }
.work { text-decoration: none; display: grid; gap: 16px; }
.work[hidden] { display: none; }
.work .media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--sunken); }
.work .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.work .media.contain img { object-fit: contain; padding: 8%; }
a.work:hover .media img { transform: scale(1.035); }
.work .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.work h3 { font-weight: 500; font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -.02em; }
.work h3 i { font-style: normal; display: inline-block; transition: transform .3s var(--ease); color: var(--muted); }
a.work:hover h3 i { transform: translate(3px, -3px); color: var(--accent); }
.work p { color: var(--muted); font-size: 15px; max-width: 52ch; margin-top: 4px; }
.work .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tag { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .02em; padding: 6px 9px; border-radius: 999px; background: var(--sunken); color: var(--muted); }
.soon-pill {
  position: absolute; left: 14px; top: 14px; font: 500 11px/1 var(--mono); text-transform: uppercase;
  padding: 7px 10px; border-radius: 999px; background: var(--surface); color: var(--muted);
}


/* Sobre mí */
.about { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about .photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; width: 100%; background: var(--sunken); position: sticky; top: 88px; }
.about .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.about .bio { display: grid; gap: 18px; font-size: clamp(18px, 1.55vw, 21px); line-height: 1.5; letter-spacing: -.01em; }
.about .bio p:first-child { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.25; letter-spacing: -.02em; }
.cv { display: grid; gap: clamp(36px, 4vw, 52px); margin-top: clamp(40px, 5vw, 64px); }
.cv h3 { margin-bottom: 14px; }
.cv-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.cv-list li:last-child { border-bottom: 1px solid var(--line); }
.cv-list b { font-weight: 500; }
.cv-list span { color: var(--muted); font-size: 15px; }
.cv-case { text-decoration: none; color: var(--accent); }
.cv-case:hover { text-decoration: underline; text-underline-offset: 3px; }
.cv-list time { font: 400 13px/1.6 var(--mono); color: var(--muted); white-space: nowrap; grid-row: 1; grid-column: 2; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 14px; padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* Contacto */
.contact { padding: clamp(80px, 12vw, 170px) 0 clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.contact .big {
  display: inline-block; font-weight: 500; letter-spacing: -.045em; line-height: 1;
  font-size: clamp(26px, 5.2vw, 76px); text-decoration: none; margin: 18px 0 28px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .5s var(--ease), color .2s; padding-bottom: 6px; word-break: break-word;
}
.contact .big:hover { background-size: 100% 2px; color: var(--accent); }
.contact .note { max-width: 56ch; color: var(--muted); font-size: 17px; }
.contact .lines { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(64px, 9vw, 120px); padding-top: 20px; border-top: 1px solid var(--line); }

/* ============ Caso ============ */
.case-hero { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(32px, 4vw, 48px); }
.back { display: flex; width: fit-content; gap: 8px; align-items: center; text-decoration: none; color: var(--muted); font-size: 14px; margin-bottom: clamp(32px, 5vw, 64px); }
.back:hover { color: var(--ink); }
.case-hero h1 { font-weight: 500; letter-spacing: -.045em; line-height: .95; font-size: clamp(56px, 11vw, 160px); margin: 18px 0 22px; }
.case-hero .lead { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.35; letter-spacing: -.015em; max-width: 40ch; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(32px, 4vw, 48px); }
.facts dd { margin-top: 6px; font-size: 15px; line-height: 1.4; }

.fig { border-radius: var(--r); overflow: hidden; background: var(--sunken); }
.fig img { width: 100%; height: 100%; object-fit: cover; }
.cover { margin-top: clamp(24px, 3vw, 40px); }
.brand-cover { display: grid; place-items: center; padding: clamp(40px, 9vw, 120px) 8%; }
.brand-cover img { width: min(100%, 760px); height: auto; object-fit: contain; }

.story { display: grid; gap: clamp(72px, 10vw, 140px); padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(72px, 10vw, 140px); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 80px); }
.split h2 { font-weight: 500; letter-spacing: -.035em; line-height: 1.04; font-size: clamp(32px, 4vw, 54px); }
.split .body { display: grid; gap: 18px; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; max-width: 62ch; }
.split .body strong { font-weight: 600; }
.checks li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--line); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before { content: attr(data-n); position: absolute; left: 0; top: 17px; font: 500 12px/1 var(--mono); color: var(--accent); }

.gal { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.4vw, 16px); margin-top: clamp(32px, 4vw, 56px); }
.gal figure { display: grid; gap: 10px; min-width: 0; }
.split > *, .works > *, .swatches > *, .results > *, .proof > * { min-width: 0; }
.gal .fig { height: 100%; }
.gal figcaption { font-size: 13px; color: var(--muted); }
.c12 { grid-column: span 12; } .c8 { grid-column: span 8; } .c7 { grid-column: span 7; } .c6 { grid-column: span 6; }
.c5 { grid-column: span 5; } .c4 { grid-column: span 4; }
.ar-wide .fig { aspect-ratio: 16 / 9; } .ar-43 .fig { aspect-ratio: 4 / 3; } .ar-45 .fig { aspect-ratio: 4 / 5; } .ar-58 .fig { aspect-ratio: 5 / 8; }
.zoom { cursor: zoom-in; }

.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 16px); margin-top: clamp(32px, 4vw, 56px); }
.sw { border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.sw .tex { aspect-ratio: 4 / 3; }
.sw .tex img { width: 100%; height: 100%; object-fit: cover; }
.sw .info { padding: 20px; display: grid; gap: 3px; font: 400 13px/1.6 var(--mono); }
.sw .info strong { font: 500 20px/1.2 var(--sans); letter-spacing: -.01em; margin-bottom: 10px; }
.sw .info span b { font-weight: 400; opacity: .65; display: inline-block; min-width: 76px; }

.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 16px); margin-top: clamp(32px, 4vw, 56px); }
.results li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2.2vw, 28px); min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.results li span { font: 500 12px/1 var(--mono); color: var(--accent); }
.results li p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3; letter-spacing: -.015em; font-weight: 500; }

.next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: clamp(56px, 8vw, 100px); }
.next a { text-decoration: none; padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r); border: 1px solid var(--line); display: grid; gap: 10px; transition: border-color .2s, background .2s; }
.next a:hover { border-color: var(--ink); background: var(--surface); }
.next b { font-weight: 500; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -.03em; }

/* Lightbox */
dialog.lb { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
dialog.lb::backdrop { background: rgba(10, 10, 10, .88); }
dialog.lb img { max-width: 94vw; max-height: 88vh; border-radius: 10px; }
dialog.lb button { all: unset; position: absolute; top: -40px; right: 0; color: #fff; font-size: 14px; cursor: pointer; padding: 6px; }

/* Reveal */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .work .media img { transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .proof { grid-template-columns: 1fr 1fr; }
  .proof .main { grid-column: 1 / -1; }
  .about { grid-template-columns: 1fr; }
  .about .photo { position: static; max-width: 220px; }
  .split { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav a:not(.cta) { display: none; }
  .works { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .gal .c8, .gal .c7, .gal .c6, .gal .c5, .gal .c4 { grid-column: span 12; }
  .swatches, .results { grid-template-columns: 1fr; }
  .results li { min-height: 0; }
  .next { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .proof { grid-template-columns: 1fr; }
  .proof > * { min-height: 0; }
  .brand { font-size: 15px; }
  .gal .ar-58.c4 { grid-column: span 6; }
}

/* Caso UX: móviles, citas y listas */
.c3 { grid-column: span 3; }
.phones .fig { aspect-ratio: 390 / 844; background: var(--sunken); }
.phones .fig img { object-fit: contain; }
.quote { margin: clamp(32px, 4vw, 56px) 0 0; padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 16px; }
.quote p { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.25; letter-spacing: -.02em; font-weight: 500; max-width: 34ch; }
.quote cite { font-style: normal; }
.body-list { margin-top: clamp(32px, 4vw, 56px); max-width: 760px; margin-left: auto; }
.body-list h3 { margin-bottom: 8px; }
@media (max-width: 960px) { .c3 { grid-column: span 6; } .body-list { margin-left: 0; } }
@media (max-width: 720px) { .gal .c3 { grid-column: span 6; } }
.results.stat li span { font: 500 clamp(36px, 4vw, 56px)/1 var(--sans); letter-spacing: -.04em; color: var(--ink); }
.results.stat li p { font-size: 16px; font-weight: 400; color: var(--muted); letter-spacing: 0; }

/* Galerías: columnas que no se desbordan y parejas a la misma altura */
.gal figure { grid-template-columns: minmax(0, 1fr); }
.gal > figure:not(.c12):not(.phone):not(.ar-58) .fig { aspect-ratio: auto; height: clamp(240px, 34vw, 520px); }
@media (max-width: 720px) {
  .gal > figure:not(.c12):not(.phone):not(.ar-58) .fig { height: auto; aspect-ratio: 4 / 3; }
}
/* Diagramas: a su tamaño natural o enteros, sin recortar */
.gal > figure.nat .fig { aspect-ratio: auto; height: auto; background: #fff; }
.gal > figure.nat .fig img { height: auto; }
.gal > figure.fit .fig { background: #fff; }
.gal > figure.fit .fig img { object-fit: contain; }

/* Listas sin número, prensa y chips dentro de casos */
.checks li:not([data-n])::before { content: "→"; color: var(--accent); font-family: var(--sans); top: 14px; }
.split .body ul, .split .body ol { margin: 4px 0; }
.press li { border-top: 1px solid var(--line); }
.press li:last-child { border-bottom: 1px solid var(--line); }
.press a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0; text-decoration: none; }
.press b { font-weight: 500; grid-column: 1; }
.press i { font-style: normal; grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.press a:hover i { transform: translate(3px, -3px); color: var(--accent); }
.body-list .chips { margin-top: 12px; }

/* =====================================================================
   v2 — dirección visual: display con carácter, color por proyecto, movimiento
   ===================================================================== */
:root { --display: "Bricolage Grotesque", var(--sans); --pop: #ff5a36; --accent: #2b3bff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --accent: #8f97ff; } }
:root[data-theme="dark"] { --accent: #8f97ff; }
.h2, .case-hero h1, .split h2, .hero2 h1, .feat h3, .c-title, .next b { font-family: var(--display); font-weight: 700; letter-spacing: -.04em; }
.h2 em, .c-title em { font-style: normal; color: var(--accent); }

/* Hero */
.hero2 { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 100px); }
.hero2 .wrap { position: relative; }
.hero2 h1 { font-size: clamp(64px, 14.5vw, 232px); line-height: .82; letter-spacing: -.06em; margin-top: 8px; position: relative; z-index: 2; }
.hero2 h1 span { display: block; }
.hero2 h1 span:last-child { color: var(--accent); padding-left: .9em; }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-top: clamp(28px, 4vw, 56px); position: relative; z-index: 2; }
.hero-foot p { max-width: 44ch; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; letter-spacing: -.01em; }
.stickers { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.sticker { position: absolute; width: clamp(90px, 11vw, 170px); aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 4px solid var(--surface); box-shadow: 0 12px 30px rgba(0,0,0,.14); transform: rotate(var(--r)); animation: bob 6s ease-in-out infinite; }
.sticker img { width: 100%; height: 100%; object-fit: cover; }
.sticker.s0 { right: 19%; top: 6%; }
.sticker.s1 { right: 33%; top: 40%; width: clamp(70px, 8vw, 120px); animation-delay: -2s; }
.sticker.s2 { right: 3%; top: 34%; animation-delay: -4s; }
.sticker.s3 { left: 44%; top: 0; width: clamp(70px, 8vw, 120px); animation-delay: -1s; }
.sticker.s4 { right: 16%; bottom: 22%; animation-delay: -3s; }
@keyframes bob { 50% { transform: rotate(calc(var(--r) * -1)) translateY(-10px); } }
.badge { position: absolute; right: var(--gut); top: 0; width: clamp(110px, 11vw, 160px); z-index: 3; animation: spin 18s linear infinite; }
.badge text { font: 600 13px/1 var(--mono); letter-spacing: .08em; fill: var(--ink); }
.badge .badge-c { font-size: 44px; fill: var(--pop); letter-spacing: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Marquee */
.marquee { background: var(--ink); color: var(--bg); overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: 0 -2%; }
.marquee-in { display: flex; gap: 28px; width: max-content; animation: slide 32s linear infinite; font: 700 clamp(22px, 2.6vw, 38px)/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.marquee-in b { color: var(--pop); font-weight: 400; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Destacados: paneles apilados */
.feats { padding: clamp(72px, 10vw, 140px) 0 clamp(40px, 6vw, 80px); }
.sec-head2 { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(24px, 3vw, 40px); }
.feat-stack { display: grid; gap: 24px; }
.feat { position: sticky; display: block; text-decoration: none; background: var(--bg); color: var(--fg);
  border-radius: 28px; overflow: hidden; min-height: min(78vh, 680px); box-shadow: 0 -10px 40px rgba(0,0,0,.12); }
.feat-in { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 56px); align-items: center; min-height: inherit; padding: clamp(24px, 4vw, 56px); }
.feat-in > * { min-width: 0; }
.feat-n { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--acc); }
.feat h3 { font-size: clamp(44px, 6.4vw, 104px); line-height: .9; margin: 18px 0 20px; color: var(--fg); }
.feat-title { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35; max-width: 30ch; opacity: .92; }
.feat-stat { margin-top: 18px; font: 500 13px/1.5 var(--mono); color: var(--acc); }
.feat .tags { margin-top: 18px; }
.feat .tag { background: color-mix(in srgb, var(--fg) 12%, transparent); color: var(--fg); }
.feat-cta { display: inline-flex; gap: 10px; align-items: center; margin-top: 28px; padding: 14px 22px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 500; transition: gap .3s var(--ease); }
.feat-cta i { font-style: normal; }
.feat:hover .feat-cta { gap: 18px; }
.feat-img { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--fg) 10%, transparent); transform: rotate(1.5deg); transition: transform .7s var(--ease); }
.feat:hover .feat-img { transform: rotate(0) scale(1.02); }
.feat-img img { width: 100%; height: 100%; object-fit: cover; }

/* Más trabajos */
.mores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.more { text-decoration: none; display: grid; gap: 12px; align-content: start; }
.more .media { aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--sunken); transition: transform .5s var(--ease); }
.more .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.more .media.contain img { object-fit: contain; padding: 10%; background: #fff; }
.more:nth-child(odd):hover .media { transform: rotate(-2deg); }
.more:nth-child(even):hover .media { transform: rotate(2deg); }
.more:hover .media img { transform: scale(1.05); }
.more .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.more h3 { font: 700 clamp(20px, 1.8vw, 26px)/1.1 var(--display); letter-spacing: -.03em; }
.more h3 i { font-style: normal; color: var(--muted); display: inline-block; transition: transform .3s var(--ease), color .2s; }
.more:hover h3 i { transform: translate(3px, -3px); color: var(--accent); }
.more p { color: var(--muted); font-size: 15px; }

/* Sobre mí */
.about2 { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.photo2 { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; transform: rotate(-3deg); border: 6px solid var(--surface); box-shadow: 0 16px 40px rgba(0,0,0,.14); }
.photo2 img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.about2 .h2 { margin-bottom: 20px; }
.about2 .cv { margin-top: 32px; }

/* Contacto */
.contact2 { background: var(--accent); color: #fff; padding: clamp(80px, 12vw, 160px) 0 clamp(28px, 4vw, 48px); border-radius: 36px 36px 0 0; margin-top: clamp(40px, 6vw, 80px); }
.contact2 .c-title { font-size: clamp(64px, 13vw, 210px); line-height: .85; letter-spacing: -.06em; }
.contact2 .big { display: inline-flex; gap: 12px; align-items: baseline; margin: 24px 0; font: 500 clamp(22px, 3.6vw, 52px)/1.1 var(--sans); letter-spacing: -.03em; color: #fff; text-decoration: none; border-bottom: 2px solid rgba(255,255,255,.4); padding-bottom: 6px; word-break: break-word; }
.contact2 .big:hover { border-color: #fff; }
.contact2 .big i { font-style: normal; transition: transform .3s var(--ease); }
.contact2 .big:hover i { transform: translate(4px, -4px); }
.contact2 .note { max-width: 56ch; color: rgba(255,255,255,.85); font-size: 17px; }
.contact2 .lines { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contact2 .btn { background: #fff; color: #1b25b8; }
.contact2 .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.contact2 .foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(64px, 9vw, 120px); padding-top: 20px; border-top: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.75); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .contact2 { background: #2b3bff; } }
:root[data-theme="dark"] .contact2 { background: #2b3bff; }

@media (max-width: 960px) {
  .feat-in { grid-template-columns: 1fr; }
  .feat { position: relative; top: auto !important; min-height: 0; }
  .mores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about2 { grid-template-columns: 1fr; }
  .photo2 { max-width: 240px; }
  .sticker.s1, .sticker.s3 { display: none; }
}
@media (max-width: 640px) {
  .mores { grid-template-columns: 1fr; }
  .stickers { display: none; }
  .hero2 h1 span:last-child { padding-left: 0; }
  .badge { width: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  .sticker, .badge, .marquee-in { animation: none; }
}

/* =====================================================================
   v3 — paleta inspirada en el moodboard: rojo-naranja, fucsia, negro y blanco roto
   ===================================================================== */
:root {
  --bg: #eeedea; --surface: #f8f7f5; --sunken: #e2e0dc; --ink: #0b0b0b; --muted: #5d5b57; --line: rgba(11, 11, 11, .14);
  --red: #ff3a1a; --pink: #ff5fd2; --violet: #8a3cff;
  --accent: var(--red); --accent-txt: #c4250a; --pop: var(--pink);
  --grad: linear-gradient(120deg, var(--red) 0%, #ff4a7a 55%, var(--pink) 100%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0b0b0b; --surface: #161616; --sunken: #1f1f1f; --ink: #eeedea; --muted: #a29f9a; --line: rgba(238, 237, 234, .14); --accent: #ff4a2a; --accent-txt: #ff7a5c; }
}
:root[data-theme="dark"] { --bg: #0b0b0b; --surface: #161616; --sunken: #1f1f1f; --ink: #eeedea; --muted: #a29f9a; --line: rgba(238, 237, 234, .14); --accent: #ff4a2a; --accent-txt: #ff7a5c; }
::selection { background: var(--pink); color: #0b0b0b; }

/* Nombre: segunda línea en degradado rojo → fucsia */
.hero2 h1 span:last-child { color: var(--red); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.h2 em, .c-title em { color: var(--red); }

/* Sello giratorio sobre un disco op-art */
.badge { border-radius: 50%; background: radial-gradient(circle closest-side, var(--bg) 0 30%, transparent 30.5% 62%, var(--bg) 62.5%), repeating-conic-gradient(var(--ink) 0 5deg, var(--bg) 5deg 10deg); }
.badge text { fill: var(--ink); }
.badge .badge-c { fill: var(--red); }

/* Franja: roja con estrellas fucsia */
.marquee { background: var(--red); color: #0b0b0b; }
.marquee-in b { color: var(--pink); }

/* Botones y detalles */
.btn:hover { background: var(--red); color: #0b0b0b; }
.nav .cta:hover { background: var(--red); color: #0b0b0b; }
.cv-case, .checks li::before, .checks li:not([data-n])::before { color: var(--accent-txt); }
.feat-cta { box-shadow: 0 0 0 0 var(--pink); transition: gap .3s var(--ease), box-shadow .3s var(--ease); }
.feat:hover .feat-cta { box-shadow: 6px 6px 0 0 var(--pink); }
.more:hover h3 i { color: var(--red); }
.sticker { border-color: var(--surface); }

/* Contacto: degradado rojo → fucsia con texto negro */
.contact2, :root[data-theme="dark"] .contact2 { background: var(--grad); color: #0b0b0b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .contact2 { background: var(--grad); } }
.contact2 .big { color: #0b0b0b; border-bottom-color: rgba(11, 11, 11, .35); }
.contact2 .big:hover { border-color: #0b0b0b; }
.contact2 .note { color: rgba(11, 11, 11, .82); }
.contact2 .btn { background: #0b0b0b; color: #eeedea; }
.contact2 .btn:hover { background: #eeedea; color: #0b0b0b; }
.contact2 .btn.ghost { background: transparent; color: #0b0b0b; box-shadow: inset 0 0 0 1.5px #0b0b0b; }
.contact2 .foot { color: rgba(11, 11, 11, .7); border-top-color: rgba(11, 11, 11, .25); }

/* Filas de experiencia enlazadas: toda la fila es clicable */
.cv-list li.has-link { display: block; padding: 0; }
.cv-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; text-decoration: none; color: inherit; transition: padding .3s var(--ease), background .3s var(--ease); border-radius: 8px; }
.cv-row time { grid-row: 1; grid-column: 2; }
.cv-row em { font-style: normal; color: var(--accent-txt); }
.cv-row:hover { background: var(--surface); padding-left: 12px; padding-right: 12px; }
.cv-row:hover b { color: var(--accent-txt); }
