/* ============================================================
   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;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { text-decoration: none; color: var(--navy); }
a:hover { text-decoration: underline; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  height: 56px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 0 rgba(13,27,42,0.08), 0 2px 8px rgba(13,27,42,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.logo-shield { color: var(--navy); }
.logo-quant  { color: var(--gold); }
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-mid);
  text-decoration: none;
  transition: color 0.15s ease;
}
.btn-back:hover { color: var(--navy); text-decoration: none; }

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 56px 20px 48px;
  text-align: center;
}
.page-hero .label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dm);
  margin-bottom: 16px;
}
.page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--bg);
  margin-bottom: 14px;
}
.page-hero .updated {
  font-size: 0.875rem;
  color: rgba(248,247,244,0.45);
}

/* ============================================================
   CONTENT
   ============================================================ */
.content-wrap {
  flex: 1;
  background: var(--bg);
  padding: 56px 0 80px;
}
.content-inner {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 20px;
  animation: fadeUp 0.4s ease both;
}

/* Índice navegable */
.toc {
  background: var(--white);
  border: 0.5px solid var(--gray-lightest);
  border-left: 3px solid var(--gold);
  border-radius: 0 3px 3px 0;
  padding: 22px 26px;
  margin-bottom: 48px;
}
.toc-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 14px;
  display: block;
}
.toc ol {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
}
.toc li { font-size: 0.9375rem; }
.toc a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}
.toc a:hover { color: var(--gold); text-decoration: none; }

/* Secciones legales */
.legal-section {
  margin-bottom: 44px;
  scroll-margin-top: 84px;
}
.legal-section h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-lightest);
}
.legal-section p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--gray-dark);
  margin-bottom: 14px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
  padding-left: 20px;
  margin: 10px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-section li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-dark);
}

/* Caja informativa */
.info-box {
  background: var(--white);
  border-left: 3px solid var(--gold);
  border-radius: 0 3px 3px 0;
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gray-dark);
}
.info-box strong { color: var(--navy); }

/* Instrucciones navegadores */
.browser-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}
.browser-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.browser-name {
  font-weight: 600;
  color: var(--navy);
  min-width: 80px;
  flex-shrink: 0;
}

.contact-email {
  color: var(--navy);
  font-weight: 500;
  border-bottom: 1px solid rgba(13,27,42,0.25);
  transition: border-color 0.15s ease;
}
.contact-email:hover {
  border-color: var(--navy);
  text-decoration: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(184,151,90,0.18);
  padding: 32px 0 24px;
}
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
.logo-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  text-decoration: none;
}
.logo-footer:hover { text-decoration: none; }
.logo-white  { color: var(--bg); }
.footer-tagline {
  font-size: 0.8125rem;
  color: rgba(248,247,244,0.45);
  margin-top: 4px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 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-links a[aria-current="page"] { 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.6;
  max-width: 1400px;
  margin-bottom: 14px;
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(248,247,244,0.25);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 768px) {
  .site-header    { height: 58px; }
  .header-inner   { padding: 0 40px; }
  .page-hero h1   { font-size: 2.25rem; }
  .content-inner  { padding: 0 40px; }
  .container      { padding: 0 40px; }
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}
@media (min-width: 1024px) {
  .site-header  { height: 60px; }
  .header-inner { max-width: 1200px; padding: 0 64px; }
  .container    { max-width: 1200px; padding: 0 64px; }
}
@media (min-width: 1440px) {
  .site-header  { height: 62px; }
  .header-inner { max-width: 1400px; padding: 0 80px; }
  .container    { max-width: 1400px; padding: 0 80px; }
}
@media (min-width: 1920px) {
  .site-header  { height: 64px; }
  .header-inner { max-width: 1600px; padding: 0 100px; }
  .container    { max-width: 1600px; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   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);
}
