/* Identidad electOS: papel, tinta, salvia. Inter para texto, Newsreader para
   títulos y números, Plex Mono para micro-rótulos, Space Grotesk sólo en el
   wordmark. Sin cajas redondeadas repetidas: hairlines y densidad. */
:root {
  --paper: #f7f7f5; --surface: #fff; --graphite: #161917;
  --ink: #202124; --ink-2: #565b62; --ink-3: #8a8f98; --ink-inverse: #f3f4f1;
  --accent: #3d6b54; --accent-strong: #2c5140; --accent-soft: #e9f0eb; --accent-wash: #f2f5f2;
  --ok: #2e7d5b; --warn: #c2620f; --bad: #b3402f;
  --line: #e6e5e1; --line-strong: #d8d7d2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; }
h1 { font-family: Newsreader, Georgia, serif; font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-family: Newsreader, Georgia, serif; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; }
h3 { font-size: 15px; font-weight: 600; }
.n { font-family: Newsreader, Georgia, serif; font-weight: 400; color: var(--ink-3); margin-right: 12px; }
.label, .mono, .fine { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; color: var(--ink-3); }
.label { text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 10px; }
.fine { margin: 12px 0 0; line-height: 1.5; }
.wordmark { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 500; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); }
.wordmark b { color: var(--accent); font-weight: 700; }
.wordmark.small { font-size: 17px; }

.top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 clamp(20px, 5vw, 64px); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.topnav { display: flex; gap: 22px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.topnav a:hover { color: var(--ink); }
.topnav .cta { color: var(--accent); font-weight: 500; }

main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
.hero { padding: clamp(52px, 8vw, 96px) 0 clamp(28px, 4vw, 44px); }
.hero h1 { max-width: 16ch; }
.lead { max-width: 62ch; font-size: 17px; color: var(--ink-2); margin: 22px 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 500; font-size: 14px; border: 0; cursor: pointer; }
.btn:hover { background: var(--accent-strong); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn.ghost:hover { background: var(--surface); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.hero-stats { display: flex; gap: 40px; margin: 44px 0 0; padding: 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { font-family: "IBM Plex Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.hero-stats dd { margin: 0; font-family: Newsreader, serif; font-size: 34px; line-height: 1.1; }

.section { padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.sub { max-width: 64ch; color: var(--ink-2); margin: 10px 0 0; }

/* Banda a sangre: sale del ancho de main hasta los bordes de la ventana. */


.contact { border-bottom: 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
input, select, textarea { font: inherit; font-size: 14px; color: var(--ink); padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
form .btn { justify-self: start; }
.status { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--ink-3); min-height: 1.4em; }
.status.ok { color: var(--ok); } .status.bad { color: var(--bad); }
.invalid { border-color: var(--bad); }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 24px clamp(20px, 5vw, 64px); border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .topnav a:not(.cta) { display: none; }
  .hero-stats { gap: 24px; }
}

/* La cadena de clics: cada escalón es un número y qué hay abajo. */
@media (max-width: 620px) { .cadena span { min-width: 0; } }
