/* Código Frontera — identidad v1.0
   Azul Terminal 60% · Blanco Hueso 30% · Verde Consola 8% · Ámbar Señal 2%
   Sin degradados, sin glow, cifras siempre en mono. */
:root {
  --bg: #0A1622;
  --panel: #0E1D2C;
  --line: #21384A;
  --text: #F2F0E9;
  --muted: #7A8FA0;
  --green: #2EE884;
  --amber: #FFB13D;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --sans: "Instrument Sans", Inter, system-ui, sans-serif;
  --r: 10px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--panel) 1px, transparent 1px),
    linear-gradient(90deg, var(--panel) 1px, transparent 1px);
  background-size: 64px 64px;
}
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.g { color: var(--green); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .82rem; letter-spacing: .04em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; opacity: 0; }
.kicker { font-family: var(--mono); font-size: .78rem; letter-spacing: .3em; color: var(--green); margin-bottom: 1.2rem; }
.lead { font-size: 1.15rem; color: #C9CFD2; max-width: 34em; }
.narrow { max-width: 40em; }
.fine { font-size: .85rem; color: var(--muted); margin-top: .6rem; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { font: 700 1.5rem/1 var(--mono); text-decoration: none; letter-spacing: .02em; display: flex; align-items: center; gap: 14px; }
.logo small { font: 500 .7rem var(--mono); letter-spacing: .35em; color: var(--text); white-space: nowrap; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav__links a:hover { color: var(--text); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--green); color: var(--bg); border: 0; border-radius: 8px;
  font: 700 1rem var(--sans); padding: 14px 22px; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #5BF0A0; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.btn--sm { padding: 10px 16px; font-size: .9rem; white-space: nowrap; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--panel); border-color: var(--green); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link:hover { border-color: var(--green); }

/* HERO */
.hero { padding: clamp(56px, 9vw, 110px) 0 70px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }

/* SUBSCRIBE */
.sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); max-width: 520px; position: relative; }
.sub__prompt { font: 700 1.1rem var(--mono); color: var(--green); padding-left: 12px; }
.sub input { flex: 1 1 180px; min-width: 0; background: transparent; border: 0; color: var(--text); font: 400 1rem var(--mono); padding: 12px 8px; }
.sub input::placeholder { color: var(--muted); }
.sub input:focus { outline: none; }
.sub--wide { max-width: 760px; margin-inline: auto; }
.sub--wide input + input { border-left: 1px solid var(--line); padding-left: 14px; }
.sub .form__msg { flex-basis: 100%; margin: 0; padding: 0 10px; }
.sub .form__msg:empty { display: none; }

/* TERMINAL */
.term { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.term__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.term__bar i.on { background: var(--green); }
.term__bar span { font: 400 .78rem var(--mono); color: var(--muted); margin-left: 10px; }
.term__body { padding: 28px; font-family: var(--mono); }
.term__body > p:first-child { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; margin-bottom: .4em; }
.term__body .muted { font-size: .85rem; }
.cursor { display: inline-block; width: .55em; height: 1em; background: var(--green); vertical-align: -.12em; margin-left: 6px; animation: blink 1s steps(1) infinite; }
.cursor--sm { width: .5em; height: .9em; }
@keyframes blink { 50% { opacity: 0; } }
.ls { list-style: none; padding: 0; margin: 18px 0 26px; font-size: .9rem; }
.ls li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.ls .mono { color: var(--muted); }
.dots { flex: 1; border-bottom: 1px dashed var(--line); }
.stat { display: flex; gap: 18px; align-items: center; padding-top: 22px; border-top: 1px solid var(--line); }
.stat__n { font: 700 2.6rem/1 var(--mono); color: var(--green); }
.stat__l { font: 400 .9rem/1.45 var(--sans); color: var(--muted); }
.term--sm { margin-top: 32px; }
.term--sm .term__body { padding: 18px 20px; font-size: .82rem; }
.term--sm .term__body p { font-size: inherit; font-weight: 400; margin: 0 0 .4em; }

/* FRONTIER LINE */
.frontier { position: relative; height: 1px; border-top: 1px dashed var(--green); opacity: .7; }
.frontier span { position: absolute; left: 50%; top: -.75em; transform: translateX(-50%); background: var(--bg); padding: 0 10px; font: 700 .9rem var(--mono); color: var(--green); }

/* SECTIONS */
.section { padding: clamp(70px, 10vw, 120px) 0; }
.section--panel { background: var(--panel); border-block: 1px solid var(--line); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 48px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.card p:last-child { color: #BFC6CA; margin: 0; font-size: .97rem; }
.cta-row { text-align: center; }

/* SERVICES */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 48px 0 56px; }
.svc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; }
.svc > :last-child { margin-top: auto; align-self: flex-start; }
.svc__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; color: var(--muted); }
.svc--feat { grid-column: span 2; border-color: var(--green); }
.svc--feat p { font-size: 1.05rem; color: #C9CFD2; max-width: 36em; }
.svc--wide { grid-column: span 2; }
.tag { font: 700 .72rem var(--mono); letter-spacing: .12em; background: var(--green); color: var(--bg); padding: 5px 9px; border-radius: 5px; }
.checks { list-style: none; padding: 0; margin: 0 0 22px; font-size: .95rem; color: #C9CFD2; }
.checks li { position: relative; padding: 5px 0 5px 34px; }
.checks li::before { content: "[✓]"; position: absolute; left: 0; font: 500 .8rem/1.9 var(--mono); color: var(--green); }
.checks--cols { columns: 2; column-gap: 28px; }
.checks--cols li { break-inside: avoid; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); }
.steps li { padding: 22px; display: grid; gap: 4px; }
.steps li + li { border-left: 1px solid var(--line); }
.steps span:last-child { color: var(--muted); font-size: .92rem; }

/* CONTACT */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .9rem; font-weight: 600; }
.field label .muted { font-weight: 400; }
.form input, .form select, .form textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 7px;
  color: var(--text); font: 400 1rem var(--sans); padding: 12px 13px;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green); outline: none; }
.form textarea { resize: vertical; }
.form [aria-invalid="true"] { border-color: var(--amber); }
.consent { display: flex; gap: 10px; align-items: center; font-size: .9rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; accent-color: var(--green); }
.form__msg { font: 400 .85rem var(--mono); margin: 0; min-height: 1.2em; }
.form__msg.ok { color: var(--green); }
.form__msg.err { color: var(--amber); }

/* FOOTER */
.foot { border-top: 1px solid var(--line); padding: 40px 0; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.foot__inner p { margin: 10px 0 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: 22px; font-size: .92rem; }
.foot__links a { color: var(--muted); text-decoration: none; }
.foot__links a:hover { color: var(--text); }
.coords { font-size: .72rem; }

/* PAGE (aviso) */
.doc { padding: 70px 0 100px; max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.25rem; margin-top: 2em; }
.doc p, .doc li { color: #C9CFD2; }

@media (max-width: 960px) {
  .hero__grid, .contact { grid-template-columns: 1fr; gap: 44px; }
  .cards3 { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .svc--feat, .svc--wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__links, .logo small { display: none; }
  .nav .btn { margin-left: auto; }
  .services { grid-template-columns: 1fr; }
  .svc--feat, .svc--wide { grid-column: auto; }
  .checks--cols { columns: 1; }
  .field2 { grid-template-columns: 1fr; }
  .sub--wide input + input { border-left: 0; border-top: 1px solid var(--line); padding-left: 8px; }
  .sub .btn { flex-basis: 100%; }
  .stat { flex-direction: column; align-items: flex-start; gap: 8px; }
  .form { padding: 22px; }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
}
