/* Zunzú — sitio corporativo estático.
   Sin fuentes externas, sin JavaScript, sin recursos de terceros.
   Colores de marca medidos sobre los PNG oficiales: morado #6C57BD, lima #BFD745, azul noche #0C1932.
   WEB OFICIAL 01: portada del concepto completo (tres motores y ciclo). Las páginas legales
   conservan su maquetación; solo comparten cabecera, pie y estas variables. */

:root {
  color-scheme: light dark;

  --brand-purple: #6c57bd;
  --brand-lime: #bfd745;
  --brand-navy: #0c1932;

  --bg: #ffffff;
  --bg-soft: #f6f5fb;
  --surface: #ffffff;
  --text: #0c1932;
  --muted: #4a5368;
  --border: #e0ddef;
  --link: #5a46a8;
  --link-hover: #3f2f80;
  --accent: #6c57bd;
  --btn-bg: #6c57bd;
  --btn-text: #ffffff;
  --btn-bg-hover: #54439a;
  --btn2-text: #0c1932;
  --btn2-border: #6c57bd;
  --badge-bg: #bfd745;
  --badge-text: #0c1932;
  --badge-soft-bg: #ece8f9;
  --badge-soft-text: #3f2f80;
  --notice-bg: #f6f5fb;
  --draft-bg: #fff4d6;
  --draft-text: #5c4500;
  --draft-border: #e0b84a;
  --focus: #6c57bd;
  --shadow: 0 1px 2px rgba(12, 25, 50, 0.06), 0 4px 16px rgba(12, 25, 50, 0.05);
  --current: #6c57bd;

  /* Portada: un color por motor (texto sobre su tinte >= 4.5:1). */
  --eyebrow: #5a46a8;
  --engine-com: #5a46a8;
  --engine-com-bg: #ece8f9;
  --engine-ope: #3d5208;
  --engine-ope-bg: #eef6cf;
  --engine-ana: #0c1932;
  --engine-ana-bg: #e3e8f2;
  --orbit-line: #cfc8ee;
  --chip-bg: #ffffff;
  --chip-border: #e0ddef;
  --hero-glow: rgba(108, 87, 189, 0.12);

  --footer-bg: #0c1932;
  --footer-text: #e4e8f1;
  --footer-muted: #b7bfd0;
  --footer-link: #ffffff;
  --footer-line: rgba(255, 255, 255, 0.16);

  --radius: 14px;
  --radius-sm: 8px;
  --gutter: 16px;
  --container: 1120px;
  --measure: 72ch;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1932;
    --bg-soft: #102041;
    --surface: #14254b;
    --text: #f1f3f8;
    --muted: #b7bfd0;
    --border: #2a3a63;
    --link: #b9adf3;
    --link-hover: #dcd5fb;
    --accent: #bfd745;
    --btn-bg: #bfd745;
    --btn-text: #0c1932;
    --btn-bg-hover: #d2e56f;
    --btn2-text: #f1f3f8;
    --btn2-border: #b9adf3;
    --badge-soft-bg: #2a2a5c;
    --badge-soft-text: #dcd5fb;
    --notice-bg: #102041;
    --draft-bg: #3a3110;
    --draft-text: #ffe9a8;
    --draft-border: #8a7120;
    --focus: #bfd745;
    --shadow: none;
    --current: #bfd745;

    --eyebrow: #bfd745;
    --engine-com: #dcd5fb;
    --engine-com-bg: #2a2a5c;
    --engine-ope: #e4f19c;
    --engine-ope-bg: #2b3a14;
    --engine-ana: #cfe0ff;
    --engine-ana-bg: #1c3260;
    --orbit-line: #33457a;
    --chip-bg: #14254b;
    --chip-border: #33457a;
    --hero-glow: rgba(191, 215, 69, 0.08);

    --footer-bg: #081226;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

p,
li {
  text-wrap: pretty;
}

h3 {
  font-size: 1.15rem;
}

p,
ul,
ol,
dl,
table,
address {
  margin: 0 0 1em;
}

address {
  font-style: normal;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

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

[id] {
  scroll-margin-top: 16px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 0.6em 1em;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--btn-text);
}

/* ---------- Cabecera ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  border-radius: 6px;
}

.brand img {
  height: 28px;
  width: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0 -0.55em;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-block;
  padding: 0.45em 0.55em;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
}

.site-nav a:hover {
  background: var(--bg-soft);
  color: var(--text);
}

/* El subrayado de la página actual con contraste suficiente en claro y en oscuro. */
.site-nav a[aria-current="page"],
.legal-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--current);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.4em;
}

/* En móvil la navegación pasa a su propia fila, bajo la marca, y reparte las entradas en una o dos
   líneas sin achicar el texto (sin JavaScript: no hay menú desplegable). */
@media (max-width: 760px) {
  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    margin: 0 -0.45em;
    gap: 0 2px;
  }

  .site-nav a {
    padding: 0.4em 0.45em;
  }
}

/* ---------- Botones e insignias ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65em 1.35em;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
  text-align: center;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-text);
}

.btn-secondary {
  color: var(--btn2-text);
  border-color: var(--btn2-border);
}

.btn-secondary:hover {
  background: var(--bg-soft);
  color: var(--btn2-text);
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .site-nav a,
  .legal-nav a {
    transition: background-color 0.15s ease, color 0.15s ease;
  }
}

.badge {
  display: inline-block;
  margin: 0 0 1em;
  padding: 0.2em 0.8em;
  border-radius: 1em;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.5;
}

.badge-soft {
  background: var(--badge-soft-bg);
  color: var(--badge-soft-text);
}

/* Lo que aún es dirección del producto: mismo texto, borde punteado y sin relleno. Lo construido
   lleva la insignia sólida. */
.badge-planned {
  padding: calc(0.2em - 1px) calc(0.8em - 1px);
  background: transparent;
  border: 1px dashed currentColor;
}

.hero .badge {
  text-wrap: balance;
}

/* ---------- Portada ---------- */

.eyebrow {
  margin: 0 0 0.6em;
  color: var(--eyebrow);
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  background:
    radial-gradient(60% 80% at 85% 20%, var(--hero-glow), transparent 70%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: 28px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 48px;
}

.hero h1 {
  font-size: clamp(2.2rem, 1.3rem + 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0 0 0.3em;
  max-width: 14ch;
}

.hero-sub {
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.65rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 30ch;
  margin: 0 0 0.9em;
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--muted);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.5em 0 1.6em;
}

@media (max-width: 479px) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  max-width: 60ch;
}

.hero-points li {
  position: relative;
  padding-left: 1.6em;
  color: var(--muted);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.55em;
  width: 0.6em;
  height: 0.6em;
  border-radius: 2px;
  background: var(--brand-lime);
  transform: rotate(45deg);
}

.hero-points strong {
  color: var(--text);
}

.small-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* El isotipo con los tres motores alrededor: decorativo (aria-hidden), el texto de la página lo
   explica. Sin animación. */
.hero-art {
  justify-self: center;
  width: min(100%, 300px);
}

.orbit {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.orbit::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 2px dashed var(--orbit-line);
  border-radius: 50%;
}

.orbit picture {
  position: relative;
  width: 52%;
}

.orbit-chip {
  position: absolute;
  padding: 0.3em 0.85em;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 750;
  white-space: nowrap;
}

.orbit-chip-1 {
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  color: var(--engine-com);
}

.orbit-chip-2 {
  bottom: 12%;
  right: -2%;
  color: var(--engine-ope);
}

.orbit-chip-3 {
  bottom: 12%;
  left: -2%;
  color: var(--engine-ana);
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.55fr 1fr;
    padding-top: 84px;
    padding-bottom: 88px;
  }

  .hero-art {
    width: min(100%, 400px);
  }

  .orbit-chip {
    font-size: 0.92rem;
  }
}

@media (max-width: 899px) {
  /* En móvil el texto va primero y el dibujo, más pequeño, después. */
  .hero-art {
    width: min(78%, 280px);
  }
}

@media (max-width: 639px) {
  /* Teléfonos: arte del hero más compacto (~22 % menos de alto). Las etiquetas de los motores
     conservan su tamaño y el isotipo su proporción; las dos inferiores bajan un poco para no
     tocar las alas del isotipo en 320 px. */
  .hero-art {
    width: min(61%, 218px);
  }

  .orbit-chip-2,
  .orbit-chip-3 {
    bottom: 6%;
  }
}

.section {
  padding: 56px 0;
}

@media (min-width: 860px) {
  .section {
    padding: 84px 0;
  }
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  max-width: 26ch;
}

.section h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-top: 0.45em;
  border-radius: 2px;
  background: var(--brand-lime);
}

.section-intro {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.split {
  display: grid;
  gap: 8px 56px;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.list-title {
  font-weight: 700;
}

/* Problema: tres dolores y la promesa. */
.pain-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em;
  display: grid;
  gap: 12px;
}

.pain-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-purple);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.pain-list strong {
  color: var(--text);
}

.promise {
  font-size: 1.08rem;
  max-width: 60ch;
}

/* Tres motores. */
.engines,
.benefits,
.status-list,
.link-list {
  list-style: none;
  padding: 0;
}

.engines {
  margin: 32px 0 0;
  display: grid;
  gap: 18px;
}

@media (min-width: 980px) {
  .engines {
    grid-template-columns: repeat(3, 1fr);
  }
}

.engine,
.status-item,
.contact-card,
.summary-card,
.benefit,
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.engine {
  padding: 24px 24px 8px;
  border-top: 5px solid var(--engine-color, var(--accent));
}

.engine-comercial {
  --engine-color: var(--brand-purple);
}

.engine-operativo {
  --engine-color: var(--brand-lime);
}

.engine-analitico {
  --engine-color: var(--brand-navy);
}

@media (prefers-color-scheme: dark) {
  .engine-analitico {
    --engine-color: #8fb3ff;
  }
}

.engine-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 14px;
}

.engine-comercial .engine-icon {
  background: var(--engine-com-bg);
  color: var(--engine-com);
}

.engine-operativo .engine-icon {
  background: var(--engine-ope-bg);
  color: var(--engine-ope);
}

.engine-analitico .engine-icon {
  background: var(--engine-ana-bg);
  color: var(--engine-ana);
}

.engine-icon svg {
  display: block;
}

.engine-kicker {
  display: block;
  margin: 0 0 0.35em;
  line-height: 1.6;
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.engine h3 {
  font-size: 1.3rem;
}

.engine p {
  color: var(--muted);
}

.engine p,
.status-item p {
  max-width: 62ch;
}

.engine .badge,
.benefit .badge {
  margin: 0 0 0.9em;
  color: var(--badge-soft-text);
}

.engine .engine-note {
  color: var(--text);
  font-weight: 600;
}

/* El ciclo: en móvil, una columna con flechas hacia abajo; en pantallas anchas, una fila con
   flechas hacia la derecha y el retorno dibujado bajo los motores. */
.cycle {
  margin: 36px 0 0;
}

.cycle-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 34px;
  position: relative;
}

.cycle-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.cycle-step strong {
  font-size: 1.08rem;
  line-height: 1.3;
}

.cycle-label {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.cycle-plus {
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.cycle-input {
  background: var(--bg-soft);
  border-style: dashed;
}

.cycle-comercial {
  border-top: 5px solid var(--brand-purple);
}

.cycle-operativo {
  border-top: 5px solid var(--brand-lime);
}

.cycle-analitico {
  border-top: 5px solid var(--brand-navy);
}

@media (prefers-color-scheme: dark) {
  .cycle-analitico {
    border-top-color: #8fb3ff;
  }
}

.cycle-output {
  background: var(--badge-bg);
  border-color: var(--badge-bg);
  color: var(--badge-text);
}

.cycle-output .cycle-label {
  color: var(--badge-text);
}

.cycle-return {
  font-size: 0.92rem;
  font-weight: 600;
}

.cycle-return::before {
  content: "↺ ";
  content: "↺ " / "";
  font-weight: 800;
}

.cycle-step:not(:last-child)::after {
  content: "↓";
  content: "↓" / "";
  position: absolute;
  left: 50%;
  bottom: -30px;
  transform: translateX(-50%);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

@media (max-width: 979px) {
  .cycle-steps {
    grid-template-columns: minmax(0, 1fr) 24px;
    column-gap: 6px;
    row-gap: 34px;
    max-width: 640px;
    margin-inline: auto;
  }

  .cycle-step {
    grid-column: 1;
  }

  .cycle-steps::after {
    content: "";
    grid-column: 2;
    grid-row: 2 / 6;
    margin: 43px 0 55px;
    border: 3px solid var(--accent);
    border-left: 0;
    border-radius: 0 16px 16px 0;
  }

  .cycle-steps::before {
    content: "";
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    align-self: start;
    margin: 36.5px 0 0 -6px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 11px solid var(--accent);
  }
}

.cycle figcaption {
  margin: 28px auto 0;
  max-width: 46ch;
  text-align: center;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.4;
}

@media (min-width: 980px) {
  .cycle-steps {
    grid-template-columns: repeat(5, 1fr);
    column-gap: 30px;
    row-gap: 0;
  }

  .cycle-step {
    justify-content: center;
    min-height: 150px;
  }

  .cycle-step:not(:last-child)::after {
    content: "→";
    content: "→" / "";
    left: auto;
    right: -24px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Retorno: de «Nuevas oportunidades» (columna 5) de vuelta al motor comercial (columna 2). Los
     seudoelementos del contenedor son elementos de la rejilla: se colocan en la segunda fila, bajo
     las columnas 2 a 5, y la línea va del centro de una al centro de la otra (media columna de
     margen a cada lado: (ancho - 3 huecos) / 8). */
  .cycle-steps::after {
    content: "";
    grid-column: 2 / 6;
    grid-row: 2;
    height: 36px;
    margin: 0 calc(12.5% - 11.25px);
    border: 3px solid var(--accent);
    border-top: 0;
    border-radius: 0 0 18px 18px;
  }

  .cycle-steps::before {
    content: "";
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    align-self: start;
    position: relative;
    top: -1px;
    z-index: 1;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 11px solid var(--accent);
  }
}

/* Cómo funciona: pasos numerados. */
.steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 16px;
  counter-reset: paso;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  counter-increment: paso;
  padding: 22px 22px 6px;
}

.step::before {
  content: counter(paso);
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 800;
}

.step p {
  color: var(--muted);
}

/* Canales: etiquetas de texto, sin logotipos de terceros. */
.channels {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.channels li {
  padding: 0.35em 0.9em;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--surface);
  font-weight: 650;
  font-size: 0.95rem;
}

/* Beneficios. */
.benefits {
  margin: 32px 0 0;
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .benefits {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit {
  padding: 22px 22px 6px;
}

.benefit h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.benefit h3::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--brand-lime);
  transform: rotate(45deg);
}

.benefit p {
  color: var(--muted);
}

.checklist,
.nolist {
  list-style: none;
  padding: 0;
}

.checklist li,
.nolist li {
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.7em;
}

.checklist li::before,
.nolist li::before {
  position: absolute;
  left: 0;
  width: 1.4em;
  text-align: center;
  font-weight: 800;
  color: var(--accent);
}

.checklist li::before {
  content: "→";
  content: "→" / "";
}

.nolist li::before {
  content: "✕";
  content: "✕" / "";
}

@media (min-width: 860px) {
  .nolist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 48px;
  }
}

.status-list {
  display: grid;
  gap: 16px;
  margin: 28px 0 24px;
}

@media (min-width: 980px) {
  .status-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.status-item {
  border-top: 4px solid var(--accent);
  padding: 22px 22px 6px;
}

.status-item .badge {
  margin-bottom: 0.8em;
}

.notice {
  background: var(--notice-bg);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 0 0 1.5em;
  max-width: var(--measure);
}

.section-alt .notice {
  background: var(--surface);
}

.notice p:last-child,
.summary-card p:last-child {
  margin-bottom: 0;
}

/* Aviso breve de privacidad de la portada. */
.privacy-brief {
  margin-top: 1.5em;
}

.privacy-brief h3 {
  margin-top: 0;
}

.privacy-brief ul {
  padding-left: 1.2em;
}

.privacy-brief li + li {
  margin-top: 0.4em;
}

.contact-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  padding: 22px 22px 8px;
}

.kv {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 20px;
}

.kv dt {
  font-weight: 700;
  margin-top: 0.75em;
}

.kv dd {
  margin: 0.1em 0 0;
  color: var(--muted);
  overflow-wrap: break-word;
}

@media (min-width: 520px) {
  .footer-entity .kv {
    grid-template-columns: max-content minmax(0, 1fr);
  }

  .footer-entity .kv dt,
  .footer-entity .kv dd {
    margin-top: 0.5em;
  }
}

/* ---------- Páginas legales ---------- */

.doc-header {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--border);
  padding: 20px 0 32px;
}

.legal-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0 0 28px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
}

.legal-nav a {
  display: inline-block;
  padding: 0.3em 0;
  color: var(--muted);
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  color: var(--text);
}

.doc-header h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem);
  max-width: 28ch;
}

.doc-meta {
  color: var(--muted);
  margin: 0;
}

.draft-banner,
.draft-note {
  background: var(--draft-bg);
  color: var(--draft-text);
  border: 1px solid var(--draft-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  max-width: var(--measure);
  font-size: 0.97rem;
}

.draft-banner {
  margin: 20px 0 0;
}

.draft-tag {
  display: inline-block;
  margin-right: 0.35em;
  padding: 0 0.5em;
  border: 1px solid var(--draft-border);
  border-radius: 4px;
  background: var(--draft-bg);
  color: var(--draft-text);
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.doc {
  padding-top: 32px;
  padding-bottom: 64px;
}

.doc-body {
  max-width: var(--measure);
}

.doc-body h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.65rem);
  margin-top: 2.2em;
  padding-top: 0.4em;
}

.doc-body h3 {
  margin-top: 1.6em;
}

.doc-body li {
  margin-bottom: 0.4em;
}

.doc-body li > ol,
.doc-body li > ul {
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}

.summary-card {
  padding: 18px 22px;
  margin: 0 0 1.5em;
  border-left: 4px solid var(--accent);
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px 10px;
  margin: 0 0 2em;
  max-width: var(--measure);
}

.toc h2 {
  font-size: 1.05rem;
  margin: 0 0 0.6em;
}

.toc ol {
  margin: 0 0 0.6em;
  padding-left: 1.6em;
}

@media (min-width: 720px) {
  .toc ol {
    columns: 2;
    column-gap: 40px;
  }

  .toc li {
    break-inside: avoid;
  }
}

/* En pantallas anchas, el índice pasa a una columna lateral fija. */
@media (min-width: 1100px) {
  .doc-with-toc {
    display: grid;
    grid-template-columns: 250px minmax(0, var(--measure));
    gap: 0 56px;
    align-items: start;
  }

  .doc-with-toc .toc {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    margin: 0;
    font-size: 0.92rem;
  }

  .doc-with-toc .toc ol {
    columns: 1;
  }

  .doc-with-toc .doc-body > :first-child {
    margin-top: 0;
    padding-top: 0;
  }
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 1.25em;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  margin: 0;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

thead th {
  background: var(--bg-soft);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 520px) {
  th,
  td {
    padding: 8px 10px;
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
  }

  /* Tablas con cabecera: en móvil, cada fila se lee como una ficha con la etiqueta de cada columna. */
  table.stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  table.stack,
  table.stack tbody,
  table.stack tr,
  table.stack td {
    display: block;
    width: 100%;
  }

  table.stack tr {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
  }

  table.stack tbody tr:last-child {
    border-bottom: 0;
  }

  table.stack td {
    padding: 4px 12px;
    border-bottom: 0;
  }

  table.stack td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
  }
}

.nowrap {
  white-space: nowrap;
}

.back-top {
  margin-top: 2.5em;
  font-size: 0.95rem;
}

/* ---------- 404 ---------- */

.error-page {
  padding-top: 64px;
  padding-bottom: 80px;
}

.error-page .code {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4em;
}

.link-list li {
  margin-bottom: 0.5em;
}

/* ---------- Pie ---------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 48px 0 32px;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--footer-link);
}

.site-footer a:hover {
  color: var(--brand-lime);
}

.site-footer :focus-visible {
  outline-color: var(--brand-lime);
}

.footer-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 1.1fr 0.8fr 1.5fr;
  }
}

.footer-logo {
  height: 26px;
  width: auto;
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--footer-muted);
  max-width: 34ch;
}

.footer-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--footer-muted);
  margin-bottom: 0.9em;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.5em;
}

/* Perfil MINIMO: aviso neutro del pie (bloque SIN_TEXTOS_LEGALES), sin enlace. */
.site-footer .footer-pending {
  color: var(--footer-muted);
}

.footer-entity .kv dt {
  color: var(--footer-muted);
  font-weight: 600;
}

.footer-entity .kv dd {
  color: var(--footer-text);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--footer-line);
  color: var(--footer-muted);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin-bottom: 0.4em;
  max-width: 90ch;
}

/* ---------- Impresión ---------- */

@media print {
  .site-nav,
  .legal-nav,
  .skip-link,
  .back-top,
  .hero-art,
  .footer-logo {
    display: none !important;
  }

  body {
    font-size: 11pt;
    background: #fff;
    color: #000;
  }

  .hero,
  .doc-header,
  .section-alt {
    background: none;
  }

  .engine,
  .benefit,
  .step,
  .status-item,
  .contact-card,
  .summary-card {
    box-shadow: none;
  }

  .site-footer {
    background: none;
    color: #000;
    border-top: 1px solid #999;
  }

  .site-footer a,
  .footer-title,
  .footer-brand p,
  .footer-bottom,
  .footer-entity .kv dt,
  .footer-entity .kv dd,
  a {
    color: #000;
  }

  .table-wrap {
    overflow: visible;
  }
}
