/* Blackbird · landing. Sin dependencias ni fuentes externas. Colores tomados del panel de vuelo del propio producto. */
:root {
  --bg: #070b13;
  --bg-2: #0c1320;
  --surface: #111a2b;
  --line: #1f2c44;
  --text: #e8eef8;
  --muted: #9aa8bf;
  --cyan: #26c6ea;
  --amber: #f5a524;
  --pink: #ff4d8d;
  --radius: 16px;
  --maxw: 1120px;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 76px }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block }
a { color: inherit }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: #00131a; padding: 8px 14px; border-radius: 8px; z-index: 100 }
.skip:focus { left: 8px }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px }

/* ---- Cabecera ---- */
header.top {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px);
  background: rgba(7, 11, 19, .82); border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 18px; height: 64px }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; font-size: 1.15rem }
.brand svg { width: 28px; height: 28px }
.nav { display: none; gap: 22px; margin-left: auto; font-size: .94rem; color: var(--muted) }
.nav a { text-decoration: none }
.nav a:hover { color: var(--text) }
.tools { display: flex; align-items: center; gap: 10px; margin-left: auto }
.lang { font-size: .85rem; color: var(--muted); text-decoration: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px }
.lang:hover { color: var(--text); border-color: var(--muted) }
@media (min-width: 860px) { .nav { display: flex } .tools { margin-left: 22px } }

.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 11px 20px; border-radius: 99px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px) }
.btn.primary { background: var(--cyan); color: #00151d }
.btn.primary:hover { background: #5ad8f3 }
.btn.ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, .02) }
.btn.ghost:hover { border-color: var(--muted) }
.btn.small { padding: 8px 16px; font-size: .88rem }

/* ---- Hero ---- */
.hero {
  padding: 64px 0 40px;
  background: radial-gradient(900px 420px at 15% -10%, rgba(38, 198, 234, .16), transparent 70%),
              radial-gradient(700px 360px at 95% 10%, rgba(245, 165, 36, .08), transparent 70%);
}
.eyebrow { color: var(--cyan); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; max-width: 20ch }
h1 em { font-style: normal; white-space: nowrap; background: linear-gradient(90deg, var(--cyan), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 62ch; margin: 0 0 28px }
.cta { display: flex; flex-wrap: wrap; gap: 12px }
.hud {
  margin-top: 44px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: 0 30px 80px -30px rgba(38, 198, 234, .35);
}
.hud video { width: 100%; height: auto; aspect-ratio: 16 / 9 }
.hud-cap { margin: 10px 4px 0; font-size: .82rem; color: var(--muted) }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 36px 0 0; padding: 0; list-style: none }
.facts li { border-top: 1px solid var(--line); padding-top: 12px }
.facts b { display: block; font-size: 1.7rem; letter-spacing: -.02em; color: var(--cyan) }
.facts span { font-size: .9rem; color: var(--muted) }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr) } }

/* ---- Secciones ---- */
section { padding: 76px 0 }
section.alt { background: var(--bg-2); border-block: 1px solid var(--line) }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 12px }
.sub { color: var(--muted); max-width: 64ch; margin: 0 0 40px; font-size: 1.05rem }
h3 { font-size: 1.1rem; margin: 14px 0 6px; letter-spacing: -.01em }

.grid { display: grid; gap: 18px; grid-template-columns: 1fr }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr) } }
@media (min-width: 980px) { .grid.c3 { grid-template-columns: repeat(3, 1fr) } .grid.c4 { grid-template-columns: repeat(4, 1fr) } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px }
.card p { margin: 0; color: var(--muted); font-size: .96rem }
.ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(38, 198, 234, .1); color: var(--cyan) }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.card:nth-child(3n+2) .ico { background: rgba(245, 165, 36, .1); color: var(--amber) }
.card:nth-child(3n) .ico { background: rgba(255, 77, 141, .1); color: var(--pink) }

/* ---- Cómo funciona ---- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s }
@media (min-width: 860px) { .flow { grid-template-columns: repeat(3, 1fr); gap: 0 } .flow li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 58px; right: 14px; border-top: 2px dashed var(--line) } }
.flow li { position: relative; counter-increment: s; padding-right: 8px }
.flow li::before {
  content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--cyan); color: var(--cyan); font-weight: 700; margin-bottom: 14px;
}
.flow p { margin: 0; color: var(--muted); font-size: .96rem; max-width: 34ch }

/* ---- Portal ---- */
.split { display: grid; gap: 36px; align-items: center }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr } }
.ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px }
.ticks li { position: relative; padding-left: 30px; color: var(--muted) }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 9px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg) scale(.9) }
.ticks b { color: var(--text); font-weight: 600 }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line) }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line) }
.mock-body { padding: 16px; display: grid; gap: 10px; font-size: .9rem }
.mock-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2) }
.mock-row small { color: var(--muted) }
.pill { font-size: .72rem; padding: 3px 9px; border-radius: 99px; font-weight: 600 }
.pill.ok { background: rgba(38, 198, 120, .14); color: #43d98f }
.pill.off { background: rgba(154, 168, 191, .14); color: var(--muted) }

/* ---- Contacto ---- */
.contact { text-align: center }
.contact .sub { margin-inline: auto }
.contact .cta { justify-content: center }
.box { background: linear-gradient(135deg, rgba(38, 198, 234, .14), rgba(245, 165, 36, .08)); border: 1px solid var(--line); border-radius: 24px; padding: 56px 24px }

footer { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--muted); font-size: .88rem }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between }
footer a { text-decoration: none }
footer a:hover { color: var(--text) }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } .btn { transition: none } }

/* ---- Análisis ---- */
.chips-data { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 34px }
.chips-data li { font-size: .85rem; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: var(--surface) }
.chips-data li.hz { border-color: var(--cyan); color: var(--cyan); font-weight: 700 }

.timeline { margin: 0 0 34px; padding: 22px 18px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius) }
.timeline svg { width: 100%; height: auto; overflow: visible }
.timeline .ev line { stroke: var(--line); stroke-width: 2; stroke-dasharray: 3 4 }
.timeline .ev circle { fill: var(--cyan); stroke: var(--surface); stroke-width: 3 }
.timeline .ev text { fill: var(--text); font-size: 15px; font-weight: 600; text-anchor: middle }
.timeline .ev .warn circle { fill: var(--pink) }
.timeline .ev .warn text { fill: #ff8fb4 }
.timeline figcaption { margin-top: 6px; font-size: .82rem; color: var(--muted) }
.tl-scroll { overflow-x: auto }
@media (max-width: 760px) { .timeline svg { min-width: 700px } .timeline { padding: 16px 10px 10px } }

.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; margin-bottom: 4px }
.tag.ok { background: rgba(67, 217, 143, .14); color: #43d98f }
.tag.dev { background: rgba(245, 165, 36, .14); color: var(--amber) }
.note { margin: 22px 0 0; color: var(--muted); font-size: .9rem; max-width: 70ch }
.card h3 { margin-top: 10px }
footer .legal { flex-basis: 100%; margin: 6px 0 0; font-size: .78rem; opacity: .8; max-width: 90ch }

/* ---- Informe de vuelo ---- */
.report { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: 0 30px 80px -40px rgba(38, 198, 234, .3) }
.rp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px }
.rp-kicker { color: var(--cyan); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase }
.rp-head h3 { font-size: 1.7rem; margin: 4px 0 2px; letter-spacing: -.02em }
.rp-head p { margin: 0; color: var(--muted); font-size: .92rem }
.rp-badge { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 12px; border-radius: 99px; background: rgba(67, 217, 143, .14); color: #43d98f; white-space: nowrap }
.rp-body { display: grid; gap: 24px; align-items: center }
@media (min-width: 860px) { .rp-body { grid-template-columns: 230px 1fr } }
.rp-map { width: 100%; max-width: 230px; margin: 0 auto; height: auto; background: var(--bg-2); border-radius: 14px; border: 1px solid var(--line) }
.rp-map text { fill: var(--text); font-size: 13px; font-weight: 600 }
.rp-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px }
@media (min-width: 560px) { .rp-kpis { grid-template-columns: repeat(3, 1fr) } }
@media (min-width: 1000px) { .rp-kpis { grid-template-columns: repeat(5, 1fr) } }
.kpi { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.kpi span { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em }
.kpi b { font-size: 1.22rem; letter-spacing: -.01em; line-height: 1.25 }
.kpi small { font-size: .78rem; color: var(--muted); min-height: 1.1em }
.rp-profile { margin-top: 26px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 6px }
.rp-prof { width: 100%; height: auto; overflow: visible }
.rp-prof .mk line { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 5; opacity: .7 }
.rp-prof .mk text { fill: var(--text); font-size: 15px; font-weight: 600 }
.rp-prof .ax { fill: var(--muted); font-size: 15px }
.rp-legend { display: flex; gap: 18px; font-size: .8rem; color: var(--muted); margin-bottom: 4px }
.rp-legend span::before { content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin: 0 8px 3px 0; vertical-align: middle }
.rp-legend .v::before { background: var(--cyan) } .rp-legend .a::before { background: var(--amber) }
@media (max-width: 760px) { .rp-prof { min-width: 640px } .rp-profile { overflow-x: auto } }
.report h4 { margin: 26px 0 10px; font-size: .78rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase }
.rp-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 28px }
@media (min-width: 760px) { .rp-events { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, auto); grid-auto-flow: column } }
.rp-events li { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem }
.rp-events time { font-variant-numeric: tabular-nums; color: var(--cyan); font-weight: 600; min-width: 4.8em }
.rp-foot { margin: 18px 0 0; color: var(--muted); font-size: .82rem }

/* ---- Hero: botón de sonido ---- */
.hud { position: relative }
.snd { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: .85rem; font-weight: 600; color: var(--text); background: rgba(7, 11, 19, .78); border: 1px solid rgba(255, 255, 255, .22); border-radius: 99px; padding: 8px 14px; cursor: pointer; backdrop-filter: blur(6px) }
.snd:hover { border-color: var(--cyan) }
.snd svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round }
.snd svg .w { fill: none; opacity: .35 }
.snd.on svg .w { opacity: 1 }
.snd.on { border-color: var(--cyan); color: var(--cyan) }

/* ---- Análisis de virajes ---- */
.report + .report { margin-top: 34px }
.tr-sub { color: var(--muted); max-width: 78ch; margin: 0 0 22px }
.tr-kpis { grid-template-columns: repeat(2, 1fr) }
@media (min-width: 640px) { .tr-kpis { grid-template-columns: repeat(4, 1fr) } }
.tr-land { grid-template-columns: repeat(2, 1fr) }
@media (min-width: 640px) { .tr-land { grid-template-columns: repeat(4, 1fr) } }
.tr-chart { width: 100%; height: auto; overflow: visible }
.tr-chart .zones rect { fill: rgba(38, 198, 234, .10) }
.tr-chart .zero { stroke: var(--line); stroke-width: 1.5 }
.tr-chart .touch { stroke: var(--pink); stroke-width: 1.5; stroke-dasharray: 4 5 }
.tr-chart .ax { fill: var(--muted); font-size: 14px }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 640px }
.tbl th { text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; background: var(--bg-2); border-bottom: 1px solid var(--line); white-space: nowrap }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums }
.tbl tr:last-child td { border-bottom: 0 }
.tbl .tm { color: var(--cyan); font-weight: 600 }
.tbl small { color: var(--muted) }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px }
.dot.ok { background: #43d98f } .dot.resbale { background: var(--cyan) } .dot.derrape { background: var(--pink) }
.tr-insight { margin: 14px 0 0; padding: 12px 16px; border-left: 3px solid var(--amber); background: rgba(245, 165, 36, .07); border-radius: 0 10px 10px 0; font-size: .95rem }

.logbook { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden }
@media (min-width: 760px) { .logbook { grid-template-columns: repeat(7, 1fr) } }
.logbook div { padding: 10px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px }
.logbook span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em }
.logbook b { font-size: 1.05rem; font-variant-numeric: tabular-nums }
.tr-chart .ax.lbl { fill: var(--text); opacity: .7 }

/* ---- Analizador de la bola ---- */
.analyzer { border: 1px solid var(--line); border-radius: 12px; overflow: hidden }
.an-row { display: grid; grid-template-columns: 1fr 90px; grid-template-areas: "sit incl" "val val" "txt txt"; gap: 4px 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line) }
.an-row:last-child { border-bottom: 0 }
@media (min-width: 760px) { .an-row { grid-template-columns: 190px 90px 1fr 1.4fr; grid-template-areas: "sit incl val txt" } }
.an-row .sit { grid-area: sit; font-weight: 600 }
.an-row .incl { grid-area: incl; width: 90px; height: 24px }
.an-row .val { grid-area: val; color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums }
.an-row b { grid-area: txt; font-size: .92rem }
.incl rect { fill: var(--bg-2); stroke: var(--muted); stroke-width: 1.2 }
.incl line { stroke: var(--muted); stroke-width: 1.2 }
.incl circle { fill: #e8eef8 }
.an-row.ok b { color: #43d98f }
.an-row.derrape b { color: var(--pink) } .an-row.derrape .incl circle { fill: var(--pink) }
.an-row.resbale b, .an-row.aviso b { color: var(--amber) } .an-row.resbale .incl circle, .an-row.aviso .incl circle { fill: var(--amber) }

/* ---- Tomas puntuadas ---- */
.tr-land { display: grid; gap: 12px; grid-template-columns: 1fr }
@media (min-width: 640px) { .tr-land { grid-template-columns: repeat(2, 1fr) } }
@media (min-width: 1000px) { .tr-land { grid-template-columns: repeat(3, 1fr) } }
.landing { background: var(--bg-2); border: 1px solid var(--line); border-top: 3px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px }
.landing > span { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em }
.landing .lhead { display: flex; justify-content: space-between; align-items: baseline }
.landing b { font-size: 1.15rem; font-variant-numeric: tabular-nums }
.landing em { font-style: normal; font-size: 1.5rem; font-weight: 700 }
.landing em i { font-style: normal; font-size: .8rem; color: var(--muted); font-weight: 500 }
.landing p { margin: 0; font-size: .88rem }
.landing small { color: var(--muted); font-size: .78rem }
.landing.good { border-top-color: #43d98f } .landing.good em { color: #43d98f }
.landing.ok { border-top-color: var(--amber) } .landing.ok em { color: var(--amber) }
.landing.bad { border-top-color: var(--pink) } .landing.bad em { color: var(--pink) }
.landing.nodata p { color: var(--muted) }
.la-note { margin: 12px 0 0; font-size: .92rem; color: #43d98f }
.la-note:empty { display: none }
.landing p small { color: var(--muted) }
.landing .sc { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 10px; font-size: .76rem; color: var(--muted) }
.landing .sc b { color: var(--text); font-size: .82rem }
.la-note { color: var(--muted) }
