:root {
  --bg: #FFFFFF;
  --bg-alt: #F6F6F5;
  --ink: #0B0B0C;
  --ink-2: #44444A;
  --muted: #75757C;
  --line: rgba(11, 11, 12, 0.09);
  --line-strong: rgba(11, 11, 12, 0.2);
  --console: #0E0E10;
  --console-line: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --font: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Inter Tight', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: #fff; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

.eyebrow { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.display { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1.04; letter-spacing: -0.035em; }
.title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 20ch; }
.lead { font-size: 1.12rem; color: var(--ink-2); margin-top: 1.4rem; max-width: 33rem; }
.body { color: var(--ink-2); margin-top: 1.1rem; max-width: 34rem; }
.footnote { font-size: .78rem; color: var(--muted); margin-top: 1.2rem; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 1.3rem; border-radius: 9px; font-size: .92rem; font-weight: 500; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .2s var(--ease), border-color .2s var(--ease); }
.btn--sm { height: 36px; padding: 0 1rem; font-size: .85rem; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2A2A2E; }
.btn--ghost { border-color: var(--line-strong); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.nav.is-solid { border-color: var(--line); }
.nav__inner { width: min(1280px, 100% - 48px); margin-inline: auto; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.brand__mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--ink); color: #fff; font-size: .75rem; }
.brand__name { letter-spacing: .12em; }
.brand__suffix { color: var(--muted); font-weight: 500; margin-left: -.2rem; }
.nav__links { display: flex; gap: 2rem; font-size: .88rem; color: var(--ink-2); }
.nav__links a:hover, .nav__login:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 1.4rem; }
.nav__login { font-size: .88rem; color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 5.5rem 0 0; }
.hero::before { content: ''; position: absolute; inset: 0 0 30% 0; z-index: -1; background-image: radial-gradient(rgba(11, 11, 12, .12) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%); mask-image: linear-gradient(180deg, #000 0%, transparent 90%); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 4rem; align-items: center; }
.hero__actions { display: flex; gap: .7rem; margin-top: 2rem; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--ink-2); border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .8rem .3rem .3rem; margin-bottom: 1.8rem; transition: border-color .2s var(--ease); }
.pill:hover { border-color: var(--line-strong); }
.pill span { background: var(--ink); color: #fff; border-radius: 999px; padding: .1rem .55rem; font-size: .72rem; font-weight: 500; }

/* Consola */
.console { background: var(--console); color: #D9D9D6; border-radius: var(--radius); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -30px rgba(11, 11, 12, .45), 0 12px 24px -12px rgba(11, 11, 12, .25); overflow: hidden; }
.console__bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--console-line); padding: 0 .6rem 0 .4rem; }
.console__tabs { display: flex; }
.console__tab { background: none; border: 0; border-bottom: 1px solid transparent; padding: .85rem .8rem; font-size: .8rem; color: #8B8B90; cursor: pointer; margin-bottom: -1px; transition: color .2s var(--ease); }
.console__tab:hover { color: #D9D9D6; }
.console__tab.is-active { color: #FFFFFF; border-bottom-color: #FFFFFF; }
.console__copy { background: none; border: 1px solid var(--console-line); border-radius: 6px; color: #A9A9AE; font-size: .74rem; padding: .3rem .6rem; cursor: pointer; }
.console__copy:hover { color: #fff; border-color: rgba(255,255,255,.2); }
.console__code { font-family: var(--font-mono); font-size: .8rem; line-height: 1.75; padding: 1.3rem 1.4rem; height: 352px; overflow: auto; white-space: pre; tab-size: 2; }
.console__code .k { color: #FFFFFF; font-weight: 500; }
.console__code .s { color: #B8B8B2; }
.console__code .n { color: #E6E6E0; }
.console__code .c { color: #66666C; font-style: italic; }
.console__run { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-top: 1px solid var(--console-line); }
.console__btn { background: #FFFFFF; color: var(--ink); border: 0; border-radius: 7px; padding: .45rem .9rem; font-size: .8rem; font-weight: 500; cursor: pointer; }
.console__btn:disabled { opacity: .5; cursor: default; }
.console__meta { font-family: var(--font-mono); font-size: .7rem; color: #77777D; }
.console__out { font-family: var(--font-mono); font-size: .76rem; line-height: 1.7; color: #A9A9AE; background: #09090A; border-top: 1px solid var(--console-line); padding: 1rem 1.4rem; height: 132px; overflow: auto; white-space: pre-wrap; }
.console__out .ok { color: #FFFFFF; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 5rem; border-top: 1px solid var(--line); }
.metrics > div { padding: 1.6rem 1.4rem 1.6rem 0; }
.metrics > div + div { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.metrics dt { font-size: .8rem; color: var(--muted); }
.metrics dd { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; letter-spacing: -0.03em; margin-top: .2rem; }

/* Clientes */
.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2.2rem 0; }
.clients__label { font-size: .82rem; color: var(--muted); text-align: center; margin-bottom: 1.4rem; }
.clients__list { list-style: none; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; color: #A2A2A8; }

/* ---------- Secciones ---------- */
.section { padding: 8rem 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { margin-bottom: 3.6rem; }
.section__head--center { text-align: center; }
.section__head--center .title { margin-inline: auto; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.tile { grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.8rem; min-height: 340px; }
.tile--wide { grid-column: span 3; }
.tile h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.tile p { color: var(--ink-2); font-size: .93rem; margin-top: .5rem; max-width: 30rem; }
.tile__art { width: 100%; height: auto; }
.tile__art .routes path { fill: none; stroke: rgba(11, 11, 12, .2); stroke-width: 1; }
.tile__art .nodes circle { fill: #fff; stroke: var(--ink); stroke-width: 1.2; }
.tile__art .packet { fill: var(--ink); }
.tile__art text { font-family: var(--font-mono); font-size: 10px; fill: var(--muted); }
.tile__art--layers rect { fill: none; stroke: rgba(11, 11, 12, .2); stroke-width: 1; }
.tile__art--layers rect.core { fill: var(--ink); stroke: var(--ink); }
.tile__art--layers text.in { fill: #fff; font-size: 11px; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.badges li { font-family: var(--font-mono); font-size: .72rem; border: 1px solid var(--line-strong); border-radius: 6px; padding: .35rem .6rem; color: var(--ink-2); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; border-bottom: 1px solid var(--line-strong); }
.bars i { flex: 1; height: var(--h); background: var(--ink); opacity: .85; border-radius: 3px 3px 0 0; transform-origin: bottom; animation: grow 3.6s var(--ease) infinite alternate; }
.bars i:nth-child(odd) { animation-delay: -1.2s; }
.bars i:nth-child(3n) { animation-delay: -2.4s; }
@keyframes grow { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.dash { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem .8rem; }
.dash__head { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.dash__head b { font-family: var(--font-mono); color: var(--ink); font-weight: 500; }
.dash svg { width: 100%; height: 110px; display: block; margin: .6rem 0 .4rem; }
#spark { fill: none; stroke: var(--ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
#spark-fill { fill: rgba(11, 11, 12, .05); }
.dash__foot { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .66rem; color: var(--muted); }

/* Pasos */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.steps li { padding: 2rem 2rem 0 0; }
.steps li + li { padding-left: 2rem; border-left: 1px solid var(--line); }
.steps__num { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.steps h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; margin: 1.6rem 0 .6rem; }
.steps p { color: var(--ink-2); font-size: .95rem; }

/* Calculadora */
.calc { display: grid; grid-template-columns: 1fr 1.25fr; gap: 5rem; align-items: start; }
.calc__panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; }
.calc__label { display: flex; justify-content: space-between; font-size: .9rem; color: var(--ink-2); margin-bottom: 1rem; }
.calc__label output { font-family: var(--font-mono); color: var(--ink); font-weight: 500; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: var(--line-strong); outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.12); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); }
.calc__scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .66rem; color: var(--muted); margin-top: .7rem; }
.calc__rows { margin-top: 2.4rem; display: grid; gap: 1.1rem; }
.calc__row { display: grid; grid-template-columns: 7.5rem 1fr 7rem; gap: 1.2rem; align-items: center; font-size: .9rem; color: var(--ink-2); }
.calc__row b { font-family: var(--font-mono); font-weight: 500; text-align: right; font-size: .9rem; }
.calc__row.is-main { color: var(--ink); }
.calc__bar { height: 8px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; }
.calc__bar i { display: block; height: 100%; width: var(--w); background: var(--line-strong); border-radius: 4px; transition: width .6s var(--ease); }
.calc__row.is-main .calc__bar i { background: var(--ink); }
.calc__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.calc__total span { color: var(--ink-2); }
.calc__total b { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; letter-spacing: -0.03em; }

/* Precios */
.billing { display: inline-flex; margin-top: 2rem; border: 1px solid var(--line-strong); border-radius: 9px; padding: 3px; background: #fff; }
.billing__opt { background: none; border: 0; border-radius: 6px; padding: .45rem 1rem; font-size: .85rem; color: var(--ink-2); cursor: pointer; }
.billing__opt span { color: var(--muted); font-size: .78rem; }
.billing__opt.is-active { background: var(--ink); color: #fff; }
.billing__opt.is-active span { color: #B9B9BE; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; position: relative; }
.plan--featured { border-color: var(--ink); box-shadow: 0 20px 40px -24px rgba(11, 11, 12, .3); }
.plan__tag { position: absolute; top: 1.2rem; right: 1.2rem; font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.plan h3 { font-size: 1.1rem; font-weight: 600; }
.plan__desc { color: var(--muted); font-size: .9rem; margin-top: .3rem; min-height: 3.2em; }
.plan__price { margin: 1.6rem 0 1.6rem; display: flex; align-items: baseline; gap: .4rem; }
.plan__amount { font-family: var(--font-display); font-weight: 600; font-size: 2.3rem; letter-spacing: -0.035em; }
.plan__per { color: var(--muted); font-size: .9rem; }
.plan__list { list-style: none; margin-top: 1.8rem; display: grid; gap: .7rem; }
.plan__list li { font-size: .9rem; color: var(--ink-2); padding-left: 1.4rem; position: relative; }
.plan__list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 8px; height: 4px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg); }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 5rem; align-items: start; }
.contact__data { margin-top: 2.6rem; display: grid; gap: 1.2rem; }
.contact__data dt { font-size: .75rem; color: var(--muted); }
.contact__data dd { margin-top: .15rem; }
.form { border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; background: #fff; box-shadow: 0 20px 40px -30px rgba(11, 11, 12, .25); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; margin-bottom: 1.6rem; }
.field { display: flex; flex-direction: column; gap: .45rem; font-size: .8rem; color: var(--muted); }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; padding: .7rem .8rem; font-size: .95rem; color: var(--ink); outline: none; resize: vertical; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11, 11, 12, .07); }
.field.is-invalid input { border-color: #9B2C2C; }
.form__status { margin-top: 1rem; font-size: .9rem; color: var(--ink-2); min-height: 1.4em; }

/* Pie */
.footer { border-top: 1px solid var(--line); padding: 4rem 0 2.5rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer__brand p { color: var(--muted); font-size: .88rem; margin-top: 1rem; max-width: 18rem; }
.footer__grid h4 { font-size: .8rem; font-weight: 600; margin-bottom: 1rem; }
.footer__grid div > a:not(.brand) { display: block; font-size: .88rem; color: var(--ink-2); margin-bottom: .6rem; }
.footer__grid div > a:not(.brand):hover { color: var(--ink); }
.footer__legal { margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav__links, .nav__login { display: none; }
  .hero__grid, .calc, .contact { grid-template-columns: 1fr; gap: 3rem; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--wide { grid-column: auto; min-height: 0; }
  .plans { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .hero { padding-top: 3.5rem; }
  .console__code { height: 260px; font-size: .74rem; padding: 1rem; }
  .console__tab { padding: .8rem .55rem; font-size: .75rem; }
  .console__meta { display: none; }
  .clients__list { justify-content: center; font-size: .95rem; }
  .section { padding: 5.5rem 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 1.8rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .calc__panel, .form, .plan, .tile { padding: 1.5rem; }
  .calc__row { grid-template-columns: 1fr auto; }
  .calc__bar { grid-column: 1 / -1; grid-row: 2; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bars i { animation: none; }
}
