/* NEXO SIGN · identidad de la familia NEXO (logos aprobados el 30-10-2026) y de la web NEXO Arena.
   Azul del ícono #1456F0 (claro) / #4B86FF (oscuro) · tinta #0E1B3D · servicio #49577A · marino #0B1830 · menta #8DE8C0. */
:root { --ink:#0e1b3d; --soft:#49577a; --line:#d6dde8; --bg:#f4f6f9; --surface:#fff; --brand:#1456f0; --brand-hover:#0f45c4; --brand-soft:#e5edff; --on:#fff;
  --marino:#0b1830; --marino2:#12254a; --menta:#8de8c0;
  --ok:#12794f; --ok-soft:#ddf3e8; --warn:#8f5400; --warn-soft:#ffefc7; --bad:#b42e2e; --bad-soft:#fbe3e3; --r:14px;
  --titulo:'Barlow Condensed','Arial Narrow',sans-serif; --texto:'Barlow','Segoe UI',system-ui,-apple-system,Roboto,Arial,sans-serif; }
@media (prefers-color-scheme: dark) { :root { --ink:#e8edfa; --soft:#a9b8d2; --line:#26324f; --bg:#0b1224; --surface:#131c33; --brand:#4b86ff; --brand-hover:#6c9bff; --brand-soft:#1b2a55; --on:#0b1224;
  --ok:#7bdcb0; --ok-soft:#12352a; --warn:#ffcf70; --warn-soft:#3a2c0d; --bad:#ff9d9d; --bad-soft:#3b1a1f; } }
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--texto); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--brand); }
img, svg { max-width: 100%; }
.salto { position: absolute; left: -9999px; }
.salto:focus { left: 12px; top: 12px; background: #fff; color: var(--ink); padding: 10px 14px; z-index: 30; border-radius: 8px; }

/* Logo claro/oscuro según el tema del equipo */
.solo-oscuro { display: none; }
@media (prefers-color-scheme: dark) { .solo-claro { display: none !important; } .solo-oscuro { display: inline-block; } }

/* Barra superior */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 8px max(16px, calc((100% - 1120px) / 2 + 20px)); background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand .logo { height: 52px; width: auto; }
.by { color: var(--soft); font-size: 13px; }
.nav-pub { display: none; margin-left: auto; align-items: center; gap: 20px; }
.nav-pub a:not(.btn) { color: var(--soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-pub a:not(.btn):hover { color: var(--brand); }
.who { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--soft); flex-wrap: wrap; }
.who:empty { display: none; }

main { width: 100%; max-width: 860px; margin: 0 auto; padding: 18px 16px 40px; flex: 1; outline: none; }
.foot { text-align: center; color: var(--soft); font-size: 13px; padding: 24px 16px 28px; border-top: 1px solid var(--line); background: var(--surface); }
.foot img { height: 36px; width: auto; margin-bottom: 6px; }
.foot p { margin: 4px 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font: 800 30px/1.08 var(--titulo); margin: 4px 0 10px; letter-spacing: .005em; }
h2 { font: 700 22px/1.15 var(--titulo); margin: 0 0 10px; }
h3 { font-size: 16px; margin: 0 0 6px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-top: 14px; box-shadow: 0 1px 2px rgba(14,27,61,.04); }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--soft); } .small { font-size: 14px; } .tiny { font-size: 12.5px; }
label { display: block; font-weight: 700; margin-bottom: 4px; }
input[type=text], input[type=email], select, textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--soft); border-radius: 10px; background: var(--surface); color: var(--ink); }
textarea { min-height: 220px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 2px solid var(--brand); background: var(--brand); color: var(--on); font: 700 15px/1 var(--texto); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.bad { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.grande { min-height: 52px; padding: 0 24px; font-size: 16.5px; }
.btn.menta { background: var(--menta); border-color: var(--menta); color: var(--marino); }
.btn.menta:hover { background: #a9f0d1; border-color: #a9f0d1; }
.btn.linea { background: transparent; border-color: #4a679c; color: #fff; }
.btn.linea:hover { background: var(--marino2); }
.btn:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #ffb400; outline-offset: 2px; }
.notice { padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); }
.notice.warn { background: var(--warn-soft); color: var(--warn); } .notice.bad { background: var(--bad-soft); color: var(--bad); } .notice.ok { background: var(--ok-soft); color: var(--ok); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--brand-soft); color: var(--brand); }
.badge.completed, .badge.signed { background: var(--ok-soft); color: var(--ok); }
.badge.void, .badge.declined { background: var(--bad-soft); color: var(--bad); }
.badge.draft, .badge.pending { background: var(--warn-soft); color: var(--warn); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.list li:first-child { border-top: 0; }
.grow { flex: 1; min-width: 180px; }
.signer { display: grid; grid-template-columns: 1fr 1.3fr 1fr auto; gap: 8px; align-items: end; }
@media (max-width: 640px) { .signer { grid-template-columns: 1fr; } }
.pages canvas { width: 100%; height: auto; display: block; margin: 0 0 10px; border: 1px solid var(--line); background: #fff; }
.pages { max-height: 70vh; overflow: auto; padding: 8px; background: var(--bg); border-radius: 10px; }
.pad { width: 100%; height: 150px; border: 1px dashed var(--soft); border-radius: 10px; background: #fff; touch-action: none; }
.mono { font-family: Consolas, ui-monospace, monospace; font-size: 13px; overflow-wrap: anywhere; }
.toasts { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 20; width: min(92vw, 460px); }
.toast { padding: 12px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.toast.bad { background: var(--bad); color: #fff; } .toast.ok { background: var(--ok); color: #fff; }
[hidden] { display: none !important; }

/* ── Portada pública (sin sesión) ─────────────────────────────────────────────────────────────── */
.landing { display: none; }
.publico .landing { display: block; }
.publico #app { display: none; }
.publico .nav-pub { display: flex; }
.publico .by { display: none; }
.ancho { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.oscuro { background: var(--marino); color: #fff; }
.oscuro a:not(.btn) { color: var(--menta); }
.eyebrow { margin: 0 0 10px; font: 700 13px/1 var(--texto); letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
.oscuro .eyebrow { color: var(--menta); }
.lead { font-size: 18px; color: var(--soft); max-width: 60ch; margin: 0 0 18px; }
.oscuro .lead { color: #c8d4ea; }
.botones { display: flex; flex-wrap: wrap; gap: 12px; }
.centro { text-align: center; }

.hero { overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: .98; margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--menta); }
.hero .bajada { font-size: 19px; color: #c8d4ea; max-width: 34em; margin: 0 0 26px; }
.hero .nota { margin: 16px 0 0; font-size: 14px; color: #a9b8d2; }
.ilus { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); }
.ilus .trazo { stroke-dasharray: 260; stroke-dashoffset: 260; animation: trazar 1.6s .4s ease-out forwards; }
.ilus .t2 { animation-delay: 1.4s; }
.ilus .sello { transform-origin: 372px 70px; animation: sello .5s 2.8s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes trazar { to { stroke-dashoffset: 0; } }
@keyframes sello { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ilus .trazo { animation: none; stroke-dashoffset: 0; } .ilus .sello { animation: none; } }

.confianza { background: var(--marino2); color: #fff; }
.confianza ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 20px; padding-bottom: 20px; margin: 0 auto; }
.confianza li { border-left: 3px solid var(--menta); padding-left: 12px; }
.confianza b { display: block; font: 700 19px/1.2 var(--titulo); letter-spacing: .02em; }
.confianza span { font-size: 14px; color: #a9b8d2; }

.bloque { padding: 72px 0; }
.bloque h2 { font: 800 clamp(30px, 4.4vw, 46px)/1.04 var(--titulo); margin: 0 0 14px; }
.bloque.alterno { background: var(--surface); border-block: 1px solid var(--line); }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.pasos { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pasos li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.pasos .num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font: 800 22px/1 var(--titulo); margin-bottom: 14px; }
.pasos h3 { font: 700 23px/1.1 var(--titulo); margin: 0 0 8px; }
.pasos p { margin: 0; color: var(--soft); }

.usos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.usos li { padding: 12px 14px 12px 40px; border-radius: 10px; background: var(--brand-soft); font-weight: 600; position: relative; }
.usos li::before { content: ''; position: absolute; left: 15px; top: 50%; width: 13px; height: 7px; border: solid var(--brand); border-width: 0 0 3px 3px; transform: translateY(-70%) rotate(-45deg); }
.usos.no li { background: var(--bad-soft); color: var(--bad); }
.usos.no li::before, .usos.no li::after { width: 15px; height: 3px; border: 0; background: var(--bad); transform: translateY(-50%) rotate(45deg); }
.usos.no li::after { content: ''; position: absolute; left: 15px; top: 50%; transform: translateY(-50%) rotate(-45deg); }

.tarjeta, .faq { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.tarjeta h3, .faq h3 { font: 700 26px/1.1 var(--titulo); margin: 0 0 14px; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks li { padding: 8px 0 8px 34px; position: relative; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checks li::before { content: ''; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--menta); }
.checks li::after { content: ''; position: absolute; left: 6px; top: 15px; width: 8px; height: 4px; border: solid var(--marino); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 8px 0 0; color: var(--soft); }

.planes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0 18px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; position: relative; }
.plan h3 { font: 700 24px/1 var(--titulo); margin: 0 0 10px; }
.plan .precio { font: 800 38px/1 var(--titulo); margin: 0 0 16px; }
.plan .precio small { font: 500 15px var(--texto); color: var(--soft); }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 6px 0; border-top: 1px solid var(--line); font-size: 15px; }
.plan.destacado { border: 2px solid var(--brand); box-shadow: 0 12px 30px rgba(20,86,240,.14); }
.cinta { position: absolute; top: -12px; left: 24px; margin: 0; background: var(--brand); color: #fff; font: 700 12px/1 var(--texto); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; }

.entrar { padding: 64px 0; }
.entrar .dos { align-items: center; }
.entrar .card { color: var(--ink); margin: 0 !important; }
.entrar .card a { color: var(--brand); }

@media (max-width: 900px) {
  .hero-grid, .dos { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 40px; padding-bottom: 48px; }
  .ilus { max-width: 420px; margin: 0 auto; }
  .confianza ul, .planes { grid-template-columns: 1fr 1fr; }
  .pasos { grid-template-columns: 1fr; }
  .bloque { padding: 52px 0; }
}
@media (max-width: 640px) {
  .nav-pub a:not(.btn) { display: none; }
  .confianza ul, .planes, .usos { grid-template-columns: 1fr; }
}
