@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --ink: #0c0c0e;
  --muted: #5f5f66;
  --line: #e6e4e1;
  --accent: #3346ff;
  --accent-soft: rgba(51, 70, 255, 0.08);
  --ok: #138a4f;
  --beta: #b25e00;
  --dev: #6b6b73;
  --radius: 14px;
  --max: 1120px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --surface: #121215;
    --ink: #f3f3f4;
    --muted: #9a9aa3;
    --line: #232328;
    --accent: #7b88ff;
    --accent-soft: rgba(123, 136, 255, 0.12);
    --ok: #4cc98a;
    --beta: #f0a24b;
    --dev: #9a9aa3;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, svg { display: block; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand svg { width: 22px; height: 22px; }
.brand picture { display: contents; }
.brand .mark { height: 30px; width: auto; }
.brand .word { height: 19px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--ink); }
.nav .btn { color: var(--bg); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-size: 14px; font-weight: 500; transition: transform .15s, opacity .15s; }
.btn:hover { opacity: .88; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); opacity: 1; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; }

/* Portada */
.hero { position: relative; padding: 112px 0 96px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); opacity: .55; pointer-events: none; }
.hero .wrap { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
h1 { font-size: clamp(40px, 7.2vw, 84px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; margin: 28px 0 0; max-width: 14ch; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 58ch; margin: 24px 0 0; line-height: 1.55; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 80px; border-top: 1px solid var(--line); }
.facts div { padding: 20px 20px 0 0; }
.facts strong { display: block; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.facts span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } .facts div { padding: 16px 0 0; } }

/* Secciones */
section { padding: 96px 0; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; margin: 10px 0 0; max-width: 18ch; }
.head p { color: var(--muted); max-width: 40ch; margin: 0; }

/* Productos */
.products { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.product { border-bottom: 1px solid var(--line); }
.product > a, .product > div { display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.6fr) 150px 28px; gap: 24px; align-items: center; padding: 28px 12px; text-decoration: none; border-radius: 12px; transition: background .2s; }
.product > a:hover { background: var(--surface); }
.product .num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.product h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.025em; }
.product .sector { margin-top: 4px; }
.product p { margin: 0; color: var(--muted); font-size: 15px; }
.status { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--muted); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--ok); } .status.beta { color: var(--beta); } .status.dev { color: var(--dev); }
.arrow { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s, background .2s, box-shadow .2s, color .2s; }
.arrow svg { width: 12px; height: 12px; }
.product > a:hover .arrow { background: var(--ink); color: var(--bg); box-shadow: none; transform: translateX(3px); }
@media (max-width: 860px) {
  .product > a, .product > div { grid-template-columns: 40px 1fr 28px; grid-template-areas: "num name arrow" ". desc desc" ". status status"; gap: 8px 16px; padding: 24px 4px; }
  .product .num { grid-area: num; } .product .name { grid-area: name; } .product p { grid-area: desc; margin-top: 4px; }
  .product .status { grid-area: status; margin-top: 8px; } .product .arrow { grid-area: arrow; }
}

/* Cómo trabajamos */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.principle h3 { margin: 40px 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.principle p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } .principle h3 { margin-top: 24px; } }

/* Contacto */
.contact { padding: 0 0 96px; }
.contact .box { position: relative; overflow: hidden; border-radius: 24px; background: var(--ink); color: var(--bg); padding: clamp(36px, 6vw, 72px); }
.contact .box::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0%, transparent 65%); opacity: .45; pointer-events: none; }
.contact h2 { color: inherit; max-width: 20ch; margin: 0; position: relative; }
.contact p { position: relative; color: color-mix(in srgb, var(--bg) 70%, transparent); max-width: 52ch; margin: 16px 0 32px; }
.contact .cta { position: relative; margin-top: 0; }
.contact .btn { background: var(--bg); color: var(--ink); }
.contact .btn.alt { background: transparent; color: var(--bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bg) 35%, transparent); }
.contact .btn.alt:hover { box-shadow: inset 0 0 0 1px var(--bg); opacity: 1; }

/* Pie */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
footer address { font-style: normal; line-height: 1.7; }
footer .links { display: flex; gap: 20px; }
footer .links a { text-decoration: none; }
footer .links a:hover { color: var(--ink); }
@media (max-width: 640px) { footer .wrap { grid-template-columns: 1fr; } }

/* Páginas legales */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); max-width: none; margin-top: 16px; }
.legal h2 { font-size: 21px; letter-spacing: -0.02em; margin: 44px 0 8px; max-width: none; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--ink); font-weight: 500; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 24px 0 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; }
@media (max-width: 520px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 10px; } }

/* Entrada suave */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } }
.ink { color: var(--ink); font-weight: 500; }
