:root {
  --brand: #0b5563;
  --brand-2: #0e7490;
  --accent: #f8c23a;
  --ink: #172033;
  --muted: #64748b;
  --line: #dbe4ef;
  --bg: #f1f5f9;
  --ok: #047857;
  --danger: #b91c1c;
  --warn: #b45309;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { font-family: system-ui, -apple-system, Segoe UI, sans-serif; margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; }
a { color: var(--brand-2); }
.topnav { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 14px rgba(15,23,42,.04); }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logo { font-size: 20px; font-weight: 850; color: var(--brand); text-decoration: none; }
.nav-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.nav-links a { text-decoration: none; color: #475569; font-weight: 650; }
.nav-links a:hover { color: var(--brand); }
.page { max-width: 1120px; margin: 0 auto; padding: 30px 20px 54px; }
.card { max-width: 520px; margin: 8vh auto; background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 12px 36px rgba(2,8,23,.09); border: 1px solid rgba(219,228,239,.8); }
.card.wide { max-width: 920px; margin-top: 28px; }
.hero-card { background: linear-gradient(135deg, #0b5563, #083b48); color: #fff; border: 0; }
h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.1; margin: 0 0 10px; }
h2 { font-size: 22px; margin: 0 0 16px; }
h3 { margin: 0 0 10px; }
.lead { color: #dff7fb; font-size: 18px; max-width: 720px; }
.resumen { background: #ecfeff; border: 1px solid #a5f3fc; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: 0 8px 26px rgba(15,23,42,.05); }
.stat { display: flex; align-items: center; gap: 14px; }
.stat .icon { width: 42px; height: 42px; border-radius: 12px; background: #e0f2fe; display: grid; place-items: center; color: var(--brand); font-weight: 900; }
.stat small { color: var(--muted); display: block; }
.stat strong { font-size: 22px; }
.steps { display: flex; align-items: center; gap: 10px; margin: 22px 0; }
.step { display: flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 14px; font-weight: 750; }
.step .num { width: 30px; height: 30px; border: 2px solid #cbd5e1; border-radius: 999px; display: grid; place-items: center; }
.step.active { color: var(--brand-2); }
.step.active .num { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.step-line { flex: 1; height: 3px; background: #cbd5e1; border-radius: 999px; }
label { display: block; font-size: 13px; margin: 14px 0 5px; color: #334155; font-weight: 700; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 9px; font-size: 15px; background: #fff; }
input:focus, textarea:focus { outline: 2px solid rgba(14,116,144,.18); border-color: var(--brand-2); }
button, .btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; border-radius: 9px; background: var(--brand-2); color: #fff; font-size: 15px; font-weight: 800; padding: 12px 16px; cursor: pointer; text-decoration: none; }
button:hover, .btn:hover { background: #155e75; color: #fff; }
button.secondary, .btn.secondary { background: #e2e8f0; color: #334155; }
button.secondary:hover, .btn.secondary:hover { background: #cbd5e1; }
button.danger { background: var(--danger); }
.actions { display: flex; gap: 12px; justify-content: space-between; margin-top: 20px; flex-wrap: wrap; }
.nota { font-size: 12px; color: var(--muted); }
.badge { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.badge.ok { background: #dcfce7; color: #166534; }
.badge.warn { background: #fef3c7; color: #92400e; }
.badge.info { background: #dbeafe; color: #1e40af; }
.badge.danger { background: #fee2e2; color: #991b1b; }
.alert { padding: 12px 14px; border-radius: 10px; margin: 14px 0; font-size: 14px; }
.alert.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.results { position: relative; }
.dropdown { position: absolute; z-index: 4; left: 0; right: 0; margin-top: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 32px rgba(15,23,42,.16); max-height: 260px; overflow: auto; }
.dropdown button { width: 100%; background: #fff; color: var(--ink); border-radius: 0; justify-content: flex-start; text-align: left; padding: 12px 14px; border-bottom: 1px solid #eef2f7; }
.dropdown button:hover { background: #f8fafc; }
.preview { max-width: 360px; width: 100%; border: 1px solid var(--line); border-radius: 12px; display: block; margin: 16px auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { text-align: left; border-bottom: 1px solid #edf2f7; padding: 11px 10px; font-size: 14px; vertical-align: top; }
th { background: #f8fafc; color: #475569; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #0f172a; color: #e2e8f0; padding: 10px 12px; border-radius: 10px; overflow-x: auto; font-size: 13px; }
.pedir .card { max-width: 480px; }
@media (max-width: 760px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .steps { align-items: flex-start; flex-direction: column; }
  .step-line { display: none; }
  .nav-inner { align-items: flex-start; flex-direction: column; }
}
