/* =========================================================================
   IAOps LATAM — sistema v2 LIVIANO.
   Reglas: 0 capas animadas fijas · 1 gradiente estático · tipografía manda ·
   un CTA primario por pantalla · CSS < 25KB. Color solo por tokens.
   ========================================================================= */

:root {
  --bg:     #08080b;
  --line:   #22222b;
  --text:   #f5f5f7;
  --muted:  #9c9caa;
  --faint:  #6b6b78;
  --a1:     #8b7bff;
  --a2:     #38e0d8;
  --accent: #9a8cff;
  --grad:   linear-gradient(100deg, var(--a1), var(--a2));
  --display: "Space Grotesk", system-ui, sans-serif;
  --body:    "Inter", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;
  --maxw: 980px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  /* único ornamento: gradiente estático sutil arriba */
  background-image: radial-gradient(60% 40% at 70% -10%, rgba(139, 123, 255, .16), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text); font-family: var(--body); font-size: 16.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.shell { max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(18px, 4vw, 40px); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--a1); color: #fff; }

.kicker { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  padding: .9em 1.7em; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: opacity .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--grad); color: #fff; }
.btn--primary:hover { opacity: .88; }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--big { font-size: 1.1rem; padding: 1em 2.1em; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(8, 8, 11, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 18px; }
.nav__brand { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.nav__brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a { color: var(--muted); font-size: .93rem; }
.nav__links a:hover, .nav__links a.is-current { color: var(--text); }
.nav .btn { padding: .6em 1.2em; font-size: .92rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 11vw, 120px) 0 clamp(40px, 7vw, 70px); text-align: left; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.9rem); max-width: 17ch; margin: 14px 0 18px; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 46ch; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__proof { margin-top: 26px; font-family: var(--mono); font-size: .8rem; color: var(--faint); }

/* ---------- secciones ---------- */
.sec { padding: clamp(36px, 7vw, 72px) 0; border-top: 1px solid var(--line); }
.sec > .kicker { display: block; margin-bottom: 10px; }
.sec h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); margin-bottom: 8px; }
.sec__sub { color: var(--muted); max-width: 52ch; margin-bottom: 26px; }

/* filas editoriales (sin cards) */
.rows { list-style: none; }
.rows li { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .t { font-family: var(--display); font-weight: 600; font-size: 1.12rem; }
.rows .t small { display: block; font-family: var(--body); font-weight: 400; font-size: .9rem; color: var(--muted); margin-top: 3px; }
.rows .m { font-family: var(--mono); font-size: .8rem; color: var(--faint); text-align: right; white-space: nowrap; }
.rows .m.free { color: var(--a2); }
.rows a.rowlink:hover .t { color: var(--accent); }

/* fundador (la sombra) */
.founder { display: flex; align-items: center; gap: 18px; padding: 22px 0; }
.founder__mono { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.founder p { color: var(--muted); font-size: .95rem; max-width: 56ch; }
.founder a { color: var(--accent); }

/* CTA final */
.endcta { text-align: center; padding: clamp(48px, 9vw, 90px) 0; border-top: 1px solid var(--line); }
.endcta h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin-bottom: 22px; }

/* ---------- páginas internas ---------- */
.page { padding-top: clamp(40px, 8vw, 72px); }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 10px 0 12px; }
.page .lead { color: var(--muted); max-width: 50ch; margin-bottom: 30px; font-size: 1.08rem; }

/* ---------- formulario / wizard ---------- */
.steps { display: flex; gap: 20px; margin: 26px 0 8px; font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--faint); }
.steps span i { font-family: var(--mono); font-style: normal; font-size: .72rem; margin-right: 6px; }
.steps .is-active { color: var(--text); }
.steps .is-active i { color: var(--accent); }
.steps .is-done { color: var(--a2); }
.bar { height: 2px; background: var(--line); border-radius: 2px; margin-bottom: 28px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 8%; background: var(--grad); transition: width .4s ease; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; max-width: 640px; }
label { display: grid; gap: 7px; align-content: start; }
label > span { font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
input, select {
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font-family: var(--body); font-size: 1rem; padding: 13px 14px; outline: none; width: 100%;
}
input:focus, select:focus { border-color: var(--accent); }
select option { background: #111116; }
.hint { font-family: var(--body); font-size: .78rem; color: var(--faint); text-transform: none; letter-spacing: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 0; height: 0; opacity: 0; }
.actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.status { font-family: var(--mono); font-size: .85rem; color: var(--muted); min-height: 1.2em; }
.status.ok { color: var(--a2); }
.status.err { color: #ff8a8a; }
.privacy { margin-top: 12px; font-size: .78rem; color: var(--faint); }
.verify { display: flex; gap: 12px; max-width: 400px; }
#reg-code { font-family: var(--mono); font-size: 1.5rem; letter-spacing: .4em; text-align: center; max-width: 220px; }
.resend { font-family: var(--mono); font-size: .82rem; color: var(--accent); cursor: pointer; }
.resend.is-disabled { color: var(--faint); cursor: default; }
.is-hidden { display: none !important; }
#reg-step-4 h2 { color: var(--a2); margin-bottom: 10px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: clamp(30px, 6vw, 60px); }
.footer__inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 26px 0; color: var(--faint); font-size: .85rem; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav__links { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .rows li { flex-direction: column; gap: 6px; }
  .rows .m { text-align: left; }
  .verify { flex-direction: column; }
  #reg-code { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* switcher de ecosistema (cross-link) */
.eco { font-family: var(--mono); font-size: .8rem; color: var(--a2); }
.eco:hover { opacity: .8; }
