/* ==========================================================
   Promotora Profile — hoja de estilos principal
   Identidad tomada de la plantilla oficial de documentos:
   Montserrat · azul #023A73 · azul claro #3F74B8 · texto #1E2733 · gris #5F6B7A
   ========================================================== */

:root {
  --navy:     #023a73;
  --navy-700: #032e5b;
  --blue:     #3f74b8;
  --blue-50:  #eef3fa;
  --ink:      #1e2733;
  --muted:    #5f6b7a;
  --line:     #e4e8ee;
  --bg:       #ffffff;
  --bg-soft:  #f6f8fb;
  --radius:   16px;
  --radius-sm: 10px;
  --shadow:   0 1px 2px rgba(2, 58, 115, .05), 0 6px 20px rgba(2, 58, 115, .06);
  --max:      1160px;
  --nav-h:    88px;
  --font:     "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.05rem; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.lead { font-size: 1.08rem; color: var(--muted); max-width: 660px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); }
.btn-outline { color: var(--navy); border-color: #c9d3e0; background: #fff; }
.btn-outline:hover { border-color: var(--navy); }

/* ---------- Encabezado ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  transition: box-shadow .2s ease;
}
.site-header.is-solid, .site-header.is-light { box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }

.brand { position: relative; display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 58px; width: auto; }
@media (max-width: 600px) { :root { --nav-h: 76px; } .brand-logo { height: 46px; } }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 9px 14px; border-radius: 999px;
  color: var(--ink); font-weight: 500; font-size: .9rem;
}
.nav-links a:hover { color: var(--navy); background: var(--bg-soft); text-decoration: none; }
.nav-links .nav-cta { background: var(--navy); color: #fff; margin-left: 10px; padding: 9px 20px; font-weight: 600; }
.nav-links .nav-cta:hover { background: var(--blue); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 16px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(2, 58, 115, .08);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 12px; border-radius: 10px; font-size: 1rem; }
  .nav-links .nav-cta { margin: 10px 0 0; text-align: center; }
  .site-header.menu-open { background: #fff; box-shadow: 0 1px 0 var(--line); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 172px 0 132px; background: var(--bg); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 760px; }
.hero h1 span { color: var(--blue); }
.hero .lead { font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
/* Motivo de los tres círculos del logo */
.hero-rings {
  position: absolute; z-index: 0; pointer-events: none;
  right: max(24px, calc((100% - var(--max)) / 2 + 24px)); top: calc(50% + var(--nav-h) / 2); transform: translateY(-50%);
  width: min(500px, 40vw); height: auto; overflow: visible;
}
@media (max-width: 960px) { .hero-rings { width: min(360px, 80vw); right: 16px; opacity: .5; } }
@media (max-width: 600px) { .hero { padding: 128px 0 96px; } }

/* ---------- Accesos rápidos ---------- */
.quick { position: relative; z-index: 2; margin-top: -48px; }
.quick-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; display: grid; grid-template-columns: 200px repeat(4, 1fr); gap: 10px; align-items: stretch;
}
.quick-title { padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; line-height: 1.4; }
.quick-title strong { font-size: 1rem; color: var(--navy); }
.quick-title span { color: var(--muted); font-size: .85rem; }
.quick-item {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius-sm);
  color: var(--ink); font-weight: 600; font-size: .9rem; line-height: 1.35;
  transition: background .15s ease;
}
.quick-item:hover { text-decoration: none; background: var(--blue-50); }
.quick-item small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.icon-chip {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--navy);
}
.icon-chip svg { width: 20px; height: 20px; }
@media (max-width: 1080px) {
  .quick-card { grid-template-columns: repeat(2, 1fr); }
  .quick-title { grid-column: 1 / -1; padding-bottom: 0; }
}
@media (max-width: 520px) { .quick-card { grid-template-columns: 1fr; padding: 12px; } }

/* ---------- Secciones ---------- */
.section { padding: 112px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { margin-bottom: 52px; max-width: 720px; }
@media (max-width: 600px) { .section { padding: 80px 0; } .section-head { margin-bottom: 36px; } }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; align-items: center; gap: 18px; cursor: help;
  transition: border-color .2s ease, background .2s ease;
}
.service:hover, .service:focus-visible, .service.is-open { border-color: var(--blue); background: var(--bg-soft); z-index: 5; }
.service:focus-visible { outline: none; }
.service h3 { margin: 0; font-weight: 600; color: var(--ink); flex: 1; }
.service-more { flex: none; color: #b3bfcf; transition: color .2s ease; }
.service-more svg { width: 18px; height: 18px; }
.service:hover .service-more, .service:focus-visible .service-more, .service.is-open .service-more { color: var(--blue); }

/* Burbuja con el resumen de cada esquema */
.service-tip {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 12px); margin: 0;
  background: var(--navy); color: #fff; font-size: .86rem; line-height: 1.6;
  padding: 16px 18px; border-radius: 12px;
  box-shadow: 0 14px 32px rgba(2, 58, 115, .22);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  pointer-events: none;
}
.service-tip::after {
  content: ""; position: absolute; left: 36px; top: 100%;
  border: 8px solid transparent; border-top-color: var(--navy);
}
.service:hover .service-tip, .service:focus-visible .service-tip, .service.is-open .service-tip {
  opacity: 1; visibility: visible; transform: none;
}
.service.tip-below .service-tip { bottom: auto; top: calc(100% + 12px); transform: translateY(-6px); }
.service.tip-below .service-tip::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--navy); }
.service.tip-below:hover .service-tip, .service.tip-below:focus-visible .service-tip, .service.tip-below.is-open .service-tip { transform: none; }
@media (prefers-reduced-motion: reduce) { .service-tip { transition: none; } }

.services-hint { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: .85rem; color: var(--muted); }
.services-hint svg { width: 16px; height: 16px; color: var(--blue); flex: none; }
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } .service { padding: 22px 20px; } }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; }
.about p { color: var(--muted); }
.about-quote { font-size: 1.25rem; font-weight: 600; color: var(--navy); border-left: 3px solid var(--blue); padding-left: 20px; margin: 30px 0 0; }
/* Misión, visión y valores sobre los tres círculos del logo */
.purpose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.purpose-rings { width: 100%; max-width: 360px; height: auto; margin: 0 auto 20px; }
.ring { cursor: pointer; }
.ring circle { fill: transparent; stroke: #c3d3e8; stroke-width: 5; transition: stroke .25s ease, fill .25s ease, stroke-width .25s ease; }
.ring text { font-family: var(--font); font-size: 30px; font-weight: 700; fill: #b3c2d6; text-anchor: middle; transition: fill .25s ease; pointer-events: none; }
.ring:hover circle { stroke: var(--blue); }
.ring.is-active circle { stroke: var(--navy); stroke-width: 8; fill: rgba(63, 116, 184, .07); }
.ring.is-active text { fill: var(--navy); }
.purpose-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 22px; }
.purpose-tabs button {
  font-family: inherit; font-size: .85rem; font-weight: 600; color: var(--muted);
  background: var(--bg-soft); border: 1px solid transparent; border-radius: 999px; padding: 8px 14px; cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.purpose-tabs button:hover { color: var(--navy); }
.purpose-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.purpose-panel { text-align: center; min-height: 92px; animation: purposeIn .3s ease; }
.purpose-panel .eyebrow { margin-bottom: 8px; }
.purpose-panel p { margin: 0 auto; max-width: 420px; font-size: 1.15rem; font-weight: 600; line-height: 1.5; color: var(--navy); }
.values { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.values li { background: var(--blue-50); color: var(--navy); font-weight: 600; font-size: .9rem; padding: 7px 14px; border-radius: 999px; }
@keyframes purposeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .purpose-panel { animation: none; } .ring circle, .ring text { transition: none; } }
@media (max-width: 600px) { .purpose { padding: 22px 16px; } .purpose-rings { max-width: 280px; } }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Clientes ---------- */
.clients { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.client {
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  min-height: 132px; padding: 20px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.client:hover { text-decoration: none; border-color: var(--blue); box-shadow: var(--shadow); }
.client-name { font-weight: 700; color: var(--navy); font-size: 1rem; line-height: 1.3; }
.client-link { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--blue); }
.client-link svg { width: 14px; height: 14px; }
@media (max-width: 1080px) { .clients { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .clients { grid-template-columns: repeat(2, 1fr); } .client { min-height: 116px; padding: 16px; } }

/* ---------- Portal de clientes ---------- */
.portal { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.panel h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.panel > p { color: var(--muted); }
.panel-wide { grid-column: 1 / -1; }
.doc-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.doc-list a {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: .9rem; line-height: 1.4;
  transition: border-color .15s ease, background .15s ease;
}
.doc-list a:hover { text-decoration: none; border-color: var(--blue); background: var(--blue-50); }
.doc-list .doc-ico { flex: none; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-50); color: var(--navy); font-size: .64rem; font-weight: 700; letter-spacing: .04em; }
.doc-list .doc-dl { margin-left: auto; color: var(--muted); flex: none; }
.doc-list .doc-dl svg { width: 18px; height: 18px; }
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.stack .btn { justify-content: center; }
.fidestech { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--muted); font-size: .85rem; }
.fidestech img { height: 42px; width: auto; background: var(--navy); padding: 8px 14px; border-radius: 8px; }
@media (max-width: 900px) { .portal { grid-template-columns: 1fr; } .doc-list { grid-template-columns: 1fr; } .panel { padding: 24px; } }

/* ---------- Recursos ---------- */
.resources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.resource {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease;
}
.resource:hover { text-decoration: none; border-color: var(--blue); box-shadow: var(--shadow); }
.resource .tag { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.resource h3 { font-size: 1.12rem; margin: 12px 0 8px; }
.resource p { color: var(--muted); font-size: .92rem; }
.resource .meta { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.resource .meta b { color: var(--blue); font-weight: 600; white-space: nowrap; }
@media (max-width: 900px) { .resources { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 22px; }
.contact-list li { display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: start; }
.contact-list .label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list address { color: var(--ink); font-style: normal; font-weight: 500; }
.contact-cards { display: grid; gap: 12px; }
.contact-card {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 18px; align-items: center;
  padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-card:hover { text-decoration: none; border-color: var(--blue); box-shadow: var(--shadow); }
.contact-card h3 { margin: 0 0 2px; }
.contact-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.contact-card .icon-chip { width: 52px; height: 52px; border-radius: 14px; }
.contact-card .arrow { color: var(--muted); }
.contact-card .arrow svg { width: 20px; height: 20px; }
.icon-chip.whatsapp { background: #e8f7ee; color: #1f9d55; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 64px 0 96px; font-size: .88rem; }
.site-footer a { color: rgba(255,255,255,.88); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand .brand { display: inline-flex; margin-bottom: 18px; }
.footer-brand .brand-logo { height: 56px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 52px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .8rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Página legal ---------- */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 148px 0 56px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { color: var(--muted); margin: 0; }
.prose { max-width: 780px; padding: 56px 0 104px; }
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose .callout { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 20px 24px; border-left: 3px solid var(--blue); }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.panel .note { margin: 14px 0 0; font-size: .82rem; line-height: 1.5; color: var(--muted); }
.footer-powered { display: inline-flex; align-items: center; gap: 10px; }
.footer-powered img { height: 34px; width: auto; }

/* Símbolo de marca registrada junto al logotipo (arriba a la derecha de "PROFILE") */
.brand .reg { position: absolute; right: -.95em; top: 22%; font-size: .72rem; font-weight: 600; line-height: 1; color: var(--navy); }
.site-footer .brand .reg { color: #fff; }
.site-header .brand { margin-right: 14px; }

/* Aviso de propiedad industrial e intelectual */
.footer-notice { flex-basis: 100%; margin: 6px 0 0; font-size: .74rem; line-height: 1.6; color: rgba(255,255,255,.55); max-width: 920px; }

/* Logotipos de CONDUSEF y Buró en el pie de página */
.reg-logos { display: flex; gap: 10px; margin-top: 18px; }
.reg-logos a { display: grid; place-items: center; background: #fff; border-radius: 10px; padding: 8px 12px; height: 58px; transition: transform .15s ease; }
.reg-logos a:hover { transform: translateY(-2px); }
.reg-logos img { max-height: 42px; width: auto; }

/* ---------- Aviso de privacidad (documento con índice) ---------- */
.portada .razon { color: var(--muted); font-size: .95rem; margin: 0; }
.portada h1 { margin: .35rem 0 1.2rem; }
.portada .meta { display: flex; flex-wrap: wrap; gap: .6rem 2rem; font-size: .9rem; color: var(--muted); }
.portada .meta p { margin: 0; }
.portada .meta strong { color: var(--ink); font-weight: 600; }
.portada .descarga { margin-top: 1.6rem; }

.documento { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3.5rem; padding-top: 3rem; padding-bottom: 5rem; }
.indice { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; font-size: .86rem; }
.indice p { font-weight: 700; color: var(--navy); margin: 0 0 .6rem; }
.indice ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.indice li a { display: block; padding: .4rem 0 .4rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.35; }
.indice li a:hover, .indice li a[aria-current="true"] { color: var(--navy); border-left-color: var(--blue); text-decoration: none; }

.texto { max-width: 46rem; }
.texto h2 { font-size: 1.4rem; margin: 3rem 0 1rem; padding-top: 1.4rem; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 16px); }
.texto h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.texto h3 { color: var(--blue); font-size: 1.05rem; margin: 2rem 0 .5rem; scroll-margin-top: calc(var(--nav-h) + 16px); }
.texto p { margin: 0 0 1rem; }
.texto strong { color: var(--navy); font-weight: 600; }
.texto ul { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.texto li { margin-bottom: .55rem; }
.texto li::marker { color: var(--blue); }

.tabla { margin: 1.2rem 0 1.6rem; overflow-x: auto; }
.tabla table { width: 100%; border-collapse: collapse; font-size: .86rem; line-height: 1.5; }
.tabla th { background: var(--navy); color: #fff; text-align: left; font-weight: 600; padding: .7rem .8rem; vertical-align: bottom; }
.tabla th:first-child { border-top-left-radius: 8px; }
.tabla th:last-child { border-top-right-radius: 8px; }
.tabla td { padding: .75rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabla tbody tr:nth-child(even) td { background: var(--bg-soft); }
.tabla td:first-child { font-weight: 600; color: var(--navy); }

@media (max-width: 900px) {
  .documento { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2rem; }
  .indice { position: static; background: var(--bg-soft); padding: 1rem 1.2rem; border-radius: var(--radius-sm); }
}
@media (max-width: 640px) {
  .tabla thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabla table, .tabla tbody, .tabla tr, .tabla td { display: block; width: 100%; }
  .tabla tr { border: 1px solid var(--line); border-radius: 8px; margin-bottom: .8rem; padding: .3rem 0; }
  .tabla tbody tr:nth-child(even) td { background: none; }
  .tabla td { border-bottom: 0; padding: .35rem .9rem; }
  .tabla td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
}
@media print {
  .site-header, .indice, .skip-link, .descarga, .wa-float { display: none !important; }
  .page-hero { padding: 0 0 1rem; background: none; border: 0; }
  .documento { display: block; padding: 0; }
  .site-footer { background: none; color: var(--muted); padding: 1rem 0; }
  .site-footer a, .footer-notice { color: var(--ink); }
}

/* Animación de los círculos de la portada: respiran, se desplazan y pasan de azul tenue a azul de marca, escalonados */
.hero-rings circle {
  stroke: #d3dfee;
  transform-box: fill-box; transform-origin: center;
  animation: ringWave 9s ease-in-out infinite;
}
.hero-rings circle:nth-child(2) { animation-delay: -6s; }
.hero-rings circle:nth-child(3) { animation-delay: -3s; }
@keyframes ringWave {
  0%, 100% { stroke: #d3dfee; transform: translateX(0) scale(1); }
  33%      { stroke: var(--blue); transform: translateX(-10px) scale(1.015); }
  66%      { stroke: #9fbbe0; transform: translateX(6px) scale(.99); }
}
/* Con "reducir movimiento" activo: solo cambia el color, sin desplazamiento */
@keyframes ringColor {
  0%, 100% { stroke: #d3dfee; }
  33%      { stroke: var(--blue); }
  66%      { stroke: #9fbbe0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-rings circle { animation-name: ringColor; }
}
