/* Shared design overrides for all /comparativas/* pages.
   Loaded AFTER the inline <style> block in each template so these win. */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800;900&display=swap');

/* ── Typography ─────────────────────────────────────────────── */
body,
h1, h2, h3, h4,
p, li, td, th, dt, dd,
.badge, .hero-label {
  font-family: 'Nunito', sans-serif !important;
}

/* Monospaced elements keep a clean system mono */
.norma-id, .num, .norma-tag, .year,
.status, .ev-num, .hero-label,
nav .comp-nav-breadcrumb,
footer .comp-footer-iso {
  font-family: 'Courier New', Courier, monospace !important;
}

h1 { font-weight: 800 !important; }
h2 { font-weight: 700 !important; }
h3 { font-weight: 700 !important; }

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  position: sticky !important;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 242, 0.96) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  padding: 0.75rem 2rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
}

.comp-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.comp-nav-logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.comp-nav-badge {
  font-family: 'Nunito', sans-serif !important;
  font-size: 11px;
  font-weight: 800;
  color: #2e3289;
  background: rgba(46, 50, 137, 0.1);
  padding: 2px 9px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.comp-nav-spacer {
  flex: 1;
}

.comp-nav-breadcrumb {
  font-size: 12px;
  color: rgba(15, 17, 23, 0.38);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.comp-nav-cta {
  display: inline-block;
  padding: 9px 20px;
  background: #2e3289;
  color: white !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.comp-nav-cta:hover { opacity: 0.85; }

@media (max-width: 640px) {
  .comp-nav-breadcrumb { display: none; }
  .comp-nav-cta { display: none; }
}

/* ── CTA Box buttons ─────────────────────────────────────────── */
.cta-box { background: #1E1D4A !important; }

.btn {
  background: white !important;
  color: #1E1D4A !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  transition: opacity 0.2s ease !important;
}

.btn:hover { opacity: 0.88; }

.btn-ghost {
  background: transparent !important;
  color: white !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: #F7F5F2 !important;
  border-top: 2px solid rgba(46, 50, 137, 0.12) !important;
  padding: 0 !important;
  color: inherit !important;
}

.comp-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.comp-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

.comp-footer-logo { height: 36px; width: auto; }

.comp-footer-badge {
  font-family: 'Nunito', sans-serif !important;
  font-size: 11px;
  font-weight: 800;
  color: #2e3289;
  background: rgba(46, 50, 137, 0.1);
  padding: 2px 9px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.comp-footer-text {
  font-family: 'Nunito', sans-serif !important;
  font-size: 13.5px;
  color: rgba(15, 17, 23, 0.55);
  margin: 0;
}

.comp-footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.comp-footer-links a {
  font-family: 'Nunito', sans-serif !important;
  font-size: 13px;
  font-weight: 700;
  color: #2e3289;
  text-decoration: none;
}

.comp-footer-links a:hover { text-decoration: underline; }

.comp-footer-iso {
  font-size: 11px;
  color: rgba(15, 17, 23, 0.32);
  margin-top: 0.25rem;
}
