/* CV interactivo · Nahuel Barrionuevo
   Estética de la landing de NOWL (Archivo + Hanken Grotesk, tinta + brasa), sin logo. */

:root {
  --ink: #070605;
  --ink-2: #0d0b09;
  --ink-3: #14110e;
  --ivory: #f3ebdd;
  --sand: #b9ac98;
  --ash: #8f8474;
  --ember: #ff6b00;
  --ember-b: #ff8a2b;
  --ember-d: #b85400;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dos: "VT323", "Lucida Console", "Courier New", monospace;
  --radius: 10px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--ink);
  --bg-2: var(--ink-2);
  --card: var(--ink-3);
  --text: var(--ivory);
  --muted: var(--sand);
  --faint: var(--ash);
  --accent: var(--ember);
  --accent-text: var(--ember-b);
  --line: rgba(243, 235, 221, 0.13);
  --grid: rgba(243, 235, 221, 0.045);
  --glow: rgba(255, 107, 0, 0.32);
  --amb: rgba(255, 107, 0, 0.1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3ebdd;
  --bg-2: #ebe1cf;
  --card: #fbf6ec;
  --text: #14110e;
  --muted: #4a4235;
  --faint: #6b6152;
  --accent: var(--ember);
  --accent-text: #9a4400;
  --line: rgba(7, 6, 5, 0.16);
  --grid: rgba(7, 6, 5, 0.06);
  --glow: rgba(255, 107, 0, 0.25);
  --amb: rgba(255, 107, 0, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

/* Fondo: rejilla de la landing de NOWL + brillo ambiente */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 50% 40% at 85% 0%, var(--amb), transparent 70%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
::selection { background: var(--ember); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ember-b); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Idioma: ES por defecto */
html[data-lang="es"] .en, html[data-lang="en"] .es { display: none !important; }

/* Barra de progreso */
#progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 0; background: var(--ember); z-index: 80; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--ember); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; }

/* Cabecera */
.top {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .top { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { font-family: var(--display); font-stretch: 112%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.brand i { font-style: normal; color: var(--accent-text); margin-right: 6px; font-family: var(--dos); font-size: 1.25em; }
.nav { display: none; gap: 22px; }
.nav a { font-family: var(--display); font-stretch: 108%; text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; font-weight: 700; text-decoration: none; color: var(--muted); padding: 6px 0; transition: color 0.2s; }
.nav a:hover { color: var(--accent-text); }
@media (min-width: 900px) { .nav { display: flex; } }

.tools { display: flex; gap: 8px; align-items: center; }
.tbtn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; transition: border-color 0.2s, background-color 0.2s; }
.tbtn:hover { border-color: var(--accent); }
.tbtn svg { width: 18px; height: 18px; flex: none; }
.tbtn .sep { opacity: 0.4; margin: 0 -3px; }
html[data-lang="es"] .lg-es, html[data-lang="en"] .lg-en { color: var(--accent-text); }
.tbtn.moon { width: 40px; padding: 0; justify-content: center; }
html[data-theme="dark"] .moon svg { fill: var(--ember); stroke: var(--ember); }
html[data-theme="light"] .moon svg { fill: none; stroke: currentColor; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--ember); color: var(--ink); box-shadow: 0 8px 30px -8px var(--glow); }
.btn-primary:hover { background: var(--ember-b); transform: translateY(-2px); box-shadow: 0 12px 38px -8px var(--glow); }
.btn-ghost { border: 1px solid var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); transform: translateY(-2px); }

/* Hero */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(44px, 6vw, 80px); }
.hero-grid { display: grid; gap: 26px; grid-template-areas: "head" "pic" "copy"; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; grid-template-areas: "head pic" "copy pic"; column-gap: clamp(32px, 5vw, 72px); row-gap: 0; align-items: start; }
}
.hero-head { grid-area: head; align-self: end; }
.hero-copy { grid-area: copy; align-self: start; }
@media (min-width: 900px) { .hero-copy { margin-top: 26px; } }

.dos-prompt { font-family: var(--dos); font-size: clamp(1.15rem, 2.4vw, 1.55rem); letter-spacing: 0.03em; color: var(--muted); min-height: 1.4em; margin-bottom: 8px; }
.dos-h { font-family: var(--dos); font-weight: 400; font-size: clamp(3.8rem, 14vw, 7.6rem); line-height: 0.9; letter-spacing: 0; color: var(--text); }
.dos-h .w { display: inline-block; white-space: nowrap; }
.dos-h .nm { font-family: var(--display); font-style: italic; font-weight: 600; font-stretch: 100%; font-size: 0.84em; letter-spacing: -0.02em; color: var(--accent-text); }
.dos-h .ch { visibility: hidden; }
.dos-h .ch.on { visibility: visible; }
.cur { position: relative; display: inline-block; width: 0; height: 1em; vertical-align: baseline; }
.cur::after { content: ""; position: absolute; left: 0.04em; bottom: 0.04em; width: 0.5em; height: 0.78em; background: var(--ember); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-role { font-family: var(--display); font-stretch: 112%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.05rem, 2.2vw, 1.4rem); line-height: 1.15; letter-spacing: 0.04em; }
.hero-role span { color: var(--accent-text); }
.hero-sub { margin-top: 12px; color: var(--muted); max-width: 52ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Foto de presentación: bloque naranja con esquinas cortadas */
.pic { grid-area: pic; position: relative; width: 100%; max-width: 460px; margin-inline: auto; aspect-ratio: 701 / 851; filter: drop-shadow(0 34px 44px var(--glow)); }
.pic-clip { position: absolute; inset: 0; overflow: hidden; background: var(--ember); clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%); }
.pic-clip img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(6%); } }
.pic .tag { position: absolute; top: 4.5%; right: 4.5%; font-family: var(--dos); font-size: clamp(1rem, 2.2vw, 1.3rem); line-height: 1; color: #070605; }
.pic .open { position: absolute; left: 3%; bottom: 7%; display: inline-flex; align-items: center; gap: 8px; background: #f3ebdd; color: #070605; border-radius: 999px; padding: 8px 14px; font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.55); }
.pic .open i { width: 8px; height: 8px; border-radius: 50%; background: #ff6b00; animation: pulse 1.8s ease-out infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.6); } 100% { box-shadow: 0 0 0 9px rgba(255, 107, 0, 0); } }

/* Banda naranja: resumen y cifras */
.band { background: var(--ember); color: #070605; padding: clamp(48px, 7vw, 96px) 0 clamp(44px, 6vw, 80px); }
.band-top { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .band-top { grid-template-columns: 1.5fr 1fr; gap: 72px; } }
.band-h { font-family: var(--display); font-weight: 600; font-stretch: 100%; font-size: clamp(1.7rem, 3.9vw, 2.9rem); line-height: 1.12; letter-spacing: -0.015em; max-width: 24ch; }
.band-side p { font-size: 1rem; line-height: 1.5; color: rgba(7, 6, 5, 0.86); max-width: 38ch; }
.band-btn { display: inline-grid; place-items: center; width: 118px; height: 118px; margin-top: 22px; border-radius: 50%; background: #070605; color: #f3ebdd; font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; text-align: center; transition: transform 0.25s; }
.band-btn:hover { transform: scale(1.07) rotate(-4deg); }
.band-label { margin-top: clamp(44px, 6vw, 76px); text-align: center; font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
.band-label em { font-style: italic; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 26px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 14px 18px; text-align: center; border-left: 1px solid rgba(7, 6, 5, 0.32); }
.stat:nth-child(odd) { border-left: 0; }
@media (min-width: 760px) { .stat:nth-child(odd) { border-left: 1px solid rgba(7, 6, 5, 0.32); } .stat:first-child { border-left: 0; } }
.stat b { display: block; font-family: var(--dos); font-weight: 400; font-size: clamp(2.8rem, 6vw, 4.2rem); line-height: 0.95; color: #070605; }
.stat span { display: block; margin-top: 6px; font-size: 0.88rem; color: rgba(7, 6, 5, 0.82); line-height: 1.35; }

/* Ticker */
.ticker { border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 14px 0; background: var(--bg-2); }
.ticker-track { display: inline-flex; animation: tick 60s linear infinite; }
.ticker-track span { font-family: var(--display); font-stretch: 112%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 3.8vw, 2.6rem); padding-inline: 0.55em; color: transparent; -webkit-text-stroke: 1px var(--text); }
.ticker-track span:nth-child(even) { color: var(--accent-text); -webkit-text-stroke: 0; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Secciones */
.sec { padding: clamp(56px, 9vw, 112px) 0; }
.eyebrow { font-family: var(--display); font-stretch: 108%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.32em; font-size: 11px; color: var(--accent-text); }
.h2 { margin-top: 12px; font-family: var(--display); font-stretch: 110%; font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 5.6vw, 4rem); line-height: 0.98; letter-spacing: -0.01em; }
.lead { margin-top: 16px; color: var(--muted); max-width: 62ch; }

/* Perfil */
.profile-grid { display: grid; gap: 36px; margin-top: 34px; }
@media (min-width: 900px) { .profile-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; margin-top: 22px; }
.seg button { padding: 10px 20px; border-radius: 999px; font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: background-color 0.2s, color 0.2s; }
.seg button[aria-pressed="true"] { background: var(--ember); color: var(--ink); }
.seg button:not([aria-pressed="true"]):hover { color: var(--accent-text); }
.about { font-size: clamp(1.1rem, 1.9vw, 1.3rem); line-height: 1.6; }
html:not([data-mode="cm"]) [data-for="cm"], html:not([data-mode="it"]) [data-for="it"] { display: none !important; }
.groups { display: grid; gap: 18px; margin-top: 28px; }
.group h3 { font-family: var(--display); font-stretch: 108%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; font-size: 11px; color: var(--faint); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 13px; font-size: 0.92rem; }

/* Experiencia */
.tl { position: relative; margin: 40px 0 0 6px; border-left: 1px solid var(--line); }
.job { position: relative; padding: 0 0 22px 28px; }
.job::before { content: ""; position: absolute; left: -6px; top: 22px; width: 11px; height: 11px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px var(--bg), 0 0 18px var(--glow); }
.job details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.2s; }
.job details[open], .job details:hover { border-color: color-mix(in srgb, var(--ember) 55%, var(--line)); }
.job summary { list-style: none; cursor: pointer; display: grid; gap: 2px; padding: 16px 52px 16px 20px; position: relative; }
.job summary::-webkit-details-marker { display: none; }
.job summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: translateY(-70%) rotate(45deg); transition: transform 0.25s; }
.job details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.job .date { font-family: var(--dos); font-size: 1.2rem; color: var(--accent-text); letter-spacing: 0.04em; line-height: 1.2; }
.job .role { font-family: var(--display); font-stretch: 108%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.1rem, 2.4vw, 1.5rem); line-height: 1.1; }
.job .org { color: var(--muted); font-size: 0.95rem; }
.job .body { padding: 0 20px 18px; }
.job .note { font-style: italic; color: var(--muted); margin-bottom: 8px; }
.job ul { padding-left: 1.1em; display: grid; gap: 8px; }
.job li::marker { color: var(--accent-text); }
.job li { transition: opacity 0.25s; }
html[data-mode="cm"] .job li[data-t="it"], html[data-mode="it"] .job li[data-t="cm"] { opacity: 0.5; }
.legend { margin-top: 14px; font-size: 0.85rem; color: var(--faint); }

/* Formación */
.edu { display: grid; gap: 12px; margin-top: 34px; }
@media (min-width: 760px) { .edu { grid-template-columns: 1fr 1fr; } }
.edu article { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 16px 18px; }
.edu h3 { font-family: var(--body); font-weight: 700; font-size: 1.02rem; line-height: 1.35; }
.edu p { color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.edu .yr { font-family: var(--dos); font-size: 1.15rem; color: var(--accent-text); }
.edu-rest { margin-top: 12px; }
.certs { display: grid; gap: 12px; margin-top: 34px; }
@media (min-width: 900px) { .certs { grid-template-columns: repeat(3, 1fr); } }
.cert { display: grid; align-content: start; gap: 4px; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 12px 12px 16px; }
.cert .yr { font-family: var(--dos); font-size: 1.15rem; color: var(--accent-text); margin-top: 8px; padding-inline: 6px; }
.cert h3 { font-family: var(--body); font-weight: 700; font-size: 1.02rem; line-height: 1.35; padding-inline: 6px; }
.cert p { color: var(--muted); font-size: 0.92rem; padding-inline: 6px; }
.cert-th { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #f4f1ea; cursor: zoom-in; transition: border-color 0.25s, transform 0.25s; }
.cert-th:hover { border-color: var(--accent); transform: translateY(-3px); }
.cert-th img { width: 100%; height: 100%; object-fit: contain; }
.cert-th .zoom { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #070605; font-weight: 800; font-size: 1.1rem; line-height: 1; opacity: 0.92; }
.facts { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Carrusel */
.rail-ctl { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pause { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.pause:hover { border-color: var(--accent); }
.pause svg { width: 14px; height: 14px; }
.pause .ic-play { display: none; }
.pause[aria-pressed="true"] .ic-play { display: block; }
.pause[aria-pressed="true"] .ic-pause { display: none; }
.rails { margin-top: 30px; display: grid; gap: 16px; }
.rail { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.rail-track { display: flex; gap: 16px; width: max-content; animation: rail var(--dur, 80s) linear infinite; }
.rail.rev .rail-track { animation-direction: reverse; }
.rails:hover .rail-track, .rails:focus-within .rail-track, .rails.paused .rail-track { animation-play-state: paused; }
@keyframes rail { to { transform: translateX(calc(-50% - 8px)); } }
.tile { position: relative; flex: none; height: var(--h); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--card); cursor: zoom-in; padding: 0; transition: transform 0.25s, border-color 0.25s; }
.tile:hover { transform: translateY(-4px); border-color: var(--accent); }
.tile img { height: 100%; width: auto; max-width: none; }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; text-align: left; color: #f3ebdd; background: linear-gradient(transparent, rgba(5, 4, 3, 0.9)); opacity: 0; transition: opacity 0.25s; }
.tile:hover .cap, .tile:focus-visible .cap { opacity: 1; }
.rail.a { --h: 300px; --dur: 90s; }
.rail.b { --h: 190px; --dur: 70s; }
.rail.c { --h: 230px; --dur: 100s; }
@media (max-width: 640px) { .rail.a { --h: 240px; } .rail.b { --h: 150px; } .rail.c { --h: 190px; } }

/* Lightbox */
dialog.lb { margin: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); color: var(--text); padding: 0; max-width: min(94vw, 1100px); width: fit-content; }
dialog.lb::backdrop { background: rgba(5, 4, 3, 0.86); }
.lb-in { position: relative; display: grid; justify-items: center; gap: 10px; padding: 14px 14px 12px; }
.lb img { max-height: 78vh; max-width: 100%; width: auto; height: auto; border-radius: 8px; }
.lb figcaption { font-size: 0.92rem; color: var(--muted); text-align: center; padding-inline: 44px; }
.lb .x, .lb .nav-b { position: absolute; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 1.25rem; line-height: 1; }
.lb .x { top: 10px; right: 10px; }
.lb .nav-b { top: 50%; transform: translateY(-50%); }
.lb .prev { left: 10px; }
.lb .next { right: 10px; }
.lb .x:hover, .lb .nav-b:hover { border-color: var(--accent); }

/* Contacto */
.contact { text-align: left; }
.c-grid { display: grid; gap: 14px; margin-top: 34px; }
@media (min-width: 760px) { .c-grid { grid-template-columns: repeat(3, 1fr); } }
.c-card { display: grid; gap: 4px; padding: 20px; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.c-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.c-card small { font-family: var(--display); font-stretch: 108%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; font-size: 10px; color: var(--accent-text); }
.c-card strong { font-family: var(--display); font-stretch: 108%; font-weight: 800; font-size: clamp(1rem, 2.2vw, 1.25rem); overflow-wrap: anywhere; }
.c-card span { color: var(--muted); font-size: 0.9rem; }
.cvs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.meta-line { margin-top: 22px; color: var(--muted); font-size: 0.95rem; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--faint); font-size: 0.88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Aparición al desplazar (solo con JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .rail { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .rail-track { width: auto; }
  .clone, .ticker-track .clone { display: none; }
  .ticker { overflow-x: auto; }
  .pause { display: none; }
}

/* Texto del botón de pausa */
.pause[aria-pressed="true"] .t-pause { display: none; }
.pause:not([aria-pressed="true"]) .t-play { display: none; }
