@font-face {
  font-family: 'Chernobyl';
  src: url('../fonts/chernobyl.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Chernobyl dibuja "/", "+", "-", "(", ")" y "*" como tréboles radiactivos y deja vacíos
   "·", "—", "–", "|", "×", "→", "¿" y "¡": esos caracteres se toman de una serif del sistema. */
@font-face {
  font-family: 'Chernobyl';
  src: local('Georgia'), local('Gelasio'), local('Times New Roman'), local('Times'), local('Noto Serif'), local('DejaVu Serif');
  unicode-range: U+002F, U+002B, U+002D, U+0028, U+0029, U+002A, U+007C, U+005F, U+00B7, U+2022, U+2013, U+2014, U+00D7, U+2190-2193, U+00BF, U+00A1;
}

:root {
  --cream: #f8eedb;
  --red: #b0383a;
  --ink: #0f0f0f;
  --ink-soft: rgba(15, 15, 15, .75);
  --display: 'Chernobyl', 'Arial Black', Impact, sans-serif;
  --serif: Georgia, 'Gelasio', 'Times New Roman', serif;
  --nf: clamp(17px, min(1.875vw, 3.2vh), 30px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--cream); }
body { color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; font-synthesis: none; }
/* Fondo de la página: desgaste oscuro (tinta) sobre el beige, fijo bajo las secciones. Se desplaza con el scroll más despacio
   que el contenido (parece más lejos) y tiene una deriva constante muy leve. */
.bgfx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; --bg-y: 0px; }
.bgfx i { position: absolute; inset: -90px; background: url('../img/desgaste-oscuro.webp') 0 var(--bg-y) / var(--bg-wear-size, 1100px); }
.bgfx-base { opacity: var(--bg-wear-opacity, .15); animation: bg-drift 36s ease-in-out infinite; }
@keyframes bg-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(42px, -28px) rotate(.5deg); }
  50% { transform: translate(14px, -58px) rotate(0deg); }
  75% { transform: translate(-36px, -26px) rotate(-.5deg); }
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.arr { width: 18px; height: 18px; flex: none; }
.arr.rev { transform: scaleX(-1); }

/* ───────── Pantalla de carga ─────────
   Dos capas idénticas apiladas: abajo del todo, fondo negro con la guitarra blanca; encima, fondo beige con
   la guitarra negra, recortada para enseñar solo la franja de abajo. --p (0 a 1) lo mueve main.js. */
.intro { display: none; }
html.is-loading, html.is-loading body { overflow: hidden; }
html.is-loading .intro { display: block; position: fixed; inset: 0; z-index: 100; background: var(--ink); transition: opacity .7s ease; }
.intro.is-done { opacity: 0; pointer-events: none; }
.intro-dark, .intro-light { position: absolute; inset: 0; }
.intro-dark { background: var(--ink); }
/* Contador 0-100: sube pegado a la línea beige y sale por arriba cuando el beige lo ocupa todo */
.intro-count { position: absolute; left: clamp(16px, 2.6vw, 48px); top: 0; font: 400 clamp(72px, 15vh, 190px)/1 var(--display); color: var(--cream); transform: translateY(calc((1 - var(--p, 0)) * 100vh - 100% - 14px)); will-change: transform; }
/* Al llegar al 100 %: la guitarra se encoge mientras sube un poco (--rise) hasta desaparecer en un punto (ease-in-out) */
@keyframes guitar-out {
  from { transform: translate(-50%, -50%) scale(1); }
  to { transform: translate(-50%, calc(-50% - var(--rise, 9vh))) scale(0); }
}
html.is-loading .intro.is-out { pointer-events: none; background: transparent; }
.intro.is-out .intro-dark { visibility: hidden; }
.intro.is-out .intro-light { background-color: transparent; transition: background-color .9s ease-in-out .5s; }
.intro.is-out .intro-light img { animation: guitar-out var(--out-ms, 1200ms) ease-in-out forwards; }

/* Entrada de la Home: el menú y el selector de idioma llegan desde los lados (el vinilo, el brazo y el ON/OFF
   los mueve main.js). Cada pieza tiene su retardo para que entren escalonadas. */
html.is-loading .nav, html.is-loading .burger, html.is-loading .here { transition: transform .9s cubic-bezier(.45, 0, .3, 1.2); }
html.is-loading .topright { transition: transform .9s cubic-bezier(.45, 0, .3, 1.2) .12s; }
html.is-loading:not(.is-entering) .nav, html.is-loading:not(.is-entering) .burger, html.is-loading:not(.is-entering) .here { transform: translateX(-320px); }
html.is-loading:not(.is-entering) .topright { transform: translateX(320px); }
.intro-light { background: var(--cream); clip-path: inset(calc((1 - var(--p, 0)) * 100%) 0 0 0); }
.intro img { position: absolute; left: 50%; top: 50%; height: 50vh; height: 50dvh; width: auto; transform: translate(-50%, -50%); }

/* ───────── Secciones apiladas en vertical: una pantalla cada una ───────── */
.scroller { position: relative; }
.stage { position: relative; }
.track { display: block; }
.sec { position: relative; width: 100%; height: 100vh; overflow: hidden; }
.fit { position: absolute; left: 50%; top: 50%; width: 1280px; height: calc(var(--h) * 1px); transform: translate(calc(-50% + var(--dx, 0px)), -50%) scale(var(--s, 1)); transform-origin: center; }

/* ───────── Menú y selector de idioma (siempre visibles) ───────── */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 20; height: 0; }
.nav { position: absolute; left: clamp(16px, 2.6vw, 48px); top: clamp(14px, 3.7vh, 36px); font: 400 var(--nf)/1.17 var(--display); }
.nav a { display: block; white-space: nowrap; color: var(--ink); transition: color .25s; }
.nav a:hover, .nav a.on { color: var(--red); }
.nav-v { display: flex; flex-direction: column; }
.topright { position: absolute; right: clamp(16px, 7.8vw, 150px); top: clamp(14px, 3.7vh, 36px); display: flex; align-items: center; gap: 12px; }
.lang { display: flex; gap: .35em; font: 400 var(--nf)/1.17 var(--display); }
.lang button { color: var(--ink); transition: color .25s; }
.lang button:hover, .lang button.on { color: var(--red); }
.burger, .here, .menu, .dots { display: none; }

/* ───────── Cabecera común de secciones ───────── */
.hd { position: absolute; left: 96px; width: 1088px; }
.eyebrow { font: 400 12px/1 var(--display); letter-spacing: .12em; color: var(--red); text-transform: uppercase; }
.hd h2 { margin-top: 8px; font: 400 72px/normal var(--display); color: var(--ink); }
.hd .sub { margin-top: 8px; font: 18px/1.4 var(--serif); color: var(--ink-soft); }
.lbl { display: block; font: 400 11px/1 var(--display); letter-spacing: .14em; color: var(--ink); }
.lbl.red { color: var(--red); }
.cta { display: inline-flex; align-items: center; gap: 6px; font: 400 12px/1 var(--display); letter-spacing: .12em; color: var(--red); }
.cta .arr { width: 13px; height: 13px; }

/* ───────── 00 · Home ─────────
   Anclas invisibles: fijan dónde está cada pieza en la Home. Las piezas reales viven en .vdeck
   y se animan con el scroll hasta su posición pequeña (bajo el menú, o en la barra superior en móvil). */
.deck { position: absolute; left: 277px; top: 53px; width: 727px; height: 726px; visibility: hidden; pointer-events: none; }
.a-arm { position: absolute; left: 95.87%; top: 5.22%; width: 23.38%; aspect-ratio: 170 / 507; }
.a-power { position: absolute; left: 201px; top: 647px; width: 62px; height: 126px; visibility: hidden; pointer-events: none; }

.vdeck { position: fixed; inset: 0; z-index: 10; pointer-events: none; visibility: hidden; transition: opacity .25s; }
.vdeck.ready { visibility: visible; }
.v-disc, .v-arm, .power { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.v-disc { width: 727px; height: 726px; }
.v-disc img { position: absolute; left: -1.359%; top: -3.065%; width: 103.57%; height: auto; transform-origin: 49.6% 51.2%; will-change: transform; }
.v-arm { width: 170px; height: 507px; }
.v-arm img { width: 100%; height: 100%; transform-origin: 31.2% 19.7%; transition: transform 1.3s cubic-bezier(.45, 0, .2, 1); }
.vdeck.is-on .v-arm img { transform: rotate(18deg); }
.power { width: 62px; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: auto; }
.power span { font: 400 24px/normal var(--display); transition: color .3s; }
.power-on { color: var(--ink); }
.power-off { color: var(--red); }
.power[aria-checked="true"] .power-on { color: var(--red); }
.power[aria-checked="true"] .power-off { color: var(--ink); }
.power-knob { width: 62px; height: auto; transform: rotate(180deg); transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.power[aria-checked="true"] .power-knob { transform: rotate(0deg); }
.power-h { display: none; }

/* ───────── 01 · Sobre mí ───────── */
.ab-photo { position: absolute; left: 96px; top: 96px; width: 352px; height: 435px; }
.ab-photo img { width: 100%; height: 100%; object-fit: cover; }
.ab-photo .ab-alt { position: absolute; left: 0; top: 0; opacity: 0; }
.ab-star { position: absolute; left: 372px; top: 36px; width: 120px; height: auto; transform: rotate(-15deg); pointer-events: none; }
/* Al pasar el ratón por la foto: foto 2 (0,5 s), foto 3 (0,5 s) y vuelta a la inicial; la estrella vibra mientras tanto */
.ab-photo:hover .ab-alt-1 { animation: ab-swap-1 1s linear; }
.ab-photo:hover .ab-alt-2 { animation: ab-swap-2 1s linear; }
.ab-photo:hover + .ab-star { animation: ab-star-glitch 1s steps(1, end); }
/* Glitch (separación RGB + sacudida) en los tres cambios de foto: al entrar, a los 0,5 s y al volver. Saltos secos, sin suavizar */
.ab-photo:hover { animation: ab-glitch 1s steps(1, end); }
@keyframes ab-glitch {
  0% { filter: url(#glitch-a); transform: translate(-1.5px, 0) skewX(-1deg); }
  4% { filter: url(#glitch-b); transform: translate(2px, .5px) skewX(.8deg); }
  8% { filter: url(#glitch-a); transform: translate(-1px, -.5px); }
  11%, 46% { filter: none; transform: none; }
  50% { filter: url(#glitch-b); transform: translate(2.5px, 0) skewX(1.2deg); }
  54% { filter: url(#glitch-a); transform: translate(-2px, .5px) skewX(-.8deg); }
  58% { filter: url(#glitch-b); transform: translate(1px, 0); }
  61%, 88% { filter: none; transform: none; }
  92% { filter: url(#glitch-a); transform: translate(1.5px, -.5px) skewX(.8deg); }
  96% { filter: url(#glitch-b); transform: translate(-1.5px, 0) skewX(-.8deg); }
  100% { filter: none; transform: none; }
}
/* La estrella se sacude en los mismos momentos que la foto (gira alrededor de su inclinación de -15°) */
@keyframes ab-star-glitch {
  0% { transform: translate(-3px, 1px) rotate(-18deg); }
  4% { transform: translate(3px, -1px) rotate(-12deg); }
  8% { transform: translate(-2px, 1px) rotate(-16.5deg); }
  11%, 46% { transform: rotate(-15deg); }
  50% { transform: translate(3px, 0) rotate(-12.5deg); }
  54% { transform: translate(-3px, 1px) rotate(-17.5deg); }
  58% { transform: translate(1.5px, -1px) rotate(-14deg); }
  61%, 88% { transform: rotate(-15deg); }
  92% { transform: translate(2.5px, -1px) rotate(-13deg); }
  96% { transform: translate(-2.5px, 1px) rotate(-17deg); }
  100% { transform: rotate(-15deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ab-photo:hover, .ab-photo:hover + .ab-star { animation: none; }
}

/* Glitch corto (separación RGB + sacudida mínima) al pasar el ratón por cualquier botón o elemento accionable.
   Usa la propiedad "translate" para no pisar los transform propios de cada elemento. */
.nav a:hover, .menu a:hover, .lang button:hover, .burger:hover, .here:hover,
.power:hover, .power-h:hover, .cc-btn:not(:disabled):hover, .cs-face:hover, .cta:hover,
.acc-h:hover, .tp-btn:not(:disabled):hover, .row:hover .rh, .ct-link:hover, .cclose:hover, .case-toc-link:hover,
.ab-stars li:hover .st, .ab-stars li:hover b { animation: ui-glitch .34s steps(1, end); }
@keyframes ui-glitch {
  0% { filter: url(#ui-a); translate: -1.5px 0; }
  18% { filter: url(#ui-b); translate: 1.5px .5px; }
  36% { filter: url(#ui-a); translate: -1px 0; }
  54% { filter: url(#ui-b); translate: .5px 0; }
  72%, 100% { filter: none; translate: none; }
}
@keyframes ab-swap-1 { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes ab-swap-2 { 0%, 49.9% { opacity: 0; } 50%, 99.9% { opacity: 1; } 100% { opacity: 0; } }
.ab-kicker { position: absolute; left: 520px; top: 70px; font: 400 36px/1 var(--display); white-space: nowrap; }
.ab-kicker i { font-style: normal; color: var(--red); }
.ab-title { position: absolute; left: 520px; top: 108px; font: 400 204px/1 var(--display); color: var(--red); white-space: nowrap; }
.ab-text { position: absolute; left: 520px; top: 312px; width: 664px; font: 24px/29px var(--serif); }
.ab-text p + p { margin-top: 29px; }
.ab-ess { position: absolute; right: 791px; top: 719px; font: 400 28px/1 var(--display); color: var(--ink); white-space: nowrap; }
.ab-stars { list-style: none; }
.ab-stars li { position: absolute; top: 616px; left: calc(var(--cx) * 1px - 60px); width: 120px; text-align: center; }
.ab-stars li { cursor: default; outline: none; }
.ab-stars .st { display: block; width: 78px; height: auto; margin: 0 auto; }
.ab-stars b { display: block; margin-top: 6px; font: 400 61px/1 var(--display); letter-spacing: .02em; color: var(--ink); }
.ab-stars .st, .ab-stars b { transition: transform .45s ease-in-out; }
.ab-stars li:hover .st, .ab-stars li:focus-visible .st, .ab-stars li:hover b, .ab-stars li:focus-visible b { transform: scale(.88); }
.ab-stars li:hover, .ab-stars li:focus-visible { z-index: 3; }

/* Foto y texto que flotan junto a la estrella al pasar el ratón: cada uno con su propio movimiento */
.pk { position: absolute; pointer-events: none; opacity: 0; transition: opacity .45s ease-in-out, transform .55s ease-in-out; }
.pk-ph { left: calc(60px + var(--pdx)); top: calc(39px + var(--pdy)); width: var(--pw); transform: translate(-50%, -50%) rotate(var(--pr)) scale(.8); }
.pk-ph img { display: block; width: 100%; height: auto; animation: pk-drift-a 4.6s ease-in-out infinite alternate; }
.pk-tx { left: calc(60px + var(--tdx)); top: calc(39px + var(--tdy)); transform: translate(-50%, -50%) rotate(var(--tr)) scale(.8); white-space: nowrap; font: 400 26px/1 var(--display); color: var(--red); }
.pk-tx > span { display: block; animation: pk-drift-b 3.7s ease-in-out -1.2s infinite alternate; }
.ab-stars li:nth-child(even) .pk-ph img { animation-duration: 5.4s; animation-delay: -2s; }
.ab-stars li:nth-child(even) .pk-tx > span { animation-duration: 4.3s; animation-delay: -.5s; }
.ab-stars li:hover .pk, .ab-stars li:focus-visible .pk { opacity: 1; }
.ab-stars li:hover .pk-ph, .ab-stars li:focus-visible .pk-ph { transform: translate(-50%, -50%) rotate(var(--pr)) scale(1); }
.ab-stars li:hover .pk-tx, .ab-stars li:focus-visible .pk-tx { transform: translate(-50%, -50%) rotate(var(--tr)) scale(1); }
@keyframes pk-drift-a { from { transform: translate(-5px, 4px) rotate(-1.6deg); } to { transform: translate(5px, -5px) rotate(1.6deg); } }
@keyframes pk-drift-b { from { transform: translate(6px, -3px) rotate(1.2deg); } to { transform: translate(-6px, 4px) rotate(-1.2deg); } }

/* ───────── 02 · Casos ───────── */
.cc { position: absolute; right: 96px; top: 22px; display: flex; align-items: center; gap: 14px; }
.cc-count { min-width: 104px; text-align: center; font: 400 26px/1 var(--display); color: var(--ink); white-space: nowrap; }
.cc-btn { width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink); transition: color .25s ease-in-out, opacity .25s ease-in-out; }
.cc-btn .arr { width: 36px; height: 36px; }
.cc-btn:not(:disabled):hover { color: var(--red); }
.cc-btn:disabled { opacity: .3; cursor: default; }
/* Estantería: tres tarjetas visibles; la seleccionada saca el disco por arriba, pone el título en rojo y enseña "ver caso" */
.shelf { position: absolute; left: 56px; top: 60px; width: 1168px; height: 560px; overflow: hidden; }
.rack { position: absolute; inset: 0; transform: translateX(calc(var(--off, 0) * -1px)); transition: transform .6s ease-in-out; }
.card { position: absolute; left: calc(40px + var(--i) * 374px); top: 107px; width: 340px; transition: opacity .4s ease-in-out; }
.card.out { opacity: 0; pointer-events: none; }
.disc { position: absolute; left: 12px; top: 0; width: 316px; height: 316px; border-radius: 50%; z-index: 0; transition: top .55s ease-in-out; will-change: transform; }
.card.sel .disc { top: -91px; animation: turn 9s linear infinite; }
.cs-face { position: relative; z-index: 1; display: block; height: 340px; background: #faf6ec; border-radius: 3px; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); overflow: hidden; isolation: isolate; transition: box-shadow .4s ease-in-out; }
.card.sel .cs-face { box-shadow: 0 18px 38px rgba(0, 0, 0, .3); }
.cs-star { position: absolute; right: 20px; top: 20px; width: 30px; height: auto; }
.cs-title { position: absolute; left: 14px; right: 14px; top: 62px; font: 400 calc(var(--tsn, 39) * 1px)/1 var(--display); color: var(--ink); white-space: nowrap; transition: color .3s ease-in-out; }
.cs-photo { position: absolute; left: 14px; top: 116px; width: 312px; height: 210px; object-fit: cover; display: block; filter: sepia(.95) contrast(.96); transition: filter .5s ease-in-out; }
.card.sel .cs-photo { filter: none; }
.card.sel .cs-title { color: var(--red); }
.note { position: absolute; left: 0; top: 366px; width: 340px; }
.note p { font: 18px/1.3 var(--serif); color: var(--ink); opacity: 0; transition: opacity .3s ease-in-out; }
.card.sel .note p { opacity: 1; }
.card .cta { display: inline-block; margin-top: 14px; font: 400 19px/1 var(--display); letter-spacing: 0; color: var(--red); opacity: 0; pointer-events: none; transition: opacity .3s ease-in-out; }
.card.sel .cta { opacity: 1; pointer-events: auto; }
/* Marcas: logos en negro en un carrusel continuo (dos copias de la lista y se desplaza la mitad, en bucle) */
.brands { position: absolute; left: 96px; right: 96px; top: 644px; }
.brands h3 { font: 400 24px/1 var(--display); color: var(--ink); }
.logos { margin-top: 24px; display: flex; overflow: hidden; height: 70px; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.logos-track { display: flex; flex: none; align-items: center; animation: logos-run 55s linear infinite; }
.logos-track li { flex: none; margin-right: 64px; }
.logos-track img { display: block; height: calc(var(--h) * 1px); width: auto; }
@keyframes logos-run { to { transform: translateX(-100%); } }

/* ───────── 03 · Disciplinas ───────── */
.mix { position: absolute; left: 96px; top: 85px; width: 1088px; height: 660px; background: var(--ink); border-radius: 28px; color: var(--cream); }
.dis { position: absolute; left: 14px; top: 14px; width: 670px; height: 632px; background: #faf6ec; color: var(--ink); border-radius: 8px; padding: 30px 22px; overflow: hidden; isolation: isolate; }
.acc { margin-top: 0; }
.acc-h { display: flex; align-items: center; gap: 8px; width: 100%; padding: 11px 0; font: 400 30px/1 var(--display); color: var(--ink); text-align: left; outline: none; transition: color .3s ease-in-out; }
.acc-h:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* La flecha se ve siempre: a la derecha en los cerrados y a la izquierda en el abierto */
.acc-h .arr { width: 28px; height: 28px; flex: none; transition: transform .4s ease-in-out; }
.acc-it.open .arr { transform: rotate(180deg); }
.acc-it.open .acc-h { color: var(--red); }
.acc-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease-in-out; }
.acc-it.open .acc-b { grid-template-rows: 1fr; }
.acc-b > div { overflow: hidden; }
.acc-b p { padding: 0 0 16px; font: 21px/1.3 var(--serif); color: var(--ink); }
.acc-it + .acc-it { border-top: 1px solid rgba(15, 15, 15, .2); }
.acc-ia .acc-h { margin-bottom: 6px; font-size: 32px; }
.strips { position: absolute; left: 698px; top: 14px; display: flex; gap: 14px; }
.chn { position: relative; width: 116px; height: 632px; border: 1px solid #2b2b28; border-radius: 12px; transition: border-color .25s ease-in-out; }
.chn.on { border: 2px solid var(--red); }
.kbw { position: absolute; left: 0; right: 0; top: calc(22px + var(--n) * 80px); text-align: center; }
.kb { position: relative; display: block; width: 42px; height: 42px; margin: 0 auto; border-radius: 50%; background: var(--cream); cursor: ns-resize; touch-action: none; isolation: isolate; outline: none; transition: background .3s ease-in-out; }
.kb i { position: absolute; left: 50%; top: 5px; width: 2px; height: 14px; margin-left: -1px; background: var(--ink); border-radius: 1px; transform-origin: 50% 16px; transform: rotate(calc(-135deg + var(--v) * 270deg)); transition: background .3s ease-in-out; }
.kb:focus-visible, .fd:focus-visible { box-shadow: 0 0 0 2px var(--cream); }
.chn.on .kb { background: var(--red); }
.chn.on .kb i { background: var(--cream); }
.kb-l { display: block; margin-top: 6px; font: 400 12px/1 var(--display); letter-spacing: .14em; color: #8a867d; }
.chn.on .kb-l { color: #b9b4a8; }
.fd { position: absolute; left: 0; right: 0; top: 350px; height: 252px; cursor: ns-resize; touch-action: none; outline: none; }
.fd-rail { position: absolute; left: 36.5%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: #3b3b37; border-radius: 2px; }
.fd-ticks { position: absolute; left: 19%; top: 0; bottom: 0; width: 10px; background: repeating-linear-gradient(to bottom, #4a4a45 0 1px, transparent 1px 25px); }
.fd-cap { position: absolute; left: 36.5%; width: 40px; height: 22px; margin-left: -20px; top: calc((1 - var(--lvl)) * (100% - 22px)); background: var(--cream); border-radius: 3px; isolation: isolate; transition: background .3s ease-in-out; }
.fd-cap::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; margin-top: -1px; background: var(--ink); transition: background .3s ease-in-out; }
.chn.on .fd-cap { background: var(--red); }
.chn.on .fd-cap::after { background: var(--cream); }
.fd-leds { position: absolute; left: 69%; top: 350px; display: flex; flex-direction: column-reverse; gap: 4px; pointer-events: none; }
.fd-leds i { display: block; width: 12px; height: 12px; border-radius: 2px; background: #2b2b28; }
.fd-leds i.lit { background: var(--cream); }
.fd-leds i.hot { background: var(--red); }

/* Desgaste: texturas img/desgaste-claro.webp (motas crema, sobre superficies oscuras) y
   img/desgaste-oscuro.webp (motas de tinta, sobre las claras), como imagen de fondo normal para que
   también se vean al abrir la página desde disco. Se aplica a todos los elementos gráficos; no a los
   textos, las líneas finas ni los iconos diminutos. */
.mix::before, .dis::before, .kb::after, .fd-cap::before,
.cs-face::before, .cover::before, .daw::before, .pt::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-repeat: repeat;
  background-position: var(--wear-pos, 0 0);
  background-size: var(--wear-size, 1024px);
  opacity: calc(var(--wear-opacity, .6) * var(--wear-k, .4)); /* --wear-k: intensidad global del desgaste en los elementos gráficos */
}
/* Las capas "::before" van por debajo del contenido (texto, mandos, luces) para que se lea nítido */
.cs-face::before, .dis::before, .pt::before, .fd-cap::before, .cover::before, .daw::before { z-index: -1; }
.cover, .daw { isolation: isolate; }

/* Superficies oscuras → motas crema */
.mix::before, .cover::before, .daw::before { background-image: url('../img/desgaste-claro.webp'); }
/* Superficies claras → motas de tinta */
.dis::before, .pt::before, .kb::after, .fd-cap::before, .cs-face::before { background-image: url('../img/desgaste-oscuro.webp'); }

/* Disciplinas: panel oscuro, panel claro, mandos y fader */
.mix::before { --wear-opacity: .62; }
.dis::before { --wear-size: 900px; --wear-pos: -120px -60px; opacity: .1; } /* fondo del panel claro: manchas al 0,1 (sin el factor global --wear-k) */
.kb::after, .fd-cap::before { --wear-opacity: .5; --wear-size: 420px; }

/* Casos: tarjetas (cada una enseña una zona distinta de la textura) */
.cs-face::before { --wear-opacity: .3; --wear-size: 700px; --wear-pos: calc(var(--i, 0) * -163px) calc(var(--i, 0) * -117px); }

/* Mi proceso: panel oscuro y panel de texto */
.daw::before { --wear-opacity: .55; }
.pt::before { --wear-opacity: .3; --wear-size: 800px; --wear-pos: -180px -260px; }

/* Experiencia: portadas y discos de formación */
.cover::before { --wear-opacity: .5; --wear-size: 640px; }
.alb:nth-child(2) .cover::before { --wear-pos: -200px -130px; }
.alb:nth-child(3) .cover::before { --wear-pos: -400px -300px; }
.alb:nth-child(4) .cover::before { --wear-pos: -90px -440px; }
.lat-cover::before { --wear-size: 760px; --wear-pos: -300px -60px; }

/* ───────── 04 · Mi proceso ───────── */
.proc { position: absolute; left: 96px; top: 90px; width: 1088px; height: 620px; }
.daw { --nc: 270px; position: absolute; left: 0; top: 0; width: 640px; height: 620px; padding: 0 20px 14px; background: var(--ink); border-radius: 28px; color: var(--cream); box-shadow: 0 6px 22px rgba(0, 0, 0, .12); }
.tp { height: 78px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid rgba(248, 238, 219, .14); }
.tp-title { margin-right: auto; padding-left: 8px; font: 400 26px/1 var(--display); color: var(--cream); white-space: nowrap; }
.tp-btn { width: 24px; height: 24px; display: grid; place-items: center; outline: none; }
.tp-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.tp-btn i { display: block; }
.stop i { width: 22px; height: 22px; background: var(--cream); border-radius: 3px; }
.play i { width: 0; height: 0; border-left: 21px solid var(--cream); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.play[aria-pressed="true"] i { width: 20px; height: 24px; border: 0; background: linear-gradient(to right, var(--cream) 0 7px, transparent 7px 13px, var(--cream) 13px); border-radius: 2px; }
.rec { width: 28px; height: 28px; }
.rec i { width: 28px; height: 28px; border-radius: 50%; background: var(--red); }
.tp-btn:disabled { opacity: .5; cursor: default; pointer-events: none; }
.tp-btn:not(.rec):hover i { opacity: .7; }
.grid { position: relative; }
.ruler { margin-left: var(--nc); height: 44px; display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 2px; }
.ruler span { height: 22px; border-left: 1px solid rgba(248, 238, 219, .3); padding-left: 6px; font: 12px/1 var(--serif); color: rgba(248, 238, 219, .6); }
.rows { background-image: linear-gradient(to right, rgba(248, 238, 219, .07) 1px, transparent 1px); background-size: calc((100% - var(--nc)) / 3) 100%; background-position: var(--nc) 0; background-repeat: repeat-x; }
.row { position: relative; cursor: pointer; user-select: none; outline: none; display: grid; grid-template-columns: var(--nc) 1fr; align-items: center; width: 100%; height: 70px; text-align: left; border: 1px solid transparent; border-radius: 9px; transition: background .3s ease-in-out, border-color .3s ease-in-out; }
.row::after { content: ''; position: absolute; left: 14px; right: 6px; bottom: -1px; border-top: 1px dashed rgba(248, 238, 219, .18); }
.row.ia::after, .row.on::after, .row:has(+ .row.on)::after { display: none; }
.row:hover { background: rgba(248, 238, 219, .04); }
.row.on { background: #1c1b1a; border-color: var(--red); }
.rh { display: flex; align-items: center; gap: 10px; padding-left: 12px; }
.rh-name { flex: 1; font: 17px/1.25 var(--serif); color: rgba(248, 238, 219, .82); transition: color .3s ease-in-out; }
.row.on .rh-name, .row.ia .rh-name { color: var(--cream); }
.msr { display: flex; gap: 6px; margin-right: 14px; }
.msr i { width: 25px; height: 22px; border: 1px solid rgba(248, 238, 219, .4); border-radius: 3px; font: normal 12px/20px var(--serif); text-align: center; color: rgba(248, 238, 219, .7); transition: background .3s ease-in-out, border-color .3s ease-in-out; }
.row.on .msr .s { background: var(--red); border-color: var(--red); color: var(--cream); }
.row:focus-visible { box-shadow: 0 0 0 2px var(--cream); }
/* Rueda de panorámica: arco desde el centro hasta el valor, y un indicador */
.msr { align-items: center; }
.pan { position: relative; display: block; width: 30px; height: 30px; margin-left: 2px; cursor: ns-resize; touch-action: none; outline: none; }
.pan svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pan .pn-track { fill: none; stroke: rgba(248, 238, 219, .16); stroke-width: 3; stroke-linecap: round; }
.pan .pn-arc { fill: none; stroke: rgba(248, 238, 219, .85); stroke-width: 3; stroke-linecap: round; transition: stroke .3s ease-in-out; }
.pan .pn-body { fill: #2c2b29; stroke: rgba(248, 238, 219, .28); stroke-width: 1; }
.pan .pn-tick { stroke: var(--cream); stroke-width: 2; stroke-linecap: round; }
.row.on .pan .pn-arc { stroke: var(--red); }
.pan:focus-visible { box-shadow: 0 0 0 2px var(--cream); border-radius: 50%; }
.lane { position: relative; display: block; height: 100%; }
.clip { position: absolute; top: 50%; height: 46px; margin-top: -23px; left: var(--l, 0%); width: 65%; padding: 0 8px; border: 1px solid rgba(248, 238, 219, .38); border-radius: 7px; color: rgba(248, 238, 219, .42); display: flex; align-items: center; transition: background .3s ease-in-out, border-color .3s ease-in-out, color .3s ease-in-out; }
.row.on .clip { background: var(--red); border-color: var(--red); color: rgba(248, 238, 219, .82); }
.ia-clip { left: 3.6%; width: 96%; }
.wave { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 30px; }
.wave i { display: block; flex: 0 0 2px; height: var(--h, 10px); background: currentColor; border-radius: 1px; }
.playhead { position: absolute; top: 24px; bottom: 0; left: calc(var(--nc) + (100% - var(--nc)) * var(--ph, .4)); width: 2px; margin-left: -1px; background: var(--cream); transition: left .6s ease-in-out; pointer-events: none; }
.playhead.run { transition: none; }
.playhead u { position: absolute; top: -2px; left: -6px; border: 7px solid transparent; border-top: 9px solid var(--red); border-bottom: 0; }
/* Panel de texto, a la derecha (queda por debajo del panel oscuro) */
.pt { position: absolute; left: 600px; top: 0; width: 488px; height: 620px; padding: 78px 40px 30px 80px; background: #faf6ec; border-radius: 0 28px 28px 0; overflow: hidden; isolation: isolate; box-shadow: 0 6px 22px rgba(0, 0, 0, .08); }
.pt-title { font: 400 30px/1 var(--display); color: var(--red); }
.pt-text { margin-top: 20px; font: 19px/1.34 var(--serif); }
.pt-list { margin-top: 26px; display: flex; flex-direction: column; gap: 13px; }
.pt-list li { display: flex; align-items: center; gap: 14px; font: 700 19px/1.25 var(--serif); }
/* Iconos rellenos con el desgaste: las motas claras se confunden con el fondo y "pican" el icono */
.pt-list .ic { position: relative; width: 28px; height: 28px; flex: none; color: var(--red); isolation: isolate; }
.pt-list .ic svg { display: block; width: 100%; height: 100%; }
.pt-list .ic::after { content: ''; position: absolute; inset: -1px; pointer-events: none; background: url('../img/desgaste-claro.webp') var(--wp, 0 0) / 240px; opacity: var(--ic-wear, .95); }
.pt-swap > * { animation: pt-in .45s ease-in-out; }
@keyframes pt-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ───────── 05 · Experiencia ───────── */
.cover { position: relative; overflow: hidden; background: var(--ink); container-type: size; }
.cover.red { background: var(--red); }
.cv-year { position: absolute; left: 8.18%; top: 5.45%; font: 400 25.45cqw/normal var(--display); color: var(--cream); }
.cv-now { position: absolute; left: 8.18%; top: 35%; font: 400 6.4cqw/1 var(--display); letter-spacing: .08em; color: var(--cream); }
.cv-label { position: absolute; left: 8.18%; bottom: 8.18%; font: 400 8.18cqw/1.1 var(--display); letter-spacing: .02em; color: var(--cream); }
.lat { position: absolute; left: 96px; top: 64px; width: 1152px; height: 326px; }
.lat-disc { position: absolute; left: 146px; top: 11px; width: 314px; height: 314px; border-radius: 50%; }
#sec-experiencia.on .lat-disc { animation: turn 14s linear infinite; }
.lat-cover { position: absolute; left: 0; top: 0; width: 326px; height: 326px; box-shadow: 0 14px 22px rgba(0, 0, 0, .3); }
.lat-info { position: absolute; left: 500px; top: 6px; width: 650px; }
.lat-info h3 { margin-top: 0; font: 400 58px/1.08 var(--display); }
.lat-meta { margin-top: 10px; font: 24px/1.4 var(--serif); color: var(--ink); }
.lat-meta b { display: block; font-weight: 700; }
.albums { position: absolute; left: 96px; top: 414px; width: 1152px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px; }
.alb { width: auto; }
.alb-wrap { position: relative; width: 100%; aspect-ratio: 1; }
.alb-disc { position: absolute; left: 4.76%; top: 4.76%; width: 90.5%; height: auto; border-radius: 50%; transition: transform .5s cubic-bezier(.3, .8, .2, 1); }
.alb .cover { position: absolute; inset: 0; transition: transform .4s cubic-bezier(.3, .8, .2, 1); }
.alb:hover .alb-disc { transform: translateX(22%) rotate(40deg); }
.alb:hover .cover { transform: translateY(-5px); }
.alb h4 { margin-top: 14px; font: 400 25px/1.15 var(--display); letter-spacing: .03em; }
.alb-meta { margin-top: 6px; font: 21px/1.3 var(--serif); color: var(--ink); }
.alb-meta b { font-weight: 700; }
.alb-desc { margin-top: 6px; font: 20px/1.4 var(--serif); color: var(--ink); }

/* Educación: radio y cuatro casetes (formato de referencia 1280 de ancho) */
.edu-radio { position: absolute; left: 332px; top: 70px; width: 800px; container-type: inline-size; }
.edu-radio img { display: block; width: 100%; height: auto; }
/* Capas de la propia imagen recortadas a cada pieza móvil (medidas sobre la imagen de 2000 × 782) */
.rd { position: absolute; inset: 0; pointer-events: none; background: url('../img/radio.webp') 0 0 / 100% 100% no-repeat; will-change: transform; }
.rd[data-k="spL"] { -webkit-mask-image: radial-gradient(circle 10.3cqw at 15.45% 59.6%, #000 78%, transparent 100%); mask-image: radial-gradient(circle 10.3cqw at 15.45% 59.6%, #000 78%, transparent 100%); transform-origin: 15.45% 59.6%; }
.rd[data-k="spR"] { -webkit-mask-image: radial-gradient(circle 10.3cqw at 84.6% 59.6%, #000 78%, transparent 100%); mask-image: radial-gradient(circle 10.3cqw at 84.6% 59.6%, #000 78%, transparent 100%); transform-origin: 84.6% 59.6%; }
.rd[data-k="reelL"] { clip-path: circle(1.55cqw at 49.7% 57.8%); transform-origin: 49.7% 57.8%; }
.rd[data-k="reelR"] { clip-path: circle(1.55cqw at 60.85% 57.8%); transform-origin: 60.85% 57.8%; }
/* Botón rojo parpadeante (capa recoloreada del botón de arriba a la derecha: 58 × 42 px en la imagen de 2000 × 782) */
.rd-led { position: absolute; left: 67.4%; top: 16.62%; width: 2.9%; height: 5.37%; background: url('../img/radio-led.webp') 0 0 / 100% 100% no-repeat; opacity: 0; pointer-events: none; }
.edu-list { position: absolute; left: 280px; top: 440px; width: 904px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.edu-list li { text-align: center; transition: transform .45s ease-in-out; }
.edu-list li:hover { transform: translateY(-8px); }
.edu-tape { display: block; width: 112px; height: auto; margin: 0 auto; }
/* Al pasar el ratón por un estudio, el casete hace un glitch (separación RGB + sacudida) y se queda vibrando suavemente con micro-glitches */
.edu-list li:hover .edu-tape { animation: tape-burst .45s steps(1, end), tape-wobble 1.4s ease-in-out .45s infinite, tape-flick 2.2s steps(1, end) .45s infinite; }
@keyframes tape-burst {
  0% { filter: url(#tape-a); translate: -3px 0; }
  16% { filter: url(#tape-b); translate: 3px 1px; }
  32% { filter: url(#tape-a); translate: -2px -1px; }
  48% { filter: url(#tape-b); translate: 1.5px 0; }
  64% { filter: url(#tape-a); translate: -1px 0; }
  80%, 100% { filter: none; translate: none; }
}
@keyframes tape-wobble {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(.9px, -.7px) rotate(.6deg); }
  50% { transform: translate(-.7px, .6px) rotate(-.5deg); }
  75% { transform: translate(.6px, .9px) rotate(.4deg); }
}
@keyframes tape-flick {
  0%, 56% { filter: none; }
  58% { filter: url(#tape-a); }
  62% { filter: url(#tape-b); }
  66%, 100% { filter: none; }
}
/* Notas que salen de los altavoces mientras suena el radiocasete (las mueve el script del radio) */
.rd-note { position: absolute; left: 0; top: 0; height: auto; opacity: 0; pointer-events: none; will-change: transform, opacity; filter: drop-shadow(0 0 1.5px var(--cream)) drop-shadow(0 0 1.5px var(--cream)); }
.edu-list p { margin-top: 26px; font: 700 28px/1.3 var(--serif); color: var(--ink); }
.edu-list small { display: block; margin-top: 8px; font: 20px/1.3 var(--serif); color: var(--ink); }

/* ───────── 06 · Contacto ───────── */
/* Amplificador sobre el correo (ocupa la mitad del ancho del correo) y el conjunto centrado en vertical y en horizontal */
.ct { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: max-content; display: flex; flex-direction: column; align-items: center; }
.ct-amp { display: block; width: 190px; height: auto; }
.ct-title { margin-top: 19px; font: 400 88px/1 var(--display); color: var(--ink); white-space: nowrap; }
.ct-title span { color: var(--red); }
.ct-links { margin-top: 30px; list-style: none; text-align: center; }
.ct-links li + li { margin-top: 7px; }
.ct-link { display: inline-flex; align-items: center; gap: 11px; font: 700 30px/1.4 var(--serif); color: var(--ink); white-space: nowrap; transition: color .25s; }
.ct-link:hover { color: var(--red); }
.ct-link .arr { width: 20px; height: 20px; transform: rotate(-45deg); }

@keyframes turn { to { rotate: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ───────── Páginas de caso ─────────
   Se abren como una capa encima de la home (sin recargar la página, así la música no se corta). En lugar del menú hay una X que cierra
   el caso; el disco y el interruptor siguen abajo a la izquierda y EN/ES arriba a la derecha. */
/* Mientras hay un caso (clase case-in) el menú de la home se va hacia arriba y la X entra desde abajo; al cerrar, el recorrido contrario.
   Todo con la misma duración y curva que la página del caso. */
.cclose { position: absolute; left: clamp(16px, 2.6vw, 48px); top: clamp(14px, 3.7vh, 36px); width: calc(var(--nf) * 1.05); height: calc(var(--nf) * 1.05); color: var(--ink); visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(70px); transition: transform .9s ease-in-out, opacity .9s ease-in-out, visibility 0s linear .9s, color .25s; }
.cclose svg { display: block; width: 100%; height: 100%; }
.cclose:hover { color: var(--red); }
html.case-in .cclose { visibility: visible; opacity: 1; pointer-events: auto; transform: none; transition: transform .9s ease-in-out, opacity .9s ease-in-out, visibility 0s, color .25s; }
html.case-in .lang { background: rgba(248, 238, 219, .88); padding: 2px 9px; border-radius: 3px; margin: -2px -9px; }
html:not(.is-loading) .nav, html:not(.is-loading) .here, html:not(.is-loading) .burger { transition: transform .9s ease-in-out, opacity .9s ease-in-out, visibility 0s; }
html.case-in:not(.is-loading) .nav, html.case-in:not(.is-loading) .here, html.case-in:not(.is-loading) .burger { transform: translateY(-190%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .9s ease-in-out, opacity .9s ease-in-out, visibility 0s linear .9s; }
html.case-in .dots { visibility: hidden; pointer-events: none; }

.case { --case-bg: #faf6ee; position: fixed; inset: 0; z-index: 8; background: var(--case-bg); opacity: 0; visibility: hidden; transition: opacity .6s ease-in-out, visibility 0s linear .6s; }
.case.is-open { opacity: 1; visibility: visible; transition: opacity .6s ease-in-out; }
.case::before { content: ''; position: absolute; inset: 0; background: url('../img/desgaste-oscuro.webp') 0 0 / 1100px; opacity: .15; pointer-events: none; }
.case-scroll { scrollbar-width: thin; scrollbar-color: rgba(15, 15, 15, .55) transparent; position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; outline: none; }
.cs-page { position: relative; max-width: 1040px; margin: 0 clamp(24px, 4vw, 72px) 0 clamp(150px, 17vw, 270px); padding: clamp(96px, 15vh, 140px) 0 150px; color: var(--ink); }
.cs-page img { max-width: 100%; height: auto; }


.cs-page .eyebrow { display: block; font: 400 14px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.page-title { margin-top: 16px; font: 400 clamp(44px, 6.2vw, 88px)/1.02 var(--display); color: var(--ink); max-width: 14em; }
.page-intro { margin-top: 24px; max-width: 700px; font: 22px/1.5 var(--serif); }
.page-meta { display: flex; flex-wrap: wrap; gap: 20px 56px; margin-top: 36px; }
.meta-item b { display: block; font: 400 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.meta-item span { display: block; max-width: 420px; font: 18px/1.4 var(--serif); }
.page-cover { position: relative; margin: 56px 0 96px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.page-cover > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.page-cover .cover-logo { position: absolute; left: 50%; top: 50%; width: min(22%, 220px); height: auto; translate: -50% -50%; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .3)); }

.case-toc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); column-gap: 48px; align-items: start; }
.case-toc { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 18px; }
.case-toc-link { font: 400 21px/1.2 var(--display); letter-spacing: .01em; color: var(--ink); transition: color .25s; }
.case-toc-link:hover, .case-toc-link.on { color: var(--red); }
.case-toc-content { min-width: 0; }
.case-toc-section { padding-bottom: 104px; scroll-margin-top: 90px; }
.case-toc-section:last-child { padding-bottom: 48px; }
.case-toc-section h2 { margin: 14px 0 22px; font: 700 clamp(26px, 2.7vw, 38px)/1.18 var(--serif); }
.case-toc-section p, .case-row-body p, .case-cols p { max-width: 720px; margin-bottom: 18px; font: 20px/1.6 var(--serif); }
.case-toc-section p:last-child { margin-bottom: 0; }
.case-toc-section h4, .case-row-body h4 { margin: 28px 0 14px; font: 700 18px/1.3 var(--serif); }
.profile-list { margin: 18px 0 0; max-width: 720px; }
.profile-list li { position: relative; padding: 5px 0 5px 28px; font: 20px/1.5 var(--serif); }
.profile-list li::before { content: ''; position: absolute; left: 4px; top: .82em; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }

.case-toc-media, .case-media, .case-gallery, .case-cols, .case-phases, .case-media-right, .case-split-media-only { margin-top: 40px; }
.case-toc-media:first-child, .case-gallery:first-child, .case-media:first-child { margin-top: 0; }
.case-toc-media img, .case-gallery-col img, .case-media img, .case-split-media-only img { display: block; width: 100%; border-radius: 3px; }
.case-toc-gallery { display: flex; gap: 24px; }
.case-toc-gallery > div { flex: 1 1 0; display: flex; flex-direction: column; gap: 24px; }
.case-toc-gallery > div:last-child { margin-top: 56px; }
.case-gallery { display: flex; gap: 24px; }
.case-gallery-col { flex: 1 1 0; display: flex; flex-direction: column; gap: 24px; }
.case-gallery-col-offset { margin-top: 56px; }
.case-gallery-col img { aspect-ratio: 4 / 3; object-fit: cover; }
.case-toc-full img { aspect-ratio: 2 / 1; object-fit: cover; }
.case-toc-full.case-toc-natural img { aspect-ratio: auto; }
.case-media-overlap { position: relative; padding-bottom: 90px; }
.case-media-overlap .media-main { width: 64%; aspect-ratio: 4 / 5; object-fit: cover; }
.case-media-overlap .media-accent { position: absolute; left: calc(46% + 24px); bottom: 0; width: 38%; aspect-ratio: 4 / 5; object-fit: cover; border: 6px solid var(--cream); }
.case-media-right { display: flex; justify-content: flex-end; }
.case-media-right img { width: min(42%, 600px); aspect-ratio: 1; object-fit: cover; }
.case-cols { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.case-cols > div { flex: 1 1 300px; }
.case-split-media-only { display: flex; gap: 24px; }
.case-phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 24px; }
.case-phases > div { border-top: 2px solid var(--ink); padding-top: 18px; }
.phase-num { display: block; font: 400 30px/1 var(--display); color: var(--red); }
.phase-label { display: block; margin: 8px 0 14px; font: 400 13px/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.case-phases ul li { padding: 8px 0; border-bottom: 1px solid rgba(15, 15, 15, .25); font: 16px/1.45 var(--serif); }
.case-phases ul li:last-child { border-bottom: 0; }


/* Carrusel «otros casos» al final de cada caso: mismas tarjetas que la home, sin vinilos; el contador y las flechas van debajo */
.cs-more { margin-top: 96px; }
.cs-more .disc { display: none; }
.cs-more .cc { position: static; justify-content: center; margin-top: 26px; }
@media (min-width: 721px) {
  .cs-more-vp { position: relative; width: 100%; }
  .cs-more-in { position: absolute; left: 0; top: 0; width: var(--sw, 1148px); transform-origin: 0 0; transform: scale(var(--k, 1)); }
  .cs-more .shelf { position: relative; left: auto; top: auto; width: var(--sw, 1148px); height: 482px; }
  .cs-more .card { left: calc(30px + var(--i) * 374px); top: 4px; }
}

/* ───────── Móvil ───────── */
@media (max-width: 720px) {
  body { overflow: hidden; }
  .scroller { height: 100dvh; }
  .stage { position: relative; height: 100dvh; overflow-x: hidden; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior-y: contain; }
  .stage::-webkit-scrollbar { display: none; }
  .sec { width: 100%; height: 100dvh; overflow-x: hidden; overflow-y: auto; scroll-snap-align: start; scroll-snap-stop: always; padding: 60px 0 40px; }
  .fit { position: relative; left: auto; top: auto; width: 100%; height: auto; transform: none; }

  .topbar { height: 56px; background: linear-gradient(var(--cream) 60%, rgba(248, 238, 219, 0)); }
  .nav { display: none; }
  .burger { display: flex; position: absolute; left: 12px; top: 10px; width: 40px; height: 36px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
  .burger i { display: block; width: 24px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .here { display: block; position: absolute; left: 58px; top: 15px; max-width: calc(100vw - 250px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font: 400 14px/1.4 var(--display); color: var(--red); }
  .topright { right: 16px; top: 13px; gap: 16px; }
  .lang { font-size: 20px; }
  .power-h { display: flex; align-items: center; gap: 5px; height: 23.4px; font: 400 16px/1 var(--display); opacity: 0; pointer-events: none; }
  .power-h img { height: 100%; width: auto; transform: rotate(-90deg); transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
  .power-h[aria-checked="true"] img { transform: rotate(90deg); }
  .power-h .ph-off { color: var(--red); transition: color .3s; }
  .power-h .ph-on { color: var(--ink); transition: color .3s; }
  .power-h[aria-checked="true"] .ph-off { color: var(--ink); }
  .power-h[aria-checked="true"] .ph-on { color: var(--red); }
  .vdeck { z-index: 25; }
  body.menu-open .vdeck { opacity: 0; }
  .menu { position: fixed; inset: 0; z-index: 15; background: var(--cream); display: flex; align-items: center; padding: 56px 12vw 0; }
  .menu[hidden] { display: none; }
  .menu ul { display: flex; flex-direction: column; gap: 4px; }
  .menu a { display: block; font: 400 clamp(30px, 9.5vw, 44px)/1.25 var(--display); color: var(--ink); }
  .menu a.on { color: var(--red); }
  .dots { display: flex; flex-direction: column; position: fixed; z-index: 20; right: 3px; top: 50%; transform: translateY(-50%); gap: 8px; }
  .dots { padding: 9px 4px; border-radius: 999px; background: rgba(248, 238, 219, .88); }
  .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(15, 15, 15, .22); transition: background .25s, transform .25s; }
  .dots i.on { background: var(--red); transform: scale(1.35); }

  .hd { position: static; width: auto; margin: 6px 6vw 0; }
  .hd h2 { font-size: clamp(32px, 11.5vw, 56px); line-height: 1.05; }
  .hd .sub { font-size: 15px; }

  /* Home */
  #sec-home .fit { height: calc(100dvh - 100px); }
  .deck { left: 4vw; top: 7dvh; width: 76vw; height: 76vw; }
  .a-power { left: 10vw; top: calc(7dvh + 76vw + 5dvh); width: 56px; height: 113px; }

  /* Sobre mí */
  .ab-photo { position: relative; left: auto; top: auto; width: min(62vw, 260px); height: auto; aspect-ratio: 276 / 340; margin: 4dvh 0 0 10vw; }
  .ab-star { left: calc(10vw + min(62vw, 260px) - 48px); top: calc(4dvh - 30px); width: 80px; }
  .ab-kicker, .ab-title, .ab-text, .ab-ess { position: static; margin: 0 8vw; }
  .ab-kicker { margin-top: 3dvh; font-size: clamp(14px, 5.6vw, 26px); }
  .ab-title { margin-top: 1dvh; font-size: clamp(64px, 25vw, 120px); }
  .ab-text { width: auto; margin-top: 2dvh; font-size: 17px; line-height: 22px; }
  .ab-text p + p { margin-top: 14px; }
  .ab-ess { margin-top: 4dvh; font-size: 22px; }
  .ab-stars { display: flex; justify-content: space-between; margin: 2dvh 8vw 0; }
  .ab-stars li { position: relative; top: auto; left: auto; width: auto; }
  .ab-stars .st { width: clamp(44px, 14vw, 64px); }
  .ab-stars li { --sx: -50%; --lx: 50%; }
  .ab-stars li:first-child { --sx: 0%; --lx: 0%; }
  .ab-stars li:last-child { --sx: -100%; --lx: 100%; }
  .pk-ph { left: var(--lx); top: auto; bottom: calc(100% + 4px); width: calc(var(--pw) * .62); transform: translate(var(--sx), 0) rotate(var(--pr)) scale(.8); }
  .pk-tx { left: var(--lx); top: calc(100% + 2px); font-size: 16px; transform: translate(var(--sx), 0) rotate(var(--tr)) scale(.8); }
  .ab-stars li:hover .pk-ph, .ab-stars li:focus-visible .pk-ph { transform: translate(var(--sx), 0) rotate(var(--pr)) scale(1); }
  .ab-stars li:hover .pk-tx, .ab-stars li:focus-visible .pk-tx { transform: translate(var(--sx), 0) rotate(var(--tr)) scale(1); }
  .ab-stars b { margin-top: 8px; font-size: clamp(34px, 10.5vw, 48px); }

  /* Casos: una tarjeta cada vez; las medidas van en cqw para escalar con el ancho de la tarjeta */
  .cc { position: static; justify-content: center; gap: 18px; margin: 14px 6vw 0; }
  .cc-count { font-size: 22px; min-width: 88px; }
  .shelf { position: relative; left: auto; top: auto; width: 100%; height: auto; overflow: visible; margin-top: calc(min(70vw, 300px) * .3); }
  .rack { position: static; transform: none !important; display: block; }
  .card { --cw: min(70vw, 300px); container-type: inline-size; position: relative; left: auto; top: auto; width: var(--cw); margin: 0 auto; display: none; }
  .card.sel { display: block; }
  .disc { left: 3.5cqw; width: 92.9cqw; height: 92.9cqw; }
  .card.sel .disc { top: -26.8cqw; }
  .cs-face { height: 100cqw; }
  .cs-star { right: 5.9cqw; top: 5.9cqw; width: 8.8cqw; }
  .cs-title { left: 4.1cqw; right: 4.1cqw; top: 18.2cqw; font-size: calc(var(--tsn, 39) * .294cqw); }
  .cs-photo { left: 4.1cqw; top: 34.1cqw; width: 91.8cqw; height: 61.8cqw; }
  .note { position: static; width: auto; margin-top: 22px; text-align: center; }
  .card .note p { font-size: 15px; }
  .card .cta { opacity: 1; pointer-events: auto; margin-top: 12px; }
  .brands { position: static; margin: 5dvh 6vw 0; }
  .brands h3 { font-size: 17px; }
  .logos { margin-top: 14px; height: 52px; }
  .logos-track li { margin-right: 40px; }
  .logos-track img { height: calc(var(--h) * .72px); }

  /* Disciplinas */
  .mix { position: relative; left: auto; top: auto; width: auto; height: auto; margin: 14px 3vw 0; padding: 10px; border-radius: 20px; display: flex; flex-direction: column; gap: 10px; }
  .dis { position: static; width: auto; height: auto; padding: 22px 16px 12px; }
  .acc-h { font-size: 23px; padding: 11px 0; gap: 8px; }
  .acc-h .arr { width: 22px; height: 22px; }
  .acc-b p { font-size: 17px; }
  .acc-ia .acc-h { font-size: 27px; }
  .strips { position: static; gap: 8px; }
  .chn { flex: 1; width: auto; height: 600px; }

  /* Mi proceso: el panel de texto va debajo del multipista */
  .proc { position: relative; left: auto; top: auto; width: auto; height: auto; margin: 14px 3vw 0; }
  .daw { --nc: 124px; position: relative; width: auto; height: auto; padding: 0 10px 10px; border-radius: 20px; }
  .tp { height: 56px; gap: 14px; }
  .tp-title { font-size: 19px; padding-left: 4px; }
  .rec { width: 22px; height: 22px; } .rec i { width: 22px; height: 22px; }
  .ruler { height: 34px; }
  .row { height: 56px; }
  .rh { padding-left: 6px; gap: 6px; }
  .rh-name { font-size: 13px; line-height: 1.2; }
  .msr { display: none; }
  .clip { height: 34px; margin-top: -17px; padding: 0 5px; }
  .wave { height: 20px; }
  .playhead { top: 18px; }
  .pt { position: relative; left: auto; top: auto; width: auto; height: auto; margin-top: -24px; padding: 48px 20px 24px; border-radius: 0 0 24px 24px; }
  .pt-title { font-size: 24px; }
  .pt-text, .pt-list li { font-size: 16px; }
  .pt-list { gap: 11px; }
  .pt-list .ic { width: 25px; height: 25px; }

  /* Experiencia */
  .lat { position: relative; left: auto; top: auto; width: auto; height: auto; margin: 16px 6vw 0; display: flex; flex-direction: column; gap: 22px; }
  .lat-cover { position: relative; width: min(62vw, 250px); height: min(62vw, 250px); }
  .lat-disc { left: calc(min(62vw, 250px) * .42); top: 3px; width: calc(min(62vw, 250px) * .95); height: calc(min(62vw, 250px) * .95); }
  .lat-info { position: static; width: auto; }
  .lat-info h3 { font-size: 46px; }
  .lat-meta { font-size: 17px; }
  .albums { position: static; width: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 5vw; margin: 26px 6vw 0; }
  .alb { width: auto; }
  .alb h4 { font-size: 22px; }
  .alb-meta { font-size: 15px; }
  .alb-desc { font-size: 14px; }
  .alb-wrap { width: 100%; height: auto; aspect-ratio: 1; }
  .alb-disc { width: 90%; height: auto; }

  /* Páginas de caso */
  .cs-more { margin-top: 64px; }
  .cs-more .shelf { margin-top: 0; }
  .cclose { left: 12px; top: 8px; width: 40px; height: 40px; padding: 8px; }
  .cs-page { margin: 0 20px; padding: 84px 0 110px; }
  .page-title { font-size: clamp(38px, 12vw, 56px); }
  .page-intro { font-size: 18px; }
  .meta-item span { font-size: 16px; }
  .page-cover { margin: 36px 0 56px; }
  .case-toc-layout { grid-template-columns: minmax(0, 1fr); }
  .case-toc { display: none; }
  .case-toc-section { padding-bottom: 72px; }
  .case-toc-section p, .profile-list li { font-size: 18px; }
  .case-toc-gallery, .case-gallery, .case-split-media-only { flex-direction: column; gap: 16px; }
  .case-toc-gallery > div:last-child, .case-gallery-col-offset { margin-top: 0; }
  .case-media-overlap .media-main { width: 100%; }
  .case-media-overlap .media-accent { position: static; width: 70%; margin: -48px 0 0 auto; }
  .case-media-overlap { padding-bottom: 20px; }
  .case-media-right img { width: 70%; }

  /* Educación */
  .edu-radio { position: relative; left: auto; top: auto; width: 88vw; margin: 22px auto 0; }
  .edu-list { position: static; width: auto; margin: 28px 6vw 0; grid-template-columns: 1fr 1fr; gap: 28px 5vw; }
  .edu-tape { width: 81px; }
  .edu-list p { margin-top: 14px; font-size: 18px; }
  .edu-list small { font-size: 15px; }

  /* Contacto */
  #sec-contacto .fit { height: calc(100dvh - 100px); }
  .ct-amp { width: 150px; }
  .ct-title { font-size: clamp(48px, 16.5vw, 62px); }
  .ct-link { font-size: 25px; }
  .ct-link .arr { width: 17px; height: 17px; }
}
