/* =============================================================
   Trayectoria — Archetype: Cinematic 3D Storytelling
   Escena Three.js fija de fondo (solo primitivas), cámara que orbita
   con el scroll, capas de contraste para legibilidad, metálico
   dorado/cobre sobre fondo cálido casi negro.
   Lote B (8/10/2026): sin splash ni menú hamburguesa, cabecera con idioma,
   objetivos de 44 px, escena diferida y ligera en móvil, cifras reales sin JS.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg-deep: #050302;
  --bg-soft: #0f0904;
  --accent-bright: #d4af37;
  --accent-mid: #c9a961;
  --accent-dark: #8a6f33;
  --text: #f4ead5;
  --text-muted: rgba(244, 234, 213, 0.72);
  --text-dim: rgba(244, 234, 213, 0.6); /* 26/9/2026: antes 0.44 (3,77:1) → 6,3:1, AA */
  --line-soft: rgba(244, 234, 213, 0.14);

  --display: "Playfair Display", Georgia, serif;
  --sans: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", monospace;

  --container: 1120px;
  --gutter: 1.4rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-press: cubic-bezier(0.23, 1, 0.32, 1);
  --t-color: 160ms;          /* color / borde: ≤ 200 ms */
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (max-width: 900px) { html { scroll-padding-top: 1rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; color: var(--text); }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent-bright); color: var(--bg-deep); }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 3; }

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

.kicker { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 0.9rem; }
section { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-title { font-size: clamp(1.9rem, 3.8vw, 2.7rem); font-style: italic; margin-bottom: 1.2rem; max-width: 20ch; overflow-wrap: anywhere; }
.section-lede { color: var(--text-muted); max-width: 62ch; margin-bottom: 2.2rem; }

/* Desktop "lookSide" split — el bloque de texto se desplaza a un lado y el retrato ocupa la columna libre.
   Solo desde 1040 px: por debajo, texto y retrato no caben uno junto al otro (el retrato pasaba por encima del texto).
   margin-inline solo admite 1-2 valores (start end): "auto 0" empuja a la derecha, "0 auto" a la izquierda. */
@media (min-width: 1040px) {
  .split--right .container > *:not(.contact-panel):not(.story-portrait) { max-width: 640px; margin-inline: auto 0; }
  .split--left .container > *:not(.contact-panel):not(.trajectory-portrait) { max-width: 640px; margin-inline: 0 auto; }
}

/* Halo oscuro bajo el texto corrido: cuando un destello de la escena pasa por detrás de un párrafo, las letras no se pierden */
.section-lede, .story-body p, .story-personal, .archive-body, .archive-date, .link-mono, .collab-list { text-shadow: 0 0 10px rgba(5, 3, 2, 0.95), 0 1px 3px rgba(5, 3, 2, 0.8); }

/* =============================================================
   3. Escena 3D + capas de contraste (fijas, fuera del flujo)
   El lienzo nace transparente y entra con un fundido cuando la escena está lista
   (se carga tras el primer pintado). 100lvh: la barra de direcciones del móvil no lo redimensiona.
   ============================================================= */
#scene-canvas { position: fixed; top: 0; left: 0; z-index: 0; width: 100%; height: 100%; height: 100lvh; display: block; opacity: 0; transition: opacity .5s ease; }
html.scene-on #scene-canvas { opacity: 1; }
.scrim { position: fixed; inset: 0; z-index: 1; background: rgba(5, 3, 2, 0.34); pointer-events: none; }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 28%, rgba(5, 3, 2, 0.42) 70%, rgba(5, 3, 2, 0.86) 100%),
    linear-gradient(180deg, rgba(5, 3, 2, 0.6) 0%, transparent 26%, transparent 74%, rgba(5, 3, 2, 0.75) 100%);
}
.grain {
  position: fixed; inset: 0; z-index: 2; opacity: 0.05; mix-blend-mode: overlay; pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>');
}
/* El grano (mezcla a pantalla completa sobre un lienzo animado) solo en escritorio con ratón */
@media (max-width: 900px), (pointer: coarse) { .grain { display: none; } }

/* Fallback sin WebGL / sin JS / ahorro de datos: fondo estático que imita la escena */
html.no-3d #scene-canvas, html.no-js #scene-canvas { display: none; }
html.no-3d body, html.no-js body {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212, 175, 55, 0.16), transparent 55%),
    radial-gradient(ellipse at 75% 70%, rgba(138, 111, 51, 0.14), transparent 60%),
    var(--bg-deep);
}

/* Texto legible sobre la escena: sombra + velo detrás (sin filter:blur: una capa menos sobre el lienzo animado) */
.split-text { position: relative; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.9); }
.split-text::before {
  content: ""; position: absolute; inset: -10% -6%;
  background: radial-gradient(ellipse closest-side, rgba(5, 3, 2, 0.84) 0%, rgba(5, 3, 2, 0.8) 85%, transparent 100%);
  z-index: -1; pointer-events: none;
}
@media (min-width: 901px) and (hover: hover) {
  .split-text::before {
    inset: -14% -10%;
    background: radial-gradient(ellipse at center, rgba(5, 3, 2, 0.82) 0%, rgba(5, 3, 2, 0.55) 55%, transparent 100%);
    filter: blur(10px);
  }
}

/* =============================================================
   4. Cabecera — escritorio: una fila (marca · secciones · Contacto · idioma).
      Móvil (≤ 900 px): fila 1 marca + Contacto + idioma; fila 2 tira de secciones desplazable. No es fija.
   ============================================================= */
.nav { position: sticky; top: 0; z-index: 500; background: rgba(5, 3, 2, 0.97); border-bottom: 1px solid rgba(244, 234, 213, 0.07); }   /* fondo casi opaco: el texto que pasa por debajo no se cuela entre los enlaces */
.nav-inner { display: flex; align-items: center; gap: 1.2rem; padding-block: .35rem; }
.nav-brand { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--display); font-weight: 700; font-style: italic; font-size: 1.15rem; color: var(--accent-bright); }
.nav-links { display: flex; align-items: center; gap: 1.7rem; margin-left: 1rem; flex: 1 1 auto; min-width: 0; }
.nav-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); transition: color var(--t-color) var(--ease-press), transform var(--t-color) var(--ease-press); }
.nav-link--solo-tira { display: none; }
.nav-link--cta { flex: 0 0 auto; justify-content: center; color: var(--bg-deep); background: linear-gradient(135deg, var(--accent-mid), var(--accent-bright)); padding-inline: 1rem; font-weight: 600; }
.lang { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; padding-inline: .7rem; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: .04em; color: var(--text-muted); border: 1px solid var(--line-soft); transition: color var(--t-color) var(--ease-press), border-color var(--t-color) var(--ease-press), transform var(--t-color) var(--ease-press); }
@media (hover: hover) {
  .nav-link:hover { color: var(--accent-bright); }
  .nav-link--cta:hover { color: var(--bg-deep); filter: brightness(1.08); }   /* el CTA conserva su color en hover */
  .lang:hover { color: var(--accent-bright); border-color: var(--accent-bright); }
}
.nav-link--cta:focus-visible { color: var(--bg-deep); }
.nav-link:active, .lang:active { transform: scale(.97); }

@media (max-width: 900px) {
  .nav { position: relative; }
  .nav-inner { flex-wrap: wrap; gap: 0 .6rem; padding-block: .25rem 0; }
  .nav-brand { flex: 1 1 0; min-width: 0; }
  .nav-links {
    order: 3; flex: 1 0 100%; margin: 0 calc(-1 * var(--gutter)); padding-inline: var(--gutter); gap: 1.4rem;
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line-soft);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link { flex: 0 0 auto; white-space: nowrap; }
  .nav-link--solo-tira { display: inline-flex; }
}

/* =============================================================
   5. Buttons
   ============================================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; max-width: 100%; padding: 0.85rem 1.7rem; font-family: var(--mono); font-weight: 500; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; text-align: center; transition: color var(--t-color) var(--ease-press), border-color var(--t-color) var(--ease-press), filter var(--t-color) var(--ease-press), transform var(--t-color) var(--ease-press); }
.btn-metallic { background: linear-gradient(135deg, var(--accent-dark), var(--accent-bright), var(--accent-mid)); color: var(--bg-deep); font-weight: 600; }
.btn-ghost { border: 1px solid var(--text-dim); color: var(--text); }
.btn.email { text-transform: none; letter-spacing: 0.01em; overflow-wrap: anywhere; }
@media (hover: hover) {
  .btn-metallic:hover { filter: brightness(1.1); color: var(--bg-deep); }
  .btn-ghost:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
}
.btn:active { transform: scale(.97); }

.link-row { display: flex; flex-wrap: wrap; column-gap: 1.6rem; margin-top: .4rem; }
.link-mono { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--mono); font-size: 0.82rem; color: var(--accent-bright); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; text-decoration-thickness: 1px; transition: text-decoration-color var(--t-color) var(--ease-press), transform var(--t-color) var(--ease-press); }
@media (hover: hover) { .link-mono:hover { text-decoration-color: var(--accent-bright); } }
.link-mono:active { transform: scale(.97); }
.link-row .link-mono { background: rgba(5, 3, 2, 0.6); padding-inline: .5rem; margin-left: -.5rem; }   /* velo mínimo: el anillo dorado de la escena no se confunde con el enlace dorado */

/* =============================================================
   6. Hero
   ============================================================= */
.hero { min-height: 92vh; min-height: 92svh; display: flex; align-items: center; padding-top: 4rem; }
.hero > .container { width: 100%; }
@media (max-width: 900px) { .hero { padding-top: 1.5rem; } }
/* Nombre completo visible en la portada (H1) */
.hero-name { font-family: var(--display); font-weight: 400; font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.2; color: var(--accent-mid); margin-bottom: 0.6rem; overflow-wrap: anywhere; }
.hero-name--largo { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.hero-title { font-family: var(--display); font-weight: 600; line-height: 1.12; color: var(--text); font-size: clamp(2.2rem, 6vw, 4rem); max-width: 22ch; margin-bottom: 1.2rem; overflow-wrap: anywhere; }
.hero-title--largo { font-size: clamp(1.7rem, 3vw, 2.6rem); max-width: 28ch; }
.hero-roles { font-family: var(--mono); font-size: 0.85rem; color: var(--text-dim); letter-spacing: 0.02em; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* =============================================================
   7. Historia / split text
   ============================================================= */
.story-body p { color: var(--text-muted); margin-bottom: 1.1rem; max-width: 62ch; }
.split-quote { margin-block: 1.8rem; padding-left: 1.4rem; border-left: 2px solid var(--accent-bright); }
.split-quote p { font-family: var(--display); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--text); }
.story-personal { font-style: italic; color: var(--text-dim); margin-top: 1rem; }

/* =============================================================
   8. Stats — tarjetas (cristal solo en escritorio con ratón)
   ============================================================= */
.testimonial-card { background: rgba(5, 3, 2, 0.9); border: 1px solid var(--line-soft); }
@media (min-width: 901px) and (hover: hover) {
  .testimonial-card { background: rgba(5, 3, 2, 0.82); backdrop-filter: blur(12px); }
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 340px)); justify-content: center; gap: 1.4rem; }
.stat { container-type: inline-size; min-width: 0; padding: 1.6rem 1.8rem; text-align: center; }
.stat-num { font-family: var(--display); font-size: min(clamp(2.2rem, 4vw, 2.9rem), calc(100cqi / (var(--n, 4) * .66))); color: var(--accent-bright); line-height: 1; margin-bottom: 0.5rem; white-space: nowrap; }
.stat-label { font-weight: 600; font-size: 0.88rem; margin-bottom: 0.3rem; overflow-wrap: anywhere; }
.stat-note { color: var(--text-dim); font-size: 0.78rem; font-family: var(--mono); overflow-wrap: anywhere; }

/* =============================================================
   9. Archive list (trayectoria / artículos)
   ============================================================= */
.archive-list { display: flex; flex-direction: column; margin-top: 1.6rem; }
.archive-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 1.6rem; padding-block: 1.4rem; border-top: 1px solid var(--line-soft); }
.archive-row:first-child { border-top: none; }
.archive-row--current .archive-date { color: var(--accent-bright); }
.archive-date { font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.02em; color: var(--text-dim); }
.archive-body h3 { font-size: 1.15rem; font-style: normal; margin-bottom: 0.4rem; overflow-wrap: anywhere; }
.archive-body p { color: var(--text-muted); overflow-wrap: anywhere; }
.archive-tags { font-family: var(--mono); font-size: 0.76rem; color: var(--text-dim); margin-top: 0.6rem; }

@media (max-width: 640px) { .archive-row { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; } }

/* =============================================================
   10. FAQ / ponencias accordion
   ============================================================= */
.faq-list { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.6rem; }
.faq-item { background: rgba(5, 3, 2, 0.88); border: 1px solid var(--line-soft); padding: 0.3rem 1.4rem; }
.faq-summary { display: flex; align-items: center; gap: 1rem; min-height: 44px; padding-block: 1rem; cursor: pointer; list-style: none; transition: transform 160ms var(--ease-press); }
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary:active { transform: scale(.985); }
.faq-count { font-family: var(--display); color: var(--accent-bright); font-size: 1.3rem; }
.faq-title { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.faq-toggle { font-family: var(--mono); font-size: 1.2rem; color: var(--text-dim); transition: transform .2s var(--ease-press), color var(--t-color) var(--ease-press); }
.faq-item[open] .faq-toggle { transform: rotate(45deg); color: var(--accent-bright); }
.faq-body { padding-bottom: 1.1rem; }
.faq-body li { font-size: 0.9rem; color: var(--text-muted); padding-block: 0.4rem; border-top: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.faq-body li:first-child { border-top: none; }

/* =============================================================
   11. Formación
   ============================================================= */
.education-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 520px)); justify-content: center; gap: 1.4rem; margin-top: 1.6rem; }
.education-group { padding: 1.6rem; min-width: 0; }
.education-group h3 { font-size: 1.05rem; font-style: italic; margin-bottom: 1rem; overflow-wrap: anywhere; }
.education-list li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 1rem; padding-block: 0.65rem; border-top: 1px solid var(--line-soft); }
.education-list li:first-child { border-top: none; }
.edu-period { font-family: var(--mono); color: var(--text-dim); font-size: 0.76rem; }
.edu-body { color: var(--text-muted); font-size: 0.88rem; overflow-wrap: anywhere; }
.edu-body strong { color: var(--text); }

/* =============================================================
   12. Prensa
   ============================================================= */
.press-quote { padding: 1.8rem 2rem; margin-bottom: 1rem; }
.press-quote p { font-family: var(--display); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.4rem); overflow-wrap: anywhere; }
.press-source { font-family: var(--mono); color: var(--text-dim); font-size: 0.78rem; margin-top: 0.6rem; }

/* =============================================================
   13. Colaboraciones (lista con rombos CSS, sobre un velo para que la escena no cruce el texto)
   ============================================================= */
.collab-section { text-align: center; }
.collab-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: .35rem; max-width: 62rem; margin-inline: auto; padding: 1.1rem 1.2rem; background: rgba(5, 3, 2, 0.7); font-family: var(--mono); font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.collab-list li { display: inline-flex; align-items: baseline; gap: .55rem; min-width: 0; margin-inline: .8rem; overflow-wrap: anywhere; }
.collab-list li::before { content: "◆"; content: "◆" / ""; flex: 0 0 auto; color: var(--accent-bright); font-size: 0.75rem; }   /* un rombo por elemento: sin separador colgando al cortar la línea */

/* =============================================================
   14. Contacto — panel ligeramente inclinado
   ============================================================= */
.contact-panel {
  background: rgba(5, 3, 2, 0.9);
  border: 1px solid var(--line-soft); padding: clamp(1.6rem, 5vw, 3.2rem);
  max-width: 860px; margin-inline: auto;
}
@media (min-width: 901px) {
  .contact-panel { background: rgba(5, 3, 2, 0.85); transform: perspective(1400px) rotateY(-1deg); }
}
@media (min-width: 901px) and (hover: hover) {
  .contact-panel { backdrop-filter: blur(14px); transition: transform .25s var(--ease-out); }
  .contact-panel:hover, .contact-panel:focus-within { transform: perspective(1400px) rotateY(0deg); }
}
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1rem; margin-block: 1.6rem; }
.contact-card { display: block; min-width: 0; padding: 1.2rem; border: 1px solid var(--line-soft); transition: border-color var(--t-color) var(--ease-press), transform var(--t-color) var(--ease-press); }
@media (hover: hover) { .contact-card:hover { border-color: var(--accent-bright); } }
.contact-card:active { transform: scale(.98); }
.contact-card h3 { font-size: 1rem; font-style: normal; margin-bottom: 0.4rem; overflow-wrap: anywhere; }
.contact-card p { color: var(--text-muted); font-size: 0.86rem; margin-bottom: 0.6rem; overflow-wrap: anywhere; }
.contact-card-cta { font-family: var(--mono); font-size: 0.76rem; color: var(--accent-bright); }
.contact-direct { display: flex; flex-wrap: wrap; gap: 1rem; }

/* =============================================================
   15. Footer
   ============================================================= */
.footer { padding-block: 2rem; padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; font-family: var(--mono); color: var(--text-dim); font-size: 0.78rem; }
.footer-top { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-bright); transition: transform var(--t-color) var(--ease-press); }
.trayectoria-credit { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; opacity: 0.95; transition: opacity var(--t-color) var(--ease-press), transform var(--t-color) var(--ease-press); }
@media (hover: hover) { .trayectoria-credit:hover { opacity: 1; } }
.footer-top:active, .trayectoria-credit:active { transform: scale(.97); }
.trayectoria-credit img { display: block; border-radius: 2px; }

/* =============================================================
   16. Retratos (regla del arquetipo, 26/9/2026): siempre tres fotos con el mismo marco dorado:
   1) portada, 2) «Sobre mí», 3) «Trayectoria». En escritorio cada una ocupa la columna que el texto
   deja libre; en móvil van en línea, a tamaño contenido.
   ============================================================= */
.hero-portrait, .story-portrait .marco, .trajectory-portrait .marco {
  border: 1px solid rgba(212, 175, 55, 0.45); padding: 10px; background: rgba(5, 3, 2, 0.6);
}
.hero-portrait img, .story-portrait img, .trajectory-portrait img { width: 100%; display: block; object-fit: cover; }
.hero-portrait { margin: 2.2rem 0 0; max-width: 100%; }
.hero-portrait img { aspect-ratio: 3 / 2; object-position: 70% 30%; }   /* móvil: apaisada, para no apilar dos retratos verticales seguidos */
.story-portrait, .trajectory-portrait { margin: 0 0 2rem; max-width: 320px; }
.story-portrait img { aspect-ratio: 2 / 3; }
.trajectory-portrait img { aspect-ratio: 2 / 3; object-position: center 12%; }

@media (min-width: 900px) {
  .hero .container > *:not(.hero-portrait) { max-width: 60%; }
  .hero .container > .hero-title { max-width: min(22ch, 60%); }
  .hero .container > .hero-title--largo { max-width: min(28ch, 60%); }
  .hero--sin-retrato .container > *:not(.hero-portrait) { max-width: none; }
  .hero--sin-retrato .container > .hero-title { max-width: 22ch; }
  .hero--sin-retrato .container > .hero-title--largo { max-width: 28ch; }
  .hero .container > .hero-portrait {
    position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
    width: 34%; max-width: 380px; margin: 0;
  }
  .hero-portrait img { aspect-ratio: 4 / 5; object-position: 74% 28%; }
}
@media (min-width: 1040px) {
  /* columna libre a todo lo alto de la sección; el marco se queda a la vista mientras se lee un texto largo */
  .story-portrait, .trajectory-portrait { position: absolute; top: 0; bottom: 0; width: 34%; max-width: 360px; margin: 0; }
  .story-portrait { left: var(--gutter); }
  .trajectory-portrait { right: var(--gutter); }
  .story-portrait .marco, .trajectory-portrait .marco { position: sticky; top: 6rem; }
}

/* =============================================================
   17. Robustez
   ============================================================= */
/* El velo de los titulares sobresale del texto; que no provoque scroll horizontal. */
html, body { overflow-x: clip; }
a[href^="mailto:"], .email { overflow-wrap: anywhere; }

/* =============================================================
   18. Movimiento reducido: nada se mueve ni se escala; la escena se pinta una sola vez (main.js)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn:active, .nav-link:active, .lang:active, .link-mono:active, .contact-card:active, .faq-summary:active,
  .footer-top:active, .trayectoria-credit:active { transform: none; }
  .contact-panel, .contact-panel:hover, .contact-panel:focus-within { transform: none; }
}
