/* =====================================================================
   3E Consultoría — sitio público
   CSS escrito a mano (FUENTE versionada, no artefacto). Sin build.
   Tokens de color = los del perfil empresarial 2026 (docs/).
   ===================================================================== */

/* ---------- Fuentes autohospedadas (variables: un archivo por familia) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/archivo-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/space-mono-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/space-mono-latin-700.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  /* 3E · Gris · Naranja · Morado. 60/30/10: el morado carga la identidad, el naranja sólo acentúa. */
  --p-50: #F4EFFB; --p-100: #E7DBF7; --p-200: #D0BAEF; --p-300: #B392E4; --p-400: #9568D6;
  --p-500: #7A46C2; --p-600: #6736A8; --p-700: #552B89; --p-800: #45236E; --p-900: #371D57;
  --o-50: #FEF3EA; --o-100: #FCE0CB; --o-200: #F9C29A; --o-300: #F49E63; --o-400: #EF8540;
  --o-500: #E8722A; --o-600: #CF5E1C; --o-700: #AC4B16;
  --g-50: #F6F6F7; --g-100: #EBEBED; --g-200: #D9D9DD; --g-300: #BFBFC6; --g-400: #9C9CA6;
  --g-500: #6B7280; --g-600: #565C68; --g-700: #444A54; --g-800: #363B43; --g-900: #26292F;

  --ink: #0E0F12;          /* fondo oscuro del sitio: grafito casi negro */
  --ink-2: #15171B;
  --bg: var(--g-50);
  --surface: #FFFFFF;
  --text: var(--g-900);
  --text-muted: var(--g-600);
  --primary: var(--p-500);
  --accent: var(--o-500);
  --border: rgba(38, 41, 47, .09);
  --border-strong: rgba(38, 41, 47, .16);
  --line-dark: rgba(255, 255, 255, .10);

  --grad: linear-gradient(135deg, #7A46C2 0%, #552B89 100%);
  --grad-alt: linear-gradient(135deg, #E8722A 0%, #CF5E1C 100%);

  --f: "Space Grotesk", system-ui, sans-serif;
  --fh: "Archivo", "Space Grotesk", system-ui, sans-serif;
  --fm: "Space Mono", ui-monospace, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
button, select { font: inherit; color: inherit; }
::selection { background: var(--p-500); color: #fff; }
:focus-visible { outline: 2px solid var(--o-400); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- Marca 3E (3 + tres franjas) ---------- */
.mark { display: inline-flex; align-items: center; gap: .14em; font-size: 34px; }
.mark-three {
  font-family: var(--fh); font-weight: 900; font-size: 1em; line-height: .86;
  letter-spacing: -.05em; color: var(--primary);
}
.mark-bars { display: flex; flex-direction: column; gap: .12em; }
.mark-bars i { display: block; height: .2em; border-radius: .06em; }
.mark-bars i:nth-child(1) { width: .8em; background: var(--accent); }
.mark-bars i:nth-child(2) { width: .56em; background: var(--primary); }
.mark-bars i:nth-child(3) { width: .8em; background: var(--g-500); }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand .mark { font-size: 30px; }
.brand-name {
  font-family: var(--fh); font-weight: 600; font-size: 17px; letter-spacing: -.01em; color: rgba(255, 255, 255, .86);
}
.site-footer .brand-name { font-size: 14px; line-height: 1.3; font-weight: 500; color: rgba(255, 255, 255, .7); }

/* ---------- Tipografía ---------- */
/* Encabezado de sección como articulado de estatuto: «Artículo primero. De los servicios.»
   Texto normal, sin mayúsculas forzadas ni monoespaciada: es el lenguaje de un acta, que es el
   mundo de 3E. */
.articulo { font-size: 16px; line-height: 1.4; color: var(--text-muted); }
.articulo b { font-family: var(--fh); font-weight: 700; color: var(--text); margin-right: .2em; }
.articulo-dark { color: rgba(255, 255, 255, .6); }
.articulo-dark b { color: #fff; }

/* Énfasis de titulares: color sólido de marca. Morado sobre claro; lavanda sobre oscuro. */
.enfasis { color: var(--primary); }
.hero .enfasis, .section-dark .enfasis, .contacto .enfasis { color: var(--p-300); }

.section-title {
  font-family: var(--fh); font-weight: 800; letter-spacing: -.03em; line-height: 1.04;
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.9rem); text-wrap: balance;
}
.section-lead { color: var(--text-muted); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 60ch; }

.dia {
  width: 10px; height: 10px; flex: none; border-radius: 2px; background: var(--accent); transform: rotate(45deg);
}

/* ---------- Botones ---------- */
.btn {
  --b-bg: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer;
  background: var(--b-bg); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  white-space: nowrap;
}
.btn span[aria-hidden] { transition: transform .25s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.btn-primary {
  color: #fff; background: var(--grad);
  box-shadow: 0 10px 30px rgba(122, 70, 194, .35), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(122, 70, 194, .5), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); }
.btn-dark { color: #fff; background: var(--g-900); }
.btn-dark:hover { background: var(--p-700); transform: translateY(-2px); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-lg { padding: 19px 32px; font-size: 17px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--primary);
  text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s, gap .2s;
}
.link-arrow:hover { gap: 12px; border-color: currentColor; }
.link-light { color: var(--p-200); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; color: #fff;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(14, 15, 18, .9); border-color: var(--line-dark);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header .mark-three { color: #fff; }
.site-header .mark-bars i:nth-child(2) { background: var(--p-400); }
.site-header .mark-bars i:nth-child(3) { background: rgba(255, 255, 255, .6); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  position: relative; font-size: 15px; font-weight: 500; text-decoration: none; color: rgba(255, 255, 255, .78);
  transition: color .2s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover { color: #fff; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16);
  align-items: center; justify-content: center;
}
.nav-toggle-bars { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.nav-toggle-bars i { display: block; height: 3px; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle-bars i:nth-child(1) { width: 20px; background: var(--o-400); }
.nav-toggle-bars i:nth-child(2) { width: 14px; background: var(--p-400); }
.nav-toggle-bars i:nth-child(3) { width: 20px; background: rgba(255, 255, 255, .7); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(60% 55% at 78% 40%, rgba(122, 70, 194, .26), transparent 70%),
    radial-gradient(40% 40% at 92% 85%, rgba(232, 114, 42, .14), transparent 70%),
    var(--ink);
  padding: calc(var(--header-h) + 40px) 0 140px;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-grid {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(149, 104, 214, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149, 104, 214, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 20%, transparent 75%);
}
/* Velo a la izquierda: garantiza contraste del texto sobre el wireframe. */
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(14, 15, 18, .92) 0%, rgba(14, 15, 18, .55) 38%, transparent 62%);
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.hero-firma {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--fh); font-weight: 600; font-size: 16px; letter-spacing: -.005em; color: rgba(255, 255, 255, .82);
}
.firma-bars { display: flex; flex-direction: column; gap: 4px; }
.firma-bars i { display: block; height: 5px; border-radius: 1.5px; transform-origin: left; animation: franja 1s var(--ease) both; }
.firma-bars i:nth-child(1) { width: 26px; background: var(--o-500); animation-delay: .25s; }
.firma-bars i:nth-child(2) { width: 18px; background: var(--p-400); animation-delay: .35s; }
.firma-bars i:nth-child(3) { width: 26px; background: var(--g-300); animation-delay: .45s; }
@keyframes franja { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-title {
  margin-top: 26px; max-width: 13.5ch;
  font-family: var(--fh); font-weight: 800; letter-spacing: -.035em; line-height: 1;
  font-size: clamp(2.7rem, 1.2rem + 6vw, 6.4rem); text-wrap: balance;
}
.hero-lead { margin-top: 28px; max-width: 54ch; font-size: clamp(1.02rem, .95rem + .35vw, 1.22rem); color: rgba(255, 255, 255, .72); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Entrada del hero: CSS puro (no depende de JS, que llega diferido). */
.hero-in { animation: rise .9s var(--ease) both; }
.hero-in[data-d="1"] { animation-delay: .1s; }
.hero-in[data-d="2"] { animation-delay: .2s; }
.hero-in[data-d="3"] { animation-delay: .32s; }
.hero-in[data-d="4"] { animation-delay: .44s; }
.hero-in[data-d="5"] { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero-indice {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--line-dark); background: rgba(14, 15, 18, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-indice ol { display: grid; grid-template-columns: repeat(6, 1fr); }
.hero-indice li + li { border-left: 1px solid var(--line-dark); }
.hero-indice a {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 16px 20px;
  font-size: 14px; line-height: 1.3; font-weight: 500; color: rgba(255, 255, 255, .7); text-decoration: none;
  transition: color .2s, background .2s;
}
.hero-indice li:first-child a { padding-left: 0; }
.hero-indice a:hover { color: #fff; background: rgba(255, 255, 255, .03); }
.indice-num { font-family: var(--fh); font-weight: 800; font-size: 13px; color: var(--o-400); }

.hero-scroll {
  position: absolute; right: var(--gutter); bottom: 96px; width: 26px; height: 42px; border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, .3);
}
.hero-scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px;
  background: var(--o-400); animation: scroll-dot 1.8s var(--ease) infinite;
}
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(84px, 10vw, 140px) 0; }
.section-light { background: var(--bg); }
.section-white { background: var(--surface); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .section-lead { color: rgba(255, 255, 255, .68); }
.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head-split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; }
.section-head-split > div { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.section-head-split .section-lead { max-width: 440px; }

/* Tarjeta base con brillo que sigue al puntero (--mx/--my los pone sitio.js). */
.card {
  position: relative; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(122, 70, 194, .10), transparent 45%);
}
.card:hover { transform: translateY(-4px); border-color: rgba(122, 70, 194, .28); box-shadow: 0 24px 60px rgba(38, 41, 47, .10); }
.card:hover::before { opacity: 1; }

/* Señales */
.senales { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.senal { padding: 30px 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.senal h3 { font-family: var(--fh); font-weight: 700; font-size: 1.3rem; line-height: 1.15; letter-spacing: -.015em; }
.senal p { color: var(--text-muted); font-size: 15.5px; }
.senal p.senal-pie {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border-strong);
  font-size: 14.5px; color: var(--text-muted);
}
.senal-pie a { font-weight: 600; color: var(--primary); text-decoration: none; border-bottom: 1px solid rgba(122, 70, 194, .3); transition: border-color .2s; }
.senal-pie a:hover { border-color: var(--primary); }

/* Servicios */
.servicios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.servicio { padding: 30px 28px 26px; display: flex; flex-direction: column; gap: 14px; background: var(--bg); }
.servicio-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.servicio-num {
  font-family: var(--fh); font-weight: 900; font-size: 44px; line-height: 1; letter-spacing: -.04em;
  -webkit-text-stroke: 1.2px var(--p-300); color: transparent; transition: color .35s;
}
.servicio:hover .servicio-num { color: var(--p-500); -webkit-text-stroke-color: var(--p-500); }
.servicio h3 { font-family: var(--fh); font-weight: 700; font-size: 1.4rem; line-height: 1.15; letter-spacing: -.02em; }
.servicio-resumen { color: var(--text-muted); font-size: 15.5px; }
.servicio-nuevo { border-color: rgba(232, 114, 42, .35); }
.servicio-nota { font-size: 13.5px; font-weight: 600; color: var(--o-600); }

.alcance { border-top: 1px solid var(--border-strong); margin-top: 6px; }
.alcance summary, .faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none;
}
.alcance summary::-webkit-details-marker, .faq-item summary::-webkit-details-marker { display: none; }
.alcance summary { padding-top: 16px; font-weight: 600; font-size: 15px; color: var(--primary); }
.plus { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid currentColor; }
.plus::before, .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px;
  background: currentColor; transition: transform .3s var(--ease);
}
.plus::after { transform: rotate(90deg); }
details[open] > summary .plus::after { transform: rotate(0); }
.alcance-promesa { margin-top: 16px; font-weight: 600; color: var(--text); font-size: 15.5px; }
.alcance-sub { margin-top: 18px; font-family: var(--fh); font-weight: 700; font-size: 14px; color: var(--o-600); }
.alcance-lista { margin-top: 10px; display: flex; flex-direction: column; gap: 9px; }
.alcance-lista li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.5; color: var(--text-muted); }
.alcance-lista li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 1.5px;
  background: var(--p-400); transform: rotate(45deg);
}
.alcance .link-arrow { margin-top: 18px; font-size: 15px; }

/* Selector */
.selector-section { overflow: hidden; isolation: isolate; }
.selector-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 70% at 0% 0%, rgba(122, 70, 194, .35), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(232, 114, 42, .18), transparent 70%);
}
.frase {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
  font-family: var(--fh); font-weight: 700; letter-spacing: -.02em; line-height: 1.25;
  font-size: clamp(1.45rem, 1rem + 1.9vw, 2.5rem);
}
.frase-parte { display: contents; }
.select-wrap { position: relative; display: inline-flex; max-width: 100%; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2px solid var(--o-400); border-bottom: 2px solid var(--o-400); transform: rotate(45deg); pointer-events: none;
}
.frase select {
  appearance: none; -webkit-appearance: none; max-width: 100%; cursor: pointer;
  padding: .18em 2em .2em .5em; border-radius: 14px;
  font: inherit; letter-spacing: inherit; color: var(--p-200);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(149, 104, 214, .45);
  text-overflow: ellipsis; transition: border-color .2s, background .2s;
}
.frase select:hover, .frase select:focus { border-color: var(--o-400); background: rgba(255, 255, 255, .08); }
.frase select option { color: var(--g-900); background: #fff; font-size: 16px; }
.frase[data-mejorado] .frase-submit { display: none; }

.recomendaciones { margin-top: 48px; }
.recomendacion {
  display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: end;
  padding: clamp(28px, 4vw, 44px); border-radius: 24px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: rise .6s var(--ease) both;
}
.recomendacion[hidden] { display: none; }
.rec-label { font-size: 15px; color: var(--o-300); }
.recomendacion h3 {
  margin-top: 12px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  font-family: var(--fh); font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.2rem); letter-spacing: -.025em; line-height: 1.1;
}
.rec-num { font-family: var(--fm); font-weight: 700; font-size: .5em; color: var(--p-300); letter-spacing: .06em; }
.rec-promesa { margin-top: 12px; color: rgba(255, 255, 255, .78); max-width: 60ch; }
.rec-lista { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.rec-lista li { position: relative; padding-left: 22px; color: rgba(255, 255, 255, .66); font-size: 15px; max-width: 70ch; }
.rec-lista li b { color: #fff; font-weight: 600; }
.rec-lista li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 1.5px;
  background: var(--o-400); transform: rotate(45deg);
}
.rec-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

/* Método */
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: paso; }
.paso { position: relative; padding: 0 36px 0 0; display: flex; flex-direction: column; gap: 14px; }
.paso-num {
  font-family: var(--fh); font-weight: 900; font-size: clamp(3.6rem, 3rem + 2.6vw, 5.6rem); line-height: .9; letter-spacing: -.05em;
  color: var(--primary);
}
.paso-linea { position: relative; height: 1px; background: var(--border-strong); margin: 8px 0 10px; }
.paso-linea::before {
  content: ""; position: absolute; left: 0; top: -5px; width: 11px; height: 11px; border-radius: 2px;
  background: var(--accent); transform: rotate(45deg);
}
.paso h3 { font-family: var(--fh); font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.15; }
.paso p { color: var(--text-muted); font-size: 15.5px; }

.ejes-bloque {
  margin-top: clamp(64px, 8vw, 104px); display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start;
  padding-top: 48px; border-top: 1px solid var(--border-strong);
}
.ejes-intro { display: flex; flex-direction: column; gap: 10px; }
.ejes-sobre { font-size: 15px; color: var(--text-muted); }
.ejes-title { font-family: var(--fh); font-weight: 800; font-size: 1.7rem; letter-spacing: -.025em; line-height: 1.1; }
.ejes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--border-strong); border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.eje { position: relative; padding: 26px 20px 28px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; transition: background .3s; }
.eje:hover { background: var(--surface); }
.eje-num { font-family: var(--fm); font-weight: 700; font-size: 12px; letter-spacing: .14em; color: var(--accent); }
.eje h4 { font-family: var(--fh); font-weight: 700; font-size: 1.08rem; line-height: 1.2; }
.eje p { color: var(--text-muted); font-size: 14px; line-height: 1.5; }

/* Órgano intermedio */
.organo { overflow: hidden; }
.organo-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.organo-media { position: relative; }
.organo-media img, .porque-media img { border-radius: 24px; width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.organo-media::after {
  content: ""; position: absolute; inset: 0; border-radius: 24px; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.organo-stats {
  position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.stat {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 16px;
  background: rgba(14, 15, 18, .62); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.stat-num { font-family: var(--fh); font-weight: 900; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.9rem); line-height: 1; letter-spacing: -.035em; color: #fff; }
.stat-lab { font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, .72); }
.organo-txt { display: flex; flex-direction: column; gap: 22px; }
.organo-txt p { color: rgba(255, 255, 255, .7); }
.organo-txt p b { color: #fff; font-weight: 600; }
.disciplinas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.disciplinas li {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark);
}
.disciplinas .dia { margin-top: 7px; width: 8px; height: 8px; }
.disciplinas b { display: block; color: #fff; font-family: var(--fh); font-weight: 700; font-size: 15.5px; }
.disciplinas span:not(.dia) { display: block; color: rgba(255, 255, 255, .6); font-size: 13.5px; line-height: 1.45; margin-top: 2px; }

/* Por qué 3E */
.porque-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.porque-txt { display: flex; flex-direction: column; gap: 20px; }
.cifras { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border-strong); border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.cifra { background: var(--surface); padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 8px; }
.cifra dt { font-family: var(--fh); font-weight: 900; font-size: clamp(2rem, 1.6rem + 1.5vw, 2.9rem); line-height: 1; letter-spacing: -.04em; color: var(--primary); }
.cifra dd { color: var(--text-muted); font-size: 14.5px; line-height: 1.45; }
.porque-media { position: relative; }
.quote {
  position: absolute; left: -28px; bottom: -28px; max-width: 360px; padding: 24px 26px; border-radius: 18px;
  background: var(--g-900); color: #fff; box-shadow: 0 24px 60px rgba(14, 15, 18, .3);
}
.quote::before {
  content: ""; position: absolute; left: 26px; top: 0; width: 46px; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad-alt);
}
.quote blockquote { font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .86); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq-head .btn { align-self: flex-start; margin-top: 8px; }
.faq { border-top: 1px solid var(--border-strong); }
.faq-item { border-bottom: 1px solid var(--border-strong); }
.faq-item summary {
  padding: 24px 0; font-family: var(--fh); font-weight: 700; font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem);
  letter-spacing: -.01em; line-height: 1.3; transition: color .2s;
}
.faq-item summary:hover, .faq-item[open] summary { color: var(--primary); }
.faq-item summary .plus { color: var(--primary); }
.faq-item p { padding: 0 48px 26px 0; color: var(--text-muted); }

/* Contacto */
.contacto { background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; text-align: center; }
.contacto-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(45% 60% at 20% 10%, rgba(122, 70, 194, .42), transparent 70%),
    radial-gradient(40% 55% at 85% 90%, rgba(232, 114, 42, .26), transparent 70%);
}
.contacto-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.contacto-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.contacto-mark .mark { font-size: 84px; margin-bottom: 12px; }
.contacto-mark .mark-three { color: #fff; }
.contacto-mark .mark-bars i:nth-child(2) { background: var(--p-400); }
.contacto-mark .mark-bars i:nth-child(3) { background: rgba(255, 255, 255, .7); }
.contacto-title {
  font-family: var(--fh); font-weight: 800; letter-spacing: -.035em; line-height: 1;
  font-size: clamp(2.6rem, 1.4rem + 5vw, 5.4rem);
}
.contacto-lead { max-width: 56ch; color: rgba(255, 255, 255, .7); font-size: 1.1rem; }
.contacto-actions { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.contacto-datos { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; color: rgba(255, 255, 255, .62); font-size: 15px; }
.contacto-datos li { display: inline-flex; align-items: center; gap: 12px; }
.contacto-datos .dia { width: 7px; height: 7px; background: var(--o-400); }
.contacto-datos a { text-decoration: none; }
.contacto-datos a:hover { color: #fff; }

/* Footer */
.site-footer { background: #0A0B0D; color: rgba(255, 255, 255, .62); padding: 72px 0 32px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.site-footer .mark-three { color: #fff; }
.site-footer .mark-bars i:nth-child(2) { background: var(--p-400); }
.site-footer .mark-bars i:nth-child(3) { background: rgba(255, 255, 255, .6); }
.footer-brand p { margin-top: 20px; max-width: 38ch; font-size: 15px; }
.footer-title { font-family: var(--fh); font-weight: 700; font-size: 15px; color: #fff; margin-bottom: 16px; }
.footer-list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-list a { text-decoration: none; transition: color .2s; }
.footer-list a:hover { color: #fff; }
.footer-legal {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px;
}
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* Error */
.error-page { min-height: 80svh; display: flex; align-items: center; padding-top: calc(var(--header-h) + 60px); }
.error-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

/* ---------- Ronda de diseño (temporal): miniaturas de las propuestas ---------- */
.propuestas { background: var(--ink-2); color: #fff; padding: 72px 0 80px; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.propuestas-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.propuestas-titulo { font-family: var(--fh); font-weight: 800; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); letter-spacing: -.03em; line-height: 1; }
.propuestas-head p { color: rgba(255, 255, 255, .62); max-width: 46ch; }
.propuestas-lista { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.propuesta {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; border-radius: 16px; overflow: hidden;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-dark);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.propuesta:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .3); box-shadow: 0 24px 50px rgba(0, 0, 0, .4); }
.propuesta-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line-dark); }
.propuesta-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.propuesta:hover .propuesta-img img { transform: scale(1.04); }
.propuesta-txt { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; flex: 1; }
.propuesta-nombre { font-family: var(--fh); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.propuesta-tendencia { font-size: 14px; font-weight: 600; color: var(--o-400); }
.propuesta-desc { font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .62); }
.propuesta-ir { margin-top: auto; padding-top: 10px; font-size: 14.5px; font-weight: 600; color: var(--p-300); }
.propuesta-actual { border-color: rgba(149, 104, 214, .45); }
.propuesta-actual .propuesta-ir { color: rgba(255, 255, 255, .5); }
@media (max-width: 1180px) { .propuestas-lista { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .propuestas-lista { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .propuestas-lista { grid-template-columns: 1fr; } }

/* ---------- Revelado al hacer scroll ----------
   Sólo se oculta si sitio.js marcó <html class="js">: sin JS todo se ve. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-d="2"] { transition-delay: .08s; }
.js .reveal[data-d="3"] { transition-delay: .16s; }
.js .reveal[data-d="4"] { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .senales { grid-template-columns: repeat(2, 1fr); }
  .servicios { grid-template-columns: repeat(2, 1fr); }
  .ejes-bloque { grid-template-columns: 1fr; }
  .ejes { grid-template-columns: repeat(3, 1fr); }
  .recomendacion { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 28px; background: var(--ink); border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .3s, visibility .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--line-dark); }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 20px; }
  .hero-indice ol { grid-template-columns: repeat(3, 1fr); }
  .hero-indice li:nth-child(4) { border-left: 0; }
  .hero-indice li:nth-child(n+4) { border-top: 1px solid var(--line-dark); }
  .hero-indice li:nth-child(4) a { padding-left: 0; }

  .hero-glow { background: linear-gradient(180deg, rgba(14, 15, 18, .1) 0%, rgba(14, 15, 18, .45) 45%, rgba(14, 15, 18, .88) 100%); }
  .hero-scroll { display: none; }
  .section-head-split { flex-direction: column; align-items: flex-start; gap: 18px; }
  .pasos { grid-template-columns: 1fr; gap: 44px; }
  .paso { padding: 0; }
  .organo-grid, .porque-grid, .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .quote { position: relative; left: auto; bottom: auto; margin: -40px 16px 0; max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .senales, .servicios { grid-template-columns: 1fr; }
  .ejes { grid-template-columns: 1fr 1fr; }
  .disciplinas, .cifras { grid-template-columns: 1fr; }
  .organo-stats { position: static; margin-top: 12px; grid-template-columns: 1fr 1fr; }
  .stat { background: rgba(255, 255, 255, .05); }
  .hero-actions .btn { width: 100%; }
  .hero { padding-bottom: 210px; }
  .hero-indice ol { grid-template-columns: 1fr 1fr; }
  .hero-indice li:nth-child(n) { border-left: 0; border-top: 0; }
  .hero-indice li:nth-child(even) { border-left: 1px solid var(--line-dark); }
  .hero-indice li:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .hero-indice a { padding: 12px 14px; font-size: 13px; }
  .hero-indice li:nth-child(odd) a { padding-left: 0; }
  .frase select { white-space: normal; }
  .footer-grid { grid-template-columns: 1fr; }
  .contacto-mark .mark { font-size: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
