/* Cedrion · sistema de diseño "Plasma" (versión oscura de Plasma light, la de kirion.com)
   Fondo nocturno, tipografía expandida (Archivo) y etiquetas en mono (IBM Plex Mono).
   El violeta de ionización es el único acento. Un solo tema oscuro, elegido a propósito. */

:root {
  --bg: #090C17;
  --bg-2: #0E1222;
  --panel: #141932;
  --panel-2: #1B2142;
  --ink: #ECEEF7;
  --ink-2: #C9CDE0;
  --muted: #A1A7C1;
  --line: #252B49;
  --line-2: #343B63;
  --ion: #B48CFF;
  --ion-rgb: 180, 140, 255;
  --ion-hover: #C9AEFF;
  --ion-deep: #6B38D4;
  --ion-deep-hover: #7A45E0;
  --ion-soft: #D9C8FF;
  --on-ion: #0C0820;
  --paper: #ECEEF7;
  --paper-ink: #0E1226;
  --paper-muted: #474E6B;
  --paper-accent: #6B38D4;
  --deep: #05070E;
  --dust: #7D8299;
  --clean: #FFFFFF;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius-lg: 22px;
  --radius-md: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--ion); }
a:hover { color: var(--ion-hover); }
:focus-visible { outline: 2px solid var(--ion); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[id] { scroll-margin-top: 88px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.visually-hidden {
  position: absolute !important; 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: 12px; top: -60px; z-index: 100;
  background: var(--ion); color: var(--on-ion); padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--on-ion); }

/* ---------- Tipografía ---------- */
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.kicker { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ion); }
.h1 {
  font-size: clamp(38px, 5.4vw, 76px); font-weight: 600; font-stretch: 120%;
  letter-spacing: -.025em; line-height: 1.02;
}
.h1 .accent, .h2 .accent { color: var(--ion); }
.h1 .accent--line, .h2 .accent--line { color: transparent; -webkit-text-stroke: 1.5px var(--ion); }
@supports not (-webkit-text-stroke: 1px black) { .h1 .accent--line, .h2 .accent--line { color: var(--ion); } }
.h2 {
  font-size: clamp(30px, 4vw, 54px); font-weight: 600; font-stretch: 118%;
  letter-spacing: -.02em; line-height: 1.04; margin-top: 16px; max-width: 22ch;
}
.section-head { text-align: center; }
.section-head .h2 { max-width: min(17em, 100%); margin-inline: auto; }
.section-head .sub { margin-inline: auto; }
.h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; font-stretch: 118%; line-height: 1.1; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--muted); max-width: 56ch; margin-top: 26px; }
.sub { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 62ch; margin-top: 20px; }
.sub strong { color: var(--ink); font-weight: 600; }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.big-num { font-weight: 300; font-stretch: 125%; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.big-num small { font-size: .5em; color: var(--ion); letter-spacing: 0; }
.outline-num {
  font-size: 56px; font-weight: 700; font-stretch: 125%; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.2px var(--ion);
}

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: center;
  transition: box-shadow .2s, border-color .2s, background .2s, color .2s;
}
.btn--ion { background: var(--ion); color: var(--on-ion); }
.btn--ion:hover { color: var(--on-ion); box-shadow: 0 0 0 6px rgba(var(--ion-rgb), .22); }
a.btn[href="#contacto"],
a.btn[href="#contact"],
a.btn[href="/#contacto"],
a.btn[href="/en/#contact"],
a.btn.btn--ion[href="mailto:ingenieria@cedrion.com"] {
  background: var(--ion-deep); color: var(--clean); border-color: transparent;
}
a.btn[href="#contacto"]:hover,
a.btn[href="#contact"]:hover,
a.btn[href="/#contacto"]:hover,
a.btn[href="/en/#contact"]:hover,
a.btn.btn--ion[href="mailto:ingenieria@cedrion.com"]:hover {
  background: var(--ion-deep-hover); color: var(--clean);
  box-shadow: 0 0 0 6px rgba(107, 56, 212, .28);
}
a.btn[href="https://kirion.com"] {
  background: var(--clean); color: var(--ion-deep); border-color: transparent;
}
a.btn[href="https://kirion.com"]:hover {
  background: var(--clean); color: var(--ion-deep);
  box-shadow: 0 0 0 6px rgba(107, 56, 212, .22);
}
.btn--line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ion); color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__in { display: flex; align-items: center; gap: 28px; min-height: 72px; position: relative; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 28px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 15px; }
.site-nav > a:not(.btn) { color: var(--muted); text-decoration: none; }
.site-nav > a:not(.btn):hover { color: var(--ink); }
.nav-toggle {
  display: none; margin-left: auto; min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: 500 14px var(--font); cursor: pointer;
}

/* ---------- Hero: doble chorro iónico (Boreas) ---------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: calc(100vh - 73px);
  min-height: calc(100svh - 73px);
  background: var(--bg);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero__in { position: relative; z-index: 2; width: 100%; padding-top: clamp(44px, 7vh, 84px); padding-bottom: clamp(44px, 7vh, 84px); }
.hero__copy {
  max-width: 1040px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero__copy .h1 {
  font-size: clamp(44px, 6.3vw, 88px); line-height: 1.03; max-width: 15ch;
  text-shadow: 0 0 42px rgba(9, 12, 23, .95), 0 0 26px rgba(180, 140, 255, .22), 0 6px 28px rgba(5, 7, 14, .92);
}
.hero__copy .h1 .accent--line { filter: drop-shadow(0 0 18px rgba(180, 140, 255, .42)); }
.hero__copy .lead {
  margin-top: 30px; max-width: 58ch; padding: 10px 18px; border-radius: 16px;
  background: radial-gradient(closest-side, rgba(9, 12, 23, .88), rgba(9, 12, 23, 0));
  text-wrap: balance;
}
.hero__copy .actions { justify-content: center; margin-top: 30px; }
/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); }
.mt-44 { margin-top: 44px; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px); min-width: 0;
}

/* Logos de clientes: carrusel a todo el ancho */
.logos { padding: clamp(56px, 7vw, 96px) 0; overflow: hidden; }
.logos__title {
  text-align: center; margin: 0 auto 72px; max-width: min(20em, calc(100% - 32px)); text-wrap: balance;
  font-size: clamp(24px, 3vw, 40px); font-weight: 600; font-stretch: 118%;
  letter-spacing: -.02em; line-height: 1.1; color: var(--ink);
}
.marquee {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: clamp(48px, 6vw, 96px); padding-right: clamp(48px, 6vw, 96px);
  list-style: none; margin: 0; flex-shrink: 0;
  animation: marquee 40s linear infinite;
}
.marquee__track li { display: flex; align-items: center; }
.marquee__track img {
  display: block; height: 32px; width: auto; max-width: 168px; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .72; transition: opacity .3s;
}
.marquee__track img[src$="rla.png"] { height: 58px; max-width: 140px; }
.marquee__track li:hover img { opacity: 1; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 20px; padding: 0 16px; }
  .marquee__track[aria-hidden] { display: none; }
}

/* Qué hacemos */
.cap { display: flex; flex-direction: column; gap: 16px; }
.cap .mono { color: var(--ion); }
.cap h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; font-stretch: 116%; line-height: 1.1; }
.cap > p { color: var(--muted); }
.cap .actions { margin-top: auto; padding-top: 8px; }
.models { display: grid; gap: 12px; margin-top: 4px; }
.model { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.model h4 { font-size: 18px; font-weight: 700; font-stretch: 120%; }
.model p { color: var(--muted); font-size: 15px; margin-top: 4px; }

.benefits {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.benefit { padding: clamp(22px, 2.6vw, 32px); min-width: 0; }
.benefit + .benefit { border-left: 1px solid var(--line); }
.benefit h3 { font-size: 20px; font-weight: 600; font-stretch: 118%; }
.benefit p { color: var(--muted); font-size: 15px; margin-top: 8px; line-height: 1.5; }

/* Sectores */
.sector { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 20px; }
.sector__ghost {
  position: absolute; right: -.04em; top: -.2em; z-index: -1; pointer-events: none; user-select: none;
  font-size: clamp(76px, 11vw, 150px); font-weight: 800; font-stretch: 125%; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
}
.sector .mono { color: var(--ion); }
.sector h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; font-stretch: 116%; line-height: 1.08; max-width: 16ch; }
.bullets { list-style: none; border-top: 1px solid var(--line); }
.bullets li { position: relative; padding: 13px 0 13px 22px; border-bottom: 1px solid var(--line); color: var(--ink-2); line-height: 1.5; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 1.45em; width: 10px; height: 1.5px; background: var(--ion); }
.sector .actions { margin-top: auto; padding-top: 8px; }

/* Cifras */
.figures {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px;
  border-top: 1px solid var(--line);
}
.figure { padding: clamp(24px, 3.5vw, 40px) clamp(16px, 2vw, 28px); border-bottom: 1px solid var(--line); min-width: 0; }
.figure:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); }
.figure:nth-child(3n+1) { padding-left: 0; }
.figure .big-num { font-size: clamp(40px, 4.6vw, 64px); }
.figure p:last-child { color: var(--muted); margin-top: 12px; }

/* Premios en abanico (mismo componente que kirion.com, tonos oscuros) */
.subhead { margin-top: clamp(64px, 8vw, 104px); text-align: center; }
.subhead .h3 { margin-top: 12px; }
.section--fan { overflow-x: clip; }
.fan { margin-top: 40px; }
.fan__stage {
  position: relative; height: 440px; margin: 0; padding: 0; list-style: none;
  perspective: 1800px;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
}
.fan__stage:focus-visible { outline: 2px solid var(--ion); outline-offset: 3px; border-radius: var(--radius-lg); }
.fan.is-dragging .fan__stage { cursor: grabbing; }
.fan__card {
  position: absolute; left: 50%; top: 50%; width: 250px; aspect-ratio: 250 / 326;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 24px 20px; text-align: center; overflow: hidden;
  border: 1px solid transparent; border-radius: 14px;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8);
  transform: translate3d(-50%, -50%, 0);
  transition: transform 500ms var(--ease), filter 500ms var(--ease), opacity 500ms var(--ease);
}
.fan:not(.is-ready) .fan__card:not(:nth-child(3)) { opacity: 0; }
.fan.is-dragging .fan__card,
.fan.is-playing .fan__card { transition: none; }
.fan__card--ion { background: var(--ion); color: var(--on-ion); }
.fan__card--dark { background: var(--deep); color: var(--ink); border-color: var(--line); }
.fan__card--panel { background: var(--panel); color: var(--ink); border-color: var(--line-2); }
.fan__card--soft { background: var(--panel-2); color: var(--ink); border-color: var(--line-2); }
.fan__card--lilac { background: var(--ion-soft); color: var(--paper-ink); }
.fan__card--paper { background: var(--paper); color: var(--paper-ink); }
.fan__lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .24; pointer-events: none; }
.fan__top, .fan__org { position: relative; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.fan__name { position: relative; font-size: 28px; font-weight: 600; font-stretch: 118%; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }

/* Ciencia e I+D */
.science { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; margin-top: clamp(64px, 8vw, 104px); }
.paper {
  background: var(--paper); color: var(--paper-ink); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 22px; min-width: 0;
}
.paper .kicker { color: var(--paper-accent); }
.paper__big { font-size: clamp(21px, 2.1vw, 28px); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.partners { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.partners span { font-size: 13px; font-weight: 600; border: 1px solid rgba(14, 18, 38, .22); border-radius: 999px; padding: 6px 12px; }
.programmes .kicker { margin-bottom: 6px; }
.programmes ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.programmes li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--muted); min-width: 0; }
.programmes li b { display: block; color: var(--ink); font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .06em; margin-bottom: 2px; }

/* Casos de éxito */
.cases { display: grid; gap: 20px; margin-top: 48px; }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.case .mono { color: var(--ion); }
.case h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; font-stretch: 115%; line-height: 1.1; margin-top: 12px; }
.case dl { margin: 24px 0 0; display: grid; gap: 16px; }
.case dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case dd { margin: 4px 0 0; color: var(--ink-2); }
.case__result { margin-top: 24px; font-size: clamp(20px, 2vw, 26px); font-weight: 600; font-stretch: 112%; line-height: 1.25; color: var(--ion); }
.bars { display: grid; gap: 22px; }
.bar__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.bar__head b { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .04em; color: var(--ion); white-space: nowrap; }
.bar { display: grid; grid-template-columns: 112px minmax(0, 1fr) 104px; gap: 12px; align-items: center; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.bar i { display: block; height: 10px; border-radius: 999px; background: var(--line-2); }
.bar.is-us i { background: var(--ion); }
.bar.is-us span:first-child { color: var(--ink); }
.bar span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.bars__note { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.results { list-style: none; display: grid; }
.results li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.results li:first-child { padding-top: 0; }
.results li:last-child { border-bottom: 0; padding-bottom: 0; }
.results .big-num { font-size: clamp(36px, 3.6vw, 52px); color: var(--ink); }
.results p { color: var(--muted); }
.case__media { display: flex; gap: 24px; align-items: center; }
.case__media img { width: 132px; height: auto; flex: none; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); padding: 10px; }
.case--pending { background: transparent; border-style: dashed; border-color: var(--line-2); grid-template-columns: minmax(0, 1fr); }
.case--pending .mono { color: var(--muted); }
.case--pending p { color: var(--muted); margin-top: 10px; }

/* Equipo */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 20px; margin-top: 48px; }
.person { display: flex; gap: 20px; align-items: flex-start; }
.person > div { min-width: 0; }
.person h3 { font-size: 22px; font-weight: 600; font-stretch: 115%; }
.person .role { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ion); margin-top: 4px; }
.person .bio { color: var(--muted); margin-top: 10px; }
.avatar {
  width: 88px; height: 88px; flex: none; border-radius: 50%; border: 1.5px solid var(--ion); background: var(--panel-2);
  overflow: hidden; display: grid; place-items: center;
  font-weight: 700; font-stretch: 120%; font-size: 22px; color: var(--ion);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
.person__in {
  margin-left: auto; flex: none; width: 44px; height: 44px;
  display: grid; place-items: center; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 50%; text-decoration: none;
  transition: color 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.person__in svg { width: 16px; height: 16px; display: block; }
.person__in:hover, .person__in:focus-visible { color: var(--ion); border-color: var(--ion); box-shadow: 0 0 0 6px rgba(var(--ion-rgb), .14); outline: none; }
.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px; margin-top: 16px; }
.leader { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.leader .avatar { width: 64px; height: 64px; font-size: 18px; }
.leader h3 { font-size: 18px; font-weight: 600; font-stretch: 112%; line-height: 1.2; }
.leader .role { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ion); }
.leader .bio { color: var(--muted); font-size: 14px; line-height: 1.5; }
.leader__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.leader .person__in { margin-left: 0; width: 40px; height: 40px; }
.crew { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 0 24px; margin-top: 32px; border-top: 1px solid var(--line); }
.crew li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.crew .avatar { width: 48px; height: 48px; font-size: 14px; border-width: 1px; }
.crew a b { display: block; font-weight: 600; font-size: 15px; }
.crew a span { display: block; color: var(--muted); font-size: 14px; }
.crew a { color: inherit; text-decoration: none; }
.crew a:hover b { color: var(--ion); }
.join {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  margin-top: 48px; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: linear-gradient(120deg, var(--panel), var(--bg-2));
}
.join > div { flex: 999 1 460px; min-width: 0; }
.join h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; font-stretch: 118%; }
.join p { color: var(--muted); margin-top: 10px; max-width: 56ch; }

/* Contacto */
.cta { position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; left: 50%; bottom: -60%; width: 120%; height: 100%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(var(--ion-rgb), .2), transparent); pointer-events: none;
}
.cta__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 48px; align-items: end; padding-block: clamp(80px, 11vw, 150px); }
.cta h2 { font-size: clamp(40px, 6vw, 84px); font-weight: 600; font-stretch: 122%; letter-spacing: -.025em; line-height: 1; margin-top: 16px; }
.cta__side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.cta__side p { color: var(--muted); font-size: 17px; }

/* Páginas de texto */
.page-head { padding: clamp(72px, 9vw, 120px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-head .h1 { font-size: clamp(34px, 4.4vw, 60px); margin-top: 16px; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 24px; font-weight: 600; font-stretch: 115%; margin-top: 40px; }
.prose p { color: var(--ink-2); margin-top: 14px; }

/* Pie */
.site-footer {
  padding: 64px 0 40px; font-size: 14px;
  background: var(--bg);
  color: var(--muted);
}
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--ion-hover); }
.site-footer__grid { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 48px 64px; align-items: start; }
.site-footer__brand { min-width: 0; }
.site-footer__brand .brand img { height: 24px; }
.site-footer__brand p { margin-top: 16px; max-width: 32ch; line-height: 1.6; }
.site-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.site-footer__title { margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ion); }
.site-footer__cols a, .site-footer__cols span { display: block; margin-top: 12px; color: var(--muted); text-decoration: none; }
.site-footer__cols a:hover { color: var(--ink); }
.site-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

/* Idioma (pie) */
.lang-menu { position: relative; margin-top: 24px; }
.lang-menu__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink);
  font: 500 14px/1 var(--font); cursor: pointer;
  transition: border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.lang-menu__btn:hover, .lang-menu__btn:focus-visible, .lang-menu.is-open .lang-menu__btn { border-color: var(--ion); box-shadow: 0 0 0 6px rgba(var(--ion-rgb), .12); outline: none; }
.lang-menu__icon { width: 18px; height: 18px; display: block; flex: none; }
.lang-menu__chev { width: 14px; height: 14px; display: block; flex: none; transition: transform 240ms var(--ease); }
.lang-menu.is-open .lang-menu__chev { transform: rotate(180deg); }
.lang-menu__list {
  list-style: none; margin: 8px 0 0; display: none; flex-direction: column; padding: 8px; width: max-content; min-width: 168px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px;
}
.lang-menu.is-open .lang-menu__list { display: flex; }
.lang-menu__list a { padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; }
.lang-menu__list a:hover, .lang-menu__list a[aria-current="true"] { background: var(--panel-2); color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit:nth-child(3) { border-left: 0; }
  .benefit:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 1000px) {
  .science, .case, .cta__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 20px max(var(--gutter), env(safe-area-inset-left, 0px));
    box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .8);
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .site-nav .btn { margin-top: 12px; }
}
@media (max-width: 760px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure:not(:nth-child(3n+1)) { border-left: 0; }
  .figure:nth-child(3n+1) { padding-left: clamp(16px, 2vw, 28px); }
  .figure:nth-child(odd) { padding-left: 0; }
  .figure:nth-child(even) { border-left: 1px solid var(--line); }
  .programmes ul { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fan__stage { height: 340px; }
  .fan__card { width: 196px; padding: 20px 16px; }
  .fan__name { font-size: 22px; }
  .results li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .case__media { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .benefit + .benefit { border-left: 0; border-top: 1px solid var(--line); }
  .person { flex-wrap: wrap; }
  .person .avatar { width: 64px; height: 64px; }
  .bar { grid-template-columns: 92px minmax(0, 1fr) 88px; }
  .site-footer__cols { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
