/* ============================================================
   shared.css — Estilos base compartidos entre páginas legales
   Verax 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; }
@media (hover: hover) {
  .btn-primary:hover { 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; }
@media (hover: hover) {
  .btn-secondary:hover { 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);
}

.blog-link-card {
  overflow: hidden;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.blog-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  margin-bottom: 12px;
  display: block;
  background: #0f172a;
}
.blog-grid {
  align-items: stretch;
}
.blog-grid .blog-link-card {
  height: 100%;
}
.blog-grid .blog-link-card strong {
  font-size: 28px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.blog-excerpt {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.blog-meta {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}
@media (hover: hover) {
  .blog-link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(16,185,129,.35);
    box-shadow: 0 10px 30px rgba(0,0,0,.26);
  }
}
.blog-cover {
  margin: 12px 0 34px;
}
.blog-cover img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
}
.blog-cover figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.blog-article section p,
.blog-article .info-box p,
.blog-article .faq-box p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.nav-brand-plain { text-decoration: none; }
.stack-paragraph { margin-top: 16px; }

.warning-box {
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.cookie-pref {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.btn-cookie {
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .2s;
}
.btn-accept {
  background: #10b981;
  color: #fff;
  border: none;
}
.btn-reject {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-cookie:hover { opacity: .85; }
#prefStatus {
  display: none;
  font-size: 13px;
  color: var(--em-light);
  margin-top: 8px;
}

.not-found-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  overflow-x: hidden;
}
.not-found-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 600px 400px at 70% 30%, rgba(16,185,129,.12) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 20% 70%, rgba(59,130,246,.08) 0%, transparent 70%);
}
.not-found-page .container {
  position: relative;
  z-index: 1;
  max-width: 600px;
  width: 100%;
  padding: 0;
}
.not-found-page .logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  margin-bottom: 56px;
}
.not-found-page .logo .logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 16px var(--em-glow);
}
.not-found-page .logo-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: white;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.not-found-stage {
  position: relative;
  padding-top: 40px;
}
.not-found-page .err-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(6rem, 20vw, 10rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--em-light), var(--em));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: .15;
  user-select: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 60px;
  white-space: nowrap;
}
.not-found-page .content {
  position: relative;
  z-index: 1;
}
.not-found-page .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(16,185,129,.3);
  background: rgba(16,185,129,.07);
  font-size: .78rem;
  font-weight: 600;
  color: var(--em-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.not-found-page .badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--em);
}
.not-found-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}
.not-found-page h1 .em { color: var(--em-light); }
.not-found-page p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto 40px;
}
.not-found-page .actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.not-found-page .btn-em {
  padding: 14px 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--em), #059669);
  color: var(--bg);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(16,185,129,.35);
  transition: transform .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.not-found-page .btn-em:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(16,185,129,.45);
  text-decoration: none;
}
.not-found-page .btn-ghost {
  padding: 14px 30px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: border-color .2s, color .2s, transform .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.not-found-page .btn-ghost:hover {
  border-color: var(--em);
  color: var(--em);
  transform: translateY(-2px);
  text-decoration: none;
}
.not-found-page .quick-links {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.not-found-page .quick-links p {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.not-found-page .links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.not-found-page .link-pill {
  padding: 7px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .82rem;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.not-found-page .link-pill:hover {
  border-color: var(--em);
  color: var(--em-light);
  text-decoration: none;
}
.not-found-page footer {
  border-top: none;
  margin-top: 56px;
  padding: 0;
  font-size: .78rem;
  color: rgba(148,163,184,.4);
}

/* ── 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;
  }
  .blog-grid .blog-link-card strong {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .blog-article section p,
  .blog-article .info-box p,
  .blog-article .faq-box p {
    text-align: left;
    hyphens: none;
  }
}
