/* =============================================================
   Trayectoria — plantilla Editorial Dark Warm (editorial-dark-cobalt)
   Archetype: Editorial Dark Green & Cobalt
   Lote A (8/10/2026): menú móvil que se puede cerrar, lista fija de instituciones,
   rejillas por nº de elementos, objetivos de 44 px, reduced-motion completo.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #0c1512;
  --bg-2: #142019;
  --bg-3: #1a2921;
  --cream: #eef2ee;
  --text: #eef2ee;
  --text-mute: #a6b3ac;
  --text-faint: #84948a; /* 26/9/2026: antes #74847b (4,26:1) → AA con margen */
  --accent: #56707c;
  --accent-2: #8fa3ad;
  --accent-btn: #7a95a1; /* fondo del botón principal: con --accent (#56707c) el texto oscuro daba 3,5:1 */
  --line: rgba(238, 242, 238, 0.14);
  --line-strong: rgba(238, 242, 238, 0.28);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-press: cubic-bezier(0.23, 1, 0.32, 1);

  --container: 1180px;
  --gutter: 1.25rem;
  --sec-pad: clamp(4.5rem, 9vw, 6.5rem);
  --nav-bp: 960px; /* a partir de aquí el menú va en línea; por debajo, hamburguesa */
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
p { text-wrap: pretty; overflow-wrap: break-word; }
h1, h2, h3, h4 {
  text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em;
  font-family: var(--serif); font-weight: 500;
  overflow-wrap: break-word; hyphens: auto;
}
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.9rem;
}

/* Secciones: el fondo alterna solo entre las que existen (la portada es la 1.ª) */
.sec { padding-block: var(--sec-pad); --sec-bg: var(--bg); }
main > .sec:nth-of-type(even) { --sec-bg: var(--bg-2); background: var(--bg-2); border-block: 1px solid var(--line); }

/* =============================================================
   4. Typography
   ============================================================= */
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-bottom: 1.4rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: 0.5rem; }
.section-lede { color: var(--text-mute); max-width: 62ch; font-size: 1.05rem; margin-bottom: 2.4rem; }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; max-width: 100%;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1.25; text-align: center;
  overflow-wrap: anywhere;
  transition: transform .2s var(--ease-press), box-shadow .2s var(--ease-press), background-color .2s, color .2s, border-color .2s;
}
.btn-primary {
  background: var(--accent-btn);
  color: var(--bg);
  box-shadow: 0 4px 14px rgba(86, 112, 124, 0.25), 0 1px 3px rgba(0,0,0,0.2);
}
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(86, 112, 124, 0.3), 0 8px 18px rgba(0,0,0,0.3); }
  .btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-2px); }
}
.btn:active { transform: scale(.97); transition-duration: .12s; }

/* Enlace con flecha: subrayado propio (text-decoration, no border) y zona de 44 px */
.link-row { display: flex; flex-wrap: wrap; gap: 0 1.8rem; margin-top: 1.2rem; }
.link-arrow {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--accent-2); font-weight: 600;
  text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: 1px; text-underline-offset: .3em;
  transition: text-decoration-color .2s, transform .16s var(--ease-press);
}
@media (hover: hover) { .link-arrow:hover { text-decoration-color: var(--accent-2); } }
.link-arrow:active { transform: scale(.97); }

/* Cards with tilt (solo ratón; main.js no lo activa con reduced-motion ni con puntero táctil) */
.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), border-color .2s, box-shadow .2s;
}
@media (hover: hover) { .has-tilt:hover { transition-duration: .15s; } }

/* Rejillas sin bordes entre celdas (ponencias, artículos): columnas por nº de elementos (--c, --c2 desde la plantilla) */
.cols { display: grid; gap: 1.4rem; grid-template-columns: minmax(0, 1fr); }
.cols > * { min-width: 0; }
@media (min-width: 720px) { .cols { grid-template-columns: repeat(var(--c2, 2), minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cols { grid-template-columns: repeat(var(--c, 2), minmax(0, 1fr)); } }
.cols.uno { max-width: 46rem; }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Splash (solo en la 1.ª visita de la sesión y sin reduced-motion; sin JS no se muestra) --- */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  pointer-events: auto;
  transition: opacity .5s, clip-path .7s;
  animation: splashSafety .01s 3.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
html.no-js .splash, html.sin-splash .splash { display: none; }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-mark {
  font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.3em;
  color: var(--accent-2);
}

/* --- Nav --- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  transition: background-color .3s var(--ease-out), backdrop-filter .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(12, 21, 18, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: .75rem;
  padding-block: .5rem;
}
.nav-brand {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px;
  margin-right: auto;
  font-family: var(--serif); font-weight: 600; letter-spacing: 0.1em; font-size: 1.05rem;
  overflow-wrap: anywhere;
}
.nav-links { display: none; align-items: center; gap: 0 1.5rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 .15rem;
  font-size: 0.95rem; color: var(--text);
  transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: .15rem; right: .15rem; bottom: 8px;
  height: 1px; background: var(--accent-2);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease-out);
}
.nav-link:active { opacity: .7; }
@media (hover: hover) {
  .nav-link:hover { color: var(--accent-2); }
  .nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
}
.nav-link--cta { color: var(--accent-2); font-weight: 600; }
@media (hover: hover) { .nav-link--cta:hover { color: var(--text); } }

.nav-tools { display: flex; align-items: center; gap: .4rem; flex: 0 0 auto; }
.lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 0 1rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .9rem; font-weight: 600; line-height: 1; color: var(--text);
  transition: border-color .2s, color .2s, transform .16s var(--ease-press);
}
@media (hover: hover) { .lang:hover { border-color: var(--accent-2); color: var(--accent-2); } }
.lang:active { transform: scale(.97); }

.nav-burger {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0;
  transition: transform .16s var(--ease-press);
}
.nav-burger:active { transform: scale(.94); }
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav-burger span { width: 22px; height: 1.5px; background: var(--cream); transition: transform .2s var(--ease-press), opacity .2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Panel móvil: hermano de la cabecera (no hijo), así el botón, la marca y el idioma quedan por encima y el
   backdrop-filter de la cabecera no lo encierra. Cerrado: visibility:hidden (sin foco ni lector). */
.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  padding: 5.5rem var(--gutter) 2rem; overflow-y: auto;
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path .45s var(--ease-soft), visibility 0s linear .45s;
}
.nav-mobile[data-open="true"] { visibility: visible; clip-path: inset(0); transition: clip-path .45s var(--ease-soft), visibility 0s; }
.nav-mobile-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 1.2rem;
  font-family: var(--serif); font-size: 1.6rem; text-align: center;
  transition: color .2s, transform .16s var(--ease-press);
}
.nav-mobile-link:active { transform: scale(.97); }
@media (hover: hover) { .nav-mobile-link:hover { color: var(--accent-2); } }
@media (min-width: 960px) { .nav-mobile { display: none; } }
html.nav-open { overflow: hidden; }

/* Contraste AA (auditoría 26/9/2026): velo superior tras el menú mientras no hay scroll */
.nav:not(.is-scrolled) { background: linear-gradient(180deg, rgba(12,21,18,0.82) 0%, rgba(12,21,18,0.55) 70%, rgba(12,21,18,0) 100%); }

/* Sin JS el menú de hamburguesa no se puede abrir: las secciones van en una tira desplazable bajo la barra */
html.no-js .nav-burger { display: none; }
@media (max-width: 959.98px) {
  html.no-js .nav-inner { flex-wrap: wrap; }
  html.no-js .nav-links { display: flex; order: 3; flex: 1 0 100%; gap: 0; overflow-x: auto; }
  html.no-js .nav-link { flex: 0 0 auto; min-width: 44px; padding: 0 .75rem; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: clip;
  isolation: isolate;
  background: var(--bg-2);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  transform: scale(1.06);
}
/* Un único movimiento de asentado de 4,5 s (WCAG 2.2.2: antes era un zoom infinito de 30 s) */
.hero-bg img.ambient-on { animation: heroSettle 4.5s var(--ease-out) both; }
@keyframes heroSettle {
  from { transform: scale(1.12); }
  to { transform: scale(1.06); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,21,18,0.35) 0%, rgba(12,21,18,0.68) 45%, rgba(12,21,18,0.96) 92%),   /* 13/10/2026: 0.55 → 0.68 en el 45 %: con botones extra la portada crece y el texto superior sube a una zona clara (4,2:1) */
    linear-gradient(90deg, rgba(12,21,18,0.78) 0%, rgba(12,21,18,0.6) 35%, rgba(12,21,18,0.05) 62%);
}
/* Móvil: el texto ocupa la mitad inferior y se cruza con la foto; velo más cerrado desde el 30 % para mantener 4,5:1 */
@media (max-width: 719.98px) {
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(12,21,18,0.35) 0%, rgba(12,21,18,0.6) 28%, rgba(12,21,18,0.88) 50%, rgba(12,21,18,0.96) 90%),
      linear-gradient(90deg, rgba(12,21,18,0.78) 0%, rgba(12,21,18,0.6) 40%, rgba(12,21,18,0.3) 75%, rgba(12,21,18,0.12) 100%);
  }
}
/* El bloque de texto ocupa la rejilla del contenedor (alineado con la barra y las secciones) y sus hijos limitan su ancho */
.hero-content { position: relative; width: 100%; padding-block: 6.5rem 3.2rem; }
@media (min-width: 720px) { .hero-content { padding-block: 8rem 5.5rem; } }
.hero .eyebrow { max-width: 46ch; }
.hero-title {
  font-size: clamp(2.4rem, 6.6vw, 4.6rem);
  margin-bottom: 1.1rem;
  max-width: 16ch;
}
.hero-title.long { font-size: clamp(2.4rem, 4.6vw, 3.4rem); max-width: 22ch; }
.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--cream);
  max-width: 34ch;
  margin-bottom: 0.9rem;
}
.hero-roles {
  color: var(--text-mute);
  font-size: 0.95rem;
  max-width: 44ch;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem 1rem; max-width: 46rem; }

.hero-scroll-cue {
  position: absolute; bottom: .6rem; left: 50%; transform: translateX(-50%);
  display: none; width: 44px; height: 60px;
  align-items: flex-end; justify-content: center; padding-bottom: 8px;
}
@media (min-width: 720px) and (min-height: 700px) { .hero-scroll-cue { display: flex; } }
.hero-scroll-cue span {
  display: block; width: 1px; height: 42px;
  background: linear-gradient(180deg, var(--accent-2), transparent);
  animation: scrollCue 2.2s ease-in-out infinite;
}
@keyframes scrollCue { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* --- Stats band --- */
.stats-band { padding-block: clamp(2.6rem, 6vw, 3.4rem); }
.stats-grid {
  display: grid; gap: 2.2rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.stat { text-align: left; min-width: 0; container-type: inline-size; }
/* La cifra se ajusta a su casilla: tamaño por contenedor y nº de caracteres (--n, mínimo 4; un dígito ≈ 0,6 em) */
.stat-num {
  font-family: var(--serif); font-weight: 500;
  font-size: min(3.6rem, calc(100cqi / (var(--n, 4) * 0.6)));
  color: var(--accent-2);
  line-height: 1;
  font-variant-numeric: lining-nums;
  margin-bottom: 0.6rem;
  white-space: nowrap;
}
.stat-label { font-size: 1rem; color: var(--cream); margin-bottom: 0.2rem; overflow-wrap: anywhere; }
.stat-note { font-size: 0.9rem; color: var(--text-faint); overflow-wrap: anywhere; }

/* --- Story --- */
.story-grid { display: grid; gap: 2.4rem; }
.story-grid > * { min-width: 0; }
@media (min-width: 960px) {
  .story-grid { grid-template-columns: 0.85fr 1.15fr; gap: 4.5rem; align-items: start; }
  .story-grid.no-fig { grid-template-columns: minmax(0, 1fr); }
}
.story-figure {
  border-radius: 18px; overflow: clip;
  border: 1px solid var(--line);
  max-width: min(100%, 26rem);
}
@media (min-width: 960px) { .story-figure { max-width: none; position: sticky; top: 6rem; } }
.story-figure img { width: 100%; object-fit: cover; aspect-ratio: 4/5; }
.story-text p { color: var(--text-mute); margin-bottom: 1.3rem; max-width: 62ch; }
.story-text .story-lede { color: var(--cream); font-size: 1.1rem; }
.story-text .story-personal {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
  color: var(--accent-2); margin-top: 1.8rem;
}

/* --- Timeline --- */
.timeline-section { position: relative; }
.tl-layout { display: grid; gap: 2.6rem; margin-top: 3rem; }
.tl-layout > * { min-width: 0; }
@media (min-width: 1040px) {
  .tl-layout.has-photo { grid-template-columns: minmax(0, 1fr) 230px; gap: 4rem; align-items: start; }
}
.timeline { position: relative; padding-left: 1.6rem; border-left: 1px solid var(--line-strong); }
@media (min-width: 720px) { .timeline { padding-left: 2.4rem; } }
.tl-item { position: relative; padding-bottom: 2.6rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -1.68rem; top: 0.35rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px var(--sec-bg, var(--bg-2)), 0 0 0 5px var(--line-strong);
}
@media (min-width: 720px) { .tl-item::before { left: -2.48rem; } }
.tl-year {
  font-family: var(--serif); color: var(--accent-2);
  font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem;
}
.tl-body { max-width: 68ch; }
.tl-body h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.tl-body p { color: var(--text-mute); font-size: 0.97rem; overflow-wrap: anywhere; }
.tl-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; padding: 0; }
.tl-tags li {
  font-size: 0.85rem; padding: 0.32rem 0.8rem; border-radius: 16px; min-width: 0;
  background: rgba(143, 163, 173, 0.14); color: var(--accent-2); font-weight: 500;
  overflow-wrap: anywhere;
}

.timeline-side-photo { display: none; }
@media (min-width: 1040px) {
  .timeline-side-photo {
    display: block;
    position: sticky; top: 6rem;
    border-radius: 16px; overflow: clip; border: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  }
  .timeline-side-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
}

/* --- Talks: infografía por categorías --- */
.talk-categories { margin-top: 2.8rem; }
.talk-category {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.4rem, 3vw, 2rem);
  transition: border-color .2s;
  overflow-wrap: anywhere;
}
@media (hover: hover) { .talk-category:hover { border-color: var(--accent-2); } }
.talk-cat-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.talk-cat-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--accent-2);
}
.talk-cat-icon svg { width: 24px; height: 24px; }
.talk-cat-count {
  font-family: var(--serif); font-weight: 500;
  font-size: 2rem; line-height: 1;
  color: var(--accent-2);
}
.talk-category h3 { font-size: 1.2rem; margin-bottom: 1.1rem; }
.talk-cat-examples { display: flex; flex-direction: column; gap: 0.7rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.talk-cat-examples li { color: var(--text-mute); font-size: 0.94rem; line-height: 1.5; }
.talk-cat-examples strong { color: var(--cream); font-weight: 600; }

/* --- Education --- */
.education-grid {
  display: grid; gap: 2.8rem 3.4rem; margin-top: 2.6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
}
.education-group { min-width: 0; }
.education-group:only-child { max-width: 48rem; }
.education-group h3 {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500;
  color: var(--accent-2); margin-bottom: 0.4rem;
}
.education-list { border-top: 1px solid var(--line); margin-top: 1rem; }
.education-list li {
  display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .3rem 1.2rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
@media (max-width: 479.98px) { .education-list li { grid-template-columns: minmax(0, 1fr); } }
.edu-period { color: var(--accent-2); font-weight: 600; font-size: 0.9rem; overflow-wrap: anywhere; }
.edu-body { color: var(--cream); font-size: 0.97rem; line-height: 1.45; overflow-wrap: anywhere; }
.edu-body strong { font-weight: 600; display: block; }
.edu-centro { display: block; }

/* --- Articles --- */
.articles-grid { margin-top: 2.6rem; }
.article-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.3rem, 3vw, 1.8rem);
  overflow-wrap: anywhere;
}
@media (hover: hover) { .article-card:hover { border-color: var(--accent-2); } }
.article-card p { color: var(--text-mute); font-size: 0.97rem; }

/* --- Press --- */
.press-text { max-width: 62rem; }
.press-quote {
  border-left: 2px solid var(--accent-2);
  padding-left: 1.4rem;
  margin: 1.6rem 0;
  max-width: 46rem;
}
.press-quote p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.25rem); color: var(--cream);
}
.press-source { color: var(--text-faint); font-size: 0.9rem; margin-top: 1.2rem; overflow-wrap: anywhere; }

/* --- Colaboraciones: lista fija (1 a 12 elementos, sin carrusel) --- */
.collab-section { padding-block: clamp(3.4rem, 7vw, 4.5rem); }
.collab-list { display: flex; flex-wrap: wrap; gap: .8rem 2.2rem; margin-top: .6rem; }
.collab-list li {
  position: relative; min-width: 0; padding-left: 1.1rem;
  font-family: var(--serif); font-size: 1.15rem; line-height: 1.4; color: var(--text-mute);
  overflow-wrap: anywhere;
}
.collab-list li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2);
}

/* --- Contact --- */
.contact-section { position: relative; padding-block: clamp(4.5rem, 9vw, 7rem); overflow: clip; isolation: isolate; background: var(--bg); }
.contact-bg { position: absolute; inset: 0; z-index: -1; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.contact-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,21,18,0.9), rgba(12,21,18,0.97) 60%); }
.contact-grid {
  display: grid; gap: 1.2rem; margin-block: 2.6rem; max-width: 56rem;
  grid-template-columns: minmax(0, 1fr);
}
.contact-grid > * { min-width: 0; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(var(--c2, 2), minmax(0, 1fr)); } }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(var(--c, 3), minmax(0, 1fr)); } }
.contact-grid.uno { max-width: 26rem; }
.contact-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: rgba(26, 41, 33, 0.75);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem;
  overflow-wrap: anywhere;
  transition: border-color .2s, transform .45s var(--ease-soft);
}
@media (hover: hover) { .contact-card:hover { border-color: var(--accent-2); } }
.contact-card:active { transform: scale(.98); transition-duration: .12s; }
.contact-card p { color: var(--text-mute); font-size: 0.95rem; margin-bottom: 1rem; }
.contact-card-cta { margin-top: auto; color: var(--accent-2); font-weight: 600; font-size: 0.95rem; }
.contact-direct { display: flex; flex-wrap: wrap; gap: .8rem 1rem; max-width: 56rem; }
.email { overflow-wrap: anywhere; }

/* --- Footer --- */
.footer { padding-block: 2rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: .2rem 1.5rem; justify-content: space-between; align-items: center; }
.footer p, .footer-note { color: var(--text-faint); font-size: 0.9rem; min-width: 0; overflow-wrap: anywhere; }
.footer-top, .trayectoria-credit {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.9rem;
}
.footer-top { color: var(--text-mute); transition: color .2s, transform .16s var(--ease-press); }
.trayectoria-credit { gap: 0.35rem; color: var(--text-faint); transition: color .2s, transform .16s var(--ease-press); }
.footer-top:active, .trayectoria-credit:active { transform: scale(.97); }
@media (hover: hover) { .footer-top:hover, .trayectoria-credit:hover { color: var(--accent-2); } }
.trayectoria-credit img { display: block; border-radius: 2px; }

/* =============================================================
   7. Effects (reveal solo con movimiento permitido)
   ============================================================= */
/* Oculto solo cuando hay JS (html.no-js se quita con el script de <body>) y el usuario no pidió menos movimiento. */
@media (prefers-reduced-motion: no-preference) {
  html:not(.no-js) [data-reveal] {
    opacity: 0; transform: translateY(24px);
    transition: opacity .6s var(--ease-press), transform .6s var(--ease-press);
  }
  html:not(.no-js) [data-reveal].is-revealed { opacity: 1; transform: none; }
}
@media print { [data-reveal] { opacity: 1 !important; transform: none !important; } }

/* =============================================================
   8. Reduced-motion: nada se mueve por sí solo (portada, splash, reveal, tilt, count-up y menú)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .splash { display: none; }
  .has-tilt { transform: none; }
  .hero-bg img { transform: none; }
}
