:root {
  --bg: #0d1424;
  --bg2: #111a2e;
  --surface: #171E30;
  --surface2: #1d2740;
  --line: rgba(255, 255, 255, 0.10);
  --text: #F4F6FB;
  --muted: #A6ADBE;
  --green: #1AFCA1;
  --ink: #0d1424;
  --display: "Orbitron", "Sora", system-ui, sans-serif;
  --body: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 46rem); }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: .75rem 1rem; background: var(--green); color: var(--ink); }
.skip:focus { left: 1rem; top: 1rem; }

h1 { font: 800 clamp(1.9rem, 4.1vw, 3.05rem)/1.12 var(--display); letter-spacing: -.01em; text-wrap: balance; }
h1 em { font-style: normal; color: var(--green); }
h2 { font: 600 clamp(1.45rem, 3vw, 2.15rem)/1.2 var(--display); text-wrap: balance; max-width: 26ch; }
h3 { font: 600 1.0625rem/1.35 var(--body); }
.eyebrow { margin-bottom: .875rem; font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.lead { max-width: 34rem; font-size: 1.0625rem; color: var(--muted); }

.ico { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico--lg { width: 2.25rem; height: 2.25rem; color: var(--green); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .625rem; min-height: 3.25rem; padding: .75rem 1.5rem; border: 1.5px solid var(--green); border-radius: 999px; background: var(--green); color: var(--ink); font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; touch-action: manipulation; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(26, 252, 161, .55); }
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); box-shadow: none; }
.btn--sm { min-height: 2.75rem; padding: .5rem 1.125rem; font-size: .9375rem; }

.nav { position: sticky; top: 0; z-index: 40; background: rgba(13, 20, 36, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .625rem; margin-right: auto; text-decoration: none; }
.brand img { width: 2.25rem; height: 2.25rem; }
.brand__t { font: 800 1.125rem/1 var(--display); letter-spacing: .08em; }
.brand__t b { font-weight: 800; color: var(--green); }
.nav__links { display: none; gap: 1.75rem; font-size: .9375rem; color: var(--muted); }
.nav__links a { padding: .75rem 0; text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: var(--text); }

.hero { position: relative; padding: clamp(2.5rem, 7vw, 5.5rem) 0 2rem; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60rem 32rem at 78% 18%, rgba(26, 252, 161, .13), transparent 62%),
  linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 56px 56px,
  linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: linear-gradient(#000 55%, transparent); -webkit-mask-image: linear-gradient(#000 55%, transparent); }
.hero__in { display: grid; gap: 1.375rem; align-items: center; }
.hero__txt { display: contents; }
.hero__viz { order: 1; margin-top: .5rem; }
.chips { order: 2; }
.hero .btn--ghost, .pct { display: none; }
.pct { font-style: normal; }
.hero__cta .btn { flex: 1 1 auto; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .375rem .875rem; border: 1px solid var(--line); border-radius: 999px; font-size: .8125rem; color: var(--muted); }
.lema { margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); font: 600 clamp(.8rem, 1.6vw, .95rem)/1.4 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.cam { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #070c16; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(26, 252, 161, .08); }
.cam img { width: 100%; height: auto; }
.cam__hud { position: absolute; left: .75rem; bottom: .75rem; display: inline-flex; align-items: center; gap: .375rem; padding: .25rem .625rem; border-radius: 6px; background: rgba(7, 12, 22, .72); font: 500 .6875rem/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; color: var(--text); }
.cam__hud i { width: .5rem; height: .5rem; border-radius: 50%; background: #ff4d5e; animation: blink 1.6s steps(2, start) infinite; }
.cam__scan { position: absolute; inset: 0 0 auto 0; height: 28%; background: linear-gradient(transparent, rgba(26, 252, 161, .10)); border-bottom: 1px solid rgba(26, 252, 161, .45); transform: translateY(-100%); animation: scan 5s linear infinite; }
.box { position: absolute; border: 2px solid var(--green); border-radius: 4px; box-shadow: 0 0 0 1px rgba(7, 12, 22, .5), 0 0 18px rgba(26, 252, 161, .35); opacity: 0; animation: lock .5s var(--ease) forwards; }
.box b { position: absolute; left: -2px; bottom: 100%; padding: .0625rem .375rem; border-radius: 3px 3px 0 0; background: var(--green); color: var(--ink); font: 600 .625rem/1.5 ui-monospace, "SF Mono", Menlo, monospace; white-space: nowrap; }
.box--car { left: 33.4%; top: 14.5%; width: 15.4%; height: 35%; animation-delay: .5s; }
.box--plate { left: 35.6%; top: 43.6%; width: 5%; height: 4.4%; border-color: #fff; animation-delay: 1.1s; }
.box--plate b { top: 100%; bottom: auto; border-radius: 0 0 3px 3px; background: #fff; }
.box--person b { left: auto; right: -2px; }
.box--person { left: 81.2%; top: 27.5%; width: 5.8%; height: 20.5%; animation-delay: 1.6s; }
.box--moto { left: 6.6%; top: 26%; width: 11.4%; height: 21.5%; animation-delay: 2.1s; }

.log { margin-top: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.log li { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; padding: .625rem .875rem; font-size: .8125rem; opacity: 0; animation: rise .5s var(--ease) forwards; }
.log li + li { border-top: 1px solid var(--line); }
.log li:nth-child(1) { animation-delay: 1.2s; } .log li:nth-child(2) { animation-delay: 1.7s; }
.log li:nth-child(3) { animation-delay: 2.2s; } .log li:nth-child(4) { animation-delay: 2.7s; }
.log time { font: 500 .75rem/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted); }
.log em { padding: .125rem .5rem; border: 1px solid rgba(26, 252, 161, .4); border-radius: 999px; font-style: normal; font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }

@keyframes lock { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes scan { to { transform: translateY(460%); } }
@keyframes blink { to { opacity: .25; } }

.sec { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.sec--alt { background: var(--bg2); border-block: 1px solid var(--line); }
.sec h2 { margin-bottom: clamp(1.75rem, 4vw, 3rem); }

.verbs { display: grid; gap: 1rem; counter-reset: v; }
.verb { position: relative; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, var(--surface), var(--bg2)); }
.verb h3 { margin: 1.25rem 0 .5rem; font: 800 1.5rem/1.1 var(--display); letter-spacing: .02em; }
.verb p, .card p, .steps p, .list p, details p { color: var(--muted); }

.steps { display: grid; gap: 1rem; }
.steps li { position: relative; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.steps__n { display: block; margin-bottom: 1rem; font: 800 2.25rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--green); }
.steps h3 { margin-bottom: .5rem; font-size: 1.1875rem; }

.grid { display: grid; gap: 1rem; }
.card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.card:hover { border-color: rgba(26, 252, 161, .45); transform: translateY(-3px); }
.card .ico { width: 2rem; height: 2rem; margin-bottom: 1rem; color: var(--green); }
.card h3 { margin-bottom: .375rem; }
.card--top { border-top: 2px solid var(--green); background: linear-gradient(180deg, rgba(26, 252, 161, .07), var(--surface) 55%); }
.scale { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.scale i { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(26, 252, 161, .25), var(--green)); }
.tiers { display: grid; gap: 1rem; }
.nota { margin-top: 1.75rem; color: var(--muted); }
.nota a { color: var(--green); text-underline-offset: 3px; }

.duo { display: grid; gap: 2rem; }
.list { display: grid; gap: 1.5rem; }
.list li { display: flex; gap: 1rem; }
.list .ico { margin-top: .125rem; color: var(--green); }
.list h3 { margin-bottom: .25rem; }

details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; padding: .75rem 0; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: .625rem; height: .625rem; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); transition: transform .2s var(--ease); }
details[open] summary::after { transform: rotate(-135deg); }
details p { padding: 0 2rem 1.25rem 0; }

.cierre { padding: clamp(4rem, 9vw, 7rem) 0; text-align: center; background: radial-gradient(40rem 20rem at 50% 100%, rgba(26, 252, 161, .16), transparent 70%); }
.cierre h2 { max-width: 22ch; margin: 0 auto 2rem; }

.foot { padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.foot .brand__t { color: var(--text); }
.foot a { color: var(--text); text-underline-offset: 3px; }

@media (min-width: 40rem) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .verbs, .tiers { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 60rem) {
  .nav__links { display: flex; }
  .hero__in { grid-template-columns: 1.08fr 1fr; gap: 3.5rem; }
  .hero__txt { display: block; }
  .hero__txt > * + * { margin-top: 1.375rem; }
  .hero__viz { order: 0; margin-top: 0; }
  .hero .btn--ghost { display: inline-flex; }
  .pct { display: inline; }
  .hero__cta .btn { flex: 0 0 auto; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .duo { grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
  .duo h2 { margin-bottom: 0; }
  .verb:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -1rem; width: 1rem; height: 1.5px; background: var(--green); opacity: .6; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .box, .log li { opacity: 1; }
  .cam__scan { display: none; }
}
