/* ============================================================
   TOKENS — DESIGN SYSTEM
   ============================================================ */
:root {
  --navy:          #0D1B2A;
  --navy-light:    #152236;
  --navy-dark:     #080F18;
  --aegis-black:   #0A0E17;
  --gold:          #B8975A;
  --gold-dm:       #C4A466;
  --bg:            #F8F7F4;
  --bg-alt:        #F2F0EB;
  --white:         #FFFFFF;
  --gray-dark:     #2C3E50;
  --gray-mid:      #6B7B8D;
  --gray-light:    #B0BEC5;
  --gray-lightest: #ECEFF1;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}
.section  { padding: 48px 0; }
.sec-white { background: var(--white); }
.sec-bg   { background: var(--bg); }
.sec-alt  { background: var(--bg-alt); }
.sec-navy { background: var(--navy); }
.sec-navy-dark { background: var(--navy-dark); }
.sec-aegis-black { background: var(--aegis-black); }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 { font-size: 2rem;   font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; }
h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.2;  letter-spacing: -0.02em; }
h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.25; }

.label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.label-dm   { color: var(--gold-dm); }
.label-gray { color: var(--gray-mid); }
.text-white  { color: var(--bg); }
.text-muted  { color: var(--gray-mid); font-style: italic; }
.text-center { text-align: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background-color: var(--navy);
  background-image: url('/assets/v3.1/images/home-hero.jpg');
  background-image: image-set(url('/assets/v3.1/images/home-hero.avif') type('image/avif'), url('/assets/v3.1/images/home-hero.webp') type('image/webp'), url('/assets/v3.1/images/home-hero.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center 40%;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,14,23,0.92) 0%,
    rgba(10,14,23,0.82) 42%,
    rgba(10,14,23,0.45) 70%,
    rgba(10,14,23,0.20) 100%
  );
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-content {
  max-width: 760px;
}
.hero-subtitle {
  font-size: 1rem;
  color: rgba(248,247,244,0.80);
  line-height: 1.75;
  margin: 20px 0 36px;
  max-width: 640px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 3px;
  cursor: pointer;
  border: none;
  transition: background 0.18s ease, transform 0.12s ease, opacity 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: var(--bg); border: 1.5px solid transparent; }
.access-box .btn-primary {
  background: var(--bg);
  color: var(--navy);
  border: 1.5px solid transparent;
}
.access-box .btn-primary:hover {
  background: transparent;
  color: var(--bg);
  border: 1.5px solid var(--bg);
}
.btn-primary:hover {
  background: var(--bg);
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost {
  background: transparent;
  color: var(--bg);
  border: 1.5px solid rgba(248,247,244,0.55);
}
.btn-ghost:hover { background: var(--bg); color: var(--navy); border-color: var(--bg); }
.btn-full { width: 100%; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 0.5px solid var(--gray-lightest);
  border-radius: 3px;
  padding: 24px 22px;
}
.card-gold {
  border: 1px solid rgba(184,151,90,0.35);
  background: rgba(184,151,90,0.04);
}
.card h3 { color: var(--navy); margin-bottom: 8px; font-size: 1rem; }
.card p  { font-size: 0.875rem; color: var(--gray-dark); line-height: 1.6; }

/* ============================================================
   S4 v1.3 — TARJETA PROTAGONISTA + CHIPS EXPAND INLINE (Alt 1)
   Implementado con <details>/<summary> nativos. Cero JavaScript.
   ============================================================ */
.s4-hero-card {
  background: rgba(184,151,90,0.07);
  border: 1px solid rgba(184,151,90,0.65);
  border-radius: 3px;
  padding: 26px 28px;
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(184,151,90,0.12), 0 1px 3px rgba(13,27,42,0.06);
}
.s4-hero-card .badge { margin-bottom: 12px; }
.s4-hero-card h3 {
  color: var(--gold);
  margin-bottom: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.s4-hero-card p {
  font-size: 0.9375rem; line-height: 1.65;
  color: var(--gray-dark);
}

.s4-sub-label {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.s4-sub-label .badge { margin-bottom: 0; }
.s4-sub-label .sub-text {
  font-size: 0.8125rem; color: var(--gray-mid);
  line-height: 1.5;
}

.s4-chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.s4-chip {
  background: var(--white);
  border: 1px solid var(--gray-lightest);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.s4-chip[open] {
  border-color: rgba(184,151,90,0.35);
  box-shadow: 0 2px 8px rgba(13,27,42,0.05);
}
.s4-chip summary {
  padding: 14px 16px;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--navy); cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; user-select: none;
}
.s4-chip summary::-webkit-details-marker { display: none; }
.s4-chip summary::after {
  content: "+";
  font-size: 1.125rem; font-weight: 400;
  color: var(--gold); line-height: 1;
  transition: transform 0.18s ease;
  flex-shrink: 0;
}
.s4-chip[open] summary::after { transform: rotate(45deg); }
.s4-chip:hover summary { color: var(--gold); }
.s4-chip-body {
  padding: 0 16px 14px;
  font-size: 0.8125rem; line-height: 1.65;
  color: var(--gray-dark);
}
.s4-chip[open] .s4-chip-body {
  border-top: 1px solid rgba(13,27,42,0.04);
  padding-top: 12px;
}

.badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.badge-gold { background: rgba(184,151,90,0.15); color: var(--gold); }
.badge-gray { background: var(--gray-lightest); color: var(--gray-mid); }

/* ============================================================
   BANNER / QUOTE
   ============================================================ */
.banner {
  background: rgba(13,27,42,0.05);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  font-style: italic;
  font-size: 0.875rem;
  color: var(--gray-mid);
  line-height: 1.7;
  border-radius: 0 3px 3px 0;
}
.quote {
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  font-style: italic;
  color: rgba(248,247,244,0.8);
  font-size: 0.9375rem;
  line-height: 1.75;
}
.quotes-list { display: flex; flex-direction: column; gap: 20px; }

/* ============================================================
   S10 v1.3 — TRES MINI-BLOQUES SOBRE AEGIS (fondo navy-dark)
   ============================================================ */
.s10-blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 0 0 32px;
}
.s10-block {
  padding: 22px 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(184,151,90,0.18);
  border-radius: 3px;
}
.s10-block .eyebrow {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dm);
  margin-bottom: 10px;
}
.s10-block h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg);
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin-bottom: 10px;
}
.s10-block p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(248,247,244,0.7);
  margin: 0;
}
.s10-intro {
  color: rgba(248,247,244,0.72);
  text-align: left;
  max-width: 100%;
  margin: 0 0 32px;
  line-height: 1.75;
  font-size: 0.9375rem;
}
.s10-quote {
  max-width: 900px;
  margin: 0 auto 36px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: 56px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(13,27,42,0.08), 0 2px 8px rgba(13,27,42,0.06);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  padding: 0 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-text { font-size: 15px; font-weight: 800; letter-spacing: -0.03em; }
.logo-shield { color: var(--navy); }
.logo-quant  { color: var(--gold); }

.nav-desktop { display: none; }
.nav-cta     { display: none !important; }
.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-mid);
  letter-spacing: 0.04em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  border-top: none; border-left: none; border-right: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  display: inline-block;
}
.nav-link:hover { color: var(--navy); }
.nav-link.active { color: var(--navy); border-bottom-color: var(--gold); font-weight: 600; }

.burger {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: all 0.22s ease; transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mob-menu {
  display: none;
  position: fixed; top: 56px; left: 0; right: 0;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(13,27,42,0.12);
  z-index: 899; padding: 8px 0 24px;
}
.mob-menu.open { display: block; }
.mob-link {
  display: block; padding: 14px 20px;
  font-size: 1rem; font-weight: 500; color: var(--gray-dark);
  border-left: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.mob-link:hover { background: var(--bg-alt); }
.mob-link.active { color: var(--navy); border-left-color: var(--gold); font-weight: 600; background: var(--bg-alt); }
.mob-link-cta { display: block; margin: 12px 20px 0; }

/* ============================================================
   PILARES
   ============================================================ */
.pilares {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.pilar {
  background: var(--bg-alt);
  border: 1px solid var(--gray-lightest);
  border-radius: 3px;
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pilar:hover { border-color: rgba(184,151,90,0.4); }
.pilar.active {
  border-color: var(--gold);
  background: var(--white);
}
.pilar h3 { font-size: 0.9375rem; color: var(--navy); margin-bottom: 6px; }
.pilar p  { font-size: 0.8125rem; color: var(--gray-mid); line-height: 1.55; }

.pilar-detail {
  display: none;
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(184,151,90,0.25);
  border-radius: 3px;
  margin-top: 4px;
}
.pilar-detail.open { display: block; }
.pilar-detail p { font-size: 0.9375rem; line-height: 1.75; color: var(--gray-dark); margin-bottom: 12px; }
.pilar-detail p:last-child { margin-bottom: 0; }

/* ============================================================
   ACCORDION
   ============================================================ */
.accordion { display: flex; flex-direction: column; gap: 0; }
.acc-item { border-bottom: 1px solid var(--gray-lightest); }
.acc-item:first-child { border-top: 1px solid var(--gray-lightest); }
.acc-head {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  padding: 18px 0; background: none; border: none;
  font-family: inherit; font-size: 0.9375rem; font-weight: 600;
  color: var(--navy); cursor: pointer; text-align: left;
  transition: color 0.15s ease;
}
.acc-head:hover { color: var(--gold); }
.acc-icon {
  font-size: 1.25rem; font-weight: 400; color: var(--gold);
  flex-shrink: 0; transition: transform 0.2s ease;
  line-height: 1;
}
.acc-head.open .acc-icon { transform: rotate(45deg); }
.acc-body { display: none; padding: 0 0 20px; }
.acc-body.open { display: block; }
.acc-body p { font-size: 0.9rem; line-height: 1.75; color: var(--gray-dark); margin-bottom: 12px; }
.acc-body p:last-child { margin-bottom: 0; }
.acc-quote {
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  font-style: italic;
  color: var(--gray-mid);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 14px 0;
}
.acc-source {
  font-size: 0.75rem;
  color: var(--gray-light);
  margin-top: 12px;
  font-style: italic;
}

/* ============================================================
   TABS (para quién)
   ============================================================ */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tab-btn {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 3px;
  border: 1px solid var(--gray-lightest);
  background: var(--white);
  color: var(--gray-mid);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.tab-btn:hover { border-color: rgba(184,151,90,0.4); color: var(--navy); }
.tab-btn.active {
  background: var(--navy);
  color: var(--bg);
  border-color: var(--navy);
  font-weight: 600;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel h3 {
  font-size: 1.0625rem;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.4;
}
.tab-panel p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--gray-dark);
  margin-bottom: 14px;
}
.frase-ancla {
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  font-style: italic;
  color: var(--gray-mid);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 16px 0;
}
.identidad {
  font-size: 0.875rem !important;
  color: var(--gray-mid) !important;
  font-style: italic;
}
.exclusion-note {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--bg-alt);
  border-radius: 3px;
  font-size: 0.875rem;
  color: var(--gray-mid);
  line-height: 1.7;
}

/* ============================================================
   DIFERENCIAL
   ============================================================ */
.diff-list { display: flex; flex-direction: column; gap: 0; }
.diff-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-lightest);
}
.diff-item:first-child { border-top: 1px solid var(--gray-lightest); }
.diff-cat {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.diff-content h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.diff-content p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--gray-dark);
}

/* ============================================================
   ACCESS BOX
   ============================================================ */
.access-box {
  background: var(--navy);
  border: 0.5px solid rgba(184,151,90,0.2);
  border-radius: 3px;
  padding: 32px;
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}
.access-box h3 { color: var(--bg); margin-bottom: 12px; font-size: 1.0625rem; }
.access-box p  { color: rgba(248,247,244,0.65); font-size: 0.875rem; line-height: 1.7; margin-bottom: 22px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.anim {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.anim.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(184,151,90,0.18);
  padding: 44px 0 40px;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.footer-tagline {
  font-size: 0.8125rem;
  color: rgba(248,247,244,0.45);
  font-style: italic;
  margin-top: 6px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.footer-links a {
  font-size: 0.8125rem;
  color: rgba(248,247,244,0.50);
  transition: color 0.15s ease;
  text-decoration: none;
}
.footer-links a:hover { color: var(--gold-dm); }
.footer-sep {
  border: none;
  border-top: 1px solid rgba(248,247,244,0.22);
  margin: 20px 0 16px;
}
.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(248,247,244,0.35);
  line-height: 1.65;
  max-width: 1400px;
  margin-bottom: 14px;
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(248,247,244,0.25);
}

/* ============================================================
   RESPONSIVE — TABLET ≥768px
   ============================================================ */
@media (min-width: 768px) {
  .container { padding: 0 40px; }
  .section { padding: 72px 0; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.2rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 28px; }
  .pilares { grid-template-columns: repeat(3, 1fr); }
  .site-header { height: 58px; }
  .header-inner { padding: 0 40px; }
  .mob-menu { top: 58px; }
  .footer-top { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .diff-item { grid-template-columns: 160px 1fr; gap: 20px; }
  .s4-chips { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ============================================================
   RESPONSIVE — DESKTOP ≥1024px
   ============================================================ */
@media (min-width: 1024px) {
  .container { max-width: 1200px; padding: 0 64px; }
  .section { padding: 96px 0; }
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.3rem; }
  body { font-size: 1.0625rem; }
  .label { font-size: 0.75rem; }
  .nav-link { font-size: 0.875rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .nav-desktop { display: flex; align-items: center; gap: 28px; }
  .nav-cta { display: inline-flex !important; }
  .burger { display: none; }
  .site-header { height: 60px; }
  .header-inner { padding: 0 64px; }
  .s4-chips { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .s10-blocks { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

/* ============================================================
   RESPONSIVE — LARGE ≥1440px
   ============================================================ */
@media (min-width: 1440px) {
  .container { max-width: 1400px; padding: 0 80px; }
  .section { padding: 120px 0; }
  h1 { font-size: 3.25rem; }
  h2 { font-size: 2.4rem; }
  h3 { font-size: 1.5rem; }
  body { font-size: 1.125rem; }
  .label { font-size: 0.8rem; }
  .site-header { height: 62px; }
  .nav-link { font-size: 0.9375rem; }
}

/* ============================================================
   RESPONSIVE — FULL HD ≥1920px
   Tipografía y espaciado específicos para monitores grandes
   ============================================================ */
@media (min-width: 1920px) {
  .container { max-width: 1600px; padding: 0 100px; }
  .section { padding: 140px 0; }
  .header-inner { padding: 0 100px; }
  h1 { font-size: 4rem; }
  h2 { font-size: 2.85rem; }
  h3 { font-size: 1.75rem; }
  body { font-size: 1.1875rem; }
  .label { font-size: 0.875rem; }
  .site-header { height: 64px; }
  .nav-link { font-size: 1rem; }
  .s10-block h4 { font-size: 1.0625rem; }
  .hero-subtitle { font-size: 1.1875rem; max-width: 780px; }
  .hero-content { max-width: 880px; }
  .card p { font-size: 1rem; }
  .diff-item { grid-template-columns: 200px 1fr; gap: 32px; }
}

/* ============================================================
   RESPONSIVE — LAPTOP ≥1280px (MacBook Air, laptops estándar)
   Gradación intermedia entre 1024px y 1440px
   ============================================================ */
@media (min-width: 1280px) and (max-width: 1439px) {
  .container { max-width: 1280px; padding: 0 72px; }
  .section { padding: 108px 0; }
  .header-inner { padding: 0 72px; }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.4rem; }
  body { font-size: 1.09375rem; }
  .nav-link { font-size: 0.9rem; }
  .hero-subtitle { font-size: 1.0625rem; max-width: 700px; }
}

/* ============================================================
   MODO OSCURO — Reglas sistemáticas para .sec-navy
   Afectan a TODAS las secciones con fondo navy (#0D1B2A)
   ============================================================ */
.sec-navy h1,
.sec-navy h2,
.sec-navy h3,
.sec-navy h4 {
  color: var(--bg);
}
.sec-navy p,
.sec-navy li {
  color: rgba(248,247,244,0.80);
}
.sec-navy .diff-item {
  border-bottom-color: rgba(248,247,244,0.10);
}
.sec-navy .card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(184,151,90,0.20);
}
.sec-navy .card h3 {
  color: var(--bg);
}
.sec-navy .card p {
  color: rgba(248,247,244,0.78);
}
.sec-navy .banner {
  background: rgba(184,151,90,0.06);
  border-left-color: var(--gold);
}
.sec-navy .banner em {
  color: rgba(248,247,244,0.80);
}
.sec-navy .pilar-detail p {
  color: rgba(248,247,244,0.80);
}
.sec-navy .acc-head {
  color: var(--bg);
  border-color: rgba(248,247,244,0.12);
}
.sec-navy .acc-body p {
  color: rgba(248,247,244,0.78);
}
.sec-navy .source-link {
  color: rgba(248,247,244,0.45);
}

/* ============================================================
   MODO OSCURO AEGIS — .sec-aegis-black
   Negro profundo AEGIS (#0A0E17) — mismo sistema
   ============================================================ */
.sec-aegis-black h1,
.sec-aegis-black h2,
.sec-aegis-black h3,
.sec-aegis-black h4 {
  color: var(--bg);
}
.sec-aegis-black p {
  color: rgba(248,247,244,0.78);
}


/* Hero H1 — segunda línea en dorado */
.hero-h1-sub {
  display: block;
  color: var(--gold-dm);
  font-size: 0.85em;
  font-weight: 600;
  margin-top: 0.2em;
  letter-spacing: -0.01em;
}



/* LO QUE INCLUYE — 3ª tarjeta no queda sola a 768px */
@media (min-width: 768px) and (max-width: 1023px) {
  .sec-navy .grid-3 {
    grid-template-columns: 1fr;
  }
}


/* label-dm escala con los breakpoints */
@media (min-width: 1024px) { .label-dm { font-size: 0.6875rem; } }
@media (min-width: 1280px) { .label-dm { font-size: 0.6875rem; } }
@media (min-width: 1440px) { .label-dm { font-size: 0.75rem; } }
@media (min-width: 1920px) { .label-dm { font-size: 0.8125rem; } }



/* ============================================================
   SQ v1.7 — HARDENING GLOBAL Y CABECERA ESTABLE
   Objetivo: HTML autocontenido, navegación local y cabecera sin
   desplazamiento sistémico entre páginas.
   ============================================================ */
:root {
  --sq-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
body,
button,
input,
select,
textarea {
  font-family: var(--sq-font-sans);
}
.site-header .header-inner {
  width: 100%;
  margin-inline: auto;
}
.site-header .logo,
.site-header .logo-text,
.site-header .nav-desktop,
.site-header .nav-link,
.site-header .nav-cta,
.site-header .btn-back,
.site-header .burger {
  font-family: var(--sq-font-sans) !important;
}
.site-header .logo,
.site-header .nav-desktop,
.site-header .nav-cta,
.site-header .btn-back,
.site-header .burger,
.site-header .btn-primary {
  flex-shrink: 0;
}
.site-header .logo-text {
  line-height: 1;
  white-space: nowrap;
}
.site-header .nav-link,
.site-header .nav-link.active,
.site-header .mob-link,
.site-header .mob-link.active {
  font-weight: 500 !important;
}
.site-header .nav-link {
  text-rendering: geometricPrecision;
  transition-property: color, border-color !important;
}
.site-header .btn:active,
.site-header .nav-cta:active,
.site-header .btn-back:active,
.site-header .btn-primary:active {
  transform: none !important;
}
@media (min-width: 1024px) {
  .site-header .header-inner {
    display: grid !important;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    column-gap: 24px;
  }
  .site-header .logo {
    grid-column: 1;
    justify-self: start;
  }
  .site-header .nav-desktop {
    grid-column: 2;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .site-header .nav-cta,
  .site-header .btn-back,
  .site-header .header-inner > .btn-primary:last-child {
    grid-column: 3;
    justify-self: end;
  }
}
.form-status {
  display: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 3px;
  font-size: 0.8125rem;
  line-height: 1.6;
}
.form-status.show { display: block; }
.form-status.err {
  color: var(--red, #C0392B);
  background: var(--red-light, rgba(192,57,43,0.08));
  border: 1px solid rgba(192,57,43,0.22);
}
.form-status.ok {
  color: var(--navy, #0D1B2A);
  background: var(--gold-light, rgba(184,151,90,0.08));
  border: 1px solid rgba(184,151,90,0.25);
}
