/* ============================================================
   KORAIX — hoja de estilos principal
   Mobile-first. Breakpoints: 640px / 900px / 1200px.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #05050A;
  --panel: #0F0F1A;
  --panel-2: #14141F;
  --line: #1F1F2E;
  --text: #F5F5F7;
  --muted: #8A8A93;
  --accent-1: #4F5DFF;
  --accent-2: #00E5C7;
  --violet: #7C3AED;

  --font-sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Padding lateral fluido: el original usaba 40px fijo, inviable en móvil. */
  --pad: clamp(20px, 5vw, 40px);
  --header-h: 68px;

  /* Escala del sistema orbital del hero (1 = tamaño del diseño original). */
  --o: 0.58;
}

/* ---------- Reset mínimo ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--text); }

::selection { background: var(--accent-1); color: #fff; }
/* El original usaba #55555f (~3:1 de contraste). Como las etiquetas del
   formulario están ocultas visualmente, el placeholder es la única etiqueta
   que ve el usuario: se sube a #7E7E8A (~4.7:1) para que pase AA sin dejar
   de ser subordinado al texto escrito. */
::placeholder { color: #7E7E8A; opacity: 1; }

input, textarea, button { font-family: inherit; }

h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* El atributo hidden debe ganarle a cualquier display de componente. */
[hidden] { display: none !important; }

/* ---------- Foco visible (ausente en el diseño original) ---------- */
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Salto al contenido ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent-1);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus-visible {
  top: 12px;
  color: #fff;
}

/* ---------- Utilidad accesible ---------- */
.sr-only,
.form__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Capas de fondo
   ============================================================ */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .24;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 15%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 60% 15%, #000 30%, transparent 78%);
}

.bg-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ============================================================
   Botones
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  padding: 11px 20px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .3s ease, color .3s ease;
}

.btn--primary {
  background: var(--accent-1);
  color: #fff;
  box-shadow: 0 0 24px -4px var(--accent-1);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 34px 0 var(--accent-1);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
  font-weight: 500;
}
.btn--ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.btn--lg {
  gap: 10px;
  padding: 15px 28px;
  font-size: 15.5px;
}
.btn--lg.btn--primary { box-shadow: 0 0 34px -4px var(--accent-1); }
.btn--lg.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 44px 0 var(--accent-1);
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   Header + navegación
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--pad);
  background: rgba(5, 5, 10, .55);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex: none;
}
.site-header__logo img {
  display: block;
  height: 30px;
  width: auto;
}

/* --- Hamburguesa --- */
.nav-toggle {
  position: relative;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(15, 15, 26, .6);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), opacity .18s ease;
}
body.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- Panel de navegación en móvil ---
   Absoluto (no fixed): el backdrop-filter del header crea bloque contenedor
   para descendientes fixed, así que un fixed acá quedaría anclado al header. */
.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100dvh - var(--header-h));
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 40px var(--pad) 80px;
  /* Fondo opaco a propósito: un backdrop-filter anidado dentro del header
     (que ya tiene el suyo) se compone mal y deja ver el contenido de atrás. */
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  /* visibility con delay al cerrar y sin delay al abrir: así el panel es
     focusable en el mismo frame en que se abre. */
  transition: opacity .28s ease,
              transform .28s cubic-bezier(.2, .7, .2, 1),
              visibility 0s linear .28s;
}
body.nav-open .nav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .28s ease,
              transform .28s cubic-bezier(.2, .7, .2, 1),
              visibility 0s linear 0s;
}

.nav__link {
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.01em;
  transition: color .25s ease;
}
.nav__link:hover { color: var(--accent-2); }

.nav__cta { margin-top: 8px; }

/* El overflow-x:clip de html impide que el overflow del body se propague al
   viewport, así que hay que bloquear el scroll también en el elemento raíz. */
body.nav-open { overflow: hidden; }
html:has(body.nav-open) { overflow: hidden; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1320px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 56px) var(--pad) 64px;
}

.hero__glow {
  position: absolute;
  top: 4%;
  left: -8%;
  width: clamp(320px, 85vw, 560px);
  height: clamp(320px, 85vw, 560px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 93, 255, .26), transparent 66%);
  filter: blur(34px);
  z-index: -1;
  pointer-events: none;
}

.hero__content { min-width: 0; }

/* --- Badge --- */
/* Eyebrow editorial: sin caja ni pill. Una barra vertical con el gradiente
   de marca a la izquierda + el texto en la tipografía de los títulos. Se
   reemplazó el pill mono con puntito (cliché de landing de IA) por algo
   con más criterio de diseño. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}
.badge__bar {
  flex: none;
  align-self: stretch;
  width: 3px;
  min-height: 1.15em;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent-1) 55%, var(--violet));
  box-shadow: 0 0 14px -2px var(--accent-1);
}
.badge__text {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .015em;
  color: #B7B7C2;
}

.hero__title {
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 70px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 0 0 22px;
  text-wrap: balance;
}

.grad {
  background: linear-gradient(105deg, var(--accent-2), var(--accent-1) 55%, var(--violet));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.accent { color: var(--accent-2); }

.hero__lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 530px;
  margin: 0 0 32px;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.pillars {
  display: flex;
  gap: 20px 26px;
  flex-wrap: wrap;
}
.pillar {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
}
.pillar__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
}
.pillar__dot--cyan   { background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.pillar__dot--blue   { background: var(--accent-1); box-shadow: 0 0 10px var(--accent-1); }
.pillar__dot--violet { background: var(--violet);   box-shadow: 0 0 10px var(--violet); }

/* --- Sistema orbital --- */
.orbit {
  position: relative;
  height: calc(540px * var(--o));
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit__ring--outer {
  width: calc(440px * var(--o));
  height: calc(440px * var(--o));
  border: 1.5px solid var(--violet);
  opacity: .7;
  box-shadow: 0 0 40px -12px var(--violet), inset 0 0 40px -18px var(--violet);
  animation: spin 60s linear infinite;
}
.orbit__ring--mid {
  width: calc(322px * var(--o));
  height: calc(322px * var(--o));
  border: 1px solid rgba(79, 93, 255, .4);
  animation: spinR 44s linear infinite;
}
.orbit__ring--inner {
  width: calc(230px * var(--o));
  height: calc(230px * var(--o));
  border: 1px dashed rgba(0, 229, 199, .28);
  animation: spin 34s linear infinite;
}

.orbit__node {
  position: absolute;
  left: 50%;
  border-radius: 50%;
}
.orbit__node--top {
  top: -6px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: var(--accent-2);
  box-shadow: 0 0 16px var(--accent-2);
}
.orbit__node--bottom {
  bottom: -4px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: var(--accent-1);
  box-shadow: 0 0 14px var(--accent-1);
}

.orbit__core {
  position: absolute;
  width: calc(210px * var(--o));
  height: calc(210px * var(--o));
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 199, .4), transparent 62%);
  filter: blur(12px);
  animation: coreGlow 5.5s ease-in-out infinite;
}

.orbit__mark {
  position: relative;
  width: calc(190px * var(--o));
  height: calc(190px * var(--o));
  animation: floatY 7s ease-in-out infinite;
  filter: drop-shadow(0 0 22px rgba(0, 229, 199, .35));
}

/* ============================================================
   Secciones genéricas
   ============================================================ */
.section {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px var(--pad) 72px;
}

#servicios { padding-top: 20px; }

.section__head { margin-bottom: 40px; }

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: .2em;
  margin: 0 0 14px;
}

.section__title {
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 46px);
  letter-spacing: -.02em;
  margin: 0;
  max-width: 680px;
  text-wrap: balance;
}

/* ---------- Intro ---------- */
.intro {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px var(--pad) 72px;
  text-align: center;
}
.intro__title {
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 44px);
  letter-spacing: -.02em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.intro__text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 auto;
  max-width: 680px;
  text-wrap: pretty;
}

/* ============================================================
   Servicios
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.card {
  position: relative;
  padding: 34px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 20, 31, .7), rgba(15, 15, 26, .5));
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-6px);
    border-color: rgba(79, 93, 255, .5);
    box-shadow: 0 20px 50px -20px rgba(79, 93, 255, .5);
  }
}

.card__tag {
  position: absolute;
  top: 24px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .08em;
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  background: rgba(79, 93, 255, .08);
}

.shape {
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent-2);
}
.shape--rounded { border-radius: 4px; }
.shape--circle  { border-radius: 50%; }
.shape--square  { border-radius: 2px; }

.card__title {
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 12px;
}

.card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 20px;
  text-wrap: pretty;
}

.card__points {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
}
.card__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #c9c9d2;
}
.card__points li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-2);
}

.card__result {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.card__result-label {
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
}

/* ============================================================
   Proceso — timeline
   Móvil: línea vertical a la izquierda de los círculos.
   ============================================================ */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  bottom: 27px;
  left: 26.5px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent-1), var(--violet));
  opacity: .4;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 20px;
  row-gap: 6px;
  align-items: start;
}

.step__n {
  grid-column: 1;
  grid-row: 1 / span 2;
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--accent-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent-2);
  box-shadow: 0 0 22px -6px var(--accent-1);
}

.step__title {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-weight: 600;
  font-size: 18px;
  margin: 0;
}

.step__desc {
  grid-column: 2;
  grid-row: 2;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}

/* ============================================================
   Resultados
   ============================================================ */
.results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.results__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 18px 0 0;
  text-wrap: pretty;
}

.results__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.result {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 15, 26, .5);
  font-size: 16px;
  font-weight: 500;
  color: #e6e6ee;
  transition: border-color .3s ease, transform .3s ease;
}
@media (hover: hover) {
  .result:hover {
    border-color: rgba(0, 229, 199, .45);
    transform: translateX(6px);
  }
}
.result__dot {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 14px var(--accent-2);
}

/* ============================================================
   Contacto
   ============================================================ */
.section--contact {
  max-width: 1120px;
  padding-bottom: 90px;
}

.contact {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 20, 31, .75), rgba(10, 10, 18, .6));
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.contact__glow {
  position: absolute;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, 130%);
  height: 300px;
  background: radial-gradient(ellipse, rgba(79, 93, 255, .32), transparent 68%);
  pointer-events: none;
}

.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 40px clamp(22px, 4.5vw, 52px) 44px;
}

.contact__title {
  font-weight: 700;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -.02em;
  margin: 0 0 18px;
  text-wrap: balance;
}

.contact__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 30px;
  text-wrap: pretty;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--text);
  transition: color .25s ease;
}
.contact__link:hover { color: var(--accent-2); }

.contact__icon {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 9px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.contact__value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  word-break: break-word;
}

/* ---------- Formulario ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Honeypot: fuera de pantalla, nunca display:none (algunos bots lo detectan). */
.form__hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(5, 5, 10, .6);
  color: var(--text);
  font-size: 15px;
  transition: border-color .25s ease;
}
.form__input:focus { border-color: var(--accent-1); }
.form__input:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
.form__input--area {
  resize: vertical;
  min-height: 112px;
}

.form__submit {
  width: 100%;
  margin-top: 4px;
  padding: 15px;
  border-radius: 11px;
  font-size: 15.5px;
  box-shadow: 0 0 30px -6px var(--accent-1);
}
.form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 42px -2px var(--accent-1);
}

.form__error {
  margin: 2px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #FF6B6B;
}
.form__error a {
  color: #FF6B6B;
  text-decoration: underline;
}
.form__error a:hover { color: var(--text); }

.form-success {
  height: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}
.form-success:focus { outline: none; }
.form-success__check {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-2), var(--accent-1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  box-shadow: 0 0 40px -6px var(--accent-1);
}
.form-success__title {
  font-weight: 600;
  font-size: 22px;
}
.form-success__text {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  max-width: 300px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 48px var(--pad) 40px;
}

.site-footer__top {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.site-footer__brand { max-width: 320px; }
.site-footer__brand img {
  display: block;
  height: 28px;
  width: auto;
  margin-bottom: 16px;
}
.site-footer__tagline {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 8px;
}
.site-footer__services {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .06em;
  margin: 0;
  line-height: 1.6;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
  width: 100%;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}
.site-footer__col a {
  color: #c9c9d2;
  font-size: 14px;
  word-break: break-word;
}
.site-footer__col a:hover { color: var(--accent-2); }

.site-footer__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .14em;
  margin: 0 0 4px;
}

.site-footer__bottom {
  max-width: 1320px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   Keyframes
   ============================================================ */
@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes spinR {
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes coreGlow {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: .95; transform: scale(1.08); }
}

/* ============================================================
   ≥ 640px
   ============================================================ */
@media (min-width: 640px) {
  :root { --o: 0.72; }

  .hero__lead { font-size: 19px; }
  .intro__text { font-size: 19px; }

  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 34px 30px; }
  .card__tag { right: 26px; }

  /* Timeline 2×2: círculo arriba, conector horizontal entre columnas. */
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 28px;
  }
  .steps::before { content: none; }

  .step {
    display: block;
  }
  .step::after {
    content: "";
    position: absolute;
    top: 26px;
    left: 27px;
    width: calc(100% + 28px);
    height: 1px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent-1), var(--violet));
    opacity: .4;
    z-index: 0;
  }
  .step:nth-child(2n)::after { content: none; }

  .step__n { margin-bottom: 22px; }
  .step__title { margin: 0 0 10px; }

  .result { padding: 22px 26px; font-size: 17px; }

  .site-footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
}

/* ============================================================
   ≥ 900px
   ============================================================ */
@media (min-width: 900px) {
  :root { --header-h: 72px; }

  .site-header__logo img { height: 34px; }

  .nav-toggle { display: none; }

  .nav {
    position: static;
    inset: auto;
    height: auto;
    max-height: none;
    overflow: visible;
    z-index: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 34px;
    padding: 0;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__link {
    color: var(--muted);
    font-size: 14.5px;
    font-weight: 500;
  }
  .nav__cta { margin-top: 0; }

  .section { padding-bottom: 90px; }
  .intro { padding-bottom: 100px; }
  .section--contact { padding-bottom: 100px; }
  .section__head { margin-bottom: 48px; }
  #proceso .section__head { margin-bottom: 52px; }

  .contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 56px clamp(30px, 4.5vw, 52px);
  }

  .contact__value { font-size: 14.5px; }

  .site-footer__top {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .site-footer__cols {
    display: flex;
    gap: 56px;
    flex-wrap: wrap;
    width: auto;
  }
  .site-footer__brand img { height: 30px; }
}

/* ============================================================
   ≥ 1200px — paridad con el diseño original
   ============================================================ */
@media (min-width: 1200px) {
  :root { --o: 1; }

  .hero {
    grid-template-columns: 1.05fr .95fr;
    gap: 40px;
    min-height: 100vh;
    padding: 150px var(--pad) 90px;
  }
  .hero__actions { margin-bottom: 54px; }

  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* Timeline horizontal: una sola línea continua, como el original. */
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
  .steps::before {
    content: "";
    top: 26px;
    bottom: auto;
    left: 6%;
    right: 6%;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent-1), var(--violet));
    opacity: .4;
  }
  .step::after { content: none; }

  .results {
    grid-template-columns: .85fr 1.15fr;
    gap: 56px;
  }
}

/* ============================================================
   Movimiento reducido
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
