/* =============================================================
   Trayectoria — Arquetipo: Spline Embed Premium
   Vitrina de producto en navy profundo e iridiscente: cian y magenta
   sobre fondo oscuro, tabla de especificaciones y tarjetas de borde fino.
   La portada es la foto del cliente a sangre bajo un velo (decisión del
   cliente, 6/10/2026); el emblema CSS y el recuadro lateral siguen
   existiendo como modos alternativos (hero.modo).

   Lote B (8/10/2026): selector de idioma en la cabecera, tira de secciones
   en móvil (sin hamburguesa), sin splash, sin parallax, degradado del botón
   estático, fondo sin background-attachment:fixed, objetivos de 44 px,
   :active y hover solo con ratón, portada móvil con la foto arriba.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #0a0a14;
  --bg-soft: #12122154;
  --ink: #f0f0f5;
  --ink-soft: rgba(240, 240, 245, 0.7);
  --ink-dim: rgba(240, 240, 245, 0.58); /* 26/9/2026: antes 0.44 → 6,16:1 sobre --bg, AA */
  --accent: #00d9ff;
  --accent-2: #ff00ea;
  --line: rgba(240, 240, 245, 0.12);
  /* colores como tokens (mismos valores por defecto) para que d.tema pueda sobrescribirlos */
  --bg-2: #1e1b3a;
  --accent-rgb: 0, 217, 255;
  --accent-2-rgb: 255, 0, 234;
  --nav-bg: rgba(10, 10, 20, 0.88);
  --btn-ink: #000;
  /* --bg en RGB para los velos de la portada; si d.tema cambia --bg debe cambiar este también */
  --bg-rgb: 10, 10, 20;

  --display: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Space Grotesk", monospace;

  --container: 1080px;
  --gutter: 1.4rem;
  --press: cubic-bezier(0.23, 1, 0.32, 1);
  --nav-h: 4rem;
}

/* =============================================================
   2. Reset y base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--nav-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* Fondo: color sólido + degradado fijo en un pseudoelemento (background-attachment:fixed repinta en cada scroll
   y iOS Safari lo ignora). */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(var(--accent-rgb), 0.1), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
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; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; color: var(--ink); }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

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

.kicker { font-family: var(--display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; }
section { position: relative; padding-block: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.hero { border-bottom: none; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 1rem; max-width: 22ch; }
.section-lede { color: var(--ink-soft); max-width: 60ch; margin-bottom: 2rem; font-weight: 300; }

/* Pulsación: respuesta inmediata en todo lo pulsable (solo transform, ≤160 ms) */
.btn, .nav-link, .nav-brand, .lang, .link-mono, .contact-card, .footer-top, .trayectoria-credit {
  transition: transform .16s var(--press), color .16s var(--press), background-color .16s var(--press), border-color .16s var(--press), filter .16s var(--press), opacity .16s var(--press);
}
.btn:active, .nav-link:active, .nav-brand:active, .lang:active, .link-mono:active, .contact-card:active, .footer-top:active, .trayectoria-credit:active { transform: scale(0.97); }

/* =============================================================
   3. Cabecera: marca · secciones · Contacto · idioma
   Escritorio: una fila fija. ≤860 px: fila 1 marca + Contacto + idioma; fila 2 tira
   de secciones desplazable (sin hamburguesa); la barra deja de ser fija.
   ============================================================= */
.nav { position: sticky; top: 0; z-index: 500; background: var(--nav-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: .6rem; padding: .35rem var(--gutter); min-height: var(--nav-h); }
.nav-brand { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; min-width: 44px; margin-right: .8rem; }
.nav-links { display: flex; align-items: center; gap: .1rem; min-width: 0; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .75rem; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.03em; color: var(--ink-soft); white-space: nowrap; }
@media (hover: hover) { .nav-link:hover { color: var(--accent); } }
.nav-link--cta { margin-left: auto; color: var(--bg); background: var(--accent); padding-inline: 1.1rem; font-weight: 600; font-size: 0.8rem; }
/* El CTA conserva su color y contraste en hover, foco y tras tocarlo (cian sobre fondo oscuro, 11:1) */
.nav-link--cta:focus-visible { color: var(--bg); }
@media (hover: hover) { .nav-link--cta:hover { color: var(--bg); filter: brightness(1.1); } }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem; font-family: var(--display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-soft); border: 1px solid var(--line); }
@media (hover: hover) { .lang:hover { color: var(--accent); border-color: var(--accent); } }
/* hueco para que el CTA no quede pegado si no hay enlaces de sección */
.nav-inner > .nav-links + .nav-link--cta { margin-left: auto; }

@media (max-width: 860px) {
  .nav { position: static; }
  html { scroll-padding-top: 1rem; }
  .nav-inner { flex-wrap: wrap; row-gap: 0; padding-block: .25rem 0; min-height: 0; }
  .nav-brand { flex: 1 1 0; margin-right: 0; overflow-wrap: anywhere; }
  .nav-link--cta { margin-left: 0; }
  .nav-links { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: calc(var(--gutter) - .75rem); border-top: 1px solid var(--line); }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links .nav-link { flex: 0 0 auto; }
  .nav-inner > .nav-links + .nav-link--cta { margin-left: 0; }
}

/* =============================================================
   4. Botones
   ============================================================= */
.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(--display); font-weight: 600; font-size: 0.875rem; text-align: center; min-width: 0; }
/* Degradado estático (antes en bucle infinito de 5 s). Texto casi negro: ≥ 6:1 sobre el magenta, ≥ 11:1 sobre el cian. */
.btn-iridescent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 220% 220%;
  background-position: 40% 50%;
  color: var(--btn-ink);
}
@media (hover: hover) { .btn-iridescent:hover { filter: brightness(1.12); } }
.btn-large { padding: 1rem 2.1rem; font-size: 0.95rem; min-height: 52px; }
.btn-ghost { border: 1px solid rgba(240, 240, 245, 0.28); color: var(--ink); }
@media (hover: hover) { .btn-ghost:hover { border-color: var(--accent); color: var(--accent); } }
.link-mono { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--display); font-size: 0.85rem; color: var(--accent); margin-right: 1.6rem; text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), 0.4); text-underline-offset: 4px; }
@media (hover: hover) { .link-mono:hover { text-decoration-color: currentColor; } }

/* =============================================================
   5. Resplandor que sigue al puntero (solo ratón fino, sin movimiento reducido).
   Un punto fijo que se mueve con transform; no repinta el degradado.
   ============================================================= */
.hero-glow, .contact-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow-dot {
  position: absolute; left: 50%; top: 30%; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), transparent 62%);
  transition: transform .2s var(--press); will-change: transform;
}
.contact-glow .glow-dot { top: 40%; background: radial-gradient(circle, rgba(var(--accent-2-rgb), 0.14), transparent 62%); }
@media (prefers-reduced-motion: reduce) { .glow-dot { transition: none; will-change: auto; } }

/* =============================================================
   6. Portada — base común y modo emblema (cubo CSS)
   ============================================================= */
.hero { position: relative; min-height: 94svh; display: flex; align-items: center; padding-top: 4rem; overflow: hidden; }
.hero > .hero-inner { width: 100%; min-width: 0; }
.hero-inner { z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }

.emblem-stage { perspective: 900px; margin-block: 1.6rem 2.2rem; }
.emblem-cube {
  position: relative; width: 168px; height: 168px; margin-inline: auto;
  transform-style: preserve-3d;
  transform: rotateX(-14deg) rotateY(24deg);
}
.emblem-face {
  position: absolute; inset: 0; width: 168px; height: 168px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(var(--accent-2-rgb), 0.08));
  font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--ink);
}
.emblem-face--front { transform: translateZ(84px); }
.emblem-face--back { transform: rotateY(180deg) translateZ(84px); }
.emblem-face--right { transform: rotateY(90deg) translateZ(84px); }
.emblem-face--left { transform: rotateY(-90deg) translateZ(84px); }
.emblem-face--top { transform: rotateX(90deg) translateZ(84px); background: rgba(var(--accent-rgb), 0.08); }
.emblem-face--bottom { transform: rotateX(-90deg) translateZ(84px); background: rgba(var(--accent-2-rgb), 0.08); }

.hero-tagline { position: relative; font-size: clamp(1.9rem, 4.6vw, 2.9rem); max-width: 18ch; margin-bottom: 1.1rem; }
/* Máquina de escribir (solo modo emblema, solo con JS y sin movimiento reducido): el texto completo sigue en el DOM */
.hero-tagline.is-typing .tw-full { opacity: 0; }
.hero-tagline .tw-typed { position: absolute; inset: 0; }
.hero-tagline.is-typing .tw-typed::after { content: "|"; color: var(--accent); animation: caret-blink 0.9s step-end infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
.hero-roles { font-size: 0.9rem; color: var(--ink-dim); letter-spacing: 0.02em; margin-bottom: 2rem; font-weight: 300; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; justify-content: center; }

/* =============================================================
   7. Secciones de contenido
   ============================================================= */
.feature-head { display: flex; align-items: center; gap: 0.9rem; }
.feature-shape {
  width: 14px; height: 14px; flex-shrink: 0;
  border: 1px solid var(--accent);
  transform: perspective(200px) rotateX(35deg) rotateY(35deg);
}
.feature-body p { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 62ch; font-weight: 300; }
.feature-lede { color: var(--ink); font-size: 1.1rem; max-width: 56ch; margin-bottom: 1rem; }
.feature-personal { color: var(--ink-soft); font-size: 0.95rem; }
.feature-links { margin-top: 1rem; display: flex; flex-wrap: wrap; column-gap: 0; }

/* Sobre mí con retrato: la foto acompaña al texto (queda fija junto a él en textos largos) */
.feature-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start; }
.feature-split--solo { grid-template-columns: minmax(0, 1fr); }
.feature-split > * { min-width: 0; }
.feature-photo { position: relative; margin-top: 0.4rem; }
.feature-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); }
.feature-photo::after { content: ""; position: absolute; inset: 12px -12px -12px 12px; border: 1px solid rgba(var(--accent-rgb), 0.35); z-index: -1; }
@media (min-width: 821px) { .feature-photo { position: sticky; top: calc(var(--nav-h) + 1.5rem); } }
@media (max-width: 820px) { .feature-split { grid-template-columns: 1fr; } .feature-photo { max-width: 420px; margin-right: 12px; } }

/* =============================================================
   8. Tabla de especificaciones (trayectoria / formación)
   ============================================================= */
.specs-group-title { font-family: var(--display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin: 1.6rem 0 0.6rem; }
.specs-table { display: flex; flex-direction: column; margin-top: 1.4rem; }
.specs-group-title + .specs-table { margin-top: 0; }
.specs-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 1.6rem; padding-block: 1.2rem; border-top: 1px solid var(--line); font-family: var(--mono); }
.specs-row:first-child { border-top: none; }
.specs-row--current .specs-key { color: var(--accent); }
.specs-key { font-size: 0.85rem; color: var(--ink-dim); align-self: start; min-width: 0; }
.specs-value { display: flex; flex-direction: column; gap: 0.35rem; font-family: var(--sans); min-width: 0; overflow-wrap: anywhere; }
.specs-value strong { font-family: var(--display); font-weight: 600; font-size: 1.02rem; }
.specs-desc { color: var(--ink-soft); font-size: 0.95rem; font-weight: 300; }
.specs-tags { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-dim); }

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

/* =============================================================
   9. Capacidades (ponencias). Con 1 grupo no se estira; con 4, 2×2.
   ============================================================= */
.capability-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 1.2rem; margin-top: 1.6rem; }
.capability-grid--1 { grid-template-columns: minmax(0, 520px); }
.capability-grid--4 { max-width: 780px; }
.capability-card { border: 1px solid var(--line); padding: 1.5rem; min-width: 0; }
.capability-count { font-family: var(--display); font-size: 1.6rem; color: var(--accent); font-weight: 700; }
.capability-card h3 { font-size: 1.05rem; margin: 0.6rem 0 0.9rem; overflow-wrap: anywhere; }
.capability-examples li { font-size: 0.9rem; color: var(--ink-soft); padding-block: 0.4rem; border-top: 1px solid var(--line); font-weight: 300; overflow-wrap: anywhere; }
.capability-examples li:first-child { border-top: none; }

/* =============================================================
   10. Lista mínima (artículos)
   ============================================================= */
.minimal-list { display: flex; flex-direction: column; margin-top: 1.4rem; margin-bottom: 1.2rem; }
.minimal-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1.2rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.minimal-row:first-child { border-top: none; }
.minimal-index { font-family: var(--display); color: var(--accent); font-weight: 700; }
.minimal-row span:last-child { color: var(--ink-soft); font-weight: 300; font-size: 0.95rem; min-width: 0; overflow-wrap: anywhere; }
.minimal-row strong { color: var(--ink); font-weight: 600; font-family: var(--display); }

/* =============================================================
   11. Prensa
   ============================================================= */
.testimonial-quote { font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 300; color: var(--ink); max-width: 68ch; margin-bottom: 1rem; }
.testimonial-source { font-family: var(--display); color: var(--ink-soft); font-size: 0.85rem; }

/* =============================================================
   12. Colaboraciones
   ============================================================= */
.collab-section { text-align: center; }
.collab-list { display: flex; flex-wrap: wrap; justify-content: center; column-gap: .7rem; font-family: var(--display); font-size: 0.9rem; color: var(--ink-soft); letter-spacing: 0.02em; line-height: 2.2; }
.collab-list li + li::before { content: "/"; color: var(--accent); margin-right: .7rem; }

/* =============================================================
   13. Contacto — CTA final iridiscente
   ============================================================= */
.contact-section { border-bottom: none; text-align: center; overflow: hidden; }
.contact-section .container { z-index: 1; }
.contact-section .section-title { margin-inline: auto; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1rem; margin-block: 1.8rem; text-align: left; }
.contact-cards--1 { grid-template-columns: minmax(0, 360px); justify-content: center; }
.contact-cards--5 { max-width: 720px; margin-inline: auto; }
.contact-card { display: block; padding: 1.3rem; border: 1px solid var(--line); min-width: 0; }
@media (hover: hover) { .contact-card:hover { border-color: var(--accent); } }
.contact-card h3 { font-size: 1rem; margin-bottom: 0.4rem; overflow-wrap: anywhere; }
.contact-card p { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 0.6rem; font-weight: 300; }
.contact-card-cta { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--display); font-size: 0.85rem; color: var(--accent); }
.contact-direct { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.btn.email { overflow-wrap: anywhere; }

@media (max-width: 700px) { .contact-cards, .contact-cards--5 { grid-template-columns: minmax(0, 1fr); } }

/* =============================================================
   14. Pie
   ============================================================= */
.footer { padding-block: 1.8rem calc(1.8rem + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.2rem 1rem; font-size: 0.85rem; color: var(--ink-dim); }
.footer-note { min-width: 0; }
.footer-top { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.trayectoria-credit { display: inline-flex; align-items: center; min-height: 44px; gap: 0.35rem; opacity: 0.95; }
@media (hover: hover) { .trayectoria-credit:hover { opacity: 1; } }
.trayectoria-credit img { display: block; border-radius: 2px; }

/* =============================================================
   15. Banda de cifras (dentro de la portada)
   ============================================================= */
.stats-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 1rem; width: 100%; max-width: 820px; margin-top: 2.6rem; text-align: left; }
.stats-band-item { container-type: inline-size; border-top: 1px solid var(--line); padding-top: 0.9rem; min-width: 0; }
.stats-band-value { display: block; font-family: var(--display); font-weight: 700; font-size: min(1.7rem, calc(100cqi / (var(--n, 4) * 0.66))); line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.stats-band-label { display: block; font-size: 0.9rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.stats-band-note { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.2rem; overflow-wrap: anywhere; }

/* =============================================================
   16. Portada modo retrato: la foto del cliente ocupa toda la portada, a sangre.
   Velo oscuro para que el texto sea legible; el punto focal se ajusta con
   hero.foco_x / hero.foco_y (object-position, en %).
   ============================================================= */
.hero--retrato {
  min-height: min(92svh, 60rem); align-items: flex-end;
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 6vw, 5rem);
}
.hero--retrato .hero-portrait { position: absolute; inset: 0; z-index: 0; margin: 0; width: 100%; max-width: none; height: 100%; }
.hero--retrato .hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 25%); border: none; }
/* Velo dentro de la figura: así el fundido inferior (máscara) afecta a foto y velo por igual */
.hero--retrato .hero-portrait::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb), 0.05) 0%, rgba(var(--bg-rgb), 0.3) 45%, rgba(var(--bg-rgb), 0.95) 94%),
    linear-gradient(100deg, rgba(var(--bg-rgb), 0.92) 0%, rgba(var(--bg-rgb), 0.9) 42%, rgba(var(--bg-rgb), 0.08) 70%);
}
/* Fundido inferior: la portada se funde con el fondo de la página (sin escalón entre el velo y el degradado) */
.hero--retrato .hero-portrait { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 84%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 84%, transparent 100%); }
.hero--retrato .hero-glow { z-index: 2; }
.hero-inner--retrato { position: relative; z-index: 3; display: block; text-align: left; width: 100%; }
.hero-portrait-copy { max-width: 620px; }
.hero-portrait-copy .kicker { margin-bottom: 1.2rem; }
.hero-name { font-size: clamp(2.3rem, 5.6vw, 4rem); letter-spacing: -0.025em; line-height: 1.04; margin-bottom: 1.1rem; overflow-wrap: anywhere; hyphens: auto; }
.hero-name--largo { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.hero-tagline--sub { font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem, 2.2vw, 1.55rem); color: var(--accent-2); max-width: 26ch; margin-bottom: 1rem; line-height: 1.3; }
.hero-tagline--larga { font-size: clamp(1.1rem, 1.9vw, 1.35rem); max-width: 36ch; }
.hero-inner--retrato .hero-roles, .hero-inner--lateral .hero-roles { margin-bottom: 2rem; max-width: 48ch; line-height: 1.6; color: var(--ink-soft); font-size: 0.95rem; }
.hero-inner--retrato .hero-cta, .hero-inner--lateral .hero-cta { justify-content: flex-start; }
.hero-inner--retrato .stats-band { max-width: 660px; margin-top: clamp(2rem, 5vw, 3rem); column-gap: 1.6rem; }

/* ≤860 px: la foto va arriba (a todo el ancho, con la cara en la mitad superior) y se funde hacia el texto,
   que arranca sobre su borde inferior; antes, un velo uniforme la dejaba como textura casi negra. */
@media (max-width: 860px) {
  .hero--retrato { --foto-h: min(105vw, 56svh); display: block; min-height: 0; padding-block: calc(var(--foto-h) - 4rem) 2.5rem; }
  .hero--retrato .hero-portrait { inset: 0 0 auto 0; height: var(--foto-h); -webkit-mask-image: linear-gradient(180deg, #000 0, #000 52%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 52%, transparent 100%); }
  .hero--retrato .hero-portrait img { object-position: var(--fx, 80%) var(--fy, 22%); }
  .hero--retrato .hero-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.35) 0%, rgba(var(--bg-rgb), 0.05) 20%, rgba(var(--bg-rgb), 0.6) 52%, rgba(var(--bg-rgb), 0.92) 80%, rgb(var(--bg-rgb)) 100%); }
  .hero--retrato .hero-glow, .hero--lateral .hero-glow { display: none; }
  .hero-portrait-copy { max-width: 100%; }
  .hero-inner--retrato .stats-band { gap: .6rem; }
}

/* =============================================================
   17. Portada modo retrato-lateral: texto a la izquierda y foto enmarcada a la derecha
   ============================================================= */
.hero--lateral { min-height: 0; align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero-inner--lateral { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; text-align: left; width: 100%; }
.hero--lateral .hero-portrait-copy { max-width: none; min-width: 0; }
.hero--lateral .hero-portrait { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 440px; }
.hero--lateral .hero-portrait img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); border: 1px solid var(--line); }
.hero--lateral .hero-portrait::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; z-index: 0; border: 1px solid rgba(var(--accent-2-rgb), 0.45); }
.hero--lateral .hero-portrait::after { content: ""; position: absolute; inset: 18% -22% -12% 30%; z-index: 0; pointer-events: none; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18), transparent 65%); }
.hero-inner--lateral .stats-band { grid-column: 1 / -1; max-width: none; margin-top: 1rem; }
@media (max-width: 860px) {
  .hero-inner--lateral { grid-template-columns: minmax(0, 1fr); }
  .hero--lateral .hero-portrait { justify-self: start; max-width: 360px; grid-row: 1; margin: 14px 0 0 14px; }
}

/* =============================================================
   18. Robustez y movimiento reducido
   ============================================================= */
a[href^="mailto:"], .email { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:active, .nav-link:active, .nav-brand:active, .lang:active, .link-mono:active, .contact-card:active, .footer-top:active, .trayectoria-credit:active { transform: none; }
}
@media print {
  body::before { display: none; }
  .nav, .hero-glow, .contact-glow { display: none; }
}

/* Bloques opcionales por cliente (12/10/2026): empresas y galería */
.venture-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1.2rem; margin-top: 1.6rem; align-items: start; }
.venture-card { border: 1px solid var(--line); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.venture-role { font-family: var(--display); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.venture-card h3 { font-size: 1.1rem; overflow-wrap: anywhere; }
.venture-card p { color: var(--ink-soft); font-size: 0.92rem; font-weight: 300; overflow-wrap: anywhere; }
.venture-card .link-mono { margin-top: 0.2rem; margin-right: 0; overflow-wrap: anywhere; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1rem; margin-top: 1.6rem; align-items: start; }
.gallery-item { min-width: 0; }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }
.gallery-item figcaption { font-size: 0.82rem; color: var(--ink-dim); margin-top: 0.5rem; }
