/* ==========================================================================
   SmartFlow — styles.css
   Paleta de marca: esmeralda + ámbar (fija, no las 3 paletas de dentro de la
   app). Tipografía: Plus Jakarta Sans (se carga con <link> desde index.html).
   ========================================================================== */

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  /* Marca */
  --primary: #10B981;
  --primary-light: #34D399;
  --primary-dark: #047857;
  --primary-deep: #065F46;
  --accent: #F59E0B;
  --accent-light: #FCD34D;

  /* Superficies */
  --bg: #F6FAF8;
  --bg-tint: #EDF6F1;
  --surface: #FFFFFF;
  --card: #FFFFFF;
  --line: #E1EDE7;
  --line-strong: #CFE3D9;

  /* Texto */
  --ink: #062119;
  --ink-soft: #46625A;
  --ink-faint: #7A938B;
  --on-primary: #FFFFFF;

  /* Sombras teñidas de verde, nunca negro puro */
  --sh-xs: 0 1px 2px rgba(6, 33, 25, .05);
  --sh-sm: 0 1px 2px rgba(6, 33, 25, .04), 0 6px 16px -6px rgba(6, 33, 25, .10);
  --sh-md: 0 1px 2px rgba(6, 33, 25, .04), 0 14px 34px -10px rgba(6, 33, 25, .14);
  --sh-lg: 0 2px 4px rgba(6, 33, 25, .05), 0 32px 64px -22px rgba(6, 33, 25, .28);

  /* Radios: más cerrados por dentro, más abiertos por fuera */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container: 1180px;
  --gutter: 24px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 160ms var(--ease);
  --t-base: 260ms var(--ease);

  --z-header: 100;
  --z-menu: 90;
  --z-raised: 10;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --primary: #34D399;
  --primary-light: #6EE7B7;
  --primary-dark: #6EE7B7;
  --primary-deep: #A7F3D0;
  --accent: #FBBF24;
  --accent-light: #FDE68A;

  --bg: #06150F;
  --bg-tint: #081B14;
  --surface: #0A2018;
  --card: #0D2A20;
  --line: #17352A;
  --line-strong: #1E4536;

  --ink: #ECFDF5;
  --ink-soft: #9BBDB0;
  --ink-faint: #6E9083;
  --on-primary: #04150F;

  --sh-xs: 0 1px 2px rgba(0, 0, 0, .30);
  --sh-sm: 0 1px 2px rgba(0, 0, 0, .30), 0 6px 16px -6px rgba(0, 0, 0, .45);
  --sh-md: 0 1px 2px rgba(0, 0, 0, .30), 0 14px 34px -10px rgba(0, 0, 0, .55);
  --sh-lg: 0 2px 4px rgba(0, 0, 0, .35), 0 32px 64px -22px rgba(0, 0, 0, .70);

  color-scheme: dark;
}

/* ==========================================================================
   2. Reset y base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  /* clip en vez de hidden: hidden crearía un contenedor de scroll y rompería
     el position:sticky de la cabecera */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color var(--t-base), color var(--t-base);
}

/* Grano fino sobre todo el documento: rompe la planitud del vector puro */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] body::after { opacity: .05; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, figcaption { margin: 0; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ==========================================================================
   3. Tipografía
   ========================================================================== */
.display {
  font-size: clamp(2.6rem, 5.4vw + .6rem, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.038em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.85rem, 2.6vw + .8rem, 2.9rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.028em;
  text-wrap: balance;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -.012em;
}

p { text-wrap: pretty; }

.lede {
  font-size: clamp(1.0625rem, .5vw + .95rem, 1.25rem);
  line-height: 1.58;
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 34em;
}
.lede--sm { font-size: 1.0625rem; max-width: 30em; }
.lede--onDark { color: #B6DCCB; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--primary-dark);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}
.eyebrow--onDark { color: var(--accent-light); }
.eyebrow--onDark .dot {
  background: var(--accent-light);
  box-shadow: 0 0 0 4px rgba(252, 211, 77, .18);
}

/* Cifras siempre tabulares: si no, las columnas bailan */
b, strong, .plan__amount, .float-chip strong, .mini-line b, .mini-row span:last-child {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   4. Estructura
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  z-index: 2;
  /* Asimetría óptica: abajo pesa un poco más que arriba */
  padding-block: clamp(64px, 8vw, 104px) clamp(72px, 9vw, 120px);
}
.section--tinted { background: var(--bg-tint); }

.section__head {
  max-width: 660px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section__head .eyebrow { margin-bottom: 16px; }
.section__head h2 + .lede { margin-top: 18px; }

.section__head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 28px 48px;
  align-items: end;
  max-width: none;
}
.section__head--split .lede { padding-bottom: 6px; }

.section__head--center {
  max-width: 660px;
  margin-inline: auto;
  text-align: center;
}
.section__head--center .lede { margin-inline: auto; }

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

/* ==========================================================================
   5. Botones
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t-fast),
              background-color var(--t-fast), border-color var(--t-fast);
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: translateY(1px) scale(.988); }
.btn--block { width: 100%; }

.btn--primary {
  background: linear-gradient(140deg, var(--primary-light) 0%, var(--primary) 46%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(4, 120, 87, .22), 0 12px 26px -10px rgba(4, 120, 87, .58);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(4, 120, 87, .22), 0 20px 36px -12px rgba(4, 120, 87, .62);
}
:root[data-theme="dark"] .btn--primary { color: #04150F; }

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-xs);
}
.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn[aria-disabled="true"] {
  pointer-events: none;
  filter: saturate(.55);
  opacity: .8;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: transform var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.icon-btn:active { transform: translateY(0) scale(.96); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:disabled {
  opacity: .34;
  cursor: default;
  transform: none;
  pointer-events: none;
}

/* ==========================================================================
   6. Cabecera
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background-color var(--t-base);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 13px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.02em;
  flex: none;
}
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: var(--sh-xs); }
.brand--footer img { width: 28px; height: 28px; border-radius: 9px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav-links a {
  position: relative;
  padding: 8px 13px;
  border-radius: var(--r-pill);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav-links a:hover { color: var(--ink); background: color-mix(in srgb, var(--primary) 9%, transparent); }
.nav-links a.is-active { color: var(--primary-dark); background: color-mix(in srgb, var(--primary) 13%, transparent); }

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}
.lang-switch button {
  padding: 6px 11px;
  border-radius: var(--r-pill);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink-soft);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: var(--sh-xs);
}

.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.menu-toggle { display: none; }
.menu-toggle__bars { display: grid; gap: 5px; width: 17px; }
.menu-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--t-base), opacity var(--t-fast);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  z-index: var(--z-menu);
  border-top: 1px solid var(--line);
  background: var(--surface);
  animation: menu-in 240ms var(--ease-out);
}
.mobile-menu .container { display: grid; padding-block: 8px 16px; }
.mobile-menu a {
  padding: 13px 4px;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu { display: block; }
  .mobile-menu[hidden] { display: none; }
}
@media (max-width: 480px) {
  .lang-switch button { padding: 6px 8px; font-size: .68rem; }
  .brand { font-size: 1rem; }
  .brand img { width: 30px; height: 30px; }
}
@media (max-width: 355px) {
  .brand span { display: none; }
}

/* ==========================================================================
   7. Hero
   ========================================================================== */
.hero {
  position: relative;
  z-index: 2;
  padding-top: clamp(40px, 6vw, 76px);
  overflow: hidden;
}

.hero__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}
.orb--1 {
  width: 62vw;
  max-width: 820px;
  aspect-ratio: 1;
  top: -34%;
  left: -18%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 26%, transparent) 0%, transparent 66%);
}
.orb--2 {
  width: 48vw;
  max-width: 640px;
  aspect-ratio: 1;
  top: 10%;
  right: -16%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 20%, transparent) 0%, transparent 66%);
}

.hero__flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .5;
}
:root[data-theme="dark"] .hero__flow { opacity: .42; }
.hero__flow .flow-path {
  fill: none;
  stroke: url(#flow-gradient);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 14 20;
  animation: flow-drift 10s linear infinite;
}
.hero__flow .flow-path--2 { animation-duration: 15s; animation-direction: reverse; opacity: .62; }
.hero__flow .flow-path--3 { animation-duration: 19s; opacity: .4; }
@keyframes flow-drift { to { stroke-dashoffset: -340; } }

.hero__inner {
  position: relative;
  z-index: var(--z-raised);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-bottom: clamp(48px, 7vw, 88px);
}

.hero__copy .eyebrow { margin-bottom: 22px; }
.hero__copy .display { margin-bottom: 22px; }
.hero__copy .lede { margin-bottom: 34px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions--center { justify-content: center; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
}
.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero__trust svg { width: 14px; height: 14px; color: var(--primary); flex: none; }

/* --- Móvil dibujado con CSS --- */
.phone {
  position: relative;
  border-radius: 40px;
  background: linear-gradient(160deg, #123328 0%, #07201A 60%, #0C2A21 100%);
  padding: 8px;
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(255, 255, 255, .10) inset;
}
.phone::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .16);
  z-index: 3;
}
.phone__screen {
  position: relative;
  overflow: hidden;
  border-radius: 33px;
  background: #fff;
}
.phone__screen img { width: 100%; }
.phone--sm { border-radius: 30px; padding: 6px; }
.phone--sm::before { top: 10px; width: 46px; height: 4px; }
.phone--sm .phone__screen { border-radius: 25px; }

.hero__device {
  position: relative;
  justify-self: center;
  width: min(100%, 320px);
}
.phone--hero { animation: phone-float 7s ease-in-out infinite; }
@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.float-chip {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 1px;
  padding: 11px 15px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  animation: phone-float 7s ease-in-out infinite;
}
.float-chip strong { font-size: 1rem; font-weight: 800; letter-spacing: -.02em; }
.float-chip span { font-size: .7rem; font-weight: 600; color: var(--ink-faint); }
.float-chip--a { top: 13%; left: -27%; animation-delay: -1.4s; }
.float-chip--a strong { color: var(--primary-dark); }
.float-chip--b { bottom: 14%; right: -22%; animation-delay: -3.2s; }

/* --- Flux en el hero --- */
.hero__flux {
  position: absolute;
  z-index: 5;
  left: -50%;
  bottom: -2%;
  width: clamp(112px, 14vw, 168px);
  animation: phone-float 6.5s ease-in-out infinite;
  animation-delay: -2.2s;
}
.hero__flux img {
  width: 100%;
  filter: drop-shadow(0 16px 30px rgba(6, 33, 25, .30));
}
:root[data-theme="dark"] .hero__flux img {
  filter: drop-shadow(0 0 28px rgba(103, 232, 249, .28));
}

/* Bocadillo, con la colita apuntando a Flux */
.speech {
  position: relative;
  display: inline-block;
  padding: 9px 15px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.speech::after {
  content: '';
  position: absolute;
  left: 26px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: inherit;
  border-right: inherit;
  border-bottom: inherit;
  transform: rotate(45deg);
  border-bottom-right-radius: 3px;
}
.hero__flux .speech { margin-left: 8%; margin-bottom: 4px; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__device { margin-top: 12px; width: min(100%, 290px); }
  .float-chip--b { right: -4%; }
  .hero__flux { left: -32%; bottom: -2%; }
}
@media (max-width: 520px) {
  .hero__flux { left: -18%; bottom: -5%; width: 100px; }
  .hero__flux .speech { font-size: .78rem; padding: 7px 12px; }
}
@media (max-width: 760px) {
  /* En vertical el SVG se amplía tanto que las líneas cruzan el titular */
  .hero__flow { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
}
@media (max-width: 380px) {
  .float-chip { display: none; }
}

/* --- Banda de texto en movimiento --- */
.marquee {
  position: relative;
  z-index: var(--z-raised);
  overflow: hidden;
  padding-block: 16px;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee__track span {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: -.005em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee__track i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ==========================================================================
   8. Cómo funciona
   ========================================================================== */
.steps { display: grid; gap: 20px; }

.step {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.step:hover { box-shadow: var(--sh-md); border-color: var(--line-strong); }
/* Desplazamiento alterno: rompe la columna perfecta sin romper la lectura */
.step:nth-child(2) { margin-left: clamp(0px, 4vw, 56px); }
.step:nth-child(3) { margin-left: clamp(0px, 8vw, 112px); }

.step__num {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(150deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { font-size: .94rem; color: var(--ink-soft); }

.step__art {
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
:root[data-theme="dark"] .step__art { background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }

.step__art p {
  font-size: .82rem;
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
}
.wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--primary);
  animation: wave 1.1s ease-in-out infinite;
}
.wave i:nth-child(1) { height: 30%; animation-delay: 0s; }
.wave i:nth-child(2) { height: 62%; animation-delay: .08s; }
.wave i:nth-child(3) { height: 100%; animation-delay: .16s; }
.wave i:nth-child(4) { height: 48%; animation-delay: .24s; }
.wave i:nth-child(5) { height: 78%; animation-delay: .32s; }
.wave i:nth-child(6) { height: 36%; animation-delay: .40s; }
.wave i:nth-child(7) { height: 90%; animation-delay: .48s; }
.wave i:nth-child(8) { height: 54%; animation-delay: .56s; }
.wave i:nth-child(9) { height: 70%; animation-delay: .64s; }
.wave i:nth-child(10) { height: 32%; animation-delay: .72s; }
.wave i:nth-child(11) { height: 58%; animation-delay: .80s; }
.wave i:nth-child(12) { height: 26%; animation-delay: .88s; }
@keyframes wave { 50% { transform: scaleY(.42); } }

.mini-row { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-row span {
  padding: 5px 10px;
  border-radius: var(--r-pill);
  font-size: .72rem;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.mini-row span:last-child { color: var(--primary-dark); border-color: color-mix(in srgb, var(--primary) 32%, transparent); }

.mini-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 600;
}
.mini-line span { color: var(--ink-soft); }
.mini-line b { font-weight: 700; letter-spacing: -.01em; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  transform-origin: bottom;
  animation: bar-rise 900ms var(--ease-out) backwards;
}
.bars i:nth-child(1) { animation-delay: .00s; }
.bars i:nth-child(2) { animation-delay: .06s; }
.bars i:nth-child(3) { animation-delay: .12s; }
.bars i:nth-child(4) { animation-delay: .18s; }
.bars i:nth-child(5) { animation-delay: .24s; }
.bars i:nth-child(6) { animation-delay: .30s; background: linear-gradient(180deg, var(--accent-light), var(--accent)); }
@keyframes bar-rise { from { transform: scaleY(0); opacity: 0; } }

@media (max-width: 900px) {
  .step { grid-template-columns: 48px minmax(0, 1fr); }
  .step__art { grid-column: 1 / -1; }
  .step:nth-child(2), .step:nth-child(3) { margin-left: 0; }
  .step__num { font-size: 2rem; }
}

/* ==========================================================================
   8 bis. Estados de Flux
   ==========================================================================
   El escenario es oscuro a propósito, dentro de una sección clara: Flux es
   cian luminoso y sobre fondo claro se lava. Además es el mismo verde del
   tema oscuro de la app, así que no es un parche, es la app.
   ========================================================================== */
.mood {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, #04241A 0%, #063A2A 52%, #052A20 100%);
  box-shadow: var(--sh-lg);
}
.mood__glow { position: absolute; inset: 0; pointer-events: none; }
.orb--5 {
  width: 460px; aspect-ratio: 1; top: -46%; left: -12%;
  background: radial-gradient(circle, rgba(103, 232, 249, .30) 0%, transparent 66%);
}
.orb--6 {
  width: 420px; aspect-ratio: 1; bottom: -46%; right: -8%;
  background: radial-gradient(circle, rgba(245, 158, 11, .20) 0%, transparent 66%);
}

.mood__stage {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 4px;
}
.mood__stage .speech {
  background: rgba(255, 255, 255, .95);
  border-color: transparent;
  color: #04241A;
}
.speech--lg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(.9rem, .5vw + .8rem, 1.05rem);
  line-height: 1.35;
  padding: 12px 20px;
  /* Hueco reservado para dos líneas: si no, Flux sube y baja cada vez que
     la frase cambia de largo */
  min-height: calc(2 * 1.35em + 29px);
  text-align: center;
  max-width: 22ch;
  text-wrap: balance;
}

/* Las cinco caras ocupan la misma celda y se cruzan con un fundido */
.mood__faces {
  display: grid;
  width: min(100%, 260px);
  aspect-ratio: 1;
  animation: phone-float 6s ease-in-out infinite;
}
.mood__faces img {
  grid-area: 1 / 1;
  width: 100%;
  opacity: 0;
  transform: scale(.88);
  transition: opacity 300ms var(--ease-out), transform 420ms var(--ease-out);
  filter: drop-shadow(0 0 34px rgba(103, 232, 249, .30));
}
.mood__faces img.is-on { opacity: 1; transform: none; }
/* Sin JS se ve el primero, no una pila de fantasmas invisibles */
.no-js .mood__faces img:first-child { opacity: 1; transform: none; }

.mood__panel { position: relative; z-index: 2; display: grid; gap: 22px; }

.meter { display: grid; gap: 9px; }
.meter__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: .82rem;
  font-weight: 600;
  color: #9FCDB9;
}
.meter__head b { font-size: 1.15rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.meter__bar {
  height: 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .11);
  overflow: hidden;
}
.meter__bar i {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  transition: width 220ms var(--ease), background 320ms var(--ease);
}
.mood[data-level="careful"] .meter__bar i { background: linear-gradient(90deg, var(--accent-light), var(--accent)); }
.mood[data-level="over"] .meter__bar i { background: linear-gradient(90deg, #FCA5A5, #EF4444); }

.mood__slider { display: grid; gap: 10px; }
.mood__slider > span { font-size: .8rem; font-weight: 600; color: #9FCDB9; }

.mood__slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  background: none;
  cursor: grab;
}
.mood__slider input[type="range"]:active { cursor: grabbing; }
.mood__slider input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .16);
}
.mood__slider input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .16);
}
.mood__slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
  transition: transform var(--t-fast);
}
.mood__slider input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}
.mood__slider input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.1); }

.mood__legend { display: flex; flex-wrap: wrap; gap: 7px; }
.mood__legend button {
  padding: 7px 13px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  color: #B6DCCB;
  font-size: .78rem;
  font-weight: 700;
  transition: background-color var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast);
}
.mood__legend button:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.mood__legend button:active { transform: scale(.96); }
.mood__legend button[aria-pressed="true"] {
  background: var(--primary);
  border-color: transparent;
  color: #04241A;
}
.mood__legend button.is-missing { display: none; }

.mood__note {
  font-size: .78rem;
  line-height: 1.5;
  color: #7FB49E;
}

@media (max-width: 880px) {
  .mood { grid-template-columns: 1fr; }
  .mood__stage { order: -1; }
}

/* ==========================================================================
   9. Bento de funciones
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.cell {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.cell:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--line-strong);
}

.cell__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  margin-bottom: 16px;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary-dark);
}
.cell__icon svg { width: 21px; height: 21px; }

.cell h3 { margin-bottom: 8px; }
.cell p { font-size: .9rem; line-height: 1.55; color: var(--ink-soft); }

.cell--accent {
  background:
    radial-gradient(120% 130% at 0% 0%, color-mix(in srgb, var(--primary) 14%, transparent) 0%, transparent 62%),
    var(--card);
  border-color: color-mix(in srgb, var(--primary) 26%, var(--line));
}

/* Tarjeta ancha de inmuebles */
.cell--wide {
  grid-column: span 6;
  flex-direction: row;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(26px, 3vw, 40px);
  background:
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 58%),
    radial-gradient(80% 120% at 0% 100%, color-mix(in srgb, var(--primary) 12%, transparent) 0%, transparent 58%),
    var(--card);
  border-color: color-mix(in srgb, var(--primary) 20%, var(--line));
}
.cell--wide .cell__body { flex: 1 1 auto; min-width: 0; }
.cell--wide h3 { font-size: clamp(1.3rem, 1.4vw + 1rem, 1.7rem); margin-bottom: 12px; }
.cell--wide > .cell__body > p { margin-bottom: 18px; }
.cell--wide .cell__media { flex: 0 0 auto; width: clamp(180px, 22vw, 244px); }

.ticks { display: grid; gap: 10px; }
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.ticks svg { width: 15px; height: 15px; margin-top: 4px; flex: none; color: var(--primary); }

/* Tarjeta de patrimonio con su gráfica */
.cell--networth {
  grid-column: span 4;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}
.cell--networth .cell__body { flex: 1 1 auto; min-width: 0; }
.nw-graph { flex: 0 0 auto; width: clamp(130px, 18vw, 200px); }
.nw-graph svg { width: 100%; height: 88px; }
.nw-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.nw-area { fill: color-mix(in srgb, var(--primary) 15%, transparent); }

.cell--stories { grid-column: span 4; }
@media (max-width: 1040px) { .cell--stories { grid-column: span 4; } }
@media (max-width: 720px) { .cell--stories { grid-column: span 2; } }

@media (max-width: 1040px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .cell--wide { grid-column: span 4; }
  .cell--networth { grid-column: span 4; }
}
@media (max-width: 860px) {
  .cell--wide { flex-direction: column; align-items: flex-start; }
  .cell--wide .cell__media { width: min(100%, 230px); align-self: center; }
}
@media (max-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cell { grid-column: span 2; }
  .cell--networth { flex-direction: column; align-items: flex-start; }
  .nw-graph { width: 100%; }
}

/* ==========================================================================
   10. Flux
   ========================================================================== */
.flux {
  position: relative;
  overflow: hidden;
  color: #ECFDF5;
  background: linear-gradient(155deg, #04241A 0%, #063A2A 48%, #05281E 100%);
}
.flux__ambient { position: absolute; inset: 0; pointer-events: none; }
.orb--3 {
  width: 54vw;
  max-width: 700px;
  aspect-ratio: 1;
  top: -22%;
  right: -12%;
  background: radial-gradient(circle, rgba(52, 211, 153, .30) 0%, transparent 66%);
}
.orb--4 {
  width: 44vw;
  max-width: 560px;
  aspect-ratio: 1;
  bottom: -30%;
  left: -10%;
  background: radial-gradient(circle, rgba(245, 158, 11, .26) 0%, transparent 66%);
}

.flux__inner {
  position: relative;
  z-index: var(--z-raised);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.flux h2 { color: #fff; margin-block: 16px 18px; }

.flux__list {
  display: grid;
  gap: 2px;
  margin-top: 30px;
}
.flux__list li {
  display: grid;
  gap: 3px;
  padding: 15px 0;
  border-top: 1px solid rgba(167, 243, 208, .16);
}
.flux__list li:last-child { border-bottom: 1px solid rgba(167, 243, 208, .16); }
.flux__list b {
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: #fff;
}
.flux__list span { font-size: .88rem; line-height: 1.5; color: #9FCDB9; }

.flux__note {
  margin-top: 26px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(252, 211, 77, .10);
  border: 1px solid rgba(252, 211, 77, .28);
  font-size: .88rem;
  line-height: 1.55;
  color: #FDE9B8;
}

.flux__chat { position: relative; }

.chat {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 40px 80px -30px rgba(0, 0, 0, .75),
              inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
}
.chat__head img { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.chat__head div { display: grid; }
.chat__head strong { font-size: .95rem; font-weight: 700; color: #fff; }
.chat__head span { font-size: .74rem; font-weight: 600; color: #8FC4AE; }

.bubble {
  padding: 13px 16px;
  font-size: .89rem;
  line-height: 1.55;
  border-radius: var(--r-md);
}
.bubble--me {
  justify-self: end;
  max-width: 88%;
  background: linear-gradient(140deg, var(--primary-light), #10B981);
  color: #04241A;
  font-weight: 600;
  border-bottom-right-radius: var(--r-xs);
}
.bubble--flux {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .10);
  color: #D8F0E5;
  border-bottom-left-radius: var(--r-xs);
}
.chat__foot {
  font-size: .72rem;
  font-weight: 600;
  color: #7FB49E;
  text-align: center;
  padding-top: 2px;
}

.flux__mascot {
  position: absolute;
  z-index: 1;
  right: -40px;
  bottom: -66px;
  width: clamp(120px, 15vw, 180px);
  animation: phone-float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, .5));
}

@media (max-width: 900px) {
  .flux__inner { grid-template-columns: 1fr; }
  .flux__mascot { right: -10px; bottom: -40px; width: 110px; }
}

/* ==========================================================================
   11. Precios
   ========================================================================== */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  max-width: 940px;
  margin-inline: auto;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 36px);
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.plan--featured {
  background:
    radial-gradient(100% 90% at 100% 0%, color-mix(in srgb, var(--accent) 13%, transparent) 0%, transparent 56%),
    radial-gradient(90% 90% at 0% 100%, color-mix(in srgb, var(--primary) 14%, transparent) 0%, transparent 56%),
    var(--card);
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  box-shadow: var(--sh-md);
}

.plan__ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 12px;
  border-radius: var(--r-xs);
  background: var(--accent);
  color: #3B2406;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .01em;
}

/* Cabeceras de la misma altura para que las listas arranquen alineadas */
.plan__head { min-height: 132px; margin-bottom: 22px; }
.plan__head h3 { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 10px; }
.plan__price { display: flex; align-items: baseline; gap: 4px; }
.plan__amount {
  font-size: clamp(2.4rem, 3vw + 1rem, 3.2rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
}
.plan__per { font-size: 1rem; font-weight: 700; color: var(--ink-faint); }
.plan__tag { margin-top: 10px; font-size: .86rem; font-weight: 600; color: var(--ink-faint); }

.plan__list {
  display: grid;
  gap: 11px;
  margin-bottom: 26px;
  flex: 1 1 auto;
}
.plan__list li {
  position: relative;
  padding-left: 26px;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.plan__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .35em;
  width: 15px;
  height: 15px;
  background: currentColor;
  color: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.plan__list .plan__limit { color: var(--ink-faint); font-weight: 600; }
.plan__list .plan__limit::before { color: var(--accent); }

/* El botón pegado abajo, para que los dos planes alineen su CTA */
.plan > .btn { margin-top: auto; }

.plans__note {
  max-width: 620px;
  margin: 28px auto 0;
  text-align: center;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--ink-faint);
}

@media (max-width: 780px) {
  .plans { grid-template-columns: 1fr; }
  .plan__head { min-height: 0; }
}

/* ==========================================================================
   12. Capturas
   ========================================================================== */
.rail {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-block: 8px 20px;
}
.rail::-webkit-scrollbar { display: none; }

.rail__track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}

.shot {
  flex: 0 0 auto;
  width: 214px;
  scroll-snap-align: center;
}
.shot .phone { transition: transform var(--t-base); }
.shot:hover .phone { transform: translateY(-6px); }
.shot figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.rail__controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

/* ==========================================================================
   13. Pilares de privacidad
   ========================================================================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px 36px;
}
.pillar { display: grid; gap: 12px; align-content: start; }
.pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(4, 120, 87, .7);
}
:root[data-theme="dark"] .pillar__icon { color: #04150F; }
.pillar__icon svg { width: 22px; height: 22px; }
.pillar p { font-size: .9rem; line-height: 1.58; color: var(--ink-soft); }

.privacy-link { margin-top: 40px; }
.privacy-link a {
  font-weight: 700;
  font-size: .95rem;
  color: var(--primary-dark);
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  padding-bottom: 2px;
  transition: border-color var(--t-fast);
}
.privacy-link a:hover { border-bottom-color: var(--primary); }

/* ==========================================================================
   14. FAQ
   ========================================================================== */
.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px 48px;
}
.qa { padding-block: 22px; border-top: 1px solid var(--line-strong); }
.qa h3 { margin-bottom: 8px; font-size: 1rem; }
.qa p { font-size: .9rem; line-height: 1.58; color: var(--ink-soft); }

/* ==========================================================================
   15. Cierre y pie
   ========================================================================== */
.closer {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding-block: clamp(72px, 9vw, 116px);
  background:
    radial-gradient(70% 120% at 50% 0%, color-mix(in srgb, var(--primary) 16%, transparent) 0%, transparent 62%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.closer__inner { text-align: center; }
.closer h2 { max-width: 20ch; margin: 0 auto 30px; }
.closer__note { margin-top: 18px; font-size: .82rem; font-weight: 600; color: var(--ink-faint); }

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding-block: 40px;
  background: var(--bg-tint);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.site-footer__brand p {
  margin-top: 5px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-faint);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--primary-dark); }
.footer-copy {
  width: 100%;
  font-size: .76rem;
  font-weight: 600;
  color: var(--ink-faint);
  opacity: .8;
}

/* ==========================================================================
   16. Revelado al entrar en pantalla
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Si el JS no llega a ejecutarse, el contenido tiene que verse igual */
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
