/* ==========================================================================
   UNE — sistema visual
   Alternancia deliberada de secciones negras y blancas. Mobile-first.
   El acento (#EB2D4B) es el rojo institucional del logo: solo para botones,
   enlaces, estados activos e indicadores.
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --black: #08090B;
  --black-2: #111318;
  --black-3: #171A20;
  --gray-50: #F5F6F8;
  --gray-500: #777D87;
  --ink: #0B0C0F;
  --line-light: #E5E7EB;
  --line-dark: #282C32;

  --accent: #EB2D4B;
  --accent-strong: #D42640;   /* fondo de botones: contraste AA con texto blanco */
  --accent-on-dark: #FF6F84;  /* enlaces sobre negro */
  --accent-on-light: #C21F3A; /* enlaces sobre blanco */

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 5vw, 40px);
  --section-y: clamp(84px, 11vw, 148px);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Temas de sección ---------- */
.section-dark, .site-footer {
  --fg: var(--white);
  --muted: #A6ACB5;
  --subtle: #7D838D;
  --line: var(--line-dark);
  --card: var(--black-2);
  --card-hover: var(--black-3);
  --link: var(--accent-on-dark);
  background: var(--black);
  color: var(--fg);
}
.section-light {
  --fg: var(--ink);
  --muted: #545A64;
  --subtle: var(--gray-500);
  --line: var(--line-light);
  --card: var(--gray-50);
  --card-hover: #EEF0F3;
  --link: var(--accent-on-light);
  background: var(--white);
  color: var(--fg);
}
.section { padding-block: var(--section-y); position: relative; }

/* ---------- Tipografía ---------- */
h1 { font-size: clamp(2.35rem, 1rem + 3.6vw, 4.25rem); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); line-height: 1.08; letter-spacing: -.03em; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.012em; }
.lead { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); line-height: 1.55; color: var(--muted); }
.section-light .lead { color: #3F444C; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--subtle); margin-bottom: 22px;
}
.eyebrow-num { color: var(--link); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow-num::after { content: ""; width: 28px; height: 1px; background: var(--line); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(235, 45, 75, .18); }

.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 76px); }
.section-head-wide { max-width: 880px; }
.section-head .lead { margin-top: 22px; }
.fineprint { margin-top: 32px; font-size: .875rem; line-height: 1.55; color: var(--subtle); max-width: 820px; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.btn-lg { min-height: 54px; padding: 14px 26px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent-strong); color: var(--white); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.section-dark .btn-ghost { border-color: rgba(255, 255, 255, .24); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #22252B; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 28px;
  color: var(--link); font-weight: 600; text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--white);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(8, 9, 11, .78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(255, 255, 255, .08);
}
.site-header[data-on="light"].is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, .84);
  border-bottom-color: var(--line-light);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { height: 30px; width: auto; }
.brand-dark { display: none; }
.site-header[data-on="light"].is-scrolled .brand-light { display: none; }
.site-header[data-on="light"].is-scrolled .brand-dark { display: block; }
.site-footer .brand img { height: 34px; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  position: relative; display: block; padding: 8px 14px; border-radius: 8px;
  font-size: .9375rem; font-weight: 500; text-decoration: none; opacity: .78;
  transition: opacity .2s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { opacity: 1; }
.main-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .25s var(--ease);
}
.main-nav a.is-active::after { transform: scale(1); }
.header-cta { display: none; }

.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  opacity: 0; transition: opacity .3s var(--ease);
}
.site-header.is-scrolled .scroll-progress { opacity: 1; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
}
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon-close, .menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; background: var(--black); color: var(--white);
  overflow-y: auto; padding-block: 16px 40px; border-top: 1px solid var(--line-dark);
}
.mobile-menu li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid var(--line-dark);
  font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; text-decoration: none;
}
.mobile-menu li a .icon { color: var(--accent-on-dark); }
.mobile-menu .btn { margin-top: 32px; }
.mobile-menu-foot { margin-top: 20px; color: #A6ACB5; font-size: .9375rem; }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: var(--black); color: var(--white); }
.menu-open .site-header .brand-light { display: block; }
.menu-open .site-header .brand-dark { display: none; }

@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
  .brand { margin-right: 0; }
  .main-nav { margin-inline: auto; }
}

/* ---------- 1 · Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: calc(var(--header-h) + clamp(48px, 9vw, 112px)) clamp(72px, 9vw, 128px);
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(235, 45, 75, .09), transparent 70%),
    var(--black);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-dark) 20%, var(--line-dark) 80%, transparent);
}
.hero-grid { display: grid; gap: clamp(48px, 7vw, 64px); align-items: center; }
.hero h1 { max-width: 17ch; }
.hero-lead { margin-top: 26px; max-width: 40ch; font-size: clamp(1.125rem, 1.02rem + .5vw, 1.375rem); line-height: 1.5; color: #B8BDC5; }
.specialties { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 30px; font-size: .9375rem; font-weight: 500; color: #8E949E; }
.specialties li { display: inline-flex; align-items: center; }
.specialties li + li::before { content: "/"; margin-inline: 12px; color: #474C55; }

.hero-visual { display: none; width: 100%; max-width: 560px; margin-inline: auto; }
/* En pantallas angostas las etiquetas del diagrama quedarían ilegibles: se muestra desde 600 px. */
@media (min-width: 600px) { .hero-visual { display: block; } }
.hero-visual svg { width: 100%; height: auto; font-family: var(--font); }
.hv-dot { fill: rgba(255, 255, 255, .07); }
.hv-lines use { fill: none; stroke: #30353D; stroke-width: 1.5; }
.hv-joint { fill: var(--black); stroke: #555B64; stroke-width: 1.5; }
.hv-mod rect { fill: var(--black-2); stroke: var(--line-dark); }
.hv-title { fill: var(--white); font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.hv-sub { fill: #8A909A; font-size: 13px; }
.hv-core rect { fill: #0D0F13; stroke: rgba(235, 45, 75, .55); stroke-width: 1.5; }
.hv-pulse { fill: var(--accent); }
.hv-led { fill: #3A3F47; animation: led 3.6s linear infinite; }
.hv-led-2 { animation-delay: .9s; } .hv-led-3 { animation-delay: 1.8s; } .hv-led-4 { animation-delay: 2.7s; }
@keyframes led { 0%, 8% { fill: var(--accent); } 22%, 100% { fill: #3A3F47; } }

@media (min-width: 960px) {
  .hero { min-height: min(100svh, 940px); display: flex; align-items: center; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; }
}

/* ---------- Bloques compartidos ---------- */
.split { display: grid; gap: 28px; }
.split .section-head { margin-bottom: 0; }
.prose p + p { margin-top: 18px; }
.prose p { color: var(--muted); }
.prose .lead { color: var(--fg); }
.prose .muted { font-size: 1rem; color: var(--subtle); }
@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 6fr; gap: 80px; align-items: end; }
}

/* ---------- 2 · Qué es UNE ---------- */
.pillars { display: grid; gap: 0; margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
.pillar { padding: 32px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; }
.pillar-icon {
  grid-row: span 2; width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 12px; color: var(--ink);
}
.pillar-icon .icon { width: 22px; height: 22px; }
.pillar h3 { font-size: 1.375rem; }
.pillar p { margin-top: 6px; color: var(--muted); }
/* Logos de marcas y clientes (sobre fondo claro) */
.logo-band { margin-top: clamp(48px, 6vw, 72px); }
.logo-band-label {
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--subtle); margin-bottom: 20px;
}
.logo-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; align-items: center; }
.logo-row li { display: flex; justify-content: center; }
.logo-row a { display: flex; border-radius: 8px; }
.logo-row img { height: 44px; width: auto; max-width: 100%; object-fit: contain; transition: transform .25s var(--ease); }
.logo-row a:hover img { transform: translateY(-2px); }
@media (min-width: 640px) { .logo-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .logo-row { grid-template-columns: repeat(5, 1fr); } .logo-row img { height: 48px; } }

.clients { margin-bottom: clamp(48px, 6vw, 72px); }
.client-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.client {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 104px; padding: 18px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; text-align: center;
}
.client img {
  max-height: 52px; max-width: 80%; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .72; transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.client:hover img { filter: none; opacity: 1; }
.client-name { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; color: var(--muted); line-height: 1.3; }
.client-place { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
@media (min-width: 640px) { .client-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .client-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } .client { min-height: 120px; } }

@media (min-width: 768px) {
  .pillars { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .pillar { display: block; padding: 40px 32px 44px; border-bottom: 0; }
  .pillar + .pillar { border-left: 1px solid var(--line); }
  .pillar:first-child { padding-left: 0; }
  .pillar-icon { margin-bottom: 28px; }
}

/* ---------- 3 · Ecosistema ---------- */
.solutions { display: grid; gap: 16px; }
.solution {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(28px, 4vw, 44px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .3s var(--ease), transform .3s var(--ease), background-color .3s var(--ease);
}
.solution::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease);
}
.solution:hover { border-color: #3A3F47; background: var(--card-hover); }
.solution:hover::before { transform: scaleX(1); }
.solution-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 32px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); font-size: .8125rem; font-weight: 600; color: var(--fg);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.solution-unit { font-size: .875rem; color: var(--subtle); font-weight: 500; }
.solution h3 { font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem); line-height: 1.15; letter-spacing: -.025em; max-width: 20ch; }
.solution > p { margin-top: 16px; color: var(--muted); max-width: 52ch; }
.ticks { display: grid; gap: 10px; margin-top: 24px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: .9688rem; color: var(--fg); }
.ticks .icon { width: 18px; height: 18px; color: var(--link); }
@media (min-width: 768px) {
  .solutions { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .solution:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- 4 · Desafíos ---------- */
.challenges { display: grid; gap: 14px; }
.challenge {
  display: flex; flex-direction: column; padding: 28px; min-height: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; text-decoration: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.challenge:hover { border-color: var(--ink); box-shadow: 0 18px 40px -24px rgba(11, 12, 15, .28); transform: translateY(-3px); }
.challenge-icon {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  background: var(--gray-50); color: var(--ink); transition: background-color .25s var(--ease), color .25s var(--ease);
}
.challenge-icon .icon { width: 22px; height: 22px; }
.challenge:hover .challenge-icon { background: var(--accent-strong); color: var(--white); }
.challenge h3 { margin-top: 22px; font-size: 1.1875rem; }
.challenge p { margin-top: 8px; color: var(--muted); font-size: 1rem; }
.challenge-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: auto; padding-top: 24px; font-size: .875rem; color: var(--subtle);
}
.challenge-go { display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-weight: 600; }
.challenge-go .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.challenge:hover .challenge-go .icon { transform: translateX(3px); }
@media (min-width: 640px) { .challenges { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .challenges { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* ---------- 5 · Metodología ---------- */
.steps { display: grid; gap: 0; counter-reset: step; position: relative; }
.step { position: relative; padding: 0 0 40px 72px; }
.step::before {
  content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 1px; background: var(--line);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.step-num {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--black);
  font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--fg);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.step:hover .step-num { border-color: var(--accent); color: var(--accent-on-dark); }
.step h3 { font-size: 1.375rem; padding-top: 10px; }
.step p { margin-top: 10px; color: var(--muted); max-width: 32ch; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .steps::before {
    content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 1px;
    background: linear-gradient(90deg, var(--line), var(--line) 70%, rgba(235, 45, 75, .7));
  }
  .step { padding: 80px 0 0; }
  .step::before { display: none; }
  .step h3 { padding-top: 0; }
}

/* ---------- 6 · Experiencia ---------- */
.cases { display: grid; gap: 16px; }
.case {
  display: flex; flex-direction: column; padding: clamp(26px, 3vw, 34px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.case-head h3 { font-size: 1.375rem; }
.case-head p { margin-top: 4px; font-size: .875rem; color: var(--subtle); }
.case-body { margin: 24px 0 0; display: grid; gap: 18px; }
.case-body dt, .case-label {
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--subtle);
}
.case-body dd { margin: 6px 0 0; color: var(--muted); font-size: .9688rem; }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.institutional { display: grid; gap: 40px; margin-top: clamp(64px, 8vw, 104px); align-items: start; }
.institutional-photo { margin: 0; }
.institutional-photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 1010 / 567; object-fit: cover; background: var(--gray-50); }
.institutional-photo figcaption { margin-top: 12px; font-size: .875rem; color: var(--subtle); }
.institutional-list h3 { font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 20px; }
.institutional-list li {
  display: grid; grid-template-columns: 56px 1fr; gap: 6px 16px; padding: 20px 0; border-top: 1px solid var(--line);
}
.institutional-list li:last-child { border-bottom: 1px solid var(--line); }
.institutional-list .year { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--link); padding-top: 1px; }
.institutional-list p { color: var(--fg); }
.institutional-list a {
  grid-column: 2; display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  font-size: .9375rem; font-weight: 600; color: var(--link); text-decoration: none;
}
.institutional-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.institutional-list a .icon { width: 16px; height: 16px; }
@media (min-width: 960px) { .institutional { grid-template-columns: 1.05fr 1fr; gap: 64px; } }

/* ---------- 7 · Tecnología ---------- */
.flow {
  padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--black-2);
}
.flow ol { display: grid; gap: 0; position: relative; }
.flow-step { position: relative; display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; left: 25px; top: 64px; height: calc(100% - 52px); width: 1px; background: var(--line);
}
.flow-icon {
  position: relative; z-index: 1; width: 52px; height: 52px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 14px; background: var(--black); color: var(--white);
}
.flow-icon .icon { width: 22px; height: 22px; }
.flow-step:first-child .flow-icon, .flow-step:last-child .flow-icon { border-color: rgba(235, 45, 75, .6); color: var(--accent-on-dark); }
.flow-text strong { display: block; font-size: 1.0625rem; font-weight: 600; }
.flow-text small { display: block; font-size: .875rem; color: var(--muted); }
.flow-caption { display: none; }

@media (min-width: 960px) {
  .flow ol { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .flow ol::before {
    content: ""; position: absolute; left: 8%; right: 8%; top: 38px; height: 1px; background: var(--line);
  }
  .flow ol::after {
    content: ""; position: absolute; left: 8%; top: 37px; width: 16%; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: flow-run 6s var(--ease) infinite;
  }
  .flow-step { flex-direction: column; text-align: center; gap: 14px; padding: 12px 4px; }
  .flow-step:not(:last-child)::after { display: none; }
  .flow-caption {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px;
    font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); text-align: center;
  }
  .flow-caption span { padding-top: 12px; border-top: 1px solid var(--line); margin-inline: 12px; }
}
@keyframes flow-run { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(420%); opacity: 0; } }

.capabilities { display: grid; gap: 14px; margin-top: clamp(40px, 5vw, 56px); }
.capability {
  padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.capability:hover { border-color: #3A3F47; background: var(--card-hover); }
.capability-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); color: var(--accent-on-dark); }
.capability-icon .icon { width: 21px; height: 21px; }
.capability h3 { margin-top: 20px; font-size: 1.125rem; }
.capability p { margin-top: 8px; font-size: 1rem; color: var(--muted); }
@media (min-width: 640px) { .capabilities { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .capabilities { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.tech-foot { display: grid; gap: 24px; margin-top: clamp(40px, 5vw, 56px); padding-top: 32px; border-top: 1px solid var(--line); }
.tech-foot p { color: var(--muted); max-width: 62ch; }
.tech-foot .btn { justify-self: start; }
@media (min-width: 900px) { .tech-foot { grid-template-columns: 1fr auto; align-items: center; gap: 48px; } }

/* ---------- 8 · Capacitación ---------- */
.atp-logo { height: 64px; width: auto; margin-top: 32px; }
.paths { display: grid; gap: 16px; margin-top: clamp(48px, 6vw, 72px); }
.path { padding: clamp(28px, 4vw, 40px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.path-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.path-icon .icon { width: 22px; height: 22px; }
.path-kicker { margin-top: 28px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--link); }
.path h3 { margin-top: 8px; font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); letter-spacing: -.02em; }
.path p:last-child { margin-top: 12px; color: var(--muted); max-width: 46ch; }
.paths-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.paths-foot .muted { font-size: .9375rem; color: var(--subtle); max-width: 48ch; }
@media (min-width: 768px) { .paths { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

/* ---------- 9 · CTA final ---------- */
.cta { border-bottom: 1px solid var(--line-dark); }
.cta-grid { display: grid; gap: 48px; align-items: start; }
.cta h2 { max-width: 16ch; }
.cta .lead { margin-top: 22px; max-width: 46ch; }
.contact-list { display: grid; gap: 14px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.contact-list .icon { color: var(--accent-on-dark); }
.contact-list a { color: var(--fg); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.form-card { padding: clamp(24px, 4vw, 40px); background: var(--black-2); border: 1px solid var(--line); border-radius: 24px; }
.form-title { font-size: 1.5rem; letter-spacing: -.02em; }
.form-sub { margin-top: 6px; margin-bottom: 28px; color: var(--muted); font-size: 1rem; }
@media (min-width: 960px) {
  .cta-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .cta-copy { position: sticky; top: calc(var(--header-h) + 40px); }
}

/* ---------- Formularios ---------- */
.lead-form { --input-bg: #0B0D11; --input-line: #30353D; --error: #FF8597; }
.section-light .lead-form, .lead-form.on-light { --input-bg: var(--white); --input-line: #CDD1D7; --error: #B81A33; }
.form-grid { display: grid; gap: 18px; }
.field label, .choice-group legend { display: block; margin-bottom: 8px; font-size: .9375rem; font-weight: 500; color: var(--fg); }
.optional { font-weight: 400; color: var(--subtle); }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--input-bg); border: 1px solid var(--input-line); border-radius: 10px;
  font-size: 1rem; color: var(--fg); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--subtle); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(235, 45, 75, .22);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.field select option { color: var(--ink); background: var(--white); }
.field-hint { margin-top: 6px; font-size: .8125rem; color: var(--subtle); line-height: 1.45; }
.field-error, .form-error { margin-top: 6px; font-size: .875rem; color: var(--error); font-weight: 500; }
.form-error { margin: 18px 0 0; }
.consent { margin-top: 22px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent-strong); }
.check a { color: var(--link); }
.lead-form button[type="submit"] { margin-top: 24px; }
.lead-form button[disabled] { opacity: .7; cursor: progress; }
.form-note { margin-top: 14px; font-size: .8125rem; color: var(--subtle); text-align: center; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
  .lead-form .field[data-field="necesidad"] { grid-column: 1 / -1; }
}

/* Opciones en tarjetas (/conectar) */
.choice-group { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.choices { display: grid; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-box {
  display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 16px;
  border: 1px solid var(--input-line); border-radius: 14px; background: var(--input-bg);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.choice-icon { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--card); color: var(--fg); flex: none; }
.choice-text { flex: 1; min-width: 0; }
.choice-text strong { display: block; font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--fg); }
.choice-text small { display: block; margin-top: 2px; font-size: .875rem; color: var(--muted); line-height: 1.4; }
.choice-check {
  width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--input-line); color: transparent; transition: all .2s var(--ease);
}
.choice-check .icon { width: 14px; height: 14px; stroke-width: 2.5; }
.choice:hover .choice-box { border-color: var(--fg); }
.choice input:checked + .choice-box { border-color: var(--accent-strong); box-shadow: inset 0 0 0 1px var(--accent-strong); background: rgba(235, 45, 75, .05); }
.choice input:checked + .choice-box .choice-check { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--white); }
.choice input:checked + .choice-box .choice-icon { background: var(--accent-strong); color: var(--white); }
.choice input:focus-visible + .choice-box { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 720px) { .choices { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--black-2); padding-block: clamp(56px, 7vw, 88px) 32px; font-size: .9688rem; }
.footer-grid { display: grid; gap: 40px; }
.footer-brand p { margin-top: 20px; color: var(--muted); max-width: 36ch; }
.footer-brand .footer-place { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--fg); }
.footer-place .icon { width: 18px; height: 18px; color: var(--accent-on-dark); }
.footer-title { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer ul a { color: var(--muted); text-decoration: none; transition: color .2s var(--ease); }
.site-footer ul a:hover { color: var(--white); }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .icon { width: 18px; height: 18px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  margin-top: clamp(48px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--line);
  font-size: .8438rem; color: var(--subtle);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--white); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; } }

/* ---------- Páginas internas (/conectar, /gracias, /privacidad) ---------- */
.page-hero { padding-block: calc(var(--header-h) + clamp(40px, 8vw, 88px)) clamp(48px, 7vw, 80px); }
.page-hero h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem); max-width: 18ch; }
.page-hero .lead { margin-top: 20px; max-width: 48ch; color: #B8BDC5; }
.page-narrow { max-width: 760px; }
.simple-header .header-inner { justify-content: space-between; }
.simple-header .back-link { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 500; text-decoration: none; opacity: .85; }
.simple-header .back-link:hover { opacity: 1; }

.conectar-form-section { padding-block: clamp(48px, 7vw, 88px) clamp(64px, 8vw, 104px); }
.conectar-points { display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 28px; font-size: .9375rem; color: #8E949E; }
.conectar-points li + li::before { content: "/"; margin-inline: 12px; color: #474C55; }

.thanks-card { margin-top: 36px; padding: clamp(24px, 4vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--black-2); max-width: 640px; }
.thanks-card p { color: var(--muted); }
.thanks-card .actions { margin-top: 24px; }

.legal h2 { font-size: 1.375rem; letter-spacing: -.015em; margin-top: 40px; }
.legal p, .legal li { color: var(--muted); margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--link); }
.legal .draft { padding: 14px 16px; border-radius: 10px; background: #FFF4E5; color: #6B4A00; font-size: .9375rem; }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hv-pulses { display: none; }
  .flow ol::after { display: none; }
}
