/* ============================================================================
   ARCA — Capital privado en activos reales
   Hoja de estilos principal
   ----------------------------------------------------------------------------
   ÍNDICE
   0.  Variables (temas día/noche, tipografía, espaciado)
   1.  Reset y base
   2.  Tipografía y utilidades
   3.  Capas globales (grano, cursor, progreso de scroll)
   4.  Preloader
   5.  Header / controles (idioma, tema)
   6.  Hero
   7.  Utilidades de reveal (animación al hacer scroll)
   8.  Secciones — base
   9.  Manifiesto
   10. Modelo / pilares
   11. Cifras
   12. Enfoque / ventaja
   13. Contacto / formulario
   14. Footer
   15. Transición de tema
   16. Responsive
   17. prefers-reduced-motion
   ============================================================================ */

/* ============================================================
   0 · VARIABLES
   ============================================================ */
:root {
  /* Tipografías */
  /* Tipografía tech-premium: Satoshi (display + cuerpo) · Geist Mono (acentos) */
  --font-display: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-sans   : 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono   : 'Geist Mono', ui-monospace, 'SF Mono', 'Roboto Mono', Menlo, monospace;

  /* Escala tipográfica fluida */
  --fs-hero   : clamp(4.5rem, 20vw, 18rem);
  --fs-display-xl: clamp(2.6rem, 7vw, 6rem);
  --fs-display-l : clamp(2rem, 5vw, 4.25rem);
  --fs-display-m : clamp(1.7rem, 3.4vw, 2.75rem);
  --fs-lead   : clamp(1.15rem, 1.4vw, 1.5rem);
  --fs-body   : clamp(1rem, 0.6vw + 0.9rem, 1.15rem);
  --fs-small  : 0.82rem;
  --fs-label  : 0.72rem;

  /* Espaciado y layout */
  --maxw   : 1280px;
  --gutter : clamp(1.25rem, 5vw, 5.5rem);
  --section-pad: clamp(5.5rem, 12vw, 11rem);

  /* Movimiento */
  --ease      : cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo : cubic-bezier(0.16, 1, 0.30, 1);
  --theme-dur : 0.75s;

  --header-h: 5rem;
}

/* --- TEMA NOCHE (por defecto) --- */
:root,
[data-theme="night"] {
  --bg        : #0A0A0C;
  --bg-2      : #0E0E12;
  --surface   : #131318;
  --surface-2 : #17171D;
  --text      : #ECE8E1;
  --text-dim  : #A39E94;
  --text-faint: #6E6A62;
  --line      : rgba(236, 232, 225, 0.10);
  --line-strong: rgba(236, 232, 225, 0.20);
  --accent       : #C2A36B;
  --accent-bright: #E4C893;
  --accent-deep  : #9C7B3F;
  --accent-contrast: #0A0A0C;
  --glow      : rgba(194, 163, 107, 0.18);
  --grain-opacity: 0.05;
  --shadow    : 0 30px 80px -40px rgba(0, 0, 0, 0.8);
  --hero-fade : #0A0A0C;
  --panel     : rgba(20, 20, 26, 0.55);
  --blueprint : 0.06;
  /* Profundidad del wordmark / titulares */
  --wordmark-glow   : rgba(226, 200, 140, 0.40);
  --wordmark-drop   : rgba(0, 0, 0, 0.55);
  --display-shadow  : 0 2px 38px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* --- TEMA DÍA --- */
[data-theme="day"] {
  --bg        : #F4F1EA;
  --bg-2      : #EEEADF;
  --surface   : #FFFFFF;
  --surface-2 : #FBF8F1;
  --text      : #1A1813;
  --text-dim  : #5C574D;
  --text-faint: #928C80;
  --line      : rgba(26, 24, 19, 0.12);
  --line-strong: rgba(26, 24, 19, 0.24);
  --accent       : #9C7B3F;
  --accent-bright: #B5934F;
  --accent-deep  : #7E6230;
  --accent-contrast: #FFFFFF;
  --glow      : rgba(156, 123, 63, 0.14);
  --grain-opacity: 0.035;
  --shadow    : 0 30px 70px -45px rgba(60, 50, 30, 0.45);
  --hero-fade : #F4F1EA;
  --panel     : rgba(255, 252, 246, 0.55);
  --blueprint : 0.07;
  /* Profundidad del wordmark / titulares */
  --wordmark-glow   : rgba(180, 140, 70, 0.16);
  --wordmark-drop   : rgba(80, 62, 30, 0.14);
  --display-shadow  : 0 1px 22px rgba(70, 55, 30, 0.07);
  color-scheme: light;
}

/* ============================================================
   1 · RESET Y BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.js.has-cursor, html.js.has-cursor * { cursor: none; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* Bloquea el scroll mientras el preloader está activo o el menú móvil abierto */
body.is-loading { overflow: hidden; height: 100vh; }
body.menu-open { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; }
ul { list-style: none; }
/* Énfasis: en la dirección tech-sans no usamos cursiva clásica, sino acento. */
em { font-style: normal; color: var(--accent); }

::selection { background: var(--accent); color: var(--accent-contrast); }

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

/* ============================================================
   2 · TIPOGRAFÍA Y UTILIDADES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.display-xl, .display-l, .display-m {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.035em;
  /* Profundidad muy sutil para separar del fondo (ajustada por tema) */
  text-shadow: var(--display-shadow);
}
.display-xl { font-size: var(--fs-display-xl); font-weight: 600; }
.display-l  { font-size: var(--fs-display-l); }
.display-m  { font-size: var(--fs-display-m); }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.section-eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section-index {
  position: absolute;
  top: var(--section-pad);
  right: var(--gutter);
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  opacity: 0.14;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
.section-index::before { content: "/ "; opacity: 0.6; }

/* ============================================================
   3 · CAPAS GLOBALES
   ============================================================ */

/* Fondo arquitectónico (blueprint) — fijo, detrás de todo el contenido.
   Las capas se desplazan a distinta velocidad ligadas al scroll (main.js). */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}
.backdrop__svg {
  position: absolute;
  top: -8%; left: -8%;
  width: 116%; height: 116%;
  color: var(--accent);
}
.backdrop .arch-far  { opacity: calc(var(--blueprint) * 0.7); will-change: transform; }
.backdrop .arch-mid  { opacity: var(--blueprint); will-change: transform; }
.backdrop .arch-near { opacity: calc(var(--blueprint) * 0.8); will-change: transform; }
.backdrop__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
              var(--bg) 0%, transparent 14%, transparent 86%, var(--bg) 100%);
}

/* El contenido va por encima del fondo */
.site-header { z-index: 7000; }
main, .site-footer { position: relative; z-index: 1; }
.hero, .section { position: relative; z-index: 1; }

/* Grano / textura cinematográfica */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 9000;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  animation: grain 6s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-3%, 4%); }
  80% { transform: translate(5%, 2%); }
}

/* Barra de progreso de scroll */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  z-index: 8000;
  pointer-events: none;
  background: transparent;
}
.scroll-progress__fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-bright));
  box-shadow: 0 0 12px var(--glow);
}

/* Cursor personalizado */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9500;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: normal;
}
html.has-cursor .cursor { opacity: 1; }
.cursor__dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s;
}
.cursor__ring {
  position: fixed;
  top: 0; left: 0;
  width: 38px; height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease), height 0.4s var(--ease),
              border-color 0.4s var(--ease), background 0.4s var(--ease);
}
html.cursor-link .cursor__ring {
  width: 60px; height: 60px;
  border-color: var(--accent);
  background: var(--glow);
}
html.cursor-link .cursor__dot { width: 0; height: 0; }
html.cursor-text .cursor__ring { width: 4px; height: 28px; border-radius: 2px; border-color: var(--accent); }
html.cursor-text .cursor__dot { width: 0; height: 0; }
html.cursor-card .cursor__ring { width: 80px; height: 80px; border-color: var(--accent); background: transparent; }

/* ============================================================
   4 · PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.preloader.is-done { pointer-events: none; }
.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.preloader__mark {
  width: 64px; height: 64px;
  color: var(--accent);
}
.preloader__mark svg { width: 100%; height: 100%; overflow: visible; }
.pl-draw {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: plDraw 0.75s var(--ease-expo) forwards;
}
.pl-draw:nth-child(2) { animation-delay: 0.08s; }
.pl-draw:nth-child(3) { animation-delay: 0.16s; }
.pl-draw:nth-child(4) { animation-delay: 0.24s; }
@keyframes plDraw { to { stroke-dashoffset: 0; } }

.preloader__word {
  display: flex;
  gap: 0.5em;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  color: var(--text);
}
.preloader__word span {
  opacity: 0;
  transform: translateY(14px);
  animation: plWord 0.5s var(--ease) forwards;
}
.preloader__word span:nth-child(1) { animation-delay: 0.30s; }
.preloader__word span:nth-child(2) { animation-delay: 0.38s; }
.preloader__word span:nth-child(3) { animation-delay: 0.46s; }
.preloader__word span:nth-child(4) { animation-delay: 0.54s; }
@keyframes plWord { to { opacity: 1; transform: translateY(0); } }

.preloader__bar {
  width: 120px; height: 1px;
  background: var(--line-strong);
  overflow: hidden;
}
.preloader__fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--accent);
  animation: plBar 0.95s var(--ease) 0.15s forwards;
}
@keyframes plBar { to { transform: scaleX(1); } }

/* Salida del preloader (gestionada por JS añadiendo .is-hiding) */
.preloader.is-hiding {
  transform: translateY(-100%);
  transition: transform 0.7s var(--ease-expo);
}

/* ============================================================
   5 · HEADER / CONTROLES
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  mix-blend-mode: normal;
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease),
              border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Al hacer scroll: leve velo translúcido para mantener legibles los controles */
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom-color: var(--line);
}
.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  padding-left: 0.24em;
  color: var(--text);
  transition: color 0.4s var(--ease);
}
.brand:hover { color: var(--accent); }

.controls {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
}

/* Selector de idioma */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  font-weight: 400;
}
.lang-btn {
  color: var(--text-faint);
  transition: color 0.35s var(--ease);
  position: relative;
  padding: 0.2rem 0;
}
.lang-btn::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease);
}
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"] { color: var(--accent); }
.lang-btn[aria-pressed="true"]::after { transform: scaleX(1); }
.lang-sep { color: var(--line-strong); }

/* Toggle de tema */
.theme-toggle {
  display: inline-flex;
  align-items: center;
}
.theme-toggle__track {
  position: relative;
  width: 52px; height: 26px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.theme-toggle__thumb {
  position: absolute;
  top: 50%; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease);
}
[data-theme="day"] .theme-toggle__thumb { transform: translate(26px, -50%); }
.theme-toggle__thumb svg {
  position: absolute;
  width: 12px; height: 12px;
  stroke: var(--accent-contrast);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.icon-sun { stroke: var(--accent-contrast); }
[data-theme="night"] .icon-sun  { opacity: 0; transform: rotate(-90deg) scale(0.4); }
[data-theme="night"] .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="day"] .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.4); }
[data-theme="day"] .icon-sun  { opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle:hover .theme-toggle__track { border-color: var(--accent); }

/* --- Navegación principal (centrada) --- */
.main-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}
.nav-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-dim);
  padding: 0.3rem 0;
  transition: color 0.35s var(--ease);
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--accent); }
.nav-link.is-active::after { transform: scaleX(1); transform-origin: 0 50%; }

/* --- Botón hamburguesa (solo móvil) --- */
.nav-toggle {
  display: none;
  width: 30px; height: 18px;
  position: relative;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), background 0.4s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }
.nav-toggle.is-open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* --- Menú móvil (panel a pantalla completa) --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 6500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  padding: var(--header-h) var(--gutter) 4rem;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 0.5rem 0;
  opacity: 0;
  transform: translateY(16px);
  transition: color 0.35s var(--ease);
}
.mobile-menu.is-open .mobile-menu__link {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-expo), color 0.35s var(--ease);
}
.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.22s; }
.mobile-menu__link.is-active { color: var(--accent); }
.mobile-menu__sep {
  width: 40px; height: 1px;
  background: var(--line-strong);
  margin: 1.5rem 0;
}
@media (max-width: 1000px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
}
@media (min-width: 1001px) {
  .mobile-menu { display: none; }
}

/* ============================================================
   6 · HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding-block: var(--header-h) 0;
}
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%; height: 100%;
}
.hero__arch {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: min(115vh, 130%);
  max-width: 1100px;
  aspect-ratio: 1000 / 620;
  z-index: 1;
  color: var(--accent);
  opacity: 0.22;
  will-change: transform;
}
.hero__arch svg { width: 100%; height: 100%; overflow: visible; }
.arch-line {
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
}
html.anim-on .arch-line { stroke-dashoffset: 2600; }
.hero__arch.is-revealed .arch-line { animation: archDraw 2.6s var(--ease-expo) forwards; }
.hero__arch.is-revealed .arch-line:nth-child(2) { animation-delay: 0.12s; }
.hero__arch.is-revealed .arch-line:nth-child(3) { animation-delay: 0.24s; }
.hero__arch.is-revealed .arch-line:nth-child(4) { animation-delay: 0.36s; }
.hero__arch.is-revealed .arch-line:nth-child(5) { animation-delay: 0.5s; }
@keyframes archDraw { to { stroke-dashoffset: 0; } }

.hero__glow {
  position: absolute;
  top: 42%; left: 50%;
  width: 80vw; height: 80vw;
  max-width: 900px; max-height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  z-index: 0;
  pointer-events: none;
  animation: glowPulse 9s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.08); }
}
/* Degradado inferior para fundir el hero con el resto */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 30%;
  background: linear-gradient(to bottom, transparent, var(--hero-fade));
  z-index: 2;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding-inline: var(--gutter);
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
}
.hero__wordmark {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.03em;
  display: flex;
  justify-content: center;
  gap: 0.005em;
  color: var(--text);
  /* Profundidad: separa el texto del fondo con una sombra muy suave */
  filter: drop-shadow(0 8px 34px var(--wordmark-drop));
  will-change: transform, filter;
}
/* Halo de luz dorada tras el wordmark (absoluto → no altera el layout flex) */
.hero__wordmark::before {
  content: "";
  position: absolute;
  left: 50%; top: 52%;
  width: 116%; height: 150%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, var(--wordmark-glow) 0%, transparent 64%);
  filter: blur(34px);
  z-index: -1;
  pointer-events: none;
}
.hero__wordmark .char {
  display: inline-block;
  will-change: transform;
  color: var(--text);
}
/* Relleno de degradado por letra (técnica robusta con nido inline-block) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__wordmark .char {
    background-image: linear-gradient(180deg, var(--text) 0%, var(--accent) 175%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}
/* Estado inicial de la entrada cinética (solo con animaciones activas).
   El desplazamiento (transform) lo gestiona GSAP en main.js para evitar
   conflictos px/%. Aquí solo ocultamos opacidad para impedir destellos. */
html.anim-on .hero__wordmark .char,
html.anim-on .hero__eyebrow,
html.anim-on .hero__sub { opacity: 0; }

.hero__claim {
  font-family: var(--font-display);
  font-size: var(--fs-display-m);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin-top: clamp(1.5rem, 3vw, 2.4rem);
  color: var(--text);
}
.hero__claim .line-mask { display: block; overflow: hidden; padding-block: 0.06em; }
.hero__claim .line { display: block; will-change: transform; }
.hero__claim em { color: var(--accent); font-weight: 500; }

.hero__sub {
  margin-top: clamp(1.4rem, 2.5vw, 2rem);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 400;
}

/* Indicador de scroll */
.scroll-indicator {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  color: var(--text-faint);
}
.scroll-indicator__label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.4s var(--ease);
}
.scroll-indicator:hover .scroll-indicator__label { color: var(--accent); }
.scroll-indicator__line {
  position: relative;
  width: 1px; height: 52px;
  background: var(--line-strong);
  overflow: hidden;
}
.scroll-indicator__dot {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 40%;
  background: var(--accent);
  animation: scrollDot 2.2s var(--ease) infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(-100%); }
  60%, 100% { transform: translateY(280%); }
}

/* ============================================================
   7 · UTILIDADES DE REVEAL
   ----------------------------------------------------------------
   Estado oculto SOLO cuando .anim-on está activo (GSAP disponible
   y sin reduced-motion). Sin JS o con reduced-motion: todo visible.
   ============================================================ */
html.anim-on .reveal       { opacity: 0; transform: translateY(28px); }
html.anim-on .reveal-fade  { opacity: 0; }
html.anim-on .reveal-card  { opacity: 0; transform: translateY(40px); }
html.anim-on .reveal-line  { opacity: 0; transform: translateY(0.4em); filter: blur(6px); }

/* ============================================================
   8 · SECCIONES — BASE
   ============================================================ */
.section {
  position: relative;
  padding-block: var(--section-pad);
}
.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }

/* ============================================================
   9 · MANIFIESTO
   ============================================================ */
.manifesto .container { position: relative; }
.manifesto__headline {
  max-width: 16ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.manifesto__headline .reveal-line { display: block; }
.manifesto__headline .reveal-line:last-child { color: var(--accent); }
.manifesto__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  max-width: 56ch;
  margin-left: auto;
}
.manifesto__body p {
  font-size: var(--fs-lead);
  color: var(--text-dim);
  line-height: 1.6;
}
.manifesto__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 1rem;
}
.manifesto__tags li {
  font-size: var(--fs-small);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.manifesto__tags li:not(:last-child)::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* ============================================================
   10 · MODELO / PILARES
   ============================================================ */
/* Panel con bordes superior/inferior difuminados: se funde con el fondo sin
   crear una línea de corte (especialmente visible en modo noche). */
.model {
  background: linear-gradient(to bottom,
    transparent 0,
    var(--panel) clamp(3rem, 10vh, 9rem),
    var(--panel) calc(100% - clamp(3rem, 10vh, 9rem)),
    transparent 100%);
}
.model__headline { max-width: 18ch; }
.model__headline .reveal-line { display: block; }
.model__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.pillar {
  background: var(--bg-2);
  padding: clamp(2.2rem, 4vw, 3.6rem) clamp(1.8rem, 3vw, 3rem);
  min-height: clamp(16rem, 26vw, 22rem);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.6s var(--ease);
  overflow: hidden;
}
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.6s var(--ease);
}
.pillar:hover { background: var(--surface); }
.pillar:hover::before { transform: scaleX(1); }
.pillar__num {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: auto;
  opacity: 0.85;
}
.pillar__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.12;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.pillar__text {
  color: var(--text-dim);
  font-size: var(--fs-body);
  max-width: 36ch;
}

/* ============================================================
   11 · CIFRAS
   ============================================================ */
.figures { text-align: center; }
.figures__headline {
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}
.figures__headline .reveal-line { display: block; }
.figures__headline .reveal-line:last-child { color: var(--accent); }
.figures__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}
.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem clamp(0.5rem, 1.6vw, 1.4rem);
}
/* Zona de la cifra de altura FIJA: las cuatro comparten línea base (las cifras
   se alinean abajo) y la misma posición del círculo de acento. */
.stat__figure {
  position: relative;
  width: 100%;
  height: clamp(4.2rem, 7.5vw, 5.6rem);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.stat__circle {
  position: absolute;
  left: 50%; top: 50%;
  /* Centrado con `translate` (independiente de `transform`) para que GSAP
     pueda animar `scale()` sin descentrar. */
  translate: -50% -50%;
  width: clamp(4.5rem, 8vw, 7rem);
  height: clamp(4.5rem, 8vw, 7rem);
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  z-index: 0;
  will-change: transform;
}
.stat__value {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.9vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-shadow: var(--display-shadow);
  white-space: nowrap;       /* las cifras numéricas no se parten */
}
.stat__value--text { font-size: clamp(2rem, 3.6vw, 3.1rem); white-space: nowrap; }
.stat__value--sm   { font-size: clamp(1.5rem, 2.7vw, 2.3rem); line-height: 1.12; white-space: normal; }
.stat__label {
  position: relative;
  z-index: 1;
  margin-top: 1.4rem;
  min-height: 2.7em;            /* iguala etiquetas de 1 y 2 líneas */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-faint);
  max-width: 18ch;
}

/* Divisores verticales centrados, todos a la misma altura (desktop) */
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: calc(clamp(1.5rem, 3vw, 2.5rem) / -2);
  top: 50%;
  translate: 0 -50%;
  width: 1px;
  height: 68%;
  background: var(--line);
}

/* ============================================================
   12 · ENFOQUE / VENTAJA
   ============================================================ */
.approach {
  background: linear-gradient(to bottom,
    transparent 0,
    var(--panel) clamp(3rem, 10vh, 9rem),
    var(--panel) calc(100% - clamp(3rem, 10vh, 9rem)),
    transparent 100%);
}
.approach__head {
  display: flex;
  flex-direction: column;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.approach__headline { max-width: 16ch; }
.approach__headline .reveal-line { display: block; }
.approach__headline .reveal-line:last-child { color: var(--accent); }
.approach__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 8vw, 7rem);
}
.advantage {
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.advantage__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  font-weight: 400;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}
.advantage__title::before {
  content: "";
  display: inline-block;
  width: 0.5rem; height: 0.5rem;
  margin-right: 0.85rem;
  background: var(--accent);
  vertical-align: middle;
  transform: rotate(45deg);
}
.advantage__text {
  color: var(--text-dim);
  font-size: var(--fs-body);
  max-width: 38ch;
}
.approach__statement {
  margin-top: clamp(4rem, 8vw, 7rem);
  font-family: var(--font-display);
  font-size: var(--fs-display-m);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.22;
  max-width: 24ch;
  color: var(--text);
}

/* ============================================================
   13 · CONTACTO / FORMULARIO
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.contact__intro { position: relative; }
.contact__headline { margin-bottom: 1.8rem; }
.contact__invite {
  color: var(--text-dim);
  font-size: var(--fs-lead);
  max-width: 34ch;
}

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.1rem clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.field--full { grid-column: 1 / -1; }

/* Honeypot oculto */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.field { position: relative; }
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 0.9rem 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--text);
  resize: vertical;
  transition: border-color 0.4s var(--ease);
}
.field textarea { min-height: 3rem; }
.field input:focus,
.field textarea:focus { outline: none; }
.field label {
  position: absolute;
  left: 0; top: 0.9rem;
  font-size: var(--fs-body);
  color: var(--text-faint);
  pointer-events: none;
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}
/* Etiqueta flotante (placeholder=" " hace funcionar :placeholder-shown) */
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.85rem) scale(0.72);
  color: var(--accent);
  letter-spacing: 0.08em;
}
.field__line {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease);
}
.field input:focus ~ .field__line,
.field textarea:focus ~ .field__line,
.field select:focus ~ .field__line { transform: scaleX(1); }
.field__opt { font-size: 0.78em; color: var(--text-faint); letter-spacing: 0; text-transform: none; }

.field__error {
  display: block;
  margin-top: 0.6rem;
  font-size: var(--fs-small);
  color: #d98b7a;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
[data-theme="day"] .field__error { color: #b4543d; }
.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-bottom-color: #d98b7a; }
.field.has-error .field__error { opacity: 1; transform: translateY(0); }

/* --- Desplegable (select) estilizado --- */
.field--select select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 0.9rem 2rem 0.9rem 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.4s var(--ease);
}
.field--select select:focus { outline: none; }
.field--select select:invalid { color: transparent; } /* placeholder vacío: lo cubre la etiqueta */
.field--select option {
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
}
/* Etiqueta del select: flota cuando hay foco o se ha elegido una opción */
.field--select select:focus ~ label,
.field--select select:valid ~ label {
  transform: translateY(-1.85rem) scale(0.72);
  color: var(--accent);
  letter-spacing: 0.08em;
}
.field__chevron {
  position: absolute;
  right: 0; top: 0.95rem;
  width: 1.15rem; height: 1.15rem;
  color: var(--text-faint);
  pointer-events: none;
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}
.field__chevron svg { width: 100%; height: 100%; }
.field--select select:focus ~ .field__chevron { color: var(--accent); transform: rotate(180deg); }

/* --- Casilla de aceptación (checkbox) --- */
.field--check { padding-top: 0.4rem; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--text-dim);
}
.check input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: 0;
}
.check__box {
  flex-shrink: 0;
  width: 1.25rem; height: 1.25rem;
  margin-top: 0.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: var(--accent-contrast);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.check__box svg {
  width: 0.85rem; height: 0.85rem;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.check:hover .check__box { border-color: var(--accent); }
.check input:checked ~ .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked ~ .check__box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible ~ .check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.check__text a:hover { color: var(--accent-bright); }
.field--check.has-error .check__box { border-color: #d98b7a; }
[data-theme="day"] .field--check.has-error .check__box { border-color: #b4543d; }

.btn-submit {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.6rem;
  padding: 1.05rem 2.2rem;
  border: 1px solid var(--accent);
  border-radius: 100px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: color 0.5s var(--ease);
  isolation: isolate;
}
.btn-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s var(--ease-expo);
  z-index: -1;
}
.btn-submit:hover { color: var(--accent-contrast); }
.btn-submit:hover::before { transform: scaleX(1); }
.btn-submit__icon { display: inline-flex; transition: transform 0.5s var(--ease); }
.btn-submit__icon svg { width: 18px; height: 18px; }
.btn-submit:hover .btn-submit__icon { transform: translateX(5px); }
.btn-submit.is-loading { opacity: 0.6; pointer-events: none; }

.form-status {
  font-size: var(--fs-body);
  min-height: 1.5em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.form-status.is-visible { opacity: 1; transform: translateY(0); }
.form-status.is-success { color: var(--accent); }
.form-status.is-error { color: #d98b7a; }
[data-theme="day"] .form-status.is-error { color: #b4543d; }

/* ============================================================
   14 · FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.site-footer__mark {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  display: block;
  margin-bottom: 0.6rem;
}
.site-footer__tag {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.site-footer__links {
  display: flex;
  gap: 2rem;
  font-size: var(--fs-small);
}
.site-footer__links a {
  color: var(--text-dim);
  position: relative;
  transition: color 0.35s var(--ease);
}
.site-footer__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease);
}
.site-footer__links a:hover { color: var(--accent); }
.site-footer__links a:hover::after { transform: scaleX(1); }
.site-footer__copy {
  font-size: var(--fs-small);
  color: var(--text-faint);
  width: 100%;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
}

/* ============================================================
   14b · AVISO DE COOKIES (informativo, almacenamiento técnico)
   ============================================================ */
.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: clamp(1rem, 3vw, 2rem);
  transform: translateX(-50%) translateY(140%);
  width: min(92vw, 760px);
  z-index: 8500;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: 1.1rem clamp(1.2rem, 3vw, 1.8rem);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: transform 0.8s var(--ease-expo), opacity 0.6s var(--ease);
}
.cookie-notice.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.cookie-notice__text {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--text-dim);
  flex: 1;
}
.cookie-notice__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.cookie-notice__text a:hover { color: var(--accent-bright); }
.cookie-notice__accept {
  flex-shrink: 0;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: 100px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease);
}
.cookie-notice__accept::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease-expo);
  z-index: -1;
}
.cookie-notice__accept:hover { color: var(--accent-contrast); }
.cookie-notice__accept:hover::before { transform: scaleX(1); }

@media (max-width: 560px) {
  .cookie-notice { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-notice__accept { align-self: flex-start; }
}

/* ============================================================
   14c · PÁGINAS LEGALES (aviso-legal, privacidad)
   ============================================================ */
.legal-main {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) clamp(4rem, 8vw, 7rem);
}
.legal-hero { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.legal-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-display-l);
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin-top: 1.5rem;
}
.legal-updated {
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.legal-content { font-size: var(--fs-body); color: var(--text-dim); }
.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1rem;
}
.legal-content h2::before {
  content: counter(legal-section, decimal-leading-zero);
  counter-increment: legal-section;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--accent);
  opacity: 0.8;
}
.legal-content { counter-reset: legal-section; }
.legal-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}
.legal-content p { margin-bottom: 1rem; max-width: 70ch; }
.legal-content ul { margin: 0 0 1.2rem 0; }
.legal-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  max-width: 70ch;
}
.legal-content li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 0.4rem; height: 0.4rem;
  background: var(--accent);
  transform: rotate(45deg);
}
.legal-content strong { color: var(--text); font-weight: 600; }
.legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-placeholder {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 0.05em 0.4em;
  border-radius: 4px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 3.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.35s var(--ease), gap 0.35s var(--ease);
}
.legal-back:hover { color: var(--accent); gap: 1rem; }

/* Bloques de contenido bilingüe (páginas legales): se muestra el idioma activo */
html[data-lang="es"] [data-lang-block="en"],
html[data-lang="en"] [data-lang-block="es"] { display: none; }

/* ============================================================
   14d · CABECERA DE PÁGINA (Comité / Inversiones)
   ============================================================ */
.page-hero {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: calc(var(--header-h) + clamp(3.5rem, 9vh, 7rem)) var(--gutter) clamp(2.5rem, 6vh, 5rem);
}
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-display-xl);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-shadow: var(--display-shadow);
  margin: 1.6rem 0;
  max-width: 16ch;
}
.page-hero__title .reveal-line { display: block; }
.page-hero__title .accent { color: var(--accent); }
.page-hero__intro {
  font-size: var(--fs-lead);
  color: var(--text-dim);
  max-width: 56ch;
  line-height: 1.55;
}
.page-hero__intro + .page-hero__intro { margin-top: 1.2rem; }

/* ============================================================
   14e · COMITÉ DE INVERSIÓN (equipo)
   ============================================================ */
.team-main { position: relative; z-index: 1; }
.team-section {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter) var(--section-pad);
}

/* Retícula del comité — las CINCO fichas con el mismo tamaño (Adam el primero).
   Flex con centrado: las filas completas llenan el ancho y la ficha impar
   sobrante (la 5ª) queda centrada bajo las anteriores. */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(2.5rem, 5vw, 4rem) clamp(2.5rem, 5vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.member {
  display: grid;
  grid-template-columns: clamp(120px, 16vw, 168px) 1fr;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: start;
  width: calc(50% - clamp(2.5rem, 5vw, 5rem) / 2);
  max-width: 560px;
}

/* Marco/placeholder de foto */
.member__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%),
    var(--surface);
  display: grid;
  place-items: center;
}
.member__photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 2;
}
.member__initials {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0.02em;
  color: var(--accent);
  opacity: 0.5;
  z-index: 1;
}
/* Esquinas decorativas del marco */
.member__photo::before,
.member__photo::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--accent);
  opacity: 0.5;
  z-index: 3;
}
.member__photo::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.member__photo::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.member__body { padding-top: 0.2rem; }
.member__index {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0.85;
}
.member__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: 0.5rem;
}
/* Fila cargo + LinkedIn */
.member__rolerow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.7rem;
}
.member__role {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.member__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.1rem; height: 2.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-dim);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.member__linkedin svg { width: 0.95rem; height: 0.95rem; }
.member__linkedin:hover { color: var(--accent); border-color: var(--accent); background: var(--glow); }
.member__linkedin[hidden] { display: none; } /* Carlos J. (sin LinkedIn aún) */
.member__bio {
  margin-top: 1.2rem;
  color: var(--text-dim);
  font-size: var(--fs-body);
  line-height: 1.6;
  max-width: 46ch;
}

/* ============================================================
   14f · EN QUÉ INVERTIMOS (líneas de inversión)
   ============================================================ */
.invest-main { position: relative; z-index: 1; }

/* Índice/sumario de líneas en el hero */
.invest-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 2.5rem;
  max-width: 60ch;
}
.invest-summary span {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.invest-summary span::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* Estructura de recorrido: rastreador lateral + contenido */
.invest-layout {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.invest-tracker {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-left: 1px solid var(--line);
  padding-left: 1.4rem;
}
.invest-tracker__item {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.55rem 0;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  color: var(--text-faint);
  cursor: pointer;
  transition: color 0.4s var(--ease), padding-left 0.4s var(--ease);
}
.invest-tracker__num { font-size: 0.78em; opacity: 0.7; }
.invest-tracker__item:hover { color: var(--text-dim); }
.invest-tracker__item.is-current {
  color: var(--accent);
  padding-left: 0.4rem;
}

.invest-lines { min-width: 0; }
.invest-line {
  position: relative;
  padding-block: clamp(3.5rem, 9vh, 7rem);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.invest-line:first-child { border-top: 0; padding-top: 0; }
.invest-line__num {
  position: absolute;
  top: clamp(2rem, 6vh, 4rem);
  right: 0;
  font-family: var(--font-mono);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  will-change: transform;
}
.invest-line__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.invest-line__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-display-l);
  line-height: 1.0;
  letter-spacing: -0.035em;
  text-shadow: var(--display-shadow);
  max-width: 18ch;
}
.invest-line__title .reveal-line { display: block; }
.invest-line__lead {
  position: relative;
  z-index: 1;
  margin-top: 1.6rem;
  font-size: var(--fs-lead);
  color: var(--text);
  line-height: 1.5;
  max-width: 52ch;
}
.invest-line__points {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 60ch;
}
.invest-point__label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}
.invest-point__label::before {
  content: "";
  width: 0.4rem; height: 0.4rem;
  background: var(--accent);
  transform: rotate(45deg);
}
.invest-point p { color: var(--text-dim); font-size: var(--fs-body); line-height: 1.55; }

/* Cierre / CTA de página */
.page-cta {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--section-pad) var(--gutter);
  text-align: center;
}
.page-cta__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-display-l);
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-shadow: var(--display-shadow);
  max-width: 18ch;
  margin: 0 auto 1.4rem;
}
.page-cta__title .reveal-line { display: block; }
.page-cta__text {
  color: var(--text-dim);
  font-size: var(--fs-lead);
  max-width: 42ch;
  margin: 0 auto 2.4rem;
}
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 2.3rem;
  border: 1px solid var(--accent);
  border-radius: 100px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease);
}
.btn-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s var(--ease-expo);
  z-index: -1;
}
.btn-pill:hover { color: var(--accent-contrast); }
.btn-pill:hover::before { transform: scaleX(1); }
.btn-pill svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
.btn-pill:hover svg { transform: translateX(5px); }

/* Responsive — Comité / Inversiones */
@media (max-width: 860px) {
  /* Una ficha por fila (todas iguales, centradas) */
  .member { width: 100%; max-width: 480px; }
  .invest-layout { grid-template-columns: 1fr; }
  .invest-tracker { display: none; }
}
@media (max-width: 560px) {
  .member { grid-template-columns: 1fr; gap: 1.2rem; }
  .member__photo { max-width: 200px; }
  .invest-line__points { grid-template-columns: 1fr; }
  .invest-line__num { font-size: clamp(3rem, 16vw, 5rem); }
}

/* ============================================================
   15 · TRANSICIÓN DE TEMA
   ----------------------------------------------------------------
   .is-theming activa una transición universal de color breve
   (fallback cuando no hay View Transitions API).
   ============================================================ */
html.is-theming,
html.is-theming *,
html.is-theming *::before,
html.is-theming *::after {
  transition: background-color var(--theme-dur) var(--ease),
              background var(--theme-dur) var(--ease),
              color var(--theme-dur) var(--ease),
              border-color var(--theme-dur) var(--ease),
              fill var(--theme-dur) var(--ease),
              stroke var(--theme-dur) var(--ease) !important;
}

/* View Transitions API — crossfade cinematográfico (Chromium) */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.7s;
  animation-timing-function: var(--ease);
  mix-blend-mode: normal;
}
::view-transition-old(root) { animation-name: vtFadeOut; }
::view-transition-new(root) { animation-name: vtFadeIn; }
@keyframes vtFadeOut { to { opacity: 0; } }
@keyframes vtFadeIn  { from { opacity: 0; } }

/* ============================================================
   16 · RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --header-h: 4.2rem; }

  .contact__grid { grid-template-columns: 1fr; }
  .approach__list { grid-template-columns: 1fr; }
  /* Métricas en 2×2: divisores verticales solo entre columnas */
  .figures__grid { grid-template-columns: repeat(2, 1fr); gap: clamp(2.5rem, 6vw, 3.5rem) 1.5rem; }
  .stat:not(:last-child)::after { display: none; }
  .stat:nth-child(odd)::after {
    content: ""; display: block;
    position: absolute; right: -0.75rem; top: 50%; translate: 0 -50%;
    width: 1px; height: 68%; background: var(--line);
  }
  .section-index { font-size: clamp(2.4rem, 12vw, 4rem); }

  /* Aligera el fondo arquitectónico en pantallas pequeñas (rendimiento) */
  .backdrop .arch-far,
  .backdrop .arch-near { display: none; }
  .backdrop .arch-mid { opacity: calc(var(--blueprint) * 0.8); }
}

@media (max-width: 600px) {
  :root { --section-pad: clamp(4rem, 16vw, 6rem); }

  .controls { gap: 0.9rem; }
  .theme-toggle__track { width: 46px; height: 24px; }
  [data-theme="day"] .theme-toggle__thumb { transform: translate(22px, -50%); }

  .model__grid { grid-template-columns: 1fr; }
  /* Métricas apiladas: sin divisores verticales, separación uniforme */
  .figures__grid { grid-template-columns: 1fr; gap: 3rem; }
  .stat:nth-child(odd)::after,
  .stat:not(:last-child)::after { display: none; }
  .stat__label { min-height: 0; }

  .hero__claim { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .manifesto__body { margin-left: 0; }
  .section-index { display: none; }
  .site-footer__grid { flex-direction: column; align-items: flex-start; }
  .contact__form { grid-template-columns: 1fr; gap: 1.9rem; }
}

/* ============================================================
   17 · PREFERS-REDUCED-MOTION
   ----------------------------------------------------------------
   Respeta la preferencia del usuario: sin animaciones ni
   desplazamientos; todo el contenido visible de inmediato.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .grain, .hero__glow, .scroll-indicator__dot { animation: none !important; }
  .arch-line, .pl-draw, .arch-draw { stroke-dashoffset: 0 !important; animation: none !important; }
  /* Fondo arquitectónico casi estático y muy tenue */
  .backdrop__svg > g { transform: none !important; }
  .backdrop { opacity: 0.6; }
  .preloader { display: none !important; }
  body.is-loading { overflow: auto !important; height: auto !important; }
  html.has-cursor, html.has-cursor * { cursor: auto !important; }
  .cursor { display: none !important; }
  /* Forzar visibilidad de todos los elementos animados */
  .reveal, .reveal-fade, .reveal-card, .reveal-line,
  .hero__wordmark .char, .hero__claim .line,
  .hero__eyebrow, .hero__sub {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
