/* Estilo de JARVIS (web/src/styles/theme.scss): rojo Softsecure, Nunito auto-alojada, temas claro y oscuro. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/nunito-latin-800-normal.woff2") format("woff2"); }

:root {
  --brand: #c10a0a;
  --brand-hover: #a00808;
  --brand-soft: rgba(193, 10, 10, 0.1);
  --ink: #151515;
  --bg: #f5f2ee;
  --surface: #ffffff;
  --surface-2: #f6f3ef;
  --border: rgba(0, 0, 0, 0.08);
  --text: #151515;
  --muted: #6b7280;
  --ok: #16a34a;
  --ok-bg: rgba(34, 197, 94, 0.14);
  --bad: #dc2626;
  --bad-bg: rgba(239, 68, 68, 0.12);
  --shadow: 0 16px 40px rgba(15, 17, 21, 0.08);
  --radius: 1rem;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #15171c;
    --surface-2: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.1);
    --text: #e8e9ec;
    --muted: #9ca3af;
    --ok: #34d399;
    --bad: #f87171;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
[hidden] { display: none !important; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.section { padding: 40px 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 800; color: var(--brand); margin: 0 0 8px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(26px, 5vw, 40px); font-weight: 800; }
h2 { font-size: 26px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 800; }

.top { background: var(--ink); color: #fff; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.top img { display: block; height: 40px; width: auto; }
.top nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.top nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; }
.top nav a.btn { color: #fff; }

.hero { background: linear-gradient(180deg, #151515 0%, #1d0b0b 60%, #0f1115 100%); color: #fff; padding: 56px 0 64px; }
.hero .eyebrow { color: #ff7373; }
.hero .lead { font-size: 17px; max-width: 720px; color: rgba(255, 255, 255, 0.85); }
.hero .btn:not(.btn-primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card p { margin: 0; }
.list { margin: 0; padding-left: 20px; }
.list li { margin: 6px 0; }

.steps { list-style: none; counter-reset: paso; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.steps li { counter-increment: paso; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.steps li::before { content: counter(paso); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 800; font-size: 14px; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn:disabled { opacity: 0.6; cursor: progress; }

.form-card { max-width: 720px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 14px; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 14px; }
input { font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.hint { color: var(--muted); font-weight: 400; }
.error { color: var(--bad); font-weight: 700; }
.turnstile { margin: 14px 0; min-height: 65px; }
.status { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.status.bad { background: var(--bad-bg); color: var(--bad); font-weight: 700; }
.status.ok { background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.sent h3 { color: var(--ok); }
.key { font-family: var(--mono); font-size: 16px; padding: 14px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--brand); white-space: pre-wrap; word-break: break-all; user-select: all; }

.foot { padding: 24px 0 40px; color: var(--muted); font-size: 13px; text-align: center; }
