/* WARKO · Portfolio
 * Base constante (WARKO): negro #262626, blanco, gris #7F8080, Nunito, iridiscente pastel.
 * Expresión variable: cada proyecto define su universo con [data-uni].
 */
@font-face { font-family: 'Nunito'; src: url(../assets/fonts/nunito.woff2) format('woff2'); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(../assets/fonts/montserrat.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Michroma'; src: url(../assets/fonts/michroma.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(../assets/fonts/jetbrains.woff2) format('woff2'); font-weight: 100 800; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url(../assets/fonts/sourceserif.woff2) format('woff2'); font-weight: 200 900; font-display: swap; }

:root {
  --ink: #262626; --paper: #fff; --grey: #7F8080;
  --p1: #BF99FC; --p2: #9CDFFC; --p3: #9FF7F3; --p4: #D7FBDD; --p5: #FBBFDF; --p6: #DCAEF5;
  --iri: linear-gradient(100deg, var(--p1), var(--p2), var(--p3), var(--p4), var(--p5), var(--p6));
  --pad: clamp(20px, 6vw, 96px);
  --bar-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--bar-h); }
body {
  margin: 0; min-height: 100vh;
  font-family: 'Nunito', system-ui, sans-serif; font-weight: 420; font-size: 17px; line-height: 1.5;
  background: var(--bg); color: var(--fg);
  transition: background-color .8s var(--ease), color .8s var(--ease);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body[data-uni="warko"] { --bg: #262626; --fg: #fff; --mute: rgba(255,255,255,.62); --line: rgba(255,255,255,.16); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 120px var(--pad); }

/* ---------- barra superior (siempre la firma WARKO) ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad); color: var(--fg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .8s var(--ease), color .8s var(--ease);
}
body[data-view="home"] .bar { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.badge { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.badge svg { height: 22px; width: auto; }
.badge-back { font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .04em; opacity: .75; }
.badge:hover .badge-back { opacity: 1; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 700; }
.nav a { text-decoration: none; opacity: .78; }
.nav a:hover, .nav a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.pill { display: inline-flex; gap: 2px; border: 1.5px solid currentColor; border-radius: 999px; padding: 2px; font-family: 'Nunito', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pill span { padding: 3px 9px; border-radius: 999px; opacity: .6; transition: background .3s, color .3s; }
.pill span.on { color: var(--bg); background: var(--fg); opacity: 1; }

/* ---------- INICIO: la O y las órbitas ---------- */
.home { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; }
.stage { position: absolute; inset: calc(var(--bar-h) + 10px) 0 120px 0; }
.orbit-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.orbit-line ellipse { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1; stroke-dasharray: 2 7; }
.iso {
  position: absolute; left: 50%; top: 50%; width: min(38vmin, 420px); aspect-ratio: 375 / 330;
  transform: translate(-50%, -50%); z-index: 2;
  -webkit-mask: var(--iso-mask) center / contain no-repeat; mask: var(--iso-mask) center / contain no-repeat;
  overflow: hidden;
}
.iso i { position: absolute; inset: 0; }
.iso-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.iso.gl .iri { display: none; }
.win { opacity: 0; transition: opacity .5s var(--ease); }
.win img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.2s var(--ease); }
.home.has-win .win { opacity: 1; }
.home.has-win .win img { transform: scale(1); }
.home.has-win .tint { opacity: .18 !important; mix-blend-mode: multiply; }
.iri { inset: -40% !important; background: conic-gradient(from 0deg, var(--p1), var(--p2), var(--p3), var(--p4), var(--p5), var(--p6), var(--p1)); filter: blur(18px) saturate(1.15); animation: spin 16s linear infinite; }
.home.rings .iso { width: min(26vmin, 300px); }
.tint { background: var(--tint, transparent); opacity: 0; transition: opacity .5s var(--ease); }
.home.hovering .tint { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.marks { position: absolute; inset: 0; z-index: 3; }
.mark { position: absolute; left: 0; top: 0; width: clamp(104px, 10.5vw, 150px); will-change: transform; transition: opacity .4s; }
.mark-link { display: block; text-decoration: none; }
.mark.dim { pointer-events: none; }
.mark.landed img { animation: land .7s var(--ease); }
@keyframes land { 0% { transform: scale(1.35) rotate(-8deg); } 60% { transform: scale(.92) rotate(3deg); } 100% { transform: none; } }
/* lunas: piezas o secciones de un proyecto que orbitan su sello */
@property --a { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@keyframes moonspin { to { --a: 360deg; } }
.moons { position: absolute; left: 50%; top: 44%; width: 0; height: 0; animation: moonspin 26s linear infinite; pointer-events: none; }
.mark:hover .moons, .mark:focus-within .moons { animation-play-state: paused; }
.moon { position: absolute; left: 0; top: 0; pointer-events: auto; text-decoration: none; transform: rotate(calc(var(--a) + var(--k) / var(--n) * 360deg)) translateX(clamp(66px, 7vw, 96px)) rotate(calc(-1 * var(--a) - var(--k) / var(--n) * 360deg)); }
.moon i { display: block; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px rgba(38,38,38,.9); transition: transform .3s; }
.moon span { position: absolute; left: 10px; top: -9px; white-space: nowrap; font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--c); color: var(--ink); opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .25s; pointer-events: none; }
.mark:hover .moon span, .moon:focus-visible span { opacity: 1; transform: none; }
.moon:hover i { transform: scale(1.6); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1.5px solid var(--line, currentColor); border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.chip span { opacity: .55; font-weight: 800; }
.chip.on, .chip:hover, .chip:has(input:checked) { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip:has(input:focus-visible) { outline: 2px solid currentColor; outline-offset: 3px; }
.home .chips { position: absolute; z-index: 6; top: calc(var(--bar-h) + 4px); left: 0; right: 0; justify-content: center; }
.plist .chips { margin: -2vh 0 4vh; }
.rows li[hidden] { display: none; }
.mark img { width: 100%; height: auto; transition: transform .45s var(--ease); filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); }
.mark:hover img, .mark:focus-visible img { transform: scale(1.08) rotate(-4deg); }
.mark-label { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 10px; width: max-content; text-align: center; font-size: 13px; line-height: 1.3; }
.mark-label b { display: block; font-weight: 800; letter-spacing: .02em; }
.mark-label span { color: var(--mute); }
.home-pick { position: absolute; left: 0; right: 0; bottom: 92px; margin: 0; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.home-foot { position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; font-size: 14px; }
.home-role { margin: 0; color: var(--mute); }
.home-all { text-decoration: none; font-weight: 700; }
.home-all span { color: var(--mute); }
.home-all:hover { text-decoration: underline; text-underline-offset: 5px; }
.deck {
  justify-self: end; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 700;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--iri) border-box;
  transition: background .3s;
}
.deck:hover { background: var(--iri) padding-box, var(--iri) border-box; color: var(--ink); }

/* ---------- páginas WARKO (proyectos, sobre mí, contacto) ---------- */
.page { padding: calc(var(--bar-h) + 6vh) var(--pad) 12vh; max-width: 1500px; margin: 0 auto; min-height: 100vh; }
.page-title { font-size: clamp(40px, 6.4vw, 104px); font-weight: 800; line-height: .98; letter-spacing: -.02em; margin: 0 0 6vh; max-width: 16ch; }
.lbl { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin: 0 0 12px; }
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: 56px 72px 1.2fr 1fr 140px 32px; align-items: center; gap: 20px; padding: 22px 12px; border-top: 1px solid var(--line); text-decoration: none; transition: background .35s var(--ease), color .35s; }
.rows a:hover, .rows a:focus-visible { background: var(--c); color: var(--ink); }
.rows img { width: 64px; height: auto; }
.r-n { font-weight: 800; color: var(--mute); } .rows a:hover .r-n { color: inherit; }
.r-name { font-size: clamp(22px, 2.6vw, 38px); font-weight: 800; letter-spacing: -.01em; }
.r-go { font-size: 24px; transition: transform .3s; } .rows a:hover .r-go { transform: translateX(6px); }
.about { position: relative; }
.about .page-title { font-size: clamp(36px, 4.6vw, 76px); max-width: 20ch; }
.about-iso { position: relative !important; left: auto !important; top: auto !important; transform: none !important; width: 120px !important; margin-bottom: 40px; }
.about-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6vw; font-size: 19px; }
.about-cols p { margin: 0 0 1.1em; max-width: 58ch; }
.svc { list-style: none; padding: 0; margin: 0 0 40px; }
.svc li { display: flex; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); font-weight: 700; }
.svc li span { color: var(--mute); font-weight: 800; }
.contact .lead { font-size: 20px; color: var(--mute); margin: -3vh 0 6vh; }
.clist { list-style: none; padding: 0; margin: 0; }
.clist li { display: grid; grid-template-columns: 180px 1fr; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); }
.clist a { font-size: clamp(22px, 3.4vw, 48px); font-weight: 800; text-decoration: none; letter-spacing: -.01em; word-break: break-word; }
.clist a:hover { background: var(--iri); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- plantilla común de caso ---------- */
.case { padding-top: var(--bar-h); }
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 5vw; align-items: center; padding: 5vh var(--pad) 8vh; min-height: calc(100vh - var(--bar-h)); max-width: 1700px; margin: 0 auto; }
.kicker { margin: 0 0 22px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero-t { margin: 0 0 20px; font-size: clamp(44px, 6.5vw, 112px); line-height: .95; letter-spacing: -.02em; }
.hero-l { margin: 0 0 40px; font-size: clamp(18px, 1.5vw, 23px); max-width: 34ch; line-height: 1.4; }
.ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin: 0; max-width: 560px; }
.ficha dt { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.ficha dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.sec { padding: 6vw var(--pad); max-width: 1700px; margin: 0 auto; }
.sec-head { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sec-t { margin: 0 0 24px; font-size: clamp(28px, 3.6vw, 58px); line-height: 1.05; letter-spacing: -.015em; max-width: 22ch; }
.sec-b { margin: 0; font-size: clamp(17px, 1.3vw, 21px); max-width: 62ch; line-height: 1.55; }
.sec.text + .sec.gal { padding-top: 0; }
.gal { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(12px, 2vw, 32px); }
.gal figure { margin: 0; }
.g-full { grid-column: span 6; } .g-half { grid-column: span 3; } .g-third { grid-column: span 2; }
.gal img { width: 100%; height: auto; }
.gal figcaption, .cap { margin-top: 10px; font-size: 13px; opacity: .78; }
.zoom { display: block; width: 100%; cursor: zoom-in; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin-top: 32px; }
.slot { min-height: 220px; padding: 22px; display: flex; flex-direction: column; gap: 8px; border: 1.5px dashed currentColor; border-radius: 2px; position: relative; }
.slot-t { font-size: 20px; font-weight: 700; line-height: 1.2; }
.slot-d { font-size: 14px; opacity: .78; }
.slot-s { margin-top: auto; align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; border: 1.5px solid currentColor; border-radius: 999px; }
.note { font-size: 14px; opacity: .8; padding-top: 0; }
.case-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding: 8vw var(--pad) 5vw; max-width: 1700px; margin: 0 auto; }
.sign { margin: 0; display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; opacity: .85; }
.sign svg { height: 18px; width: auto; }
.next { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 20px; align-items: center; text-decoration: none; }
.next .lbl { grid-column: 1 / -1; color: inherit; opacity: .7; margin-bottom: 10px; }
.next img { width: 92px; height: auto; transition: transform .4s var(--ease); }
.next b { font-size: clamp(26px, 3vw, 44px); line-height: 1; }
.next .arrow { display: none; }
.next:hover img { transform: scale(1.08) rotate(-6deg); }

/* aparición */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* transición de la O */
#wipe { position: fixed; z-index: 100; display: none; pointer-events: none; transform-origin: 50% 50%; }
#wipe svg { width: 100%; height: 100%; overflow: visible; }

/* visor */
.lb { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(10,10,10,.92); cursor: zoom-out; padding: 4vh 4vw; }
.lb[hidden] { display: none; }
.lb img { max-width: 92vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; }
.lb-x { position: absolute; top: 18px; right: 24px; color: #fff; font-size: 36px; line-height: 1; }

/* ================= UNIVERSO 01 · Z-ONE ================= */
body[data-uni="zone"] { --bg: #E6C022; --fg: #222222; --z: #222222; --y: #E6C022; font-family: 'Montserrat', sans-serif; font-weight: 450; }
[data-uni="zone"] .hero-t, [data-uni="zone"] .sec-t, [data-uni="zone"] .next b { font-weight: 700; text-transform: uppercase; letter-spacing: .005em; }
[data-uni="zone"] .hero-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.z-logo { display: block; width: min(460px, 86%); aspect-ratio: 1400 / 525; background: var(--z); -webkit-mask: url(../assets/img/z-logo-mask.png) left center / contain no-repeat; mask: url(../assets/img/z-logo-mask.png) left center / contain no-repeat; margin: 0 0 34px; }
[data-uni="zone"] .sec-head { gap: 0; border: 3px solid var(--z); letter-spacing: .2em; }
[data-uni="zone"] .sec-head .sec-n { background: var(--z); color: var(--y); padding: 8px 12px; }
[data-uni="zone"] .sec-head .sec-l { padding: 8px 14px; }
[data-uni="zone"] .gal img, [data-uni="zone"] .hero-media img { border: 3px solid var(--z); }
[data-uni="zone"] .ficha { border-top: 3px solid var(--z); padding-top: 18px; }
[data-uni="zone"] .ficha dt { letter-spacing: .2em; }
.sec.band { max-width: none; background: var(--z); color: var(--y); }
.sec.band > * { max-width: calc(1700px - 2 * var(--pad)); margin-left: auto; margin-right: auto; }
.sec.band > .sec-head { display: flex; width: max-content; margin-left: max(0px, calc((100% - 1700px + 2 * var(--pad)) / 2)); }
[data-uni="zone"] .band .sec-head { border-color: var(--y); }
[data-uni="zone"] .band .sec-head .sec-n { background: var(--y); color: var(--z); }
[data-uni="zone"] .band .gal img { border-color: var(--y); }
.band .gal { margin-top: 48px; }
.sw { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.sw span { display: flex; flex-direction: column; justify-content: flex-end; width: 200px; height: 130px; padding: 14px; background: var(--s); border: 3px solid var(--y); font-size: 13px; font-weight: 600; color: var(--y); }
.sw span:last-child { color: var(--z); }
.sw b { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.sec.result .sec-t { max-width: 26ch; }
.sec.result .sec-b { font-weight: 700; letter-spacing: .04em; }

/* ================= UNIVERSO 02 · ESENCIA ================= */
body[data-uni="esencia"] { --bg: #12130f; --fg: #e4dfda; --acc: #4FAE32; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 16px; font-weight: 400; }
body.ed-on { --bg: var(--ed-bg); --fg: var(--ed-fg); }
[data-uni="esencia"] .hero-t, [data-uni="esencia"] .sec-t, [data-uni="esencia"] .ed h3, [data-uni="esencia"] .next b { font-family: 'Michroma', sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
[data-uni="esencia"] .hero-t { font-size: clamp(40px, 6vw, 100px); }
[data-uni="esencia"] .sec-t { font-size: clamp(24px, 3vw, 48px); line-height: 1.12; }
[data-uni="esencia"] .sec-b, [data-uni="esencia"] .hero-l { font-size: clamp(15px, 1.1vw, 18px); letter-spacing: -.01em; }
[data-uni="esencia"] .kicker, [data-uni="esencia"] .sec-head { font-size: 12px; letter-spacing: .08em; }
[data-uni="esencia"] .sec-head .sec-n { color: var(--acc); }
body.ed-on[data-uni="esencia"] .sec-head .sec-n { color: inherit; }
.es-logo { display: block; width: clamp(110px, 12vw, 170px); margin: 0 0 28px; color: var(--fg); }
.es-logo svg { width: 100%; height: auto; }
[data-uni="esencia"] .hero-media img { aspect-ratio: 3 / 2; filter: saturate(1.05); }
[data-uni="esencia"] .ficha dt { letter-spacing: .08em; }
[data-uni="esencia"] .ficha dd { font-size: 14px; font-weight: 400; }
/* símbolo y construcción */
.logo-grid { display: grid; grid-template-columns: minmax(280px, 1fr) 1fr; gap: 5vw; align-items: center; margin-top: 24px; }
.logo-art { position: relative; aspect-ratio: 1811.91 / 1920; max-width: 640px; }
.logo-svg, .logo-svg svg { width: 100%; height: 100%; color: var(--fg); }
.guides { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .5s; }
.guides g { opacity: 0; transition: opacity .7s var(--ease); }
.logo-art.in .guides g { opacity: 1; }
.guides g:nth-child(2) { transition-delay: .15s; } .guides g:nth-child(3) { transition-delay: .3s; } .guides g:nth-child(4) { transition-delay: .45s; }
.guides g:nth-child(5) { transition-delay: .6s; } .guides g:nth-child(6) { transition-delay: .75s; } .guides g:nth-child(7) { transition-delay: .9s; }
.gd { fill: none; stroke: var(--acc); stroke-width: 5; stroke-dasharray: 18 12; }
.dot { fill: var(--acc); }
.dot-n { fill: #12130f; font: 700 40px 'JetBrains Mono', monospace; text-anchor: middle; }
.logo-art.off .guides { opacity: 0; }
.logo-art[data-k] .guides g { opacity: .1; transition-delay: 0s; }
.logo-art[data-k="1"] .guides g[data-k="1"], .logo-art[data-k="2"] .guides g[data-k="2"], .logo-art[data-k="3"] .guides g[data-k="3"], .logo-art[data-k="4"] .guides g[data-k="4"],
.logo-art[data-k="5"] .guides g[data-k="5"], .logo-art[data-k="6"] .guides g[data-k="6"], .logo-art[data-k="7"] .guides g[data-k="7"] { opacity: 1; }
.guides-toggle { position: absolute; top: 0; right: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border: 1.5px solid currentColor; border-radius: 999px; }
.guides-toggle[aria-pressed="false"] { opacity: .55; }
.notes { list-style: none; padding: 0; margin: 32px 0 0; font-size: 14px; }
.notes li { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-top: 1px solid color-mix(in srgb, var(--fg) 18%, transparent); cursor: default; }
.notes li span { flex: 0 0 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--acc); color: #12130f; font-weight: 700; font-size: 12px; }
.notes li:hover { color: var(--acc); }
.logo-vers { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 2.4vw, 40px); margin-top: 6vw; }
.lv { width: clamp(90px, 9vw, 140px); color: var(--c); }
.lv svg { width: 100%; height: auto; }
.lv-word { width: clamp(180px, 20vw, 300px); color: var(--fg); }
.lv-img { width: clamp(200px, 22vw, 340px); height: auto; }
/* ediciones: el fondo cambia con cada cartel */
.editions { max-width: none; padding-left: 0; padding-right: 0; }
.editions > .sec-head, .editions > .sec-t, .editions > .sec-b { margin-left: var(--pad); margin-right: var(--pad); }
.editions > .sec-head { display: flex; width: max-content; }
.ed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5vw; align-items: center; min-height: 100vh; padding: 10vh var(--pad) 10vh calc(var(--pad) + 40px); max-width: 1700px; margin: 0 auto; }
.ed-poster { justify-self: center; }
.ed-poster img { max-height: 80vh; width: auto; max-width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.ed-n { font-size: 13px; letter-spacing: .08em; opacity: .8; }
.ed h3 { margin: 12px 0 28px; font-size: clamp(26px, 3.6vw, 56px); line-height: 1.08; }
.ed dl { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 36px; margin: 0 0 28px; font-size: 13px; }
.ed dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.ed dd { margin: 3px 0 0; }
.ed p { margin: 0; font-size: clamp(15px, 1.15vw, 18px); max-width: 44ch; line-height: 1.6; }
.ed-rail { position: fixed; left: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 6px; font-size: 11px; opacity: 0; pointer-events: none; transition: opacity .5s; }
.ed-rail a { text-decoration: none; opacity: .45; padding: 2px 0; }
.ed-rail a.on { opacity: 1; font-weight: 700; }
.ed-rail a.on::before { content: '— '; }
.ed-bomb { position: fixed; right: 26px; bottom: 26px; width: 66px; z-index: 40; opacity: 0; transition: opacity .5s, color .8s; color: var(--fg); pointer-events: none; animation: wobble 2.4s ease-in-out infinite; }
.ed-bomb svg { width: 100%; height: auto; }
body.ed-on .ed-rail { opacity: 1; pointer-events: auto; }
body.ed-on .ed-bomb { opacity: 1; }
@keyframes wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-4px); } }
[data-uni="esencia"] .merch .slot { min-height: 280px; border-color: var(--acc); color: var(--fg); }
[data-uni="esencia"] .merch .slot-s { color: var(--acc); }
[data-uni="esencia"] .merch .slot::after { content: ''; position: absolute; right: 18px; bottom: 18px; width: 54px; height: 54px; background: currentColor; opacity: .14;
  -webkit-mask: var(--es-mask) center / contain no-repeat; mask: var(--es-mask) center / contain no-repeat; }

/* ================= UNIVERSO 03 · ENCICLOPEDIA ================= */
body[data-uni="enciclopedia"] { --bg: #2D6FD1; --fg: #ffffff; --navy: #123b7c; }
[data-uni="enciclopedia"] .hero-t, [data-uni="enciclopedia"] .sec-t, [data-uni="enciclopedia"] .next b, [data-uni="enciclopedia"] .slot-t { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; letter-spacing: -.01em; }
[data-uni="enciclopedia"] .hero-t { font-size: clamp(44px, 6vw, 104px); }
.hero-sello { display: grid; place-items: center; background: #F4F1EA; aspect-ratio: 4 / 3; }
.hero-sello img { width: 52%; height: auto; aspect-ratio: auto !important; object-fit: contain; }
[data-uni="enciclopedia"] .slot { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.04); }
[data-uni="enciclopedia"] .slots { counter-reset: s; }
[data-uni="enciclopedia"] .slot::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-size: 12px; font-weight: 800; letter-spacing: .14em; opacity: .7; }

/* ---------- móvil ---------- */
/* Cursor: el normal del sistema (el cursor propio se retiró a petición de Marcos). */

/* ---------- Z-ONE · antes / después ---------- */
.compare-wrap { padding-top: 2vw; }
.compare { position: relative; margin: 0; overflow: hidden; border: 3px solid var(--z, currentColor); user-select: none; }
.compare img { width: 100%; height: auto; display: block; }
.cmp-b { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-b img { width: 100%; height: 100%; object-fit: cover; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--z, #222); pointer-events: none; }
.cmp-handle i { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; background: var(--z, #222); border: 3px solid var(--y, #fff); }
.cmp-handle i::before { content: '◂ ▸'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--y, #fff); font-size: 13px; letter-spacing: 2px; }
.cmp-l { position: absolute; top: 16px; padding: 6px 12px; background: var(--z, #222); color: var(--y, #fff); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; pointer-events: none; }
.cmp-l-b { left: 16px; } .cmp-l-a { right: 16px; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare:has(.cmp-range:focus-visible) { outline: 3px solid var(--z); outline-offset: 4px; }

/* ---------- secciones fijadas (scroll) ---------- */
.pin { max-width: none; padding: 0; }
.pin-in { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* ---------- Z-ONE · la historia del logo ---------- */
.zstory { height: 320vh; }
.zstory .pin-in { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 4vw; padding: var(--bar-h) var(--pad) 0; max-width: 1700px; margin: 0 auto; }
.zs-stage { position: relative; aspect-ratio: 1000 / 375; width: 100%; font-family: 'Montserrat', sans-serif; color: var(--z); }
.zs-word { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: clamp(60px, 9vw, 150px); letter-spacing: .02em; line-height: 1;
  opacity: calc(1 - clamp(0, (var(--p) - .42) * 8, 1)); }
.zs-word span { display: inline-block; transition: opacity .4s, transform .5s var(--ease), color .4s; }
.zs-h { opacity: calc(1 - clamp(0, (var(--p) - .12) * 6, 1)); transform: translateY(calc(clamp(0, (var(--p) - .12) * 6, 1) * 40px)) scaleX(calc(1 + clamp(0, (var(--p) - .1) * 8, 1))); }
.zs-ne { opacity: calc(1 - clamp(0, (var(--p) - .22) * 6, 1) * .85); }
.zs-z, .zs-o { transform: translateX(calc(clamp(0, (var(--p) - .25) * 5, 1) * var(--dx, 0px))); }
.zs-z { --dx: 6vw; } .zs-o { --dx: -2vw; }
.zs-sym { position: absolute; left: 8%; top: 19%; height: 62%; width: auto; opacity: clamp(0, (var(--p) - .42) * 6, 1); transform: scale(calc(.6 + clamp(0, (var(--p) - .42) * 4, 1) * .4)); transform-origin: 30% 50%; }
.zs-box { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.zs-box rect, .zs-box line { fill: none; stroke: var(--z); stroke-width: 12; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--p) - .62) * 5, 1)); }
.zs-box line { stroke-dashoffset: calc(1 - clamp(0, (var(--p) - .74) * 7, 1)); }
.zs-box rect, .zs-box line { stroke-width: 10px; }
.zs-name { position: absolute; left: 41%; top: 0; bottom: 0; right: 4%; display: flex; flex-direction: column; justify-content: center; align-items: center; font-weight: 700; line-height: 1.05;
  opacity: clamp(0, (var(--p) - .74) * 6, 1); }
.zs-name b { font-size: clamp(34px, 5.6vw, 92px); letter-spacing: .02em; }
.zs-name span { font-size: clamp(16px, 2.6vw, 42px); letter-spacing: .5em; margin-right: -.5em; }
.zs-final { position: absolute; inset: 0; width: 100% !important; margin: 0 !important; opacity: clamp(0, (var(--p) - .9) * 12, 1); background: var(--z); }
.zs-build { position: absolute; inset: 0; opacity: calc(1 - clamp(0, (var(--p) - .9) * 12, 1)); }
.zs-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; font-size: clamp(16px, 1.3vw, 21px); font-weight: 600; }
.zs-steps li { display: flex; gap: 16px; padding: 18px 0; border-top: 3px solid var(--z); opacity: .28; transition: opacity .4s; }
.zs-steps li span { flex: 0 0 auto; padding: 2px 8px; height: max-content; background: var(--z); color: var(--y); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.zs-steps li.on { opacity: 1; } .zs-steps li.done { opacity: .55; }

/* ---------- Esencia · la mecha ---------- */
.fuse { height: 260vh; }
.fuse .pin-in { display: grid; place-items: center; }
.fuse-bomb { position: relative; width: min(52vh, 70vw); aspect-ratio: 1811.91 / 1920; transform: translate(calc(var(--shake, 0px) * sin(var(--p) * 900deg)), calc(var(--shake, 0px) * cos(var(--p) * 1300deg))) scale(calc(1 + var(--p) * .12)); transition: transform .08s linear, opacity .35s, scale .35s; color: var(--fg); }
.fuse-svg, .fuse-svg svg { width: 100%; height: 100%; }
.spark { position: absolute; width: 0; height: 0; }
.spark::before, .spark::after { content: ''; position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, #fff 0 18%, #ffe27a 30%, rgba(255,120,40,.85) 48%, transparent 70%); animation: flick .12s steps(2) infinite; }
.spark::after { left: -60px; top: -60px; width: 120px; height: 120px; opacity: .45; animation-duration: .2s; }
@keyframes flick { 50% { transform: scale(.75) rotate(25deg); } }
.fuse-word { position: absolute; left: 0; right: 0; bottom: 10vh; margin: 0; text-align: center; font-family: 'Michroma', sans-serif; text-transform: uppercase; font-size: clamp(18px, 2.4vw, 34px); letter-spacing: .08em; height: 1.4em; }
.fuse-word span { position: absolute; left: 0; right: 0; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s; }
.fuse-word span.on { opacity: 1; transform: none; }
.boom { position: absolute; inset: 0; background: radial-gradient(circle at 50% 52%, #fff 0, #fff8d6 25%, rgba(79,174,50,.0) 70%); opacity: 0; pointer-events: none; }
.ring { position: absolute; left: 50%; top: 52%; width: 40vmax; height: 40vmax; margin: -20vmax 0 0 -20vmax; border-radius: 50%; border: 3px solid var(--fg); opacity: 0; transform: scale(.1); pointer-events: none; }
.fuse.boomed .fuse-bomb { opacity: 0; scale: 2.4; }
.fuse.boomed .spark { display: none; }
.fuse.boomed .boom { animation: boom .9s ease-out forwards; }
.fuse.boomed .ring { animation: ring 1.1s cubic-bezier(.1,.7,.2,1) forwards; }
.fuse.boomed .r2 { animation-delay: .12s; border-color: #4FAE32; } .fuse.boomed .r3 { animation-delay: .24s; border-color: #E4262C; }
@keyframes boom { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ring { 0% { opacity: 1; transform: scale(.1); } 100% { opacity: 0; transform: scale(2.6); } }

/* ---------- Esencia · carteles con relieve y brillo holográfico ---------- */
.ed-poster .zoom { position: relative; transition: transform .5s var(--ease); transform-style: preserve-3d; }
.ed-poster .zoom::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; mix-blend-mode: color-dodge;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.55), transparent 40%),
              linear-gradient(115deg, transparent 20%, rgba(191,153,252,.35) 35%, rgba(156,223,252,.35) 45%, rgba(159,247,243,.3) 55%, rgba(251,191,223,.35) 65%, transparent 80%);
  background-size: 100% 100%, 250% 250%; background-position: 0 0, var(--mx, 50%) var(--my, 50%); }
.ed-poster .zoom.holo { transition: transform .08s linear; }
.ed-poster .zoom.holo::after { opacity: 1; }

/* ---------- Esencia · sonido ---------- */
.snd { position: fixed; right: 22px; bottom: 22px; z-index: 45; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1.5px solid currentColor; border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); background: color-mix(in srgb, var(--bg) 70%, transparent); transition: color .8s, background .8s; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.bars i { width: 2px; height: 30%; background: currentColor; }
.snd[aria-pressed="true"] .bars i { animation: eq .8s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: .2s !important; } .bars i:nth-child(3) { animation-delay: .4s !important; } .bars i:nth-child(4) { animation-delay: .1s !important; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
body.ed-on .ed-bomb { bottom: 80px; }
.ed-bomb { transition: opacity .5s, color .8s, bottom .4s; }

/* ---------- pie de caso: compartir y PDF ---------- */
.foot-tools { display: flex; flex-direction: column; gap: 18px; }
.tools { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-btn { padding: 8px 16px; border: 1.5px solid currentColor; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; transition: background .25s, color .25s; }
.pill-btn:hover { background: var(--fg); color: var(--bg); }

/* ---------- modo estudio / cliente ---------- */
body[data-mode="client"] .aud-studio, body[data-mode="client"] .notes { display: none; }

/* ---------- Enciclopedia · cosmos ---------- */
.hero { position: relative; }
.hero-txt, .hero > .hero-media { position: relative; z-index: 1; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stars-bg { opacity: .55; }
.hero-sello { position: relative; overflow: hidden; background: #0d2a5e !important; }
.hero-sello img { position: relative; z-index: 1; filter: drop-shadow(0 20px 50px rgba(0,0,0,.5)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-2deg); } }

/* ---------- contacto: brief ---------- */
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: start; }
.contact-cols .clist a { font-size: clamp(18px, 1.8vw, 30px); overflow-wrap: anywhere; }
.brief { display: grid; gap: 22px; padding: 30px; border-radius: 4px; border: 1.5px solid transparent; background: linear-gradient(#2b2b2b, #2b2b2b) padding-box, var(--iri) border-box; }
.brief .f { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.brief .f > span, .brief legend { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); padding: 0; margin-bottom: 8px; }
.brief input[type="text"], .brief input[type="email"], .brief textarea { font: inherit; color: var(--fg); background: transparent; border: 0; border-bottom: 1.5px solid var(--line); padding: 8px 0; outline: none; }
.brief input:focus, .brief textarea:focus { border-bottom-color: var(--fg); }
.brief textarea { resize: vertical; }
.send { justify-self: start; padding: 12px 22px; border-radius: 999px; background: var(--iri); color: var(--ink); font-weight: 800; }
.send:disabled { opacity: .5; }
.brief-msg { margin: 0; font-weight: 700; min-height: 1.5em; }
.brief.sent .f, .brief.sent .send { opacity: .4; pointer-events: none; }

@media (max-width: 760px) {
  :root { --bar-h: 64px; }
  body { font-size: 16px; }
  .nav { gap: 12px; font-size: 13px; }
  .nav a[data-go="proyectos"] { display: none; }
  .badge svg { height: 18px; }
  .badge-back { display: none; }
  .home { height: auto; min-height: 100svh; overflow: visible; padding: calc(var(--bar-h) + 20px) 20px 40px; }
  .stage { position: static; }
  .orbit-line { display: none; }
  .iso { position: relative; left: auto; top: auto; transform: none; width: 52vw; margin: 4vh auto 6vh; }
  .marks { position: static; display: flex; flex-direction: column; gap: 10px; }
  .mark { position: static; width: auto; display: flex; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); transform: none !important; opacity: 1 !important; }
  .mark img { width: 76px; }
  .mark-label { position: static; transform: none; margin: 0; text-align: left; font-size: 15px; }
  .home-pick { display: none; }
  .home-foot { position: static; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 36px; }
  .deck { justify-self: start; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 4vh; gap: 36px; }
  .ficha { grid-template-columns: 1fr 1fr; }
  .gal { grid-template-columns: 1fr 1fr; }
  .g-full, .g-half { grid-column: span 2; } .g-third { grid-column: span 1; }
  .rows a { grid-template-columns: 36px 52px 1fr 24px; gap: 12px; }
  .rows img { width: 48px; } .r-d, .r-y { display: none; }
  .about-cols, .logo-grid { grid-template-columns: 1fr; }
  .clist li { grid-template-columns: 1fr; gap: 4px; }
  .ed { grid-template-columns: 1fr; min-height: 0; padding: 12vh var(--pad); gap: 28px; }
  .ed-poster img { max-height: 70vh; }
  .ed-rail { display: none; }
  .ed-bomb { width: 48px; right: 16px; bottom: 16px; }
  .sw span { width: calc(50% - 8px); }
  .moons { display: none; }
  body[data-view="case"] .nav > a { display: none; }
  .nav { gap: 8px; }
  .pill span { padding: 3px 7px; }
  .ed-bomb { display: none; }
  .home .chips { position: static; justify-content: flex-start; margin-bottom: 10px; }
  .contact-cols { grid-template-columns: 1fr; }
  .brief { padding: 20px; }
  .zstory { height: 280vh; }
  .zstory .pin-in { grid-template-columns: 1fr; align-content: center; gap: 30px; }
  .fuse { height: 220vh; }
  /* mazo de carteles: se pasan con el dedo */
  .ed-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 4vh var(--pad) 6vh; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ed-track::-webkit-scrollbar { display: none; }
  .ed { flex: 0 0 84vw; scroll-snap-align: center; padding: 0; transition: transform .5s var(--ease); transform: scale(.94) rotate(-1.5deg); }
  .ed.cur { transform: none; }
  .ed:nth-child(even) { transform: scale(.94) rotate(1.5deg); }
  .ed:nth-child(even).cur { transform: none; }
  .ed-poster img { max-height: 58vh; }
  .ed .rv { opacity: 1; transform: none; }
  .snd { right: 14px; bottom: 14px; padding: 10px; }
  .snd-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  body.ed-on .ed-bomb { bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .zstory, .fuse { height: auto; }
  .pin-in { position: relative; height: auto; padding-top: 6vw; padding-bottom: 6vw; }
  .fuse { display: none; }
}

/* ---------- PDF del caso (imprimir) ---------- */
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  html, body { background: var(--bg) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bar, #cur, .snd, .ed-rail, .ed-bomb, .tools, .next, .fuse, .guides-toggle, .cmp-range, .cmp-handle, .lb, #wipe { display: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  .case { padding-top: 0; }
  .hero { min-height: 0; break-after: page; padding: 10mm 0; }
  .sec { padding: 6mm 0 !important; max-width: none; }
  .sec.band { padding: 8mm 6mm !important; }
  figure, .ed, .compare-wrap, .sec-head, .sec-t { break-inside: avoid; }
  .sec-t { break-after: avoid; }
  .gal img { max-height: 115mm; width: 100%; object-fit: contain; }
  .compare { display: grid; grid-template-columns: 1fr 1fr; }
  .cmp-b { position: static; clip-path: none !important; order: -1; }
  .cmp-l { display: none; }
  .zstory { height: auto; } .zstory .pin-in { position: static; height: auto; }
  .zstory { --p: 1 !important; }
  .ed { min-height: 0; padding: 6mm 0; }
  .ed-poster img { max-height: 150mm; box-shadow: none; }
  .editions .ed { break-inside: avoid; }
  .gal { gap: 6mm; }
}
