@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.5%; line-gap-override: 0%; }
@font-face { font-family: "Inter Tight Fallback"; src: local("Arial"); size-adjust: 100%; ascent-override: 96%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "JetBrains Mono Fallback"; src: local("Courier New"); size-adjust: 100%; ascent-override: 102%; descent-override: 30%; line-gap-override: 0%; }
:root {
  --bg: #0A0A0D;
  --surface: #111116;
  --surface-2: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text: #F5F5F7;
  --muted: rgba(245,245,247,0.62);
  --faint: rgba(245,245,247,0.40);
  --blue: #0055FA;
  --blue-hover: #1F6BFF;
  --blue-soft: rgba(0,85,250,0.12);
  --ring: #4D8BFF;
  --error: #FF6B6B;
  --radius: 12px;
  --radius-lg: 20px;
  --head: "Inter Tight", "Inter Tight Fallback", system-ui, sans-serif;
  --mono: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh; overflow-x: hidden; position: relative;
}
body::before, body::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 900px; pointer-events: none; z-index: 0; }
body::before { background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,85,250,0.28), transparent 70%); }
body::after {
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 0%, transparent 75%);
}
.wrap { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 28px 20px 40px; }
[hidden] { display: none !important; }

.brand { display: flex; align-items: center; gap: 10px; font: 600 17px/1 var(--head); }
.brand img { display: block; }

.mono, .eyebrow, .tiny { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 56px 0 0; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; }

h1 {
  margin: 16px 0 0; font: 600 clamp(2.1rem, 8.4vw, 3.6rem)/1.04 var(--head); letter-spacing: -.035em; text-wrap: balance;
}
.blue { position: relative; white-space: nowrap; color: var(--blue); background-image: linear-gradient(90deg, #0055FA, #4D8BFF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.blue::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.05em; height: 2px; background: linear-gradient(90deg, #0055FA, #4D8BFF); transform: scaleX(0); transform-origin: left; animation: draw-u .6s cubic-bezier(.2,.7,.2,1) .9s forwards; }
@keyframes draw-u { to { transform: scaleX(1); } }
.sub { margin: 18px 0 0; max-width: 40ch; color: var(--muted); font-size: 17px; }

.live { margin-top: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; }
.live-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1px solid rgba(255,59,48,.4); border-radius: 999px; font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #FF5A52; }
.pdot { width: 6px; height: 6px; border-radius: 50%; background: #FF3B30; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.live-date { margin: 0; font: 600 19px/1.3 var(--head); color: var(--text); }
.live-sub { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.tiny { margin: 10px 0 0; font-size: 11px; color: var(--faint); }

.card { margin-top: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
form { display: grid; gap: 18px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
label { font-size: 14px; font-weight: 500; color: var(--text); }
legend { font-size: 15px; font-weight: 500; padding: 0; margin-bottom: 8px; color: var(--text); }
fieldset.field { gap: 8px; }
input[type=text], input[type=email] {
  width: 100%; height: 52px; padding: 0 16px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font: 400 16px "Inter", "Inter Fallback", system-ui, sans-serif; transition: border-color .15s, box-shadow .15s; outline: none;
}
input[type=text]:hover, input[type=email]:hover { border-color: var(--border-strong); }
input[type=text]:focus, input[type=email]:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,85,250,0.25); }
input::placeholder { color: var(--faint); }
input[aria-invalid=true] { border-color: var(--error); }
.err { margin: 0; color: var(--error); font-size: 13px; }
.form-err { padding: 12px 14px; border: 1px solid rgba(255,107,107,.35); border-radius: var(--radius); background: rgba(255,107,107,.07); }

.opt { position: relative; display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); font-size: 15px; font-weight: 400; line-height: 1.35; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--border-strong); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.circle { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.opt:has(input:checked) .circle { background: var(--blue); border-color: var(--blue); }
.opt:has(input:checked) .circle::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.opt:has(input:focus-visible) { outline: 2px solid var(--ring); outline-offset: 2px; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; padding: 0 20px;
  border: 0; border-radius: var(--radius); background: var(--blue); color: #fff; text-decoration: none; cursor: pointer;
  font: 600 16px "Inter", "Inter Fallback", system-ui, sans-serif;
  box-shadow: 0 10px 30px -10px rgba(0,85,250,0.7), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: background .15s, transform .1s; position: relative; overflow: hidden;
}
.btn:hover { background: var(--blue-hover); }
.btn:active { transform: scale(.99); }
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.arrow { display: inline-block; transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn:disabled { opacity: .8; cursor: progress; }
.btn.loading .arrow { display: none; }
.btn.loading .btn-label::before { content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 10px; vertical-align: -4px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fine { margin: 0; color: var(--faint); font-size: 13px; text-align: center; }

.done { animation: fade .25s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.check { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); border: 1px solid rgba(0,85,250,.4); margin-bottom: 18px; }
.done h2 { margin: 0 0 12px; font: 600 26px/1.15 var(--head); letter-spacing: -.02em; outline: none; }
.muted { margin: 0; color: var(--muted); }
.muted strong { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.note { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); color: var(--muted); font-size: 14px; }
.btn.wa { margin: 22px 0 14px; background: #F5F5F7; color: #0A0A0D; box-shadow: none; }
.btn.wa:hover { background: #fff; }

.foot { margin-top: 48px; text-align: center; font-size: 13px; color: var(--faint); }

.d0{--i:0}.d1{--i:1}.d2{--i:2}.d3{--i:3}.d4{--i:4}.d5{--i:5}.d6{--i:6}.d7{--i:7}
.rise { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (min-width: 600px) { .wrap { padding-left: 24px; padding-right: 24px; } .card { padding: 28px; } }
@media (min-width: 900px) { .wrap { padding-top: 48px; } .eyebrow { margin-top: 80px; } }
@media (prefers-reduced-motion: reduce) {
  .rise, .done, .pdot, .btn.loading .btn-label::before { animation: none !important; }
  .btn.loading .btn-label::before { border-top-color: rgba(255,255,255,.35); }
  * { transition: none !important; }
}

/* ---------- capa 2: firma creativa ---------- */
.grain { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* consola del director */
.console { margin-top: 28px; height: 212px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.console svg { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; overflow: visible; }
.wire { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1; }
.node { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1; }
.lbl { font: 500 10.5px var(--mono); letter-spacing: .06em; fill: var(--muted); }
.sdot { fill: var(--faint); }
.pulse { fill: none; stroke: var(--ring); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 12 200; stroke-dashoffset: 12; opacity: 0; filter: drop-shadow(0 0 3px #0055FA); }
.ck { fill: none; stroke: var(--ring); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
svg[data-phase=send] .p-down { animation: run 1.3s ease-in-out forwards; }
svg[data-phase=return] .p-up { animation: run 1.2s ease-in-out forwards; }
@keyframes run { 0% { opacity: 1; stroke-dashoffset: 12; } 90% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -100; } }
svg[data-phase=build] .dot-a, svg[data-phase=build] .dot-b { animation: blink .7s ease-in-out infinite; }
svg[data-phase=build] .dot-b { animation-delay: .25s; }
svg[data-phase=return] .dot-a, svg[data-phase=return] .dot-b, svg[data-phase=verify] .dot-a, svg[data-phase=verify] .dot-b,
svg[data-phase=done] .sdot { fill: var(--ring); }
svg[data-phase=done] .dot-o { fill: var(--ring); }
@keyframes blink { 0%, 100% { fill: var(--ring); } 50% { fill: rgba(245,245,247,.25); } }
svg[data-phase=verify] .dot-o { animation: flash .8s ease-out; }
@keyframes flash { 0% { fill: #fff; } 100% { fill: var(--ring); } }
svg[data-phase=verify] .dot-o { fill: var(--ring); }
svg[data-phase=verify] .ck, svg[data-phase=done] .ck { stroke-dashoffset: 0; transition: stroke-dashoffset .35s ease; }
.log { margin: 0; height: 18px; font: 500 12px/18px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; }
.log::after { content: ""; display: inline-block; width: 7px; height: 13px; margin-left: 3px; vertical-align: -2px; background: var(--ring); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* vista previa del prompt */
.doc { position: relative; margin-top: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.doc-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.doc-name { font-size: 11px; letter-spacing: .04em; text-transform: none; color: var(--faint); }
.wdots { display: flex; gap: 6px; }
.wdots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.doc-body { position: relative; height: 196px; padding: 14px 16px 0; overflow: hidden; }
.doc-body::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 40px; background: linear-gradient(90deg, transparent, var(--surface)); pointer-events: none; }
.doc-lines { font: 500 13px/1.6 var(--mono); color: var(--muted); white-space: pre; -webkit-mask-image: linear-gradient(#000 38%, transparent 96%); mask-image: linear-gradient(#000 38%, transparent 96%); }
.doc-lines .ln { display: block; min-height: 1.6em; }
.doc-lines .ln:nth-child(n+7) { filter: blur(1.5px); }
.doc-lines .hash { color: var(--blue); }
.lockpill { position: absolute; left: 50%; width: max-content; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 16px); padding: 9px 12px; white-space: nowrap; border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(10,10,13,.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--text); font: 500 12.5px/1.3 "Inter", "Inter Fallback", system-ui, sans-serif; cursor: pointer; }
.lockpill svg { flex: none; color: var(--muted); }
.lockpill:hover { border-color: rgba(255,255,255,.28); }
.lockpill:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* cuenta regresiva */
.cd { display: flex; align-items: flex-start; gap: 6px; font: 500 15px/1 var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.cd b { color: var(--faint); font-weight: 500; line-height: 1; padding-top: 1px; }
.cd .u { display: grid; justify-items: center; gap: 5px; min-width: 30px; }
.cd .num { display: flex; }
.cd .num i { font-style: normal; display: inline-block; width: 1ch; text-align: center; }
.cd small { font: 500 10px/1 var(--mono); letter-spacing: .06em; color: var(--faint); }
.cd .chg { animation: dig .18s ease-out; }
@keyframes dig { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.cd-hoy { font: 500 13px var(--mono); letter-spacing: .08em; color: var(--text); }

/* borde que sigue al cursor + brillo del botón */
.card { position: relative; }
@media (hover: hover) and (pointer: fine) {
  .card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(240px circle at var(--x, 50%) var(--y, 50%), rgba(0,85,250,.35), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
  .card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(320px circle at var(--x, 50%) var(--y, 50%), rgba(0,85,250,.06), transparent 70%); }
  .card.glow::before, .card.glow::after { opacity: 1; }
}
.btn:not(.wa)::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.25) 50%, transparent 100%);
  transform: translateX(-150%) skewX(-20deg); animation: shine 4s ease-in-out 1.2s infinite; }
.btn:not(.wa):hover::after { animation: shine .7s ease-out; }
.btn:disabled::after { display: none; }
@keyframes shine { 0% { transform: translateX(-150%) skewX(-20deg); } 30%, 100% { transform: translateX(330%) skewX(-20deg); } }

/* éxito memorable */
.check { position: relative; animation: pop .5s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.check path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-c .5s ease-out .4s forwards; }
@keyframes draw-c { to { stroke-dashoffset: 0; } }
.ring { position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--blue); opacity: 0; pointer-events: none; animation: ring .9s ease-out .35s forwards; }
@keyframes ring { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
.btn.wa { animation: fadeup .45s cubic-bezier(.2,.7,.2,1) .3s backwards; }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  .blue::after { animation: none; transform: scaleX(1); }
  .check, .btn.wa, .ring, .btn::after, .cd .chg, .log::after { animation: none !important; }
  .check path { animation: none; stroke-dashoffset: 0; }
  .ring, .btn:not(.wa)::after { display: none; }
  .pulse { display: none; }
  svg[data-phase] .sdot { animation: none !important; }
}
