/* =====================================================================
   VITECSA — main.css
   CSS vanilla, mobile-first. Sin estilos inline (CSP: style-src 'self').

   1. Fuentes locales        6. Header y navegación   11. Aliados (marquesina)
   2. Tokens                 7. Hero                  12. Certificaciones / CTA
   3. Base                   8. Tarjetas y bento      13. Nosotros
   4. Utilidades             9. Diferenciadores       14. Contacto y formularios
   5. Botones y etiquetas   10. Metodología           15. Páginas de texto, footer, animaciones
   ===================================================================== */

/* ── 1. Fuentes locales (sin CDN) ─────────────────────────────────── */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ── 2. Tokens: cambia la paleta aquí ─────────────────────────────── */
:root {
  /* Color */
  --c-bg:            #060912;
  --c-bg-alt:        #090e1b;
  --c-surface:       rgba(148, 178, 255, 0.045);
  --c-surface-hover: rgba(148, 178, 255, 0.075);
  --c-border:        rgba(148, 178, 255, 0.12);
  --c-border-strong: rgba(56, 225, 255, 0.38);
  --c-text:          #e8edf7;
  --c-text-muted:    #a3aec4;   /* 8.4:1 sobre --c-bg */
  --c-text-subtle:   #8a95ad;   /* 6.2:1 sobre --c-bg */
  --c-accent:        #38e1ff;   /* cian */
  --c-accent-2:      #5b8cff;   /* azul eléctrico */
  --c-accent-3:      #8b7bff;
  --c-accent-ink:    #03121c;   /* texto sobre botón cian */
  --c-ok:            #3ee6a2;
  --c-error:         #ff7a8a;
  --c-warn:          #ffc46b;
  --c-logo-tile:     #eef2f8;

  --gradient-accent: linear-gradient(115deg, var(--c-accent) 0%, var(--c-accent-2) 55%, var(--c-accent-3) 100%);
  --glow:            0 0 0 1px rgba(56, 225, 255, 0.25), 0 8px 32px -8px rgba(56, 225, 255, 0.35);

  /* Tipografía */
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  --fs-2xl:  clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --fs-hero: clamp(2.25rem, 1.4rem + 4.2vw, 4.25rem);
  --lh-tight: 1.12;
  --lh-snug:  1.3;
  --lh-body:  1.65;

  /* Espaciado (escala 4 px) */
  --s-1: 0.25rem;  --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;     --s-10: 8rem;
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);

  /* Forma y movimiento */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --blur:      14px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --dur:       240ms;

  --container: 1200px;
  --header-h:  68px;
}

/* ── 3. Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
  color-scheme: dark;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image:
    radial-gradient(60rem 40rem at 85% -10%, rgba(91, 140, 255, 0.10), transparent 60%),
    radial-gradient(50rem 35rem at -10% 20%, rgba(56, 225, 255, 0.06), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: var(--c-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7cebff; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: var(--lh-tight); letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
strong { color: var(--c-text); font-weight: 600; }

::selection { background: rgba(56, 225, 255, 0.28); color: #fff; }

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

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* ── 4. Utilidades ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-4);
}
@media (min-width: 768px) { .container { padding-inline: var(--s-6); } }

.sr-only {
  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-link {
  position: absolute;
  top: var(--s-2);
  left: var(--s-2);
  z-index: 200;
  padding: var(--s-2) var(--s-4);
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: none; color: var(--c-accent-ink); }

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (forced-colors: active) {
  .text-gradient { color: inherit; background: none; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* ── 5. Botones y etiquetas ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;            /* objetivo táctil mínimo */
  padding: var(--s-2) var(--s-5);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform var(--dur) var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  color: var(--c-accent-ink);
  background: var(--gradient-accent);
  background-size: 140% 100%;
  background-position: 0 0;
}
.btn--primary:hover {
  color: var(--c-accent-ink);
  background-position: 100% 0;
  box-shadow: var(--glow);
}
.btn--ghost {
  color: var(--c-text);
  background: var(--c-surface);
  border-color: var(--c-border);
}
.btn--ghost:hover {
  color: var(--c-text);
  background: var(--c-surface-hover);
  border-color: var(--c-border-strong);
}
.btn--lg { min-height: 52px; padding-inline: var(--s-6); font-size: var(--fs-base); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-1) var(--s-3);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--c-text-muted);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(56, 225, 255, 0.15);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: auto;
  padding: var(--s-1) var(--s-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-accent);
  background: rgba(56, 225, 255, 0.08);
  border: 1px solid rgba(56, 225, 255, 0.22);
  border-radius: 999px;
  width: fit-content;
}
.pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.tags li {
  padding: var(--s-1) var(--s-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
}

/* ── 6. Header y navegación ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.is-scrolled,
.nav-open .site-header {
  background: rgba(6, 9, 18, 0.82);
  border-bottom-color: var(--c-border);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-scrolled {
    background: rgba(6, 9, 18, 0.6);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
    backdrop-filter: blur(var(--blur)) saturate(140%);
  }
  /* backdrop-filter crea un bloque contenedor y rompería el menú fijo móvil */
  .nav-open .site-header.is-scrolled {
    background: var(--c-bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--c-text);
  text-decoration: none;
}
.brand:hover { color: var(--c-text); }
.brand__logo { width: 40px; height: 40px; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Botón hamburguesa (solo visible con JS en móvil) */
.nav-toggle {
  display: none;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

.site-nav__list { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.site-nav__link {
  display: block;
  padding: var(--s-2) var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-nav__link:hover,
.site-nav__link[aria-current="page"] { color: var(--c-text); background: var(--c-surface-hover); }

/* Móvil, sin JS: la navegación se muestra como fila envolvente (sigue siendo usable). */
@media (max-width: 1023.98px) {
  .site-header__inner { flex-wrap: wrap; }
  .site-nav__cta { display: none; }

  /* Con JS: panel desplegable */
  .js .site-header__inner { flex-wrap: nowrap; }
  .js .nav-toggle { display: grid; }
  .js .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
    padding: var(--s-6) var(--s-4) var(--s-7);
    background: rgba(6, 9, 18, 0.97);
    border-top: 1px solid var(--c-border);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
  }
  .js .site-nav__list { flex-direction: column; gap: 0; }
  .js .site-nav__link {
    padding: var(--s-4) var(--s-2);
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    color: var(--c-text);
    border-bottom: 1px solid var(--c-border);
    border-radius: 0;
  }
  .js .site-nav__cta { display: inline-flex; min-height: 52px; }
}

@media (min-width: 1024px) {
  .site-nav { display: flex; align-items: center; gap: var(--s-5); }
}

/* ── 7. Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: var(--s-8) var(--s-7);
  overflow: hidden;
  isolation: isolate;
}
.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 178, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero__grid { display: grid; gap: var(--s-7); align-items: center; }
.hero__copy { display: grid; gap: var(--s-5); justify-items: start; }
.hero__title { font-size: var(--fs-hero); font-weight: 600; max-width: 18ch; }
.hero__lead { max-width: 60ch; font-size: var(--fs-md); color: var(--c-text-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__visual { display: none; }

.hero--compact { padding-block: var(--s-7) var(--s-6); }
.hero--compact .container { display: grid; gap: var(--s-5); justify-items: start; }
.hero--compact .hero__title { max-width: 22ch; }
.hero--center .container { justify-items: center; text-align: center; }

.breadcrumb { display: flex; gap: var(--s-2); font-size: var(--fs-xs); color: var(--c-text-subtle); }
.breadcrumb a { color: var(--c-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-accent); }

@media (min-width: 1024px) {
  .hero { padding-block: var(--s-9) var(--s-8); }
  .hero__grid { grid-template-columns: 1.25fr 0.75fr; }
  .hero__visual { display: block; justify-self: end; }
  .hero--compact { padding-block: var(--s-8) var(--s-7); }
}

/* Diagrama de topología */
.topology { width: min(100%, 380px); height: auto; overflow: visible; }
.topology__ring { stroke: rgba(148, 178, 255, 0.14); stroke-dasharray: 2 6; }
.topology__ring--inner { stroke: rgba(56, 225, 255, 0.18); }
.topology__link { stroke: rgba(148, 178, 255, 0.22); stroke-width: 1.2; }
.topology__link--soft { stroke: rgba(148, 178, 255, 0.1); }
.topology__flow { stroke: var(--c-accent); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 10 140; opacity: 0.85; }
.topology__nodes circle { fill: var(--c-bg); stroke: var(--c-accent-2); stroke-width: 2; }
.topology__core { fill: rgba(56, 225, 255, 0.12); stroke: var(--c-accent); stroke-width: 1.5; }
.topology__core-lines { stroke: var(--c-accent); stroke-width: 2; stroke-linecap: round; }

/* Métricas */
.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--s-7);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.metrics__item {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--s-1);
  padding: var(--s-5);
  border-color: var(--c-border);
  border-style: solid;
  border-width: 0;
}
.metrics__item:nth-child(odd)  { border-right-width: 1px; }
.metrics__item:nth-child(-n+2) { border-bottom-width: 1px; }
.metrics dt { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-subtle); }
.metrics dd {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.metrics dd span { color: var(--c-accent); }
@media (min-width: 768px) {
  .metrics { grid-template-columns: repeat(4, 1fr); }
  .metrics__item { border-width: 0 !important; }
  .metrics__item + .metrics__item { border-left-width: 1px !important; }
}

/* Banda de confianza */
.trust { padding-block: var(--s-6); border-block: 1px solid var(--c-border); }
.trust__label { text-align: center; font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-subtle); }
.trust__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-6); margin-top: var(--s-4); font-family: var(--font-display); font-weight: 600; color: var(--c-text-muted); }

/* ── 8. Secciones, tarjetas y bento ───────────────────────────────── */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--s-6) var(--section-y); }
.section--alt {
  background: linear-gradient(180deg, transparent, var(--c-bg-alt) 12%, var(--c-bg-alt) 88%, transparent);
}

.section-head {
  display: grid;
  gap: var(--s-4);
  max-width: 46rem;
  margin-bottom: var(--s-7);
}
.section-title { font-size: var(--fs-2xl); }
.section-lead { font-size: var(--fs-md); color: var(--c-text-muted); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5);
  color: var(--c-text-muted);
  background: linear-gradient(180deg, rgba(148, 178, 255, 0.06), rgba(148, 178, 255, 0.025));
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .card {
    -webkit-backdrop-filter: blur(var(--blur));
    backdrop-filter: blur(var(--blur));
  }
}
.card:hover { border-color: rgba(148, 178, 255, 0.24); }
@media (min-width: 768px) { .card { padding: var(--s-6); } }

/* Línea de luz superior en tarjetas destacadas */
.card--feature::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 1px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, transparent, var(--c-accent), var(--c-accent-2), transparent);
}
.card--feature {
  background:
    radial-gradient(30rem 16rem at 0% 0%, rgba(56, 225, 255, 0.09), transparent 70%),
    linear-gradient(180deg, rgba(148, 178, 255, 0.06), rgba(148, 178, 255, 0.025));
}

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  color: var(--c-accent);
  background: rgba(56, 225, 255, 0.08);
  border: 1px solid rgba(56, 225, 255, 0.2);
  border-radius: 12px;
}
.card__tag {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.card__title { font-size: var(--fs-lg); color: var(--c-text); }
.card__title--lg { font-size: var(--fs-xl); }

.checklist { display: grid; gap: var(--s-2); font-size: var(--fs-sm); }
.checklist li { position: relative; padding-left: var(--s-5); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 10px; height: 6px;
  border-left: 2px solid var(--c-accent);
  border-bottom: 2px solid var(--c-accent);
  transform: rotate(-45deg);
}

.stat { display: grid; gap: var(--s-1); }
.stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: var(--fs-sm); }

.bento { display: grid; gap: var(--s-4); }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__a, .bento__f { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, 1fr); gap: var(--s-5); }
  .bento__a { grid-column: span 7; }
  .bento__b { grid-column: span 5; }
  .bento__c, .bento__d, .bento__e { grid-column: span 4; }
  .bento__f { grid-column: 1 / -1; }
}

.card-wide { display: grid; gap: var(--s-6); }
.card-wide > div { display: grid; gap: var(--s-4); align-content: start; }
.card-wide__stats { padding-block: var(--s-4); border-block: 1px solid var(--c-border); }
@media (min-width: 1024px) {
  .card-wide { grid-template-columns: 1.3fr 0.8fr 1fr; }
  .card-wide__stats { padding: 0 var(--s-6); border-block: 0; border-inline: 1px solid var(--c-border); }
}

/* ── 9. Diferenciadores ───────────────────────────────────────────── */
.grid-3 { display: grid; gap: var(--s-4); }
@media (min-width: 640px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }

.feature {
  display: grid;
  gap: var(--s-3);
  align-content: start;
  padding: var(--s-5) 0 var(--s-5);
  color: var(--c-text-muted);
  border-top: 1px solid var(--c-border);
}
.feature__num {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-accent);
  font-variant-numeric: tabular-nums;
}
.feature__title { font-size: var(--fs-lg); color: var(--c-text); }

/* ── 10. Metodología (línea de tiempo) ────────────────────────────── */
.timeline { display: grid; gap: var(--s-5); counter-reset: paso; }
.timeline__step {
  position: relative;
  display: grid;
  gap: var(--s-2);
  padding-left: var(--s-8);
  color: var(--c-text-muted);
  counter-increment: paso;
}
.timeline__step::before {
  content: counter(paso, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-accent);
  background: var(--c-bg);
  border: 1px solid var(--c-border-strong);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--c-bg);
  z-index: 1;
}
.timeline__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px; top: 44px; bottom: calc(-1 * var(--s-5));
  width: 1px;
  background: linear-gradient(var(--c-border-strong), var(--c-border));
}
.timeline__title { font-size: var(--fs-md); color: var(--c-text); padding-top: var(--s-2); }

@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(3, 1fr); gap: var(--s-7) var(--s-5); }
  .timeline__step { padding: var(--s-8) 0 0; }
  .timeline__step:not(:last-child)::after {
    left: 52px; right: calc(-1 * var(--s-5)); top: 21px; bottom: auto;
    width: auto; height: 1px;
    background: linear-gradient(90deg, var(--c-border-strong), var(--c-border));
  }
  .timeline__step:nth-child(3n)::after { display: none; }
}

/* ── 11. Aliados (marquesina CSS) ─────────────────────────────────── */
.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;
  flex-shrink: 0;
  gap: var(--s-4);
  padding-right: var(--s-4);
  min-width: 100%;
}
.logo-tile {
  display: grid;
  place-items: center;
  height: 84px;
  padding: var(--s-3) var(--s-5);
  background: var(--c-logo-tile);
  border-radius: var(--radius);
}
.logo-tile img { width: auto; height: 44px; max-width: 140px; object-fit: contain; }

@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 55s linear infinite; }
  .marquee:hover .marquee__track,
  .marquee:focus-within .marquee__track { animation-play-state: paused; }
}
/* Sin animación: rejilla estática y se oculta la copia */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; padding-inline: var(--s-4); }
  .marquee__track { flex-wrap: wrap; justify-content: center; flex-shrink: 1; padding: 0; }
  .marquee__track[aria-hidden="true"] { display: none; }
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* ── 12. Certificaciones y CTA ────────────────────────────────────── */
.cert {
  display: grid;
  gap: var(--s-3);
  align-content: start;
  padding: var(--s-5);
  color: var(--c-text-muted);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.cert:hover { border-color: var(--c-border-strong); background: var(--c-surface-hover); }
.cert__icon { color: var(--c-accent); }
.cert__icon .icon { width: 28px; height: 28px; }
.cert__name { font-size: var(--fs-md); letter-spacing: 0.02em; color: var(--c-text); }

.cta {
  position: relative;
  display: grid;
  gap: var(--s-5);
  justify-items: center;
  padding: var(--s-7) var(--s-5);
  text-align: center;
  background:
    radial-gradient(40rem 20rem at 50% 0%, rgba(56, 225, 255, 0.14), transparent 70%),
    radial-gradient(30rem 18rem at 100% 100%, rgba(139, 123, 255, 0.12), transparent 70%),
    var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 178, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at top, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at top, #000, transparent 70%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta__title { font-size: var(--fs-2xl); max-width: 20ch; }
.cta__lead { max-width: 58ch; color: var(--c-text-muted); font-size: var(--fs-md); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
.cta__fine { font-size: var(--fs-xs); color: var(--c-text-subtle); }
@media (min-width: 768px) { .cta { padding: var(--s-9) var(--s-7); } }

/* ── 13. Nosotros ─────────────────────────────────────────────────── */
.split { display: grid; gap: var(--s-4); }
@media (min-width: 1024px) { .split { grid-template-columns: 7fr 5fr; gap: var(--s-5); } }
.statement__title { font-size: var(--fs-2xl); color: var(--c-text); }
.statement__body { font-size: var(--fs-md); line-height: 1.7; }

.infra {
  display: grid;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.infra__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: var(--s-6);
  background:
    radial-gradient(24rem 18rem at 20% 10%, rgba(56, 225, 255, 0.22), transparent 70%),
    linear-gradient(150deg, #0b1a33 0%, #13254a 50%, #0a1730 100%);
  isolation: isolate;
}
.infra__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.infra__big {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 2rem + 3vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}
.infra__caption { margin-top: var(--s-2); font-size: var(--fs-sm); color: rgba(232, 237, 247, 0.8); }
.infra__body { display: grid; gap: var(--s-4); align-content: center; padding: var(--s-6) var(--s-5); color: var(--c-text-muted); }
@media (min-width: 768px) { .infra__body { padding: var(--s-7); } }
@media (min-width: 1024px) { .infra { grid-template-columns: 5fr 7fr; } .infra__panel { min-height: 100%; padding: var(--s-7); } }

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-border);
}
.mini-metrics div { display: flex; flex-direction: column-reverse; gap: var(--s-1); }
.mini-metrics dt { font-size: var(--fs-xs); color: var(--c-text-subtle); }
.mini-metrics dd { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; line-height: 1; color: var(--c-accent); }

.values { display: grid; gap: var(--s-4); }
@media (min-width: 640px)  { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.value:hover { border-color: var(--c-border-strong); }
.value__type { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-text-subtle); }
.value__name { font-size: var(--fs-lg); color: var(--c-text); }
.value--summary {
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(18rem 12rem at 50% 0%, rgba(56, 225, 255, 0.14), transparent 70%), var(--c-surface);
  border-color: var(--c-border-strong);
}
.value__big {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--c-accent);
}

/* ── 14. Contacto y formularios ───────────────────────────────────── */
.contact { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 1024px) { .contact { grid-template-columns: 1.6fr 1fr; } }
.contact__aside .card { gap: var(--s-5); }

.contact-list { display: grid; gap: var(--s-4); }
.contact-list li { display: flex; gap: var(--s-3); align-items: center; }
.contact-list a { word-break: break-word; }
.contact-list__label { font-size: var(--fs-xs); color: var(--c-text-subtle); }

.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__note { font-size: var(--fs-xs); color: var(--c-text-subtle); }
.form .btn { justify-self: start; }

.field { display: grid; gap: var(--s-2); align-content: start; }
.field label { font-size: var(--fs-sm); font-weight: 500; color: var(--c-text); }
.req { color: var(--c-accent); }
.opt { color: var(--c-text-subtle); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s-3) var(--s-4);
  font: inherit;
  font-size: var(--fs-base);   /* ≥16px: evita zoom automático en iOS */
  color: var(--c-text);
  background: rgba(6, 9, 18, 0.6);
  border: 1px solid rgba(148, 178, 255, 0.22);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 160px; resize: vertical; line-height: var(--lh-body); }
.field select {
  appearance: none;
  padding-right: var(--s-7);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--c-text-muted) 50%),
    linear-gradient(135deg, var(--c-text-muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field select option { background: var(--c-bg-alt); color: var(--c-text); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(148, 178, 255, 0.4); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(56, 225, 255, 0.25);
}
.field [aria-invalid="true"] { border-color: var(--c-error); }
.field__help { font-size: var(--fs-xs); color: var(--c-text-subtle); }
.field__error { font-size: var(--fs-xs); font-weight: 500; color: var(--c-error); }

.field--check { grid-template-columns: auto 1fr; column-gap: var(--s-3); align-items: start; }
.field--check input {
  width: 22px; height: 22px; min-height: 0;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--c-accent);
}
.field--check label { font-weight: 400; color: var(--c-text-muted); }
.field--check .field__error { grid-column: 1 / -1; }

/* Honeypot: fuera de la vista y del orden de tabulación */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.notice {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  margin-bottom: var(--s-4);
  padding: var(--s-4);
  font-size: var(--fs-sm);
  border: 1px solid;
  border-radius: var(--radius-sm);
}
.notice--ok    { color: var(--c-text); background: rgba(62, 230, 162, 0.08); border-color: rgba(62, 230, 162, 0.4); }
.notice--ok .notice__icon { color: var(--c-ok); }
.notice--error { color: var(--c-text); background: rgba(255, 122, 138, 0.08); border-color: rgba(255, 122, 138, 0.45); }
.notice--warn  { color: var(--c-text); background: rgba(255, 196, 107, 0.08); border-color: rgba(255, 196, 107, 0.45); }
.notice__title { font-size: var(--fs-md); margin-bottom: var(--s-1); }

/* ── 15. Texto legal, 404, footer y animaciones ───────────────────── */
.prose { max-width: 72ch; color: var(--c-text-muted); }
.prose h2 { margin: var(--s-6) 0 var(--s-3); font-size: var(--fs-lg); color: var(--c-text); }
.prose p + p { margin-top: var(--s-3); }

.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}

.site-footer {
  padding-block: var(--s-8) var(--s-6);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  border-top: 1px solid var(--c-border);
  background: linear-gradient(180deg, transparent, rgba(9, 14, 27, 0.9));
}
.site-footer__grid { display: grid; gap: var(--s-6); }
@media (min-width: 640px)  { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer__brand { display: grid; gap: var(--s-4); align-content: start; }
.site-footer__tagline { max-width: 36ch; }
.site-footer__title {
  margin-bottom: var(--s-4);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text);
}
.site-footer__links { display: grid; gap: var(--s-2); }
.site-footer a { color: var(--c-text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  font-size: var(--fs-xs);
  color: var(--c-text-subtle);
  border-top: 1px solid var(--c-border);
}

/* Animaciones: solo si el usuario no pidió reducir movimiento */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > *,
  .hero--compact .container > * {
    animation: rise 700ms var(--ease) both;
  }
  .hero__copy > :nth-child(2), .hero--compact .container > :nth-child(2) { animation-delay: 80ms; }
  .hero__copy > :nth-child(3), .hero--compact .container > :nth-child(3) { animation-delay: 160ms; }
  .hero__copy > :nth-child(4), .hero--compact .container > :nth-child(4) { animation-delay: 240ms; }
  .hero--compact .container > :nth-child(5) { animation-delay: 320ms; }
  .hero__visual { animation: fade 1200ms 200ms var(--ease) both; }
  .metrics { animation: rise 800ms 320ms var(--ease) both; }

  .topology__flow { animation: flow 6s linear infinite; }
  .topology__ring { animation: spin 80s linear infinite; transform-origin: 200px 200px; }
  .topology__ring--inner { animation-direction: reverse; animation-duration: 60s; }
  .badge__dot { animation: pulse 2.4s ease-in-out infinite; }

  /* Revelado al hacer scroll (main.js añade .js e .is-visible) */
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .reveal--d1 { transition-delay: 70ms; }
  .js .reveal--d2 { transition-delay: 140ms; }
  .js .reveal--d3 { transition-delay: 210ms; }

  .card:hover, .value:hover { transform: translateY(-2px); }
}

@keyframes rise  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes flow  { to { stroke-dashoffset: -300; } }
@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(56, 225, 255, 0); } }

@media print {
  body { background: #fff; color: #000; }
  .site-header, .nav-toggle, .hero__backdrop, .hero__visual, .marquee, .cta__actions { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
