/* ============================================================
   Guía de lectura lateral (scroll-spy) — estilo identidad.paraguaydev.com
   ============================================================ */
.page-layout {
  display: grid;
  grid-template-columns: 1fr;
}
.page-side {
  display: none;
}
@media (min-width: 1024px) {
  .page-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 2rem;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  .page-side {
    display: block;
    position: sticky;
    top: 5.5rem;
    align-self: start;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    border-right: 1px solid var(--border);
    padding-right: 1.1rem;
    scrollbar-width: thin;
  }
  .page-main {
    min-width: 0;
  }
}
.reading-guide {
  font-size: 0.8rem;
}
.rg-title {
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  margin-bottom: 0.7rem;
}
.reading-guide ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.reading-guide a {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
  color: var(--text-faint);
  text-decoration: none;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  border-left: 2px solid transparent;
  line-height: 1.35;
  transition: background 0.15s, color 0.15s;
}
.reading-guide a:hover {
  color: var(--text);
  background: rgba(34, 211, 238, 0.06);
  text-decoration: none;
}
.reading-guide li.on a {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(34, 211, 238, 0.09);
  font-weight: 600;
}
.reading-guide li.done a {
  color: var(--text-dim);
}
.rg-check {
  width: 1rem;
  flex-shrink: 0;
  color: #34d399;
  font-weight: 700;
}
.rg-label {
  min-width: 0;
}

/* ============================================================
   GNBiometrics · Landing / Guía de Implementación Corporativa
   Tema: navy #0b1b33 + cyan #22d3ee  (ParaguayDev)
   Mobile-first · español formal · acceso restringido
   ============================================================ */

:root {
  --navy: #0b1b33;
  --navy-2: #0f2747;
  --navy-3: #123a5e;
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.12);
  --cyan-border: rgba(34, 211, 238, 0.30);
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-faint: #64748b;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-bg-2: rgba(255, 255, 255, 0.06);
  --border: rgba(148, 163, 184, 0.18);
  --radius: 14px;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px; /* px-4 mínimo en mobile */
}

/* ---------- Header / navegación ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 27, 51, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cyan-border);
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
  flex-shrink: 0;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}

.brand-name em { color: var(--cyan); font-style: normal; }

.brand-sub {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.main-nav::-webkit-scrollbar { display: none; }

.main-nav a {
  flex-shrink: 0;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.main-nav a:hover { color: var(--cyan); text-decoration: none; background: var(--cyan-dim); }

.main-nav a.active { color: var(--cyan); background: var(--cyan-dim); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  min-height: 44px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--cyan);
  color: var(--navy);
}

.btn-primary:hover { box-shadow: 0 6px 24px rgba(34, 211, 238, 0.35); }

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan-border);
}

.btn-ghost:hover { background: var(--cyan-dim); }

.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 48px 0 40px;
  text-align: center;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan-border);
  background: var(--cyan-dim);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.hero h1 span { color: var(--cyan); }

.hero p.lead {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto 26px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  min-height: 28px;
}

.badge svg { color: var(--cyan); flex-shrink: 0; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.stat {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
}

.stat b {
  display: block;
  font-size: 20px;
  color: var(--cyan);
  font-weight: 700;
}

.stat span { font-size: 12px; color: var(--text-dim); }

/* ---------- Secciones ---------- */
.section { padding: 40px 0; }

.section-alt {
  background: rgba(11, 27, 51, 0.45);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { margin-bottom: 26px; }

.section-head .kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.section-head p { color: var(--text-dim); font-size: 14px; max-width: 720px; }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.card-hover:hover {
  transform: translateY(-3px);
  border-color: var(--cyan-border);
  background: var(--card-bg-2);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
  margin-bottom: 14px;
}

.card h3 { font-size: 17px; color: #fff; font-weight: 700; margin-bottom: 8px; }
.card h3 a { color: #fff; }
.card h3 a:hover { color: var(--cyan); text-decoration: none; }

.card p { font-size: 13px; color: var(--text-dim); line-height: 1.55; }

.card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.card .link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
}

.card .link-more:hover { text-decoration: none; opacity: 0.85; }

/* ---------- Guías / artículos ---------- */
.guide {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  margin-bottom: 20px;
  scroll-margin-top: 130px;
}

.guide > .guide-id {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}

.guide h2 { font-size: 21px; color: #fff; margin-bottom: 10px; }

.guide h3 {
  font-size: 15px;
  color: var(--cyan);
  font-weight: 600;
  margin: 20px 0 8px;
}

.guide p { font-size: 14px; color: var(--text-dim); margin-bottom: 10px; }

.guide ul, .guide ol { margin: 0 0 12px 20px; }

.guide li { font-size: 14px; color: var(--text-dim); margin-bottom: 6px; }

.guide li b, .guide p b, .guide td b { color: var(--text); font-weight: 600; }

.guide table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; }

.guide th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 10px 12px;
  border: 1px solid var(--border);
}

.guide td {
  font-size: 13px;
  color: var(--text-dim);
  padding: 10px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
}

.code {
  display: block;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: #cbd5e1;
  overflow-x: auto;
  margin: 10px 0 16px;
  white-space: pre;
}

.note {
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  border-left: 3px solid var(--cyan);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
  margin: 12px 0 16px;
}

.note b { color: var(--cyan); }

.warn {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-left: 3px solid #fbbf24;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
  margin: 12px 0 16px;
}

.warn b { color: #fbbf24; }

/* ---------- Tablas ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
}

.table-wrap table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.table-wrap th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 12px 14px;
  border-bottom: 1px solid var(--cyan-border);
  white-space: nowrap;
}

.table-wrap td {
  font-size: 13px;
  color: var(--text-dim);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table-wrap tr:last-child td { border-bottom: none; }

.table-wrap td b { color: var(--text); }

.status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.status-ok { color: #4ade80; background: rgba(74, 222, 128, 0.10); border: 1px solid rgba(74, 222, 128, 0.35); }
.status-pend { color: #fbbf24; background: rgba(251, 191, 36, 0.10); border: 1px solid rgba(251, 191, 36, 0.35); }
.status-na { color: var(--text-faint); background: rgba(148, 163, 184, 0.10); border: 1px solid var(--border); }

/* ---------- Checklist ---------- */
.check-group { margin-bottom: 26px; }

.check-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #fff;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--cyan-border);
}

.check-group h3 svg { color: var(--cyan); flex-shrink: 0; }

.check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  margin-bottom: 8px;
}

.check-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  accent-color: var(--cyan);
  cursor: pointer;
}

.check-item label {
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  line-height: 1.5;
}

.check-item small {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.check-progress {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 27, 51, 0.95);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-progress .bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.check-progress .bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), #67e8f9);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.check-progress .label {
  font-size: 12px;
  color: var(--text-dim);
}

.check-progress .label b { color: var(--cyan); }

/* ---------- Auth token (flujo) ---------- */
.flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 18px;
}

.flow-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.flow-step .num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
}

.flow-step p { font-size: 13px; color: var(--text-dim); margin: 0; }
.flow-step p b { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.5);
  padding: 28px 0 36px;
  margin-top: 20px;
}

.site-footer .cols {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.site-footer h4 {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.site-footer ul { list-style: none; }

.site-footer li { margin-bottom: 6px; }

.site-footer a { font-size: 13px; color: var(--text-dim); }

.site-footer a:hover { color: var(--cyan); }

.site-footer .legal {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-faint);
}

.site-footer .legal b { color: var(--text-dim); }

/* ---------- Breakpoints ---------- */
@media (min-width: 480px) {
  .hero h1 { font-size: 34px; }
  .btn-row { flex-direction: row; justify-content: center; }
  .btn-block { width: auto; }
}

@media (min-width: 640px) {
  .container { padding: 0 24px; }
  .header-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
  .main-nav { overflow-x: visible; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 64px 0 52px; }
  .site-footer .cols { flex-direction: row; justify-content: space-between; }
  .site-footer .col { flex: 1; }
  .check-progress { flex-direction: row; align-items: center; justify-content: space-between; }
  .check-progress .bar { flex: 1; }
  .flow { flex-direction: row; }
  .flow-step { flex: 1; flex-direction: column; }
  .flow-step .num { margin-bottom: 6px; }
}

@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 42px; }
  .hero p.lead { font-size: 16px; }
  .section { padding: 56px 0; }
  .guide { padding: 32px 28px; }
}

/* ---------- Descarga directa APK (entregables) ---------- */
.download-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  background: var(--card-bg);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius);
  padding: 20px;
}

.download-info {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.download-info .card-icon { margin-bottom: 0; flex-shrink: 0; }

.btn-download {
  width: 100%;
  font-size: 15px;
  padding: 14px 20px;
}

@media (min-width: 640px) {
  .download-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .btn-download { width: auto; flex-shrink: 0; }
}
