:root {
  --bg: #eef0f3; --surface: #e2e5ea; --card: #f8f9fb; --ink: #0b0c0e; --muted: #40454e;
  --line: #cdd2da; --accent: #1f2de6; --accent-ink: #fff;
  --up: #0a6e36; --down: #b8231a; --warn: #8a4b00; --maint: #2f6fb0;
  --r: 4px; --font: "Geist", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
  --wrap: 1200px; --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); letter-spacing: -0.035em; }
h3, .h3 { font-size: 1.25rem; }
.h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
code, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--surface); padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
main:focus:not(:focus-visible) { outline: none; }

.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; border-radius: var(--r); }
.skip:focus { top: 8px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 2 * var(--gutter)); }
.measure { max-width: 760px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; }
.brand-mark rect { fill: var(--ink); }
.brand-mark path { fill: none; stroke: #34d27b; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links > a:not(.btn), .link-btn { color: var(--ink); text-decoration: none; font-size: .95rem; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .2s; }
.nav-links > a:not(.btn):hover, .link-btn:hover { background-size: 100% 1px; }
.nav-sep { width: 1px; height: 20px; background: var(--line); }
.nav-toggle { display: none; margin-left: auto; }
.link-btn { border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--accent); background-color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r); border: 1px solid transparent; font: 500 .95rem var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, background-color .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #1622b8; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-danger { background: transparent; color: var(--down); border-color: var(--down); }
.btn-danger:hover { background: var(--down); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .875rem; }
.btn-block { width: 100%; }
.nav .btn-sm { min-height: 40px; }

/* Sections */
section { padding: clamp(64px, 10vw, 120px) 0; }
.band { background: var(--surface); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.lede { font-size: 1.15rem; color: #2c3038; max-width: 56ch; }
.fineprint { font-size: .875rem; color: var(--muted); margin-top: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot-up { background: var(--up); box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 50%, transparent); animation: beat 2.8s infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }

/* Hero */
.hero { padding-top: clamp(48px, 7vw, 96px); min-height: calc(100svh - 64px); display: flex; align-items: center; }

.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-copy { animation: enter .6s cubic-bezier(.2,.7,.2,1) both; }
.app-frame { animation: enter .7s .1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } }

/* App frame (UI real) */
.app-frame { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 30px 60px -30px rgba(11,12,14,.35); overflow: hidden; font-size: .875rem; }
.af-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.af-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.af-bar b { font-weight: 400; color: var(--muted); margin-left: 10px; font-size: .78rem; }
.af-body { display: grid; grid-template-columns: 150px 1fr; min-height: 380px; }
.af-side { border-right: 1px solid var(--line); padding: 14px 10px; }
.af-label { font-size: .72rem; color: var(--muted); margin: 0 6px 8px; text-transform: uppercase; letter-spacing: .06em; }
.af-side ul { list-style: none; margin: 0; padding: 0; }
.af-side li { display: flex; justify-content: space-between; padding: 7px 8px; border-radius: var(--r); color: #2c3038; }
.af-side li.is-on { background: var(--surface); color: var(--ink); font-weight: 500; }
.af-side i { font-style: normal; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.af-side i.t-down { color: #fff; background: var(--down); border-radius: 10px; padding: 0 6px; }
.af-main { padding: 14px; min-width: 0; }
.incident { border: 1px solid color-mix(in srgb, var(--down) 35%, var(--line)); background: color-mix(in srgb, var(--down) 5%, #fff); border-radius: 6px; padding: 12px 14px; margin-bottom: 12px; }
.incident-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.diag { margin: 0 0 10px; color: #2c3038; }
.diag .mono { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--down); margin-right: 6px; }
.incident-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.incident-actions .mono { font-size: .75rem; }
.badge { display: inline-block; font: 500 .72rem var(--mono); padding: 2px 8px; border-radius: 10px; }
.badge-down { background: var(--down); color: #fff; }
.badge-up { background: color-mix(in srgb, var(--up) 14%, transparent); color: var(--up); }
.badge-warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.mon-list { list-style: none; margin: 0; padding: 0; }
.mon-list li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--line); }
.mon-list .name { display: flex; flex-direction: column; min-width: 0; }
.mon-list .name b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-list .name span { color: var(--muted); font-size: .75rem; }
.bars { display: flex; gap: 2px; height: 22px; align-items: stretch; }
.bars i { width: 3px; border-radius: 1px; background: var(--up); opacity: .85; }
.bars i.d { background: var(--down); opacity: 1; }
.bars i.w { background: var(--warn); opacity: 1; }
.bars i.m { background: var(--maint); opacity: .7; }
.mon-list .bars { justify-self: end; }
.mon-list .bars i:nth-child(-n+55) { display: none; }
.mon-list .name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; }
.card { background: var(--bg); padding: 28px; transition: transform .2s, background-color .2s; }
.card:hover { background: var(--card); }
.card p { color: #3a3f48; margin: 0; }
.mini { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; margin-bottom: 20px; min-height: 64px; font-size: .78rem; }
.mini .mono { font-size: .75rem; }
.t-down { color: var(--down); }
.client-logo.sm { width: 28px; height: 28px; border-radius: 6px; font-size: .7rem; }
.pdf { background: var(--down); color: #fff; padding: 8px 6px; border-radius: 3px; font-size: .7rem; }
.bubble { background: #dcf8c6; color: #10331c; padding: 8px 12px; border-radius: 10px 10px 10px 2px; font-size: .8rem; }
.maint-bar { flex: 1; min-width: 60px; height: 8px; background: var(--up); border-radius: 4px; position: relative; overflow: hidden; }
.maint-bar i { position: absolute; left: 40%; width: 18%; top: 0; bottom: 0; background: var(--maint); }
.ic { display: block; font: 500 .8rem var(--mono); color: var(--accent); margin-bottom: 18px; }

/* Seguridad */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { padding-left: 26px; position: relative; color: #2c3038; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--up); border-bottom: 2px solid var(--up); transform: rotate(-45deg); }
.checks b { font-weight: 500; color: var(--ink); }
.try { background: var(--ink); color: #e9edf3; padding: 28px; border-radius: 8px; position: sticky; top: 96px; }
.try h3 { color: #fff; }
.try label { color: #c4cad4; }
.try input { background: #15171b; color: #fff; border-color: #343841; }
.try .muted { color: #9aa1ad; }
.try code { background: #23262d; color: #e9edf3; }
.try :focus-visible { outline-color: #5fe39a; outline-width: 3px; }
.try .field-msg.ok { color: #5fe39a; }
.try .field-msg.err { color: #ff8a80; }

/* Precios */
.price-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.price-head h2 { max-width: 20ch; margin: 0; }
.toggle { display: inline-flex; border: 1px solid var(--ink); border-radius: var(--r); padding: 3px; }
.toggle button { border: 0; background: transparent; font: 500 .9rem var(--font); min-height: 38px; padding: 0 16px; border-radius: 2px; cursor: pointer; color: var(--ink); }
.toggle button.is-on { background: var(--ink); color: #fff; }
.save { font-family: var(--mono); font-size: .75rem; color: var(--up); }
.toggle button.is-on .save { color: #5fe39a; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; margin-bottom: 28px; }
.plan { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; }
.plan-main { background: var(--ink); color: #e9edf3; border-color: var(--ink); }
.plan-main h3 { color: #fff; }
.plan-main .muted { color: #9aa1ad; }
.plan-main li::before { background: #5fe39a; }
.tag { font-size: .75rem; color: #5fe39a; margin: 0 0 8px; }
.price { margin: 8px 0 4px; display: flex; align-items: baseline; gap: 4px; }
.price b { font-size: 2.1rem; font-weight: 500; letter-spacing: -0.04em; }
.price span { color: var(--muted); }
.plan-main .price span { color: #9aa1ad; }
.plan ul { list-style: none; padding: 0; margin: 12px 0 28px; display: grid; gap: 8px; flex: 1; }
.plan li { padding-left: 18px; position: relative; font-size: .95rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--up); border-radius: 50%; }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 4px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 16px 0; font-weight: 500; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
details[open] summary::after { content: "−"; }
summary::-webkit-details-marker { display: none; }
details p { color: #3a3f48; }

.close { background: var(--ink); color: #fff; }
.close-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.close h2 { max-width: 22ch; margin: 0; }

/* Forms */
.form { display: grid; gap: 6px; }
.form label { font-size: .875rem; font-weight: 500; margin-top: 8px; }
input, select { font: inherit; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); }
input[aria-invalid="true"] { border-color: var(--down); }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { width: 18px; min-height: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.hint { font-size: .8rem; color: var(--muted); margin: 0; }
.field-msg { font-size: .82rem; margin: 0; min-height: 0; }
.field-msg.err, .form-msg.err { color: var(--down); }
.field-msg.ok, .form-msg.ok { color: var(--up); }
.form-msg { margin: 6px 0 0; font-size: .9rem; }
.form .btn { margin-top: 14px; }
.captcha { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: #fafbfc; border-radius: var(--r); padding: 12px; font-size: .85rem; margin-top: 10px; }
.captcha-box { width: 22px; height: 22px; border: 2px solid var(--up); border-radius: 3px; position: relative; }
.captcha-box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--up); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Auth */
.auth { min-height: calc(100svh - 64px); display: flex; align-items: center; justify-content: center; padding: 48px var(--gutter); }
.auth-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: clamp(24px, 4vw, 40px); }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { font-size: 2rem; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 18px 0 4px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.summary { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; margin: 20px 0; font-size: .95rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; }

/* Dashboard */
.dash { padding: 40px 0 80px; }
.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-head h1 { font-size: 2.2rem; margin: 0; }
.dash-head .eyebrow { margin-bottom: 8px; }
.plan-sim { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.plan-sim select { width: auto; }
.notice { background: color-mix(in srgb, var(--warn) 10%, #fff); border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--line)); padding: 10px 14px; border-radius: var(--r); font-size: .9rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 20px; }
.stats > div { background: var(--card); padding: 16px; display: grid; gap: 4px; }
.stats .mono { font-size: .75rem; }
.stats b { font-weight: 500; font-size: 1.3rem; letter-spacing: -0.02em; }
.dash-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; margin-bottom: 20px; }
.side-col { display: grid; gap: 20px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 20px; min-width: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font: 500 .72rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td.svc { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.table td.svc span { display: flex; flex-direction: column; min-width: 0; }
.table td.svc small { color: var(--muted); font-family: var(--mono); font-size: .75rem; overflow-wrap: anywhere; }
.del { border: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: .8rem; min-height: 32px; padding: 0 6px; }
.del:hover { color: var(--down); }
.code { background: var(--ink); color: #d6dbe4; padding: 12px; border-radius: var(--r); font-size: .75rem; white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0 0; }
.acct { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.acct .btn { margin: 0 6px 6px 0; }

/* Estado público */
.status { padding-top: 56px; }
.status-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.status-brand > div { display: flex; flex-direction: column; }
.status-name { margin: 0; letter-spacing: -0.01em; font-weight: 600; }
.client-logo { width: 44px; height: 44px; border-radius: 10px; background: #0d6e6e; color: #fff; display: grid; place-items: center; font-weight: 600; }
.status-banner { border-radius: 6px; padding: 18px 20px; display: grid; gap: 4px; margin-bottom: 24px; }
.status-banner.is-degraded { background: color-mix(in srgb, var(--warn) 12%, #fff); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line)); }
.status-list { list-style: none; padding: 0; margin: 0 0 40px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.status-list li { padding: 16px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.status-list li:last-child { border-bottom: 0; }
.status-list .row { display: flex; justify-content: space-between; gap: 12px; }
.status-list .bars { height: 28px; }
.status-list .bars i { flex: 1; width: auto; }
.timeline { list-style: none; padding: 0; margin: 0 0 32px; }
.timeline li { display: grid; gap: 2px; padding: 14px 0 14px 20px; border-left: 2px solid var(--line); }
.timeline time { font-size: .78rem; color: var(--muted); }

/* Legal */
.legal h1 { margin-bottom: 24px; }
.legal h2 { margin-top: 28px; }
.legal p { color: #2c3038; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: start; }
.footer-links { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.footer-links a { color: var(--ink); text-decoration: none; font-size: .9rem; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { text-decoration: underline; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r); font-size: .9rem; z-index: 60; max-width: calc(100vw - 32px); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .try { position: static; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; min-height: 40px; padding: 0 14px; border: 1px solid var(--ink); background: transparent; border-radius: var(--r); font: 500 .9rem var(--font); align-items: center; cursor: pointer; }
  .nav-links { display: none; position: fixed; inset: 64px 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 24px var(--gutter); gap: 4px; }
  .nav-links.is-open { display: flex; }
  .nav-links > a:not(.btn), .link-btn { font-size: 1.2rem; min-height: 52px; display: flex; align-items: center; border-bottom: 1px solid var(--line); background-image: none; }
  .nav-links .btn { margin-top: 12px; min-height: 48px; }
  .nav-sep { display: none; }
  .plans, .acct { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .af-body { grid-template-columns: 1fr; }
  .af-side { display: none; }
  .hero-actions .btn { width: 100%; }
  .mon-list .bars i:nth-child(-n+60) { display: none; }
  .table th:nth-child(2), .table td:nth-child(2), .table th:nth-child(3), .table td:nth-child(3) { display: none; }
  .summary { grid-template-columns: 1fr; gap: 2px; }
  .summary dd { margin-bottom: 10px; }
}

/* Keep long labels and preview fragments within narrow viewports. */
.hero-grid > *, .features > *, .plans > *, .stats > *, .acct > * { min-width: 0; }
.mini, .af-bar b, .svc b { overflow-wrap: anywhere; }
.status-list .row { flex-wrap: wrap; }
.nav-links.is-open { overflow-y: auto; }
.qr { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin: 8px 0; }
.captcha-slot { min-height: 65px; margin-top: 12px; }
.captcha-slot:empty { min-height: 0; margin: 0; }
.bars i.e { background: var(--line); opacity: .6; }
.roadmap { margin-top: 32px; padding: 20px 24px; border: 1px dashed var(--line); border-radius: 6px; }
.roadmap h3 { margin-bottom: .4em; }
.roadmap p { margin: 0; }
.btn.is-soon, .btn.is-soon:hover { cursor: default; transform: none; opacity: .55; }
