/* ==========================================================================
   RevisaFacil — Landing (Material 3)
   Seed azul #1565C0 · Nunito · una sola página con scroll continuo.
   Comparte tokens y cromo (header/footer/legal) con privacidad.html y
   terminos.html, así que los selectores base no deben renombrarse.
   ========================================================================== */

:root {
  /* Color roles (M3 light, seed azul del logo) */
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --on-primary: #ffffff;
  --primary-container: #D3E4FD;
  --on-primary-container: #001C3B;

  --secondary-container: #D7E3F8;
  --on-secondary-container: #101C2B;

  --tertiary: #6750a4;
  --tertiary-container: #e9ddff;
  --on-tertiary-container: #21005d;

  --amber-container: #ffe1b0;
  --on-amber-container: #4a2c00;

  --coral-container: #ffdad4;
  --on-coral-container: #5a1508;

  --surface: #F8F9FF;
  --surface-lowest: #ffffff;
  --surface-low: #F3F4FA;
  --surface-mid: #EDEEF4;
  --surface-high: #E7E8EE;
  --on-surface: #191C20;
  --on-surface-variant: #43474E;
  --outline: #73777F;
  --outline-variant: #C3C7CF;
  --inverse-surface: #111318;

  /* Shape scale */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-full: 999px;

  /* Elevation (sombra + tinte del primary) */
  --elev-1: 0 1px 2px rgba(13, 27, 62, 0.08), 0 1px 3px 1px rgba(13, 27, 62, 0.06);
  --elev-2: 0 1px 2px rgba(13, 27, 62, 0.09), 0 3px 8px 2px rgba(13, 27, 62, 0.08);
  --elev-3: 0 2px 4px rgba(13, 27, 62, 0.09), 0 8px 20px 4px rgba(13, 27, 62, 0.1);
  --elev-4: 0 4px 8px rgba(13, 27, 62, 0.1), 0 16px 36px 6px rgba(13, 27, 62, 0.12);

  /* Motion */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-1: 0.18s;
  --dur-2: 0.34s;
  --dur-3: 0.6s;

  /* Layout */
  --max: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 76px;

  --font: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--on-surface);
  background: var(--surface);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
picture {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* Iconos Material Symbols (subset por icon_names) */
.ms {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* ——— Fondo tonal ——————————————————————————————————————————————— */

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(circle at 1px 1px, rgba(21, 101, 192, 0.14) 1px, transparent 0);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

.bg-orb {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.55;
}

.bg-orb--a {
  width: 460px;
  height: 460px;
  top: -80px;
  right: -120px;
  background: rgba(21, 101, 192, 0.28);
}

.bg-orb--b {
  width: 380px;
  height: 380px;
  bottom: 12%;
  left: -140px;
  background: rgba(103, 80, 164, 0.16);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ——— Top app bar ————————————————————————————————————————————— */

.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(calc(100% - 24px), var(--max));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 18px;
  border-radius: var(--r-full);
  background: rgba(248, 249, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: var(--elev-1);
  transition: box-shadow var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(248, 249, 255, 0.94);
  box-shadow: var(--elev-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.brand > img:not(.wordmark) {
  width: auto;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
}

.wordmark {
  width: auto;
  height: 26px;
  object-fit: contain;
  margin-left: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 1rem;
  font-weight: 600;
  color: var(--on-surface-variant);
}

.nav a {
  padding: 10px 16px;
  border-radius: var(--r-full);
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}

.nav a:hover {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

@media (max-width: 899px) {
  .nav {
    display: none;
  }
}

/* ——— Botones ————————————————————————————————————————————————— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--r-full);
  background: var(--primary);
  color: var(--on-primary);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--elev-1);
  transition: box-shadow var(--dur-2) var(--ease), background var(--dur-1) var(--ease),
    transform var(--dur-1) var(--ease);
}

.btn:hover {
  background: var(--primary-dark);
  box-shadow: var(--elev-3);
}

.btn:active {
  transform: scale(0.98);
  box-shadow: var(--elev-1);
}

.btn .ms {
  font-size: 20px;
}

.btn-sm {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Sin nav (móvil) el botón se va a la derecha; con nav queda pegado a él. */
.site-header > .btn-sm {
  margin-left: auto;
}

@media (min-width: 900px) {
  .site-header > .btn-sm {
    margin-left: 8px;
  }
}

.btn-tonal {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  box-shadow: none;
}

.btn-tonal:hover {
  background: var(--primary-container);
  color: var(--on-primary-container);
  box-shadow: var(--elev-1);
}

/* ——— Badge de Google Play ————————————————————————————————————————
   Reproducción del badge oficial. Si se publica la ficha, sustituir por el
   artwork de Google Play Brand Guidelines conservando estas clases.        */

.gplay {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 24px 10px 18px;
  border-radius: var(--r-sm);
  background: #000;
  color: #fff;
  box-shadow: var(--elev-2);
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  transition: box-shadow var(--dur-2) var(--ease), transform var(--dur-1) var(--ease);
}

.gplay:hover {
  box-shadow: var(--elev-3);
}

.gplay:active {
  transform: scale(0.98);
}

.gplay img {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.gplay__text {
  display: grid;
  gap: 1px;
}

.gplay__text small {
  font-size: 0.66rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gplay__text strong {
  font-size: 1.3rem;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Sobre el panel azul del CTA final */
.gplay--light {
  background: #fff;
  color: #111318;
}

/* ——— Secciones ————————————————————————————————————————————————— */

main {
  padding-bottom: 8px;
}

.section {
  width: min(100% - calc(var(--gutter) * 2), var(--max));
  margin-inline: auto;
  padding-block: clamp(52px, 6vw, 84px);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 16px;
  border-radius: var(--r-full);
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.14;
  letter-spacing: -0.015em;
  font-weight: 800;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
}

h3 {
  font-size: 1.3rem;
}

.section-head p {
  margin-top: 16px;
  font-size: 1.15rem;
  color: var(--on-surface-variant);
}

/* ——— Hero ————————————————————————————————————————————————————— */

.hero {
  width: min(100% - calc(var(--gutter) * 2), var(--max));
  margin-inline: auto;
  padding-top: calc(var(--header-h) + clamp(28px, 6vw, 64px));
  padding-bottom: clamp(48px, 7vw, 88px);
}

.hero-grid {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.1rem);
  letter-spacing: -0.03em;
}

.hero h1 span {
  color: var(--primary-dark);
}

.lede {
  margin-top: 20px;
  max-width: 46ch;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  color: var(--on-surface-variant);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

/* Botón y badge a la misma altura en la misma fila */
.cta-row > .btn,
.cta-row > .gplay {
  min-height: 56px;
}

.cta-row--center {
  justify-content: center;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-full);
  background: var(--surface-lowest);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--on-surface-variant);
}

.trust-chip .ms {
  font-size: 19px;
  color: var(--primary);
}

/* ——— Marcos de dispositivo ——————————————————————————————————— */

.device-stage {
  position: relative;
  display: flex;
  justify-content: center;
  isolation: isolate;
}

.device-stage::before {
  content: "";
  position: absolute;
  inset: 8% -6% 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 101, 192, 0.22), transparent 68%);
  filter: blur(28px);
}

.phone-frame {
  position: relative;
  width: min(300px, 74vw);
  padding: 11px;
  border-radius: 44px;
  background: linear-gradient(160deg, #e6ecf4, #c5d4e8);
  box-shadow: var(--elev-4);
}

.phone-frame__screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: var(--inverse-surface);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.phone-frame__screen img {
  width: 100%;
  height: auto;
}

/* Sin notch: la captura ya trae la cabecera de la app y no debe taparse. */

.phone-frame--tilt {
  rotate: -2.5deg;
}

/* Dentro de una card ya elevada: marco más discreto y centrado. */
.phone-frame--flat {
  width: min(268px, 100%);
  margin-inline: auto;
  padding: 9px;
  border-radius: 38px;
  box-shadow: var(--elev-2);
}

.phone-frame--flat .phone-frame__screen {
  border-radius: 30px;
}

.device-stage--plain::before {
  display: none;
}

/* Tarjetas tonales flotantes sobre los dispositivos */
.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--surface-lowest);
  box-shadow: var(--elev-3);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

.float-card small {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--on-surface-variant);
}

.float-card .ms {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  font-size: 21px;
  flex-shrink: 0;
}

.float-card--a {
  top: 10%;
  left: 0;
  animation: float-y 7s var(--ease-soft) infinite alternate;
}

.float-card--a .ms {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.float-card--b {
  bottom: 14%;
  right: 0;
  animation: float-y 8.5s var(--ease-soft) -2s infinite alternate;
}

.float-card--b .ms {
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
}

@keyframes float-y {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 -14px;
  }
}

@media (max-width: 639px) {
  /* En pantallas estrechas taparían la cabecera de la captura. */
  .float-card {
    display: none;
  }

  /* Objetivos táctiles amplios: los CTA ocupan el ancho completo. */
  .cta-row .btn {
    flex: 1 1 100%;
  }

  /* El badge conserva su proporción (no debe estirarse). */
  .cta-row .gplay {
    flex: 0 0 auto;
  }

  .trust-chip {
    padding: 8px 13px;
    font-size: 0.92rem;
  }
}

/* ——— Bloque "Presentamos" ————————————————————————————————————— */

.split {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 0.92fr 1.08fr;
  }

  .split--reverse > *:first-child {
    order: 2;
  }
}

.tonal-band {
  border-radius: var(--r-2xl);
  background: linear-gradient(150deg, var(--surface-low), var(--surface-mid));
  padding: clamp(28px, 4vw, 56px);
}

/* ——— Cards de ventajas ————————————————————————————————————————— */

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.m3-card {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface-lowest);
  box-shadow: var(--elev-1);
  transition: box-shadow var(--dur-2) var(--ease), translate var(--dur-2) var(--ease);
}

.m3-card:hover {
  box-shadow: var(--elev-3);
  translate: 0 -4px;
}

.m3-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: var(--r-md);
  font-size: 28px;
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.m3-card h3 {
  margin-bottom: 8px;
}

.m3-card p {
  color: var(--on-surface-variant);
}

.card--violet .m3-card__icon {
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
}

.card--amber .m3-card__icon {
  background: var(--amber-container);
  color: var(--on-amber-container);
}

.card--coral .m3-card__icon {
  background: var(--coral-container);
  color: var(--on-coral-container);
}

/* ——— Tipos de pregunta ————————————————————————————————————————— */

.types {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.type-card {
  padding: 22px;
  border-radius: var(--r-md);
  background: var(--surface-lowest);
  border: 1px solid var(--outline-variant);
}

.type-card strong {
  display: block;
  margin: 12px 0 4px;
  font-size: 1.1rem;
}

.type-card span {
  color: var(--on-surface-variant);
  font-size: 1rem;
}

.type-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* ——— Pasos ————————————————————————————————————————————————————— */

.steps {
  display: grid;
  gap: 18px;
  counter-reset: step;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}

.step-card {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--r-lg);
  background: var(--surface-lowest);
  box-shadow: var(--elev-1);
}

.step-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: var(--r-full);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 1.2rem;
  font-weight: 800;
}

.step-card h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
}

.step-card p {
  color: var(--on-surface-variant);
}

.step-card .ms {
  position: absolute;
  top: 26px;
  right: 24px;
  font-size: 28px;
  color: var(--primary);
  opacity: 0.35;
}

/* ——— Más funciones (resultados, guía, descargas) ——————————————— */

.fn-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.fn-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  height: 100%;
  padding: 22px 20px;
  border-radius: var(--r-lg);
  background: var(--surface-lowest);
  box-shadow: var(--elev-1);
}

.fn-item__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-size: 26px;
}

.fn-item h3 {
  margin-bottom: 6px;
  font-size: 1.18rem;
}

.fn-item p {
  color: var(--on-surface-variant);
}

.fn-item--lead {
  background: var(--primary-container);
  box-shadow: none;
}

.fn-item--lead .fn-item__icon {
  background: var(--primary);
  color: var(--on-primary);
}

.fn-item--lead h3,
.fn-item--lead p {
  color: var(--on-primary-container);
}

.fn-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  list-style: none;
}

.fn-format {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: var(--surface-lowest);
  color: var(--on-primary-container);
  font-size: 0.95rem;
  font-weight: 800;
}

.fn-format .ms {
  font-size: 20px;
}

.fn-format--pdf .ms {
  color: #b42318;
}

.fn-format--xls .ms {
  color: #137333;
}

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

  .fn-item--lead {
    grid-column: 1 / -1;
  }
}

@media (min-width: 980px) {
  .fn-grid {
    grid-template-columns: 1fr 1fr 1fr;
    margin-bottom: 36px;
  }

  .fn-item--lead {
    grid-column: auto;
  }
}

/* ——— Galería de pantallas reales ——————————————————————————————— */

.shots {
  display: grid;
  gap: 22px;
}

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

.shot-card {
  padding: 22px;
  border-radius: var(--r-xl);
  background: var(--surface-lowest);
  box-shadow: var(--elev-2);
}

.shot-card figcaption {
  margin-top: 18px;
}

.shot-card figcaption strong {
  display: block;
  font-size: 1.12rem;
}

.shot-card figcaption span {
  color: var(--on-surface-variant);
}

.shot-card figcaption {
  text-align: center;
}

/* ——— Cita ——————————————————————————————————————————————————————— */

.quotes {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.quote-card {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface-lowest);
  box-shadow: var(--elev-1);
}

/* Comilla tipográfica: se ve mejor que el icono y no depende de la fuente de iconos. */
.quote-card::before {
  content: "\201C";
  display: block;
  margin-bottom: 2px;
  font-size: 3rem;
  line-height: 0.7;
  color: var(--primary);
  opacity: 0.35;
}

.quote-card blockquote p {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.5;
}

.quote-card figcaption {
  display: grid;
  gap: 2px;
  margin-top: 18px;
}

.quote-card figcaption strong {
  font-weight: 800;
}

.quote-card figcaption span {
  color: var(--on-surface-variant);
  font-size: 0.95rem;
}

/* Testimonio destacado: ocupa el ancho completo y usa el tonal primary. */
.quote-card--lead {
  grid-column: 1 / -1;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-2xl);
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.quote-card--lead::before {
  color: currentColor;
}

.quote-card--lead blockquote p {
  max-width: 54ch;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.4;
}

.quote-card--lead figcaption span {
  color: inherit;
  opacity: 0.78;
}

/* ——— CTA final ————————————————————————————————————————————————— */

.cta-panel {
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px);
  border-radius: var(--r-2xl);
  background: linear-gradient(150deg, var(--primary) 0%, #0D47A1 55%, var(--tertiary) 160%);
  color: #fff;
  text-align: center;
  box-shadow: var(--elev-4);
}

.cta-panel .wordmark--cta {
  width: min(64vw, 210px);
  height: auto;
  margin: 0 auto 20px;
}

.cta-panel h2 {
  color: #fff;
}

.cta-panel p {
  margin-top: 14px;
  font-size: 1.15rem;
  opacity: 0.92;
}

.cta-panel .btn {
  background: #fff;
  color: var(--primary-dark);
  margin-top: 28px;
}

.cta-panel .btn:hover {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

/* ——— Footer ————————————————————————————————————————————————————— */

.site-footer {
  width: min(100% - calc(var(--gutter) * 2), var(--max));
  margin-inline: auto;
  padding: 40px 0 48px;
  border-top: 1px solid var(--outline-variant);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  color: var(--on-surface-variant);
  font-size: 0.98rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-brand > img:not(.wordmark) {
  width: auto;
  height: 26px;
  object-fit: contain;
  border-radius: 6px;
}

.wordmark--footer {
  width: auto;
  height: 20px;
  margin-left: 0;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-links a {
  padding: 10px 14px;
  border-radius: var(--r-full);
  font-weight: 700;
  color: var(--primary-dark);
  transition: background var(--dur-1) var(--ease);
}

.footer-links a:hover {
  background: var(--surface-mid);
}

.site-footer > p {
  flex: 1 1 100%;
}

/* ——— Páginas legales ————————————————————————————————————————————— */

.legal-main {
  width: min(100% - calc(var(--gutter) * 2), 860px);
  margin-inline: auto;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 72px;
}

.legal-doc {
  padding: clamp(26px, 4vw, 52px);
  border-radius: var(--r-2xl);
  background: var(--surface-lowest);
  box-shadow: var(--elev-1);
}

.legal-doc h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 6px;
}

.legal-meta {
  color: var(--on-surface-variant);
  font-size: 0.98rem;
  margin-bottom: 28px;
}

.legal-doc h2 {
  font-size: 1.5rem;
  margin: 36px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--outline-variant);
}

.legal-doc h3 {
  font-size: 1.18rem;
  margin: 24px 0 8px;
}

.legal-doc p,
.legal-doc li {
  color: var(--on-surface-variant);
  font-size: 1.05rem;
}

.legal-doc p + p,
.legal-doc ul + p,
.legal-doc ol + p {
  margin-top: 14px;
}

.legal-doc ul,
.legal-doc ol {
  margin: 14px 0 0 22px;
  display: grid;
  gap: 10px;
}

.legal-doc ul li {
  list-style: disc;
}

.legal-doc ol li {
  list-style: decimal;
}

.legal-doc a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal-doc code {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-mid);
  font-size: 0.95em;
}

.legal-related {
  margin-top: 32px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--surface-low);
}

/* ——— Reveal on scroll ——————————————————————————————————————————— */

.reveal {
  opacity: 0;
  translate: 0 22px;
  transition: opacity var(--dur-3) var(--ease) calc(var(--delay, 0) * 90ms),
    translate var(--dur-3) var(--ease) calc(var(--delay, 0) * 90ms);
}

.reveal[data-reveal="left"] {
  translate: -26px 12px;
}

.reveal[data-reveal="right"] {
  translate: 26px 12px;
}

.reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

.reveal[data-delay="1"] {
  --delay: 1;
}

.reveal[data-delay="2"] {
  --delay: 2;
}

.reveal[data-delay="3"] {
  --delay: 3;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    translate: none;
    transition: none;
  }

  .float-card--a,
  .float-card--b {
    animation: none;
  }
}
