/* ============================================================
   shared.css — Estilos base compartidos entre páginas legales
   Evidentia Forense
   ============================================================ */

/* ── Variables ── */
:root {
  --bg:       #0a0f1e;
  --bg2:      #0f172a;
  --border:   rgba(255,255,255,0.08);
  --em:       #10b981;
  --em-light: #34d399;
  --em-glow:  rgba(16,185,129,0.2);
  --text:     #e2e8f0;
  --muted:    #94a3b8;
  --radius:   12px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Base ── */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}
a { color: var(--em); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,15,30,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; color: #fff;
  text-decoration: none;
}
.logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.nav-back {
  color: var(--muted); font-size: 14px;
  display: flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.nav-back:hover { color: var(--em); text-decoration: none; }

/* ── Layout ── */
.container { max-width: 820px; margin: 0 auto; padding: 60px 24px 100px; }

/* ── Tipografía de contenido ── */
.page-label {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--em);
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 4px; padding: 4px 10px;
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800; color: #fff;
  margin-bottom: 10px; line-height: 1.2;
}
.last-update {
  font-size: 13px; color: var(--muted);
  margin-bottom: 48px; padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
h2 {
  font-size: 20px; font-weight: 700; color: #fff;
  margin: 44px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--em);
}
h3 { font-size: 16px; font-weight: 600; color: var(--em-light); margin: 28px 0 10px; }
p { margin-bottom: 14px; }
ul, ol { padding-left: 22px; margin-bottom: 14px; }
li { margin-bottom: 6px; }

/* ── Componentes compartidos ── */
.info-box {
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius);
  padding: 20px 24px; margin: 24px 0;
}
.info-box strong { color: var(--em-light); }

.badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .06em;
}
.badge-ok { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.badge-no { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }

table {
  width: 100%; border-collapse: collapse;
  margin: 20px 0; font-size: 14px;
}
th {
  text-align: left; padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  color: var(--em-light); font-weight: 600;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 40px; text-align: center;
  font-size: 13px; color: var(--muted);
}
footer a { color: var(--em); }

.breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumbs span[aria-hidden="true"] { opacity: .6; }

.hero-mini {
  padding: 28px 0 12px;
}
.hero-mini h1 { margin-bottom: 18px; }
.hero-mini p.lead {
  font-size: 18px;
  color: var(--text);
  max-width: 760px;
  margin-bottom: 24px;
}

.pill-row,
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}
.pill-row li,
.pill-list li {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 12px;
}
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.btn-primary {
  color: #04111b;
  background: linear-gradient(135deg, var(--em-light), var(--em));
  box-shadow: 0 12px 32px rgba(16,185,129,.22);
}
.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-secondary {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.btn-secondary:hover {
  text-decoration: none;
  border-color: rgba(16,185,129,.35);
  transform: translateY(-1px);
}

.hero-panel,
.cta-band,
.service-intro {
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)),
    linear-gradient(135deg, rgba(16,185,129,.08), rgba(59,130,246,.05));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  margin: 28px 0 34px;
}
.hero-panel p:last-child,
.service-intro p:last-child,
.cta-band p:last-child { margin-bottom: 0; }

.metrics-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 8px;
}
.metric-card,
.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.metric-card strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 26px;
  line-height: 1.1;
}
.metric-card span,
.feature-card p { color: var(--muted); }
.feature-card h3 { margin-top: 0; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 26px;
  align-items: start;
  margin: 24px 0 34px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--em-light);
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 10px;
}
.faq-box {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.03);
}
.faq-box h3 { margin: 0 0 8px; }

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 10px;
}
.link-card {
  display: block;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  text-decoration: none;
}
.link-card strong {
  display: block;
  color: #fff;
  margin-bottom: 6px;
}
.link-card span {
  color: var(--muted);
  font-size: 14px;
}
.link-card:hover {
  text-decoration: none;
  border-color: rgba(16,185,129,.35);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  nav { padding: 14px 20px; }
  .container { padding: 40px 20px 80px; }
  footer { padding: 20px; }
}

@media (max-width: 820px) {
  .metrics-grid,
  .card-grid,
  .link-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
}
