/* Meefi landing — dynamic refresh
   - Inherits tokens.css (colors, type, spacing)
   - Adds: animation engine, custom cursor, reveal classes,
     Mercury/Handle-inspired effects.
*/

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  /* Match SPEI Global section background so any area that peeks through
   * (zoom-out, overscroll, very tall viewport) reads as on-brand instead
   * of generic white/grey. The grid + radial accents are baked in here. */
  background:
    radial-gradient(
      900px 600px at 18% 30%,
      rgba(5,48,206,0.12),
      transparent 65%
    ),
    radial-gradient(
      700px 500px at 88% 75%,
      rgba(90,116,236,0.10),
      transparent 60%
    ),
    var(--blue-950);
  background-attachment: fixed;
  color: var(--fg-1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle grid texture that rides on top of the radials —
 * mirrors `.spei-ambient` so the page-level look matches the section look. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: none;
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; }

/* App content needs to sit above the body::before grid texture */
#root { position: relative; z-index: 1; }

::selection { background: rgba(5,48,206,0.12); color: var(--fg-1); }

/* ============================================================
 *  REVEAL ON SCROLL — uses IntersectionObserver from app.jsx
 *  Two intensities: subtle / normal / bold (set by data-intensity)
 * ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1040ms var(--ease-out-soft),
    transform 1040ms var(--ease-out-soft);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-intensity="subtle"] .reveal { transform: translateY(12px); transition-duration: 600ms; }
[data-intensity="bold"]   .reveal { transform: translateY(40px) scale(0.97); transition-duration: 1100ms; }
[data-intensity="bold"]   .reveal.is-visible { transform: translateY(0) scale(1); }

/* ============================================================
 *  CUSTOM CURSOR
 * ============================================================ */
.cursor-on, .cursor-on * { cursor: none !important; }
.cursor-on a, .cursor-on button, .cursor-on [data-hover] { cursor: none !important; }

.mf-cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 2147483647;
  /* JS sets a translate(Xpx, Ypx) on .mf-cursor; the inner
     element handles its own centring relative to that origin. */
  transform: translate(-50%, -50%);
  transition: opacity 200ms ease;
}
.mf-cursor.is-hidden { opacity: 0; }

/* Restore native cursor inside the tweaks panel so controls feel right */
.cursor-on .twk-panel,
.cursor-on .twk-panel * { cursor: auto !important; }
.cursor-on .twk-panel button,
.cursor-on .twk-panel [role="button"],
.cursor-on .twk-panel input[type="range"] { cursor: pointer !important; }

.mf-cursor__dot {
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transition: width 180ms var(--ease-out-soft),
              height 180ms var(--ease-out-soft),
              background 180ms ease;
}
.mf-cursor.is-active .mf-cursor__dot {
  width: 14px; height: 14px;
}

.mf-cursor__ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 32px; height: 32px;
  border: 1.5px solid rgba(5,48,206,0.55);
  border-radius: 50%;
  transition: width 240ms var(--ease-out-soft),
              height 240ms var(--ease-out-soft),
              background 240ms ease,
              border-color 240ms ease,
              opacity 240ms ease;
}
.mf-cursor.is-active .mf-cursor__ring {
  width: 56px; height: 56px;
  background: rgba(5,48,206,0.10);
  border-color: rgba(5,48,206,0.45);
}

/* Variant: arrow — sleek minimalist pointer in brand indigo.
   Inline <svg> is rendered by the component for reliable cross-
   browser rendering (avoids the mask: url(data:image/svg+xml...)
   un-encoded-chars footgun on Safari/Firefox).

   The .mf-cursor wrapper is centred on the pointer position via
   translate(-50%, -50%) in JS — so the wrapper's MIDDLE sits at
   the cursor coord. The arrow's tip lives at viewBox (4, 3) i.e.
   the upper-left of the 22×22 SVG; we shift the SVG down-right
   by (mid - tipCoord) so the tip lands at the cursor:
      x: (11 - 3.67) / 22 ≈ 33%
      y: (11 - 2.75) / 22 ≈ 38%   */
.mf-cursor.style-arrow .mf-cursor__arrow {
  display: block;
  color: var(--accent);
  transform: translate(33%, 38%);
  filter: drop-shadow(0 2px 4px rgba(15,23,42,0.28));
  transition: transform 180ms var(--ease-out-soft);
}
.mf-cursor.style-arrow.is-active .mf-cursor__arrow {
  transform: translate(33%, 38%) scale(1.15);
}

/* ============================================================
 *  FLOATING BADGES / TOOLTIPS in hero
 * ============================================================ */
.float-card {
  position: absolute;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229,231,235,0.6);
  border-radius: 16px;
  padding: 12px 17px;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.float-anim { animation: float-y 6.3s ease-in-out infinite; }
.float-anim.delay-1 { animation-delay: 1.2s; }
.float-anim.delay-2 { animation-delay: 2.4s; }

/* ============================================================
 *  TICKER / number-roll
 * ============================================================ */
.ticker-digit {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
 *  SECURITY — dense circuit grid + structural cards
 *
 *  Circuit: many short orthogonal traces at small scale, with
 *  comet-beam pulses (rect with gradient fill, rotate="auto"
 *  along the path) — same elegant flow vocabulary as the
 *  Audiences node connectors.
 * ============================================================ */
.sec-circuit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms var(--ease-out-soft);
  z-index: 0;
  /* fade the edges so the grid feels embedded, not cropped */
  mask-image: radial-gradient(ellipse 85% 75% at center, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at center, #000 60%, transparent 100%);
}
.sec-circuit.is-on { opacity: 1; }
.sec-circuit svg { width: 100%; height: 100%; display: block; }

.sec-circuit .sec-trace {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.6;
  opacity: 0.14;
}
.sec-circuit .sec-node {
  fill: var(--accent);
  opacity: 0.32;
}

/* ============================================================
 *  Card grid
 * ============================================================ */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

/* ============================================================
 *  SECURITY CARD — structural panel
 *  - Left accent bar (brand blue)
 *  - Icon plaque + title share the first row
 *  - Status row at the bottom: pulsing dot · "Activo" · chip
 * ============================================================ */
.sec-card {
  position: relative;
  padding: 31px 34px 26px 38px;   /* extra left padding makes room for the bar */
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(229,231,235,0.85);
  box-shadow: var(--shadow-card);
  transition:
    transform 350ms var(--ease-out-soft),
    box-shadow 350ms var(--ease-smooth),
    border-color 350ms var(--ease-smooth);
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: default;
  overflow: hidden;
}
.sec-card:hover {
  transform: translateY(-4px);
  border-color: rgba(5,48,206,0.28);
  box-shadow: var(--shadow-card-hover);
}

/* Left accent bar — brand blue, anchored to the card's left edge */
.sec-card-bar {
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    rgba(5,48,206,0.4) 100%
  );
  box-shadow: 0 0 12px rgba(5,48,206,0.35);
}

/* ---------- Head: icon + title ---------- */
.sec-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sec-card-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg,
    rgba(5,48,206,0.14),
    rgba(5,48,206,0.04));
  border: 1px solid rgba(5,48,206,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sec-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--blue-900);
  line-height: 1.25;
  letter-spacing: -0.005em;
}

/* ---------- Description ---------- */
.sec-card-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg-2);
}

/* ---------- Status footer ---------- */
.sec-card-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(229,231,235,1);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.sec-card-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #16A34A;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.16),
              0 0 8px rgba(22,163,74,0.6);
  animation: secCardDot var(--pulse-cycle) var(--ease-smooth) infinite;
  flex: 0 0 auto;
}
@keyframes secCardDot {
  0%        { box-shadow: 0 0 0 3px rgba(22,163,74,0.16),
                          0 0 8px rgba(22,163,74,0.6); }
  20%       { box-shadow: 0 0 0 6px rgba(22,163,74,0.04),
                          0 0 14px rgba(22,163,74,0.9); }
  40%, 100% { box-shadow: 0 0 0 3px rgba(22,163,74,0.16),
                          0 0 8px rgba(22,163,74,0.6); }
}
.sec-card-status-label {
  color: #15803D;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
.sec-card-status-sep {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(229,231,235,0) 0%,
    rgba(229,231,235,1) 50%,
    rgba(229,231,235,0) 100%
  );
}
.sec-card-status-chip {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 900px) {
  .sec-grid { grid-template-columns: 1fr; }
}

/* Unified trust metrics strip (merged Tracción → Seguridad) */
.sec-trust {
  display: flex; align-items: center; justify-content: center; flex-wrap: nowrap;
  gap: 0; margin: 72px auto 0; max-width: none;
}
.sec-trust-item {
  display: flex; flex-direction: row; align-items: baseline; gap: 8px;
  padding: 0 clamp(20px, 3vw, 38px); white-space: nowrap;
}
.sec-trust-v {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.6rem, 1.4vw + 0.8rem, 2.1rem); line-height: 1;
  letter-spacing: -0.03em; color: var(--accent);
}
.sec-trust-l { font-family: var(--font-body); font-size: 14px; color: var(--fg-2); white-space: nowrap; }
.sec-trust-div { width: 1px; background: rgba(17,24,39,0.1); align-self: center; height: 22px; }
@media (max-width: 760px) {
  .sec-trust { gap: 18px 0; }
  .sec-trust-div { display: none; }
}

/* ============================================================
 *  FOOTNOTE REFERENCES — numbered superscripts next to legal
 *  claims. Small, brand-coloured, and weightless in the layout
 *  (line-height:0 + vertical-align) so they never push lines
 *  apart or break wrapping on phones/tablets.
 * ============================================================ */
.fn-ref {
  font-size: 0.62em;
  font-weight: 600;
  color: var(--fg-3);
  vertical-align: super;
  line-height: 0;
  margin-left: 1px;
  letter-spacing: 0;
  white-space: nowrap;
  font-variant-numeric: normal;
  font-feature-settings: normal;
}
/* On the dark final-CTA card the brand blue would vanish — use a
   light tone so the marker stays legible without breaking the design. */
.final-card .fn-ref { color: rgba(255,255,255,0.82); }

/* ---- Notas legales / Legal notes — discreet numbered list that
        sits just before the footer and holds the footnote copy. ---- */
.footnotes {
  background: var(--bg-1);
  border-top: 1px solid var(--line-soft);
  padding: 28px 0 28px;
}
.footnotes-title {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.footnotes-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footnotes-item {
  display: flex;
  gap: 9px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--fg-3);
}
.footnotes-num {
  flex: 0 0 auto;
  min-width: 14px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.footnotes-text { flex: 1 1 auto; }


/* ============================================================
 *  HANDLE-STYLE SPOTLIGHT — radial gradient that follows mouse
 *  Set --mx and --my as percentages on the parent.
 * ============================================================ */
.spotlight {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.spotlight::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(
      600px circle at var(--mx, 50%) var(--my, 50%),
      rgba(5,48,206,0.12),
      rgba(5,48,206,0.06) 30%,
      transparent 60%
    );
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
  z-index: 0;
}
.spotlight:hover::before { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }

/* ============================================================
 *  FEATURES — 3D WIREFRAME VISUALISATIONS (right-panel)
 *  Used by FeaturesVis3D.jsx
 * ============================================================ */
.vis3d-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
}
/* The features window runs ~72px off-screen to the right, so content
   centered in the full window lands ~36px right of the VISIBLE centre.
   Pad the right so centred SVG/glyph scenes sit in the visible middle. */
@media (min-width: 961px) {
  .features-dark .vis3d-scene { padding-right: 72px; }
}

/* ---------- CARD (Cuentas empresariales) ---------- */
.vis3d-card-scene { perspective: 1200px; }
.vis3d-card-orbit {
  width: 280px; height: 178px;
  transform-style: preserve-3d;
  animation: vis3dCardSpin 20s linear infinite,
             vis3dCardBob 7s ease-in-out infinite;
}
.vis3d-card {
  position: relative;
  width: 100%; height: 100%;
  border: 1.4px solid rgba(5,48,206,0.85);
  border-radius: 16px;
  background:
    linear-gradient(135deg,
      rgba(5,48,206,0.05),
      rgba(5,48,206,0.0));
  box-shadow:
    inset 0 0 24px rgba(5,48,206,0.06),
    0 0 22px rgba(5,48,206,0.10);
  transform-style: preserve-3d;
}
.vis3d-card::before,
.vis3d-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: rgba(5,48,206,0.12);
}
.vis3d-card::before { top: 38px; }
.vis3d-card::after  { bottom: 38px; }
.vis3d-card-strip {
  position: absolute;
  left: 24px; right: 24px;
  bottom: 24px;
  height: 1.5px;
  background: linear-gradient(
    to right,
    rgba(5,48,206,0) 0%,
    rgba(5,48,206,0.7) 35%,
    rgba(5,48,206,0.7) 65%,
    rgba(5,48,206,0) 100%
  );
}
.vis3d-card-chip {
  position: absolute;
  top: 24px; left: 24px;
  width: 36px; height: 26px;
  border: 1px solid rgba(5,48,206,0.55);
  border-radius: 4px;
  background:
    linear-gradient(to bottom,
      rgba(5,48,206,0.10) 50%,
      transparent 50%);
  background-size: 100% 7px;
}
@keyframes vis3dCardSpin {
  0%   { transform: rotateY(-22deg) rotateX(8deg); }
  50%  { transform: rotateY( 22deg) rotateX(8deg); }
  100% { transform: rotateY(-22deg) rotateX(8deg); }
}
@keyframes vis3dCardBob {
  0%, 100% { translate: 0 -6px; }
  50%      { translate: 0  6px; }
}

/* ---------- CURRENCY SELECTOR (Multidivisa) ---------- */
.vis3d-cur-scene {
  display: flex;
  align-items: center;
  justify-content: center;
}
.vis3d-cur-stack {
  position: relative;
  width: 400px;
  height: 320px;
}
.vis3d-cur-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transform: scale(0.86);
  animation: vis3dCurCycle var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
}
/* Cycle (over the full 6s):
 *   0%   hidden/small
 *   8%   fully visible + scaled
 *  25%   still visible (1.5s active window starting at 0%)
 *  33%   faded out
 *  100%  hidden until next cycle starts
 */
@keyframes vis3dCurCycle {
  0%   { opacity: 0; transform: scale(0.86); }
  8%   { opacity: 1; transform: scale(1);    }
  25%  { opacity: 1; transform: scale(1);    }
  33%  { opacity: 0; transform: scale(0.92); }
  100% { opacity: 0; transform: scale(0.86); }
}
.vis3d-cur-glyph {
  font-family: var(--font-display);
  font-size: 220px;
  font-weight: 300;
  line-height: 1;
  color: rgba(5,48,206,0.95);
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(5,48,206,0.12);
}
.vis3d-cur-code {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgba(5,48,206,0.75);
  text-transform: uppercase;
}

/* ============================================================
 *  FEATURES — DARK BLUE PALETTE OVERRIDE
 *  Scoped to .features-dark so the same accordion / stage
 *  components keep working everywhere else.
 * ============================================================ */
.features-dark {
  background:
    radial-gradient(
      900px 600px at 18% 30%,
      rgba(5,48,206,0.12),
      transparent 65%
    ),
    radial-gradient(
      700px 500px at 88% 75%,
      rgba(90,116,236,0.10),
      transparent 60%
    ),
    var(--blue-950);
  color: #EAF0FB;
  padding: 96px 0;
}
.features-ambient {
  position: absolute;
  inset: 0;
  background-image: none;
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Section heading + eyebrow inside features-dark */
.features-dark .section-h h2          { color: #FFFFFF; }
.features-dark .section-h h2 .twist   {
  background: linear-gradient(90deg, #8CA0F6 0%, #B7CCFB 50%, #8CA0F6 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.features-dark .eyebrow {
  color: #B7CCFB;
  background: rgba(90,116,236,0.10);
  border-color: rgba(140,160,246,0.28);
}
.features-dark .eyebrow .dot {
  background: #8CA0F6;
  box-shadow: 0 0 0 4px rgba(140,160,246,0.16),
              0 0 12px rgba(140,160,246,0.7);
}

/* Accordion */
.features-dark .feat-row              { border-bottom: 1px solid rgba(140,160,246,0.18); }
.features-dark .feat-row:first-child  { border-top:    1px solid rgba(140,160,246,0.18); }
.features-dark .feat-q-title          { color: #FFFFFF; }
.features-dark .feat-row:hover  .feat-q-title { color: #B7CCFB; }
.features-dark .feat-row.is-open .feat-q-title { color: #B7CCFB; }
.features-dark .feat-icon {
  border-color: rgba(140,160,246,0.32);
  color: rgba(234,240,251,0.65);
  background: rgba(140,160,246,0.04);
}
.features-dark .feat-row.is-open .feat-icon {
  background: #8CA0F6;
  border-color: #8CA0F6;
  color: var(--blue-950);
}
.features-dark .feat-a-inner p {
  color: rgba(234,240,251,0.7);
}
.features-dark .feat-progress-fill {
  background: #8CA0F6;
}

/* Live stage — dark glass panel */
.features-dark .feat-stage {
  background:
    radial-gradient(
      400px 300px at 70% 30%,
      rgba(5,48,206,0.22),
      transparent 65%
    ),
    linear-gradient(135deg,
      rgba(11,26,71,0.95),
      rgba(4,10,34,0.95));
  border: 1px solid rgba(140,160,246,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 22px 40px -22px rgba(0,0,0,0.5),
    0 0 0 1px rgba(5,48,206,0.06);
}

/* Pause button on dark */
.features-dark .feat-pause {
  background: rgba(140,160,246,0.10);
  border-color: rgba(140,160,246,0.28);
  color: rgba(234,240,251,0.75);
  backdrop-filter: blur(8px);
}
.features-dark .feat-pause:hover {
  background: rgba(140,160,246,0.20);
  color: #FFFFFF;
  border-color: rgba(140,160,246,0.55);
}

/* Pull quote */
.features-dark .feat-quote      { color: #FFFFFF; }
.features-dark .feat-quote-name { color: #FFFFFF; }
.features-dark .feat-quote-role { color: rgba(234,240,251,0.6); }

/* Card visualization (Cuentas empresariales) — lighter strokes */
.features-dark .vis3d-card {
  border-color: rgba(140,160,246,0.9);
  background: linear-gradient(135deg,
    rgba(140,160,246,0.06),
    rgba(140,160,246,0.0));
  box-shadow:
    inset 0 0 24px rgba(140,160,246,0.08),
    0 0 22px rgba(140,160,246,0.12);
}
.features-dark .vis3d-card::before,
.features-dark .vis3d-card::after {
  background: rgba(140,160,246,0.22);
}
.features-dark .vis3d-card-strip {
  background: linear-gradient(
    to right,
    rgba(140,160,246,0) 0%,
    rgba(140,160,246,0.7) 35%,
    rgba(140,160,246,0.7) 65%,
    rgba(140,160,246,0) 100%
  );
}
.features-dark .vis3d-card-chip {
  border-color: rgba(140,160,246,0.6);
  background: linear-gradient(to bottom,
    rgba(140,160,246,0.12) 50%,
    transparent 50%);
  background-size: 100% 7px;
}

/* Currency selector glyph + code — lighter on dark */
.features-dark .vis3d-cur-glyph {
  color: rgba(183,204,251,0.95);
  text-shadow: 0 0 28px rgba(140,160,246,0.30);
}
.features-dark .vis3d-cur-code {
  color: rgba(183,204,251,0.78);
}

/* ============================================================
 *  CONTINUITY OPERATIVA — white "reset" between Transparencia
 *  (dark) and Features (white). Left-aligned editorial layout
 *  with a two-column comparison.
 * ============================================================ */
.cont-section {
  background: #FFFFFF;
  color: var(--ink);
  padding: 160px 0;
  position: relative;
}
.cont-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header (left-aligned) ---------- */
.cont-header {
  max-width: 720px;
  margin: 0 0 64px;
}
.cont-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(5,48,206,0.07);
  border: 1px solid rgba(5,48,206,0.16);
  border-radius: 999px;
  margin-bottom: 22px;
}
.cont-badge-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(5,48,206,0.14),
              0 0 10px rgba(5,48,206,0.45);
  animation: contBadgeDot var(--pulse-cycle) var(--ease-smooth) infinite;
}
@keyframes contBadgeDot {
  0%        { box-shadow: 0 0 0 4px rgba(5,48,206,0.14),
                          0 0 10px rgba(5,48,206,0.45); }
  20%       { box-shadow: 0 0 0 8px rgba(5,48,206,0.04),
                          0 0 16px rgba(5,48,206,0.7);  }
  40%, 100% { box-shadow: 0 0 0 4px rgba(5,48,206,0.14),
                          0 0 10px rgba(5,48,206,0.45); }
}
.cont-headline {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 3.2vw + 0.4rem, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 18ch;
}
.cont-lede {
  margin: 0;
  max-width: 56ch;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* ---------- Two-column comparison ---------- */
.cont-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 48px;
  align-items: start;
}
.cont-divider-v {
  align-self: stretch;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(15,23,42,0.10) 18%,
    rgba(15,23,42,0.10) 82%,
    transparent 100%
  );
}
.cont-col-label {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 28px;
}
.cont-col-label-good {
  color: var(--accent);
}

.cont-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cont-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
}
.cont-item-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.cont-item-icon-bad {
  color: #DC2626;
  background: rgba(220,38,38,0.08);
}
.cont-item-icon-good {
  color: #15803D;
  background: rgba(22,163,74,0.10);
}
.cont-x, .cont-check {
  width: 14px;
  height: 14px;
  display: block;
}
.cont-item-text {
  flex: 1;
  text-wrap: pretty;
}

/* ---------- Horizontal divider + closing line ---------- */
.cont-divider-h {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(15,23,42,0.10) 20%,
    rgba(15,23,42,0.10) 80%,
    transparent 100%
  );
  margin: 72px 0 28px;
}
.cont-close {
  margin: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .cont-section { padding: 96px 0; }
  .cont-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cont-divider-v {
    width: auto;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent 0%,
      rgba(15,23,42,0.10) 20%,
      rgba(15,23,42,0.10) 80%,
      transparent 100%
    );
  }
}

/* ============================================================
 *  PRODUCTS — single horizontal row of 6 columns with dividers
 *  Dark-blue palette — paired with SPEI Global + Transparencia
 *  to extend the "deep" narrative moment into a third beat.
 * ============================================================ */
.products-dark {
  background:
    radial-gradient(
      900px 600px at 82% 28%,
      rgba(5,48,206,0.12),
      transparent 65%
    ),
    radial-gradient(
      700px 500px at 12% 78%,
      rgba(90,116,236,0.10),
      transparent 60%
    ),
    var(--blue-950);
  color: #EAF0FB;
}
.products-ambient {
  position: absolute;
  inset: 0;
  background-image: none;
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Recolor the shared SectionHeading + Eyebrow inside Products only */
.products-dark .section-h h2          { color: #FFFFFF; }
.products-dark .section-h h2 .twist   {
  background: linear-gradient(90deg, #8CA0F6 0%, #B7CCFB 50%, #8CA0F6 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.products-dark .eyebrow {
  color: #B7CCFB;
  background: rgba(90,116,236,0.10);
  border-color: rgba(140,160,246,0.28);
}
.products-dark .eyebrow .dot {
  background: #8CA0F6;
  box-shadow: 0 0 0 4px rgba(140,160,246,0.16),
              0 0 12px rgba(140,160,246,0.7);
}

.products-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
}
.product-col {
  position: relative;
  text-align: center;
  padding: 28px 14px 32px;
  border-left: 1px solid rgba(140,160,246,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  isolation: isolate;
  transition: background 350ms var(--ease-out-soft),
              box-shadow 350ms var(--ease-out-soft);
}
.product-col:first-child { border-left: 0; }

/* Spotlight: a radial glow that follows the cursor inside the column.
 * --mx / --my are set by Products.jsx on mousemove (percentages). */
.product-col::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(140,160,246,0.22),
    rgba(140,160,246,0.06) 35%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 320ms var(--ease-out-soft);
  pointer-events: none;
  z-index: -1;
}
.product-col:hover::before { opacity: 1; }

/* Subtle outline glow + lift so the active column reads as "in focus" */
.product-col:hover {
  background: rgba(140,160,246,0.04);
  box-shadow:
    inset 0 0 0 1px rgba(140,160,246,0.32),
    0 0 32px -6px rgba(5,48,206,0.45),
    0 0 80px -20px rgba(140,160,246,0.35);
}

/* Dim the other columns slightly when the row is hovered, so the
 * focused column visually pops. */
.products-row:hover .product-col:not(:hover) {
  opacity: 0.55;
  transition: opacity 350ms var(--ease-out-soft);
}

.product-scene {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 150px;
  margin-bottom: 36px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: #8CA0F6;
  background-image:
    linear-gradient(to right, rgba(140,160,246,0.20) 1px, transparent 1px),
    linear-gradient(to right, rgba(140,160,246,0.20) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140,160,246,0.20) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140,160,246,0.20) 1px, transparent 1px);
  background-size:
    1px 100%,
    1px 100%,
    100% 1px,
    100% 1px;
  background-position:
    33.333% 0,
    66.667% 0,
    0 33.333%,
    0 66.667%;
  background-repeat: no-repeat;
  transition: color 350ms var(--ease-out-soft), transform 350ms var(--ease-out-soft);
}
.product-col:hover .product-scene {
  color: #B7CCFB;
  transform: scale(1.03);
}

.product-title {
  margin: 0 0 12px 0;
  font-size: 17px;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.25;
  letter-spacing: -0.01em;
  min-height: 44px;
  transition: color 250ms ease;
}
.product-col:hover .product-title { color: #B7CCFB; }

.product-desc {
  margin: 0 0 16px 0;
  font-size: 13px;
  color: rgba(234,240,251,0.65);
  line-height: 1.55;
  max-width: 200px;
}

.product-pop {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #B7CCFB;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(90,116,236,0.14);
  border: 1px solid rgba(140,160,246,0.22);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 320ms var(--ease-out-soft),
              transform 320ms var(--ease-out-soft);
  white-space: nowrap;
  margin-top: auto;
}
.product-col:hover .product-pop {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .products-row { grid-template-columns: repeat(3, 1fr); }
  .product-col:nth-child(3n+1) { border-left: 0; }
}
@media (max-width: 640px) {
  .products-row { grid-template-columns: repeat(2, 1fr); }
  .product-col { border-left: 0; }
}

/* ============================================================
 *  PRODUCT TILE — hover lift + tooltip pop (legacy, unused)
 * ============================================================ */
.product-tile {
  position: relative;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 24px;
  transition: transform 350ms var(--ease-out-soft),
              border-color 350ms var(--ease-out-soft),
              background 350ms var(--ease-out-soft),
              box-shadow 350ms var(--ease-out-soft);
}
.product-tile:hover {
  transform: translateY(-4px);
  background: var(--bg-1);
  border-color: rgba(229,231,235,0.7);
  box-shadow: var(--shadow-elegant);
}
.product-tile .tile-pop {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 8px);
  bottom: 28px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 300ms var(--ease-out-soft),
              transform 300ms var(--ease-out-soft);
  pointer-events: none;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.product-tile:hover .tile-pop { opacity: 1; transform: translate(-50%, 0); }

.product-tile .tile-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(5,48,206,0.08);
  color: var(--accent);
  margin-bottom: 16px;
  transition: background 350ms var(--ease-out-soft),
              transform 350ms var(--ease-out-soft);
}
.product-tile:hover .tile-icon {
  background: var(--accent);
  color: #fff;
  transform: scale(1.06) rotate(-3deg);
}

/* ============================================================
 *  FEATURE CARD (Mercury-style 2-col) — live mini visualisation
 * ============================================================ */
.feature-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 400ms var(--ease-out-soft),
              border-color 400ms var(--ease-out-soft),
              box-shadow 400ms var(--ease-out-soft);
  position: relative;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(5,48,206,0.25);
  box-shadow: var(--shadow-card-hover);
}
.feature-card .stage {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #F3F6FB, #ECF0F8);
  position: relative;
  overflow: hidden;
}

/* ============================================================
 *  FEATURES — FAQ-style accordion list + live stage
 * ============================================================ */
.feat-row {
  border-bottom: 1px solid rgba(229,231,235,0.7);
}
.feat-row:first-child { border-top: 1px solid rgba(229,231,235,0.7); }
.feat-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding: 16px 4px;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--font-body);
  cursor: pointer;
  transition: padding 300ms var(--ease-out-soft);
}
.feat-q-title {
  font-size: 17px;
  font-weight: 400;
  color: var(--fg-2);
  letter-spacing: -0.01em;
  transition: color 200ms ease;
}
.feat-row:hover .feat-q { padding-left: 8px; }
.feat-row:hover .feat-q-title { color: var(--accent); }
.feat-row.is-open .feat-q-title { color: var(--accent); }

.feat-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 30px;
  color: var(--fg-2);
  transition: transform 300ms var(--ease-out-soft),
              background 300ms ease,
              border-color 300ms ease,
              color 300ms ease;
}
.feat-row.is-open .feat-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}

.feat-a {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 480ms var(--ease-out-soft),
              opacity 320ms ease;
}
.feat-row.is-open .feat-a {
  max-height: 220px;
  opacity: 1;
}
.feat-a-inner {
  padding: 0 0 16px 0;
  max-width: 460px;
  position: relative;
}
.feat-a-inner p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-2);
}

.feat-progress {
  position: absolute;
  left: -4px; right: -4px; bottom: 0;
  height: 1.5px;
  overflow: hidden;
}
.feat-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}
@keyframes featProgress {
  from { width: 0; }
  to   { width: 100%; }
}

/* ---------- Pagos locales — full-bleed camera flow ---------- */
.lp-stage {
  position: absolute; inset: 0; overflow: hidden; background: #fff;
}
.lp-screen {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 460ms var(--ease-out-soft);
}
.lp-screen.is-on { opacity: 1; }
.lp-screen img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  user-select: none; -webkit-user-drag: none;
  will-change: object-position, filter;
  transition: object-position 1150ms var(--ease-out-soft),
              filter 460ms ease;
}
.lp-screen.is-blur img { filter: blur(5px); }
.lp-cursor {
  position: absolute; width: 22px; height: 22px;
  margin: -1px 0 0 -1px; z-index: 4; pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35));
  transition: left 1000ms var(--ease-out-soft),
              top 1000ms var(--ease-out-soft),
              opacity 280ms ease,
              transform 160ms ease;
}
.lp-cursor.is-press { transform: scale(0.8); }
.lp-cursor svg { display: block; }
.lp-click {
  position: absolute; width: 30px; height: 30px;
  margin: -15px 0 0 -15px; z-index: 3; pointer-events: none;
  border-radius: 50%; border: 2px solid rgba(5,48,206,0.55);
  animation: lpClick 620ms var(--ease-out-soft) forwards;
}
@keyframes lpClick {
  0%   { opacity: 0.85; transform: scale(0.3); }
  100% { opacity: 0;    transform: scale(1.5); }
}

/* Bleed the grid's right edge past the viewport so the presentation
 * window runs off-screen to the right (section overflow:hidden clips it),
 * giving a "browser window tucked into the page" feel. */
.features-dark .feat-grid {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw - 72px);
}
.feat-stage-wrap {
  width: 100%;
  position: sticky;
  top: 124px;
}
.feat-stage {
  position: relative;
  width: 100%;
  height: clamp(560px, 68vh, 800px);
  background: linear-gradient(135deg, #F3F6FB, #ECF0F8);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(229,231,235,0.6);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 40px 80px -32px rgba(27,31,38,0.28),
    0 12px 28px -16px rgba(27,31,38,0.12);
}
.feat-stage-slot {
  position: absolute;
  inset: 0;
  transition: opacity 520ms var(--ease-out-soft),
              transform 520ms var(--ease-out-soft);
  transform-origin: center center;
}
.feat-pause {
  position: absolute;
  left: 16px; bottom: 16px;
  width: 28px; height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-2);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease,
              transform 200ms var(--ease-out-soft), border-color 200ms ease;
  z-index: 3;
  padding: 0;
}
.feat-pause:hover {
  background: #fff;
  color: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}

@media (max-width: 960px) {
  .feat-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
  .features-dark .feat-grid { margin-right: 0 !important; margin-left: 0 !important; }
  .feat-stage-wrap { position: static; }
  /* Give the live stage real vertical room on tablet/phone so the flow
   * demos (which scale to fit) read at a usable size instead of being
   * squashed into a tiny 4:3 sliver. */
  .feat-stage { aspect-ratio: auto; height: clamp(440px, 116vw, 560px); }
}
@media (max-width: 520px) {
  /* Reclaim side padding on phones so the demos render larger, while
   * staying symmetric (no full-bleed negative-margin tricks). */
  .features-dark .wrap { padding-left: 16px; padding-right: 16px; }
  .feat-stage { border-radius: 14px; height: clamp(430px, 122vw, 520px); }
}

/* ============================================================
 *  FAQ accordion
 * ============================================================ */
.faq-row {
  border-bottom: 1px solid rgba(229,231,235,0.7);
}
.faq-row:first-child { border-top: 1px solid rgba(229,231,235,0.7); }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding: 22px 4px;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--fg-1);
  cursor: pointer;
  transition: color 200ms ease, padding 300ms var(--ease-out-soft);
}
.faq-row:hover .faq-q { color: var(--accent); padding-left: 8px; }
.faq-row.is-open .faq-q { color: var(--accent); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 28px;
  transition: transform 300ms var(--ease-out-soft),
              background 300ms ease,
              border-color 300ms ease,
              color 300ms ease;
}
.faq-row.is-open .faq-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 450ms var(--ease-out-soft),
              padding 450ms var(--ease-out-soft),
              opacity 300ms ease;
  opacity: 0;
}
.faq-row.is-open .faq-a {
  max-height: 320px;
  opacity: 1;
}
.faq-a-inner {
  padding: 0 0 22px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 640px;
}

/* ============================================================
 *  Legal — standalone document pages (Aviso / Términos / Protección),
 *  each its own URL, cross-linked by the pill nav below.
 * ============================================================ */
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 180ms ease;
}
.legal-back:hover { color: var(--fg-1); }
.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}
.legal-tab {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  background: var(--bg-3);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.legal-tab:hover { color: var(--fg-1); }
.legal-tab.is-active {
  background: var(--accent);
  color: #fff;
}
.legal-panel {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-1);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 48px;
}
.legal-meta {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--fg-2);
  background: var(--bg-3);
  border-left: 3px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 28px;
}
.legal-meta strong { color: var(--fg-1); font-weight: 600; }
.legal-doc-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--fg-1);
  margin: 0 0 28px;
}
.legal-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--fg-1);
  margin: 32px 0 14px;
}
.legal-panel > .legal-h3:first-of-type { margin-top: 0; }
.legal-p {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--fg-2);
  margin: 0 0 14px;
}
.legal-list { margin: 0 0 14px; padding-left: 0; list-style: none; }
.legal-list li {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--fg-2);
  margin-bottom: 8px;
}
.legal-list li strong { color: var(--fg-1); }
.legal-contact { margin: 0; }
.legal-contact-row { margin-bottom: 14px; }
.legal-contact-row dt {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-1);
  margin-bottom: 2px;
}
.legal-contact-row dd {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--fg-2);
  margin: 0;
}
.legal-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-link:hover { color: var(--accent-hover); }

@media (max-width: 640px) {
  .legal-panel { padding: 32px 24px; border-radius: 16px; }
  .legal-tabs { gap: 6px; }
  .legal-tab { font-size: 13px; padding: 9px 16px; }
}

/* ============================================================
 *  Marquee for logos — "rail" with rounded enclosure
 * ============================================================ */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.logos-rail {
  width: 100%;
  margin: 0;
  padding: 18px 0;
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
}
/* Top and bottom rail lines removed — clean carousel without enclosure */
.logos-rail-inner {
  overflow: hidden;
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee-track:hover { animation-play-state: running; }

/* ============================================================
 *  Buttons / pills
 * ============================================================ */
.btn-magnetic {
  position: relative;
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 250ms var(--ease-out-soft),
              background 250ms ease,
              color 250ms ease,
              border-color 250ms ease,
              box-shadow 250ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-magnetic.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset,
              0 6px 16px -6px rgba(5,48,206,0.45);
}
.btn-magnetic.outline {
  background: var(--bg-1);
  color: var(--fg-1);
  border-color: var(--border);
}

/* ============================================================
 *  Section header — "two-line setup + payoff"
 * ============================================================ */
.section-h {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 900px;
}
.section-h h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 2.4vw + 1rem, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg-1);
}
.section-h h2 .twist { color: var(--fg-2); display: block; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: rgba(5,48,206,0.08);
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(5,48,206,0.15);
  animation: pulse-dot var(--pulse-cycle) var(--ease-smooth) infinite;
}
@keyframes pulse-dot {
  0%        { box-shadow: 0 0 0 4px rgba(5,48,206,0.15); }
  20%       { box-shadow: 0 0 0 8px rgba(5,48,206,0.04); }
  40%, 100% { box-shadow: 0 0 0 4px rgba(5,48,206,0.15); }
}

/* ============================================================
 *  Header
 * ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: #FFFFFF;
  border-bottom: 1px solid transparent;
  box-shadow: 0 0 0 0 rgba(15,23,42,0);
  transition: box-shadow var(--duration-base) var(--ease-smooth),
              border-color var(--duration-base) var(--ease-smooth);
}
/* On scroll: keep the bar solid white, just add a soft shadow so it
 * separates from the content behind it — no hard divider line. */
.site-header.is-scrolled {
  box-shadow: 0 8px 30px -16px rgba(15,23,42,0.18);
}
/* Offset content so the fixed header doesn't overlap the hero. */
#root { padding-top: 68px; }
.site-header .wrap {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.site-header nav {
  display: flex; align-items: center; gap: 30px;
}
.site-header nav a {
  font-size: 14px;
  font-weight: 450;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 200ms ease;
}
.site-header nav a:hover { color: var(--fg-1); }

/* Mobile header: the centered nav + "Iniciar sesión" don't fit a phone
 * row, so collapse to logo + primary CTA. Tighten the side padding too. */
@media (max-width: 760px) {
  .site-header nav.site-nav { display: none; }
}
@media (max-width: 560px) {
  .header-login { display: none; }
  .site-header .wrap { padding: 0 18px; }
}

/* Hero: the headline + sub-note are set to nowrap for the desktop
 * two-line composition; on phones that overflows, so let them wrap. */
@media (max-width: 720px) {
  .hero-title { white-space: normal !important; }
  .hero-subnote { white-space: normal !important; }
}
@media (max-width: 420px) {
  .hero-title { font-size: clamp(2.1rem, 9vw, 2.6rem) !important; }
}

/* Tighten vertical rhythm on compact screens — some sections (Audiences,
 * Testimonials) still carry the desktop 156px default, which reads as too
 * much air once the page is scaled down on phones/tablets. */
@media (max-width: 960px) {
  main > section { padding-top: 96px; padding-bottom: 96px; }
}

/* ============================================================
 *  General layout
 * ============================================================ */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 960px; margin: 0 auto; padding: 0 32px; }
.wrap-tight { max-width: 720px; margin: 0 auto; padding: 0 32px; }

/* Desktop: contain content to ~65% of the viewport for generous side air */
@media (min-width: 1100px) {
  .wrap        { max-width: min(1100px, 65vw); }
  .wrap-narrow { max-width: min(960px, 65vw); }
  .spei-wrap   { max-width: min(1100px, 65vw); }
}

section { padding: 156px 0; }

/* ============================================================
 *  HERO browser-mockup
 * ============================================================ */
.browser-frame {
  position: relative;
  background: var(--bg-1);
  border-radius: 16px;
  border: 1px solid rgba(229,231,235,0.6);
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(27,31,38,0.18),
    0 12px 24px -12px rgba(5,48,206,0.10);
}
.browser-frame .chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(229,231,235,0.4);
  background: rgba(248,250,253,0.6);
}
.browser-frame .chrome .lights { display: flex; gap: 6px; }
.browser-frame .chrome .light  { width: 10px; height: 10px; border-radius: 50%; background: rgba(107,114,128,0.2); }
.browser-frame .chrome .url {
  flex: 1; text-align: center;
  font-size: 11px; color: var(--fg-3);
  font-family: var(--font-mono);
}

/* tilt for non-hero use */
.tilt-3d {
  transform: perspective(2000px) rotateX(6deg);
  transform-origin: center top;
}

/* ============================================================
 *  KBD style
 * ============================================================ */
.kbd {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  height: 18px; padding: 0 6px;
  border-radius: 4px;
  background: rgba(229,231,235,0.7);
  color: var(--fg-2);
  border: 1px solid rgba(0,0,0,0.04);
}

/* ============================================================
 *  Disconnect section — dark hub with orbits + sweeping arc
 * ============================================================ */
.disc-section {
  background: var(--blue-950);
  color: #EAF0FB;
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}
.disc-section::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 700px;
  background: radial-gradient(closest-side,
    rgba(90,116,236,0.10),
    transparent 70%);
  pointer-events: none;
}
.disc-section > .wrap { position: relative; z-index: 2; }

/* The sweeping background arc — sits in the stage, but lets its
   circle extend BEYOND stage bounds via overflow:visible. The
   section itself has overflow:hidden so it exits "off-screen". */
.disc-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

/* Headline */
.disc-head {
  text-align: center;
  margin: 0 auto 36px;
  max-width: 720px;
}
.disc-headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: #FFFFFF;
  text-wrap: balance;
}
.disc-headline span { display: block; }
.disc-headline-twist { color: rgba(234,240,251,0.55); }

/* Stage — the hub + items canvas */
.disc-stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 1080 / 700;
}

/* Orbital rings — drawn inside .disc-hub-frame so they're
   guaranteed to share the hub's centre and scale. */
.disc-orbits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
/* Each ring rotates around the hub centre (50, 50 in the local viewBox). */
.disc-orbit {
  transform-origin: 50px 50px;
  transform-box: view-box;
}
.disc-orbit-1 { animation: discOrbitCCW 53s linear infinite; }
.disc-orbit-2 { animation: discOrbitCW  78s linear infinite; }
.disc-orbit-3 { animation: discOrbitCCW 36s linear infinite; }

@keyframes discOrbitCW  { from { transform: rotate(0); }   to { transform: rotate(360deg); } }
@keyframes discOrbitCCW { from { transform: rotate(0); }   to { transform: rotate(-360deg); } }

/* Hub frame — wraps hub + orbits so they stay perfectly co-centred */
.disc-hub-frame {
  position: absolute;
  left: 6%;
  top: 50%;
  width: 38%;
  max-width: 380px;
  aspect-ratio: 1;
  transform: translateY(-50%);
  z-index: 1;
}

/* Hub itself — fills the frame; styling lives in the PNG logo, so
   no border/background here (only the outer glow halo). */
.disc-hub {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.disc-hub-glow {
  position: absolute;
  inset: -14px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%,
    rgba(90,116,236,0.45),
    rgba(5,48,206,0.12) 45%,
    transparent 75%);
  filter: blur(20px);
  pointer-events: none;
}
.disc-hub-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: contain;
  /* Subtle outer ring + projected glow under the logo */
  box-shadow:
    0 0 0 1px rgba(234,240,251,0.10),
    0 30px 80px -20px rgba(5,48,206,0.55),
    0 0 60px -10px rgba(90,116,236,0.45);
  user-select: none;
  -webkit-user-drag: none;
}

/* Items — absolute-positioned along the sweeping arc.
   Arc centre (-180, 350) r=920 in viewBox 1080×700 → at
   y = 17/50/83% the x intersection sits roughly at 56%, 65%, 56%.
   We use slightly larger left% so titles clear the curve. */
.disc-items {
  position: absolute;
  inset: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 2;
}
.disc-item {
  position: absolute;
  right: 2%;
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
/* Top: −22px (half icon height) so the ICON CENTRE lands at 17/50/83 %.
   Left: percentage offset = target-icon-centre% MINUS the fixed 58 px
   runway (number 22 + gap 14 + half-icon 22) so the icon centre's
   stage-x is a true % of stage, invariant to stage width. */
.disc-item-1 { top: calc(17% - 22px); left: calc(65.4% - 58px); }
.disc-item-2 { top: calc(50% - 22px); left: calc(69.4% - 58px); }
.disc-item-3 { top: calc(83% - 22px); left: calc(65.4% - 58px); }

.disc-item-num {
  flex: 0 0 auto;
  margin-top: 13px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(234,240,251,0.55);
  font-variant-numeric: tabular-nums;
  min-width: 22px;
}
.disc-item-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Opaque base so the arc is occluded as it passes behind the icon */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    var(--blue-950);
  border: 1px solid rgba(234,240,251,0.28);
  color: var(--blue-300);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 4px 14px -6px rgba(5,48,206,0.45);
}
.disc-item-body {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}
.disc-item-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: #FFFFFF;
}
.disc-item-desc {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(234,240,251,0.62);
  max-width: 44ch;
  text-wrap: pretty;
}

/* Responsive — under 900px: hide arc + orbits, stack vertically */
@media (max-width: 900px) {
  .disc-section { padding: 96px 0; }
  .disc-head { margin-bottom: 56px; }
  .disc-arc, .disc-orbits { display: none; }
  .disc-stage {
    aspect-ratio: auto;
    min-height: 0;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
  }
  .disc-hub-frame {
    position: static;
    transform: none;
    width: 220px;
    max-width: 220px;
  }
  .disc-items {
    position: static;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .disc-item {
    position: static;
    transform: none;
    left: auto; right: auto;
  }
}

/* ============================================================
 *  SPEI GLOBAL — dark-blue section with 55/45 asymmetric grid.
 *  LEFT  : badge, headline, paragraph, 2×2 stats grid.
 *  RIGHT : large animated globe.
 * ============================================================ */
.spei-section {
  position: relative;
  background:
    radial-gradient(
      900px 600px at 18% 30%,
      rgba(5,48,206,0.12),
      transparent 65%
    ),
    radial-gradient(
      700px 500px at 88% 75%,
      rgba(90,116,236,0.10),
      transparent 60%
    ),
    var(--blue-950);
  color: #EAF0FB;
  padding: 160px 0;
  overflow: hidden;
  isolation: isolate;
}

/* Subtle grid + vignette ambient */
.spei-ambient {
  position: absolute;
  inset: 0;
  background-image: none;
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.spei-wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: 64px;
  align-items: center;
}

/* ---------- LEFT COLUMN ---------- */
.spei-col-left {
  min-width: 0;
}

.spei-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B7CCFB;
  background: rgba(90,116,236,0.10);
  border: 1px solid rgba(140,160,246,0.28);
  border-radius: 999px;
  margin-bottom: 28px;
}
.spei-badge-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #8CA0F6;
  box-shadow: 0 0 0 4px rgba(140,160,246,0.16),
              0 0 12px rgba(140,160,246,0.7);
  animation: speiBadgeDot var(--pulse-cycle) var(--ease-smooth) infinite;
}
@keyframes speiBadgeDot {
  0%        { box-shadow: 0 0 0 4px rgba(140,160,246,0.16),
                         0 0 12px rgba(140,160,246,0.7); }
  20%       { box-shadow: 0 0 0 8px rgba(140,160,246,0.04),
                         0 0 18px rgba(140,160,246,0.9); }
  40%, 100% { box-shadow: 0 0 0 4px rgba(140,160,246,0.16),
                         0 0 12px rgba(140,160,246,0.7); }
}

.spei-headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 3.6vw + 0.5rem, 56px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  color: #FFFFFF;
  text-wrap: balance;
  max-width: 18ch;
}
.spei-headline-twist {
  color: #8CA0F6;
  /* Subtle gradient sweep on the accent line */
  background: linear-gradient(90deg, #8CA0F6 0%, #B7CCFB 50%, #8CA0F6 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spei-lede {
  margin: 28px 0 32px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: rgba(234,240,251,0.72);
  max-width: 46ch;
  text-wrap: pretty;
}

/* Stats grid — 2×2 of individual cards (small windows) */
.spei-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.spei-stat {
  background:
    linear-gradient(180deg,
      rgba(20,50,125,0.45),
      rgba(4,10,34,0.55));
  border: 1px solid rgba(140,160,246,0.18);
  border-radius: 16px;
  padding: 24px 24px 26px;
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 6px;
  align-items: center;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 8px 18px -10px rgba(0,0,0,0.5);
  transition: background var(--duration-base) var(--ease-smooth),
              border-color var(--duration-base) var(--ease-smooth),
              transform var(--duration-base) var(--ease-smooth);
}
.spei-stat:hover {
  background:
    linear-gradient(180deg,
      rgba(5,48,206,0.22),
      rgba(11,26,71,0.6));
  border-color: rgba(140,160,246,0.35);
  transform: translateY(-2px);
}
.spei-stat-icon {
  grid-row: 1 / span 2;
  grid-column: 1;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8CA0F6;
  background:
    linear-gradient(180deg, rgba(140,160,246,0.10), rgba(140,160,246,0.02)),
    rgba(4,10,34,0.6);
  border: 1px solid rgba(140,160,246,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.spei-stat-label {
  grid-row: 1;
  grid-column: 2;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(234,240,251,0.58);
}
.spei-stat-value {
  grid-row: 2;
  grid-column: 2;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 1.8vw + 0.5rem, 32px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

/* ---------- ANIMATED ROUTES (flags + cities) ---------- */
.spei-routes { margin-top: 4px; max-width: 520px; }
.sr-track { display: flex; align-items: center; gap: 14px; }
.sr-endpoint {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 16px; min-width: 0;
  background: linear-gradient(180deg, rgba(20,50,125,0.42), rgba(4,10,34,0.5));
  border: 1px solid rgba(140,160,246,0.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05),
              0 12px 28px -16px rgba(0,0,0,0.7);
}
.sr-flag {
  border-radius: 4px; display: block; object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.14);
}
.sr-meta { display: flex; flex-direction: column; gap: 3px; line-height: 1; min-width: 0; }
.sr-cap {
  font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(234,240,251,0.5); white-space: nowrap;
}
.sr-city {
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  color: #fff; white-space: nowrap;
}
.sr-origin { flex: 1; }
.sr-dest {
  flex: 1;
  overflow: hidden;
}
.sr-rotor { position: relative; width: 100%; min-width: 0; }
.sr-rotor-item {
  display: flex; align-items: center; gap: 12px; min-width: 0;
}
.sr-rotor-item.sr-rotor-out { position: absolute; inset: 0; }
.sr-rotor-in  { animation: srRotorIn  0.6s var(--ease-out-soft) both; }
.sr-rotor-out { animation: srRotorOut 0.6s var(--ease-out-soft) both; }
@keyframes srRotorIn {
  from { opacity: 0; transform: translateY(-85%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes srRotorOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(85%); }
}

.sr-line { position: relative; flex: 0 0 56px; height: 40px; }
.sr-line svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sr-path-base { fill: none; stroke: rgba(140,160,246,0.22); stroke-width: 2; }
.sr-path-flow {
  fill: none; stroke: rgba(160,195,255,0.9); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 9 13; animation: srFlow 1.5s linear infinite;
}
@keyframes srFlow { to { stroke-dashoffset: -22; } }
.sr-comet {
  position: absolute; top: 50%; left: 0; width: 7px; height: 7px;
  margin-top: -3.5px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 9px 2px rgba(160,195,255,0.9);
  animation: srComet 2.4s ease-in-out infinite;
}
@keyframes srComet {
  0%   { left: 2px; opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { left: calc(100% - 5px); opacity: 0; }
}

.sr-strip {
  margin-top: 20px; position: relative; overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.sr-strip-row { display: flex; gap: 14px; width: max-content; animation: srMarquee 42s linear infinite; }
.sr-strip .sr-flag { opacity: 0.8; }
@keyframes srMarquee { to { transform: translateX(-50%); } }

.sr-foot { margin: 18px 0 0; font-size: 13px; color: rgba(234,240,251,0.6); }
.sr-foot strong { color: #fff; font-weight: 600; }

@media (max-width: 560px) {
  .sr-track { flex-wrap: wrap; }
  .sr-line { flex-basis: 100%; height: 24px; }
}

/* ---------- RIGHT COLUMN ---------- */
.spei-col-right {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 580px;
}

/* ============================================================
 *  GLOBE
 * ============================================================ */
.globe {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1;
  margin: 0 auto;
}

/* Atmosphere — large soft halo behind sphere */
.globe-atmosphere {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(90,116,236,0.18) 0%,
      rgba(5,48,206,0.10) 38%,
      rgba(5,48,206,0.0) 62%);
  filter: blur(8px);
  pointer-events: none;
}

.globe-svg {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  /* Outer sphere glow, sits on the SVG perimeter */
  filter:
    drop-shadow(0 0 24px rgba(90,116,236,0.35))
    drop-shadow(0 12px 40px rgba(5,48,206,0.30));
}

/* Continuous rotation handled in JS (rAF) for true orthographic
   projection. CSS keeps only the per-node pulse + comet glow. */

/* Pulsing nodes — expanding ring + breathing halo */
@keyframes nodePulse {
  0%   { transform: scale(1);   opacity: 0.95; }
  70%  { transform: scale(3.6); opacity: 0;    }
  100% { transform: scale(3.6); opacity: 0;    }
}
.node-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 3.6s ease-out infinite;
}

@keyframes nodeHalo {
  0%, 100% { opacity: 0.55; transform: scale(1);    }
  50%      { opacity: 1;    transform: scale(1.25); }
}
.node-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodeHalo var(--pulse-cycle) ease-in-out infinite;
}

/* Comet — soft glow drop-shadow on top of the gradient circle */
.spei-globe-comet {
  filter: drop-shadow(0 0 4px rgba(160,195,255,0.85))
          drop-shadow(0 0 10px rgba(90,116,236,0.55));
}

/* Loading placeholder while world-atlas downloads */
.globe-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}
.globe-loading-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(140,160,246,0.7);
  animation: speiLoadDot 2s ease-in-out infinite;
}
.globe-loading-dot:nth-child(2) { animation-delay: 0.15s; }
.globe-loading-dot:nth-child(3) { animation-delay: 0.30s; }
@keyframes speiLoadDot {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.85); }
  40%           { opacity: 1;    transform: scale(1.1);  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .spei-section { padding: 96px 0; }
  .spei-wrap {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .spei-col-right {
    min-height: 460px;
    order: 2;
  }
  .globe { max-width: 460px; }
  .spei-headline { max-width: none; }
}
@media (max-width: 520px) {
  .spei-stats { grid-template-columns: 1fr; }
}

/* ============================================================
 *  AUDIENCES — "Para quien es Meefi"  (interactive world map)
 * ============================================================ */
.audm-section {
  background: #FBFAF8;
  color: var(--ink);
  position: relative;
}
.audm-wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
@media (min-width: 1100px) { .audm-wrap { max-width: min(1100px, 65vw); } }
/* Give the node diagram more width on phones so the scaled miniature
 * reads as large as possible. */
@media (max-width: 640px) { .audm-wrap { padding: 0 14px; } }

.audm-header { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.audm-badge {
  display: inline-block; padding: 6px 14px; margin-bottom: 20px;
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px;
}
.audm-headline {
  margin: 0 0 24px; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 3vw, 42px); line-height: 1.04;
  letter-spacing: -0.025em; color: var(--ink); text-wrap: balance;
}
.audm-headline-accent { color: var(--fg-2); }
@media (min-width: 620px) { .audm-headline { white-space: nowrap; text-wrap: nowrap; } }
.audm-lede {
  margin: 0 auto; max-width: 560px; font-family: var(--font-body);
  font-size: 17px; line-height: 1.55; color: var(--ink-muted); text-wrap: pretty;
}

/* ---------- Unified hub diagram (meefi sphere center) ---------- */
.audx-scroll { margin-top: 52px; width: 100%; }
.audx-diagram {
  position: relative; width: 100%; max-width: 1040px; min-width: 0;
  margin: 0 auto; aspect-ratio: 1000 / 460;
  animation: audxFloat 6.5s ease-in-out infinite;
  will-change: transform;
}
@keyframes audxFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-10px) scale(1.012); }
}
.audx-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; }
.audx-overlay { position: absolute; inset: 0; z-index: 1; }

.audx-node {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
}

.audx-side {
  position: absolute; transform: translate(-50%, -50%);
  font-family: var(--font-body); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  white-space: nowrap;
}

/* Central sphere with a soft glass halo */
.audx-sphere {
  position: relative;
  width: 132px; height: 132px;
  filter: drop-shadow(0 18px 40px rgba(5,48,206,0.45));
}
.audx-sphere::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 144px; height: 144px; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90,116,236,0.14), rgba(255,255,255,0) 72%);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.4);
  z-index: -1;
  animation: audxHalo var(--pulse-cycle) ease-in-out infinite;
}
@keyframes audxHalo {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.75;
    box-shadow: 0 0 12px 1px rgba(90,116,236,0.22);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.04);
    opacity: 1;
    box-shadow: 0 0 20px 3px rgba(90,116,236,0.34);
  }
}
.audx-sphere img { position: relative; width: 100%; height: 100%; display: block; }

/* Uniform glassmorphism boxes — same width & height, centered text */
.audx-box {
  width: 138px; height: 58px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; text-align: center;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    var(--shadow-card);
}
.audx-box-title { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; }
.audx-box-sub {
  font-family: var(--font-body); font-size: 12px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}
.audx-flag {
  width: 15px; height: 10px; border-radius: 2px; display: block;
  object-fit: cover; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(17,24,39,0.12);
}
.audx-sub-good { color: #1F9D63; }
.audx-sub-cur  { color: var(--accent); }

.audx-line {
  fill: none; stroke: rgba(17,24,39,0.16); stroke-width: 1.4;
  stroke-dasharray: 2 4; stroke-linecap: round;
}
.audx-beam {
  fill: none; stroke: var(--accent); stroke-width: 2;
  stroke-dasharray: 6 94; stroke-linecap: round;
  animation: audxBeam 2.8s linear infinite;
  filter: drop-shadow(0 0 3px rgba(5,48,206,0.5));
}
@keyframes audxBeam { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .audx-diagram { animation: none; }
  .audx-sphere::before { animation: none; }
}



.audm-toggle {
  position: relative; display: inline-flex; margin-top: 32px;
  padding: 5px; border-radius: 999px; background: #EEEFF2;
  border: 1px solid rgba(17,24,39,0.05);
}
.audm-toggle-ind {
  position: absolute; top: 5px; left: 5px; bottom: 5px; width: calc(50% - 5px);
  border-radius: 999px; background: var(--accent);
  box-shadow: 0 6px 16px -6px rgba(5,48,206,0.5);
  transition: transform 400ms var(--ease-out-soft);
}
.audm-toggle-ind.right { transform: translateX(100%); }
.audm-tab {
  position: relative; z-index: 1; appearance: none; border: 0; background: transparent;
  cursor: pointer; padding: 10px 22px; border-radius: 999px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  color: var(--ink-muted); white-space: nowrap;
  transition: color 400ms var(--ease-smooth);
}
.audm-tab.is-active { color: #fff; }

.audm-map {
  position: relative; margin: 40px auto 0; width: 100%;
  aspect-ratio: 860 / 360;
  background: linear-gradient(180deg, #F1F2F6, #EAECF1);
  border: 1px solid rgba(17,24,39,0.05);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 24px 60px -34px rgba(15,23,42,0.28);
}
.audm-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.audm-land {
  fill: rgba(17,24,39,0.05);
  stroke: rgba(17,24,39,0.16);
  stroke-width: 0.5;
  stroke-linejoin: round;
}

.audm-base { fill: none; stroke: rgba(5,48,206,0.16); stroke-width: 1; }
.audm-trail {
  fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 18 82;
  animation-name: audmBeam; animation-timing-function: linear; animation-iteration-count: infinite;
  filter: drop-shadow(0 0 5px rgba(5,48,206,0.55));
}
@keyframes audmBeam { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.audm-map.is-collect .audm-trail { animation-direction: reverse; }

.audm-dot { fill: var(--accent); }
.audm-dot-halo { fill: rgba(5,48,206,0.18); }
.audm-mx-core { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.audm-mx-pulse {
  fill: rgba(5,48,206,0.22); transform-box: fill-box; transform-origin: center;
  animation: audmMxPulse 3.4s ease-in-out infinite;
}
@keyframes audmMxPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%      { transform: scale(1.9); opacity: 0.15; }
}

.audm-overlay { position: absolute; inset: 0; pointer-events: none; }
.audm-node { position: absolute; pointer-events: auto; }

/* Corner-pinned detail cards (decoupled from the map dots so they
   never collide regardless of geography / panel height) */
.audm-corner { position: absolute; pointer-events: auto; }
.audm-corner-tl { top: 18px; left: 18px; }
.audm-corner-tr { top: 18px; right: 18px; }
.audm-corner-bl { bottom: 18px; left: 18px; }
.audm-corner-br { bottom: 18px; right: 18px; }

/* Small flag marker sitting just above each geographic dot */
.audm-marker { position: absolute; transform: translate(-50%, -150%); pointer-events: none; }
.audm-marker .audm-flag {
  width: 22px; height: 15px;
  box-shadow: 0 0 0 1px rgba(17,24,39,0.12), 0 2px 5px rgba(0,0,0,0.22);
}

.audm-node-card {
  display: flex; flex-direction: column; gap: 7px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(17,24,39,0.06); border-radius: 16px;
  padding: 13px 16px; width: max-content; max-width: 260px;
  box-shadow: var(--shadow-card);
  animation: audmFade 400ms var(--ease-out-soft);
}
@keyframes audmFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.audm-node-head { display: flex; align-items: center; gap: 9px; }
.audm-flag {
  border-radius: 3px; display: block; object-fit: cover; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(17,24,39,0.1);
}
.audm-node-name { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; }
.audm-node-cities { font-family: var(--font-body); font-size: 11.5px; color: var(--ink-muted); line-height: 1.3; white-space: nowrap; }
.audm-pills { display: flex; flex-wrap: nowrap; gap: 5px; }
.audm-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-body); font-size: 10.5px; font-weight: 500;
  color: var(--ink-muted); background: #F3F4F6;
  border: 1px solid rgba(17,24,39,0.05); padding: 3px 8px; border-radius: 999px;
}
.audm-pill-live { color: var(--accent); background: var(--accent-soft); border-color: rgba(5,48,206,0.14); }
.audm-pill-dot {
  width: 5px; height: 5px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 3px rgba(5,48,206,0.14);
}

.audm-mx-label {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  border-radius: 999px; padding: 7px 13px 7px 9px; width: max-content;
  box-shadow: 0 12px 26px -12px rgba(5,48,206,0.7);
  animation: audmFade 400ms var(--ease-out-soft);
}
.audm-mx-text { font-family: var(--font-body); font-weight: 600; font-size: 13px; white-space: nowrap; }
.audm-mx-label .audm-flag { box-shadow: 0 0 0 1px rgba(255,255,255,0.35); }

.audm-stats {
  display: flex; align-items: stretch; justify-content: center;
  gap: 0; margin: 44px auto 0; flex-wrap: wrap;
}
.audm-stat {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 0 44px; text-align: center;
}
.audm-stat-v {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 1.8vw + 0.5rem, 32px); letter-spacing: -0.02em; color: var(--ink);
}
.audm-stat-l { font-family: var(--font-body); font-size: 13px; color: var(--ink-muted); }
.audm-stat-div { width: 1px; background: rgba(17,24,39,0.1); align-self: center; height: 44px; }

@media (max-width: 760px) {
  .audm-node-card { max-width: 150px; padding: 9px 10px; }
  .audm-node-name { font-size: 12px; }
  .audm-node-cities { display: none; }
  .audm-pills .audm-pill:not(.audm-pill-live) { display: none; }
  .audm-stat { padding: 0 22px; }
  .audm-stat-div { height: 36px; }
}

/* ============================================================
 *  TRANSPARENCY — "Lo que ves es lo que pagas."
 *  Two-card comparison between Banco tradicional and Meefi.
 *  Dark-blue palette — visually paired with SPEI Global so the
 *  landing has a clear "deep" narrative moment between the lighter
 *  Audiences and Products sections.
 * ============================================================ */
.transp-section {
  position: relative;
  background:
    radial-gradient(
      900px 600px at 82% 28%,
      rgba(5,48,206,0.12),
      transparent 65%
    ),
    radial-gradient(
      700px 500px at 12% 78%,
      rgba(90,116,236,0.10),
      transparent 60%
    ),
    var(--blue-950);
  color: #EAF0FB;
  padding: 160px 0;
  overflow: hidden;
  isolation: isolate;
}

/* Subtle grid + vignette ambient — same vocab as SPEI Global */
.transp-ambient {
  position: absolute;
  inset: 0;
  background-image: none;
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.transp-wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */
.transp-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
}
.transp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B7CCFB;
  background: rgba(90,116,236,0.10);
  border: 1px solid rgba(140,160,246,0.28);
  border-radius: 999px;
  margin-bottom: 22px;
}
.transp-badge-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #8CA0F6;
  box-shadow: 0 0 0 4px rgba(140,160,246,0.16),
              0 0 12px rgba(140,160,246,0.7);
  animation: transpBadgeDot var(--pulse-cycle) var(--ease-smooth) infinite;
}
@keyframes transpBadgeDot {
  0%        { box-shadow: 0 0 0 4px rgba(140,160,246,0.16),
                          0 0 12px rgba(140,160,246,0.7); }
  20%       { box-shadow: 0 0 0 8px rgba(140,160,246,0.04),
                          0 0 18px rgba(140,160,246,0.9);  }
  40%, 100% { box-shadow: 0 0 0 4px rgba(140,160,246,0.16),
                          0 0 12px rgba(140,160,246,0.7); }
}
.transp-headline {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 3.4vw + 0.5rem, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  text-wrap: balance;
}
.transp-headline-grad {
  background: linear-gradient(90deg, #8CA0F6 0%, #B7CCFB 50%, #8CA0F6 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.transp-lede {
  margin: 0 auto;
  max-width: 540px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: rgba(234,240,251,0.72);
  text-wrap: pretty;
}

/* ---------- Compare grid (card · vs · card) ---------- */
.transp-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: stretch;
}

/* ---------- VS pivot ---------- */
.transp-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.transp-vs-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(140,160,246,0.25) 30%,
    rgba(140,160,246,0.25) 70%,
    transparent 100%
  );
}
.transp-vs-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: rgba(234,240,251,0.7);
  background:
    linear-gradient(180deg, rgba(140,160,246,0.10), rgba(140,160,246,0.02)),
    rgba(4,10,34,0.6);
  border: 1px solid rgba(140,160,246,0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 4px 10px -4px rgba(0,0,0,0.45);
  text-transform: lowercase;
  letter-spacing: 0.01em;
}

/* ---------- Cards ---------- */
.transp-card {
  position: relative;
  padding: 43px 43px 36px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}

/* LEFT: Banco tradicional — muted dark panel, no brand accent */
.transp-card-bad {
  background:
    linear-gradient(180deg,
      rgba(20,50,125,0.32),
      rgba(4,10,34,0.55));
  border: 1px solid rgba(140,160,246,0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 8px 18px -10px rgba(0,0,0,0.5);
}

/* RIGHT: Meefi — brand-blue tinted panel, glow, lifted */
.transp-card-good {
  background:
    linear-gradient(180deg,
      rgba(5,48,206,0.22),
      rgba(11,26,71,0.6));
  border: 1px solid rgba(140,160,246,0.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 4px rgba(5,48,206,0.10),
    0 22px 40px -22px rgba(5,48,206,0.55),
    0 4px 14px -6px rgba(0,0,0,0.5);
}

/* Brand pill on the Meefi card (top-right corner) */
.transp-card-badge {
  position: absolute;
  top: 18px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #FFFFFF;
  background: var(--accent);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(140,160,246,0.4),
    0 6px 14px -4px rgba(5,48,206,0.65);
}

/* ---------- Card label (uppercase line at top) ---------- */
.transp-card-label {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(234,240,251,0.55);
  margin-bottom: 28px;
  max-width: calc(100% - 80px);  /* leave room for the brand badge */
}
.transp-card-label-good {
  color: #B7CCFB;
}

/* ---------- Concept rows ---------- */
.transp-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.transp-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
}
.transp-row-key {
  color: rgba(234,240,251,0.78);
  font-weight: 500;
  flex: 0 0 auto;
}
.transp-row-val {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  text-align: right;
}
.transp-row-val-bad {
  /* muted neutral — reads as "diminished/no-emphasis" rather than alarm */
  color: rgba(234,240,251,0.55);
}
.transp-row-val-good {
  /* bright green — legible on dark blue */
  color: #6EE7A8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.transp-check {
  width: 16px;
  height: 16px;
  color: #6EE7A8;
  flex: 0 0 auto;
}

/* ---------- Footer pill (both cards) ----------
 * Both cards close with a pill so the two columns rhyme visually.
 * Left card: neutral gray pill (muted total).
 * Right card: green-tinted pill (positive close).
 * No divider line — the pill itself is the footer separator.
 * ------------------------------------------------ */
.transp-close {
  margin-top: auto;
  padding: 16px 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-radius: 16px;
  margin-top: 32px;
}

/* LEFT — gray/neutral pill */
.transp-close-bad {
  background: rgba(140,160,246,0.06);
  border: 1px solid rgba(140,160,246,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.transp-close-key-bad {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(234,240,251,0.6);
}
.transp-close-val-bad {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: rgba(234,240,251,0.85);
  letter-spacing: -0.01em;
}

/* RIGHT — green-tinted pill */
.transp-close-good {
  background: rgba(22,163,74,0.14);
  border: 1px solid rgba(110,231,168,0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 0 24px -8px rgba(22,163,74,0.35);
}
.transp-close-key {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #6EE7A8;
}
.transp-close-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #6EE7A8;
  letter-spacing: -0.01em;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .transp-section { padding: 96px 0; }
  .transp-compare {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .transp-vs {
    flex-direction: row;
    height: 44px;
  }
  .transp-vs-line {
    width: auto;
    height: 1px;
    flex: 1;
    background: linear-gradient(
      to right,
      transparent 0%,
      rgba(140,160,246,0.25) 30%,
      rgba(140,160,246,0.25) 70%,
      transparent 100%
    );
  }
}

/* ============================================================
 *  Reduced motion
 * ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Hide custom cursor on touch / small */
@media (hover: none), (max-width: 760px) {
  .mf-cursor { display: none; }
  .cursor-on, .cursor-on * { cursor: auto !important; }
}

/* ============================================================
 *  TESTIMONIALS — dark-navy spotlight
 * ============================================================ */
.tst-section {
  position: relative;
  background:
    radial-gradient(900px 600px at 82% 22%, rgba(5,48,206,0.16), transparent 62%),
    radial-gradient(700px 500px at 12% 85%, rgba(90,116,236,0.10), transparent 60%),
    var(--blue-950);
  color: #EAF0FB;
  overflow: hidden;
  isolation: isolate;
}
.tst-ambient {
  position: absolute; inset: 0;
  background-image: none;
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none; z-index: 0;
}
.tst-wrap { position: relative; z-index: 1; }

.tst-head { margin-bottom: 60px; }
.tst-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 12px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: #B7CCFB;
  background: rgba(90,116,236,0.10);
  border: 1px solid rgba(140,160,246,0.28);
  border-radius: 999px; margin-bottom: 22px;
}
.tst-badge-dot {
  width: 6px; height: 6px; border-radius: 999px; background: #8CA0F6;
  box-shadow: 0 0 0 4px rgba(140,160,246,0.16), 0 0 12px rgba(140,160,246,0.7);
  animation: speiBadgeDot 3.4s ease-in-out infinite;
}
.tst-headline {
  margin: 0;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 3vw + 0.5rem, 46px);
  line-height: 1.08; letter-spacing: -0.028em; color: #FFFFFF;
  text-wrap: balance; max-width: 22ch;
}
.tst-headline-twist {
  background: linear-gradient(90deg, #8CA0F6 0%, #B7CCFB 50%, #8CA0F6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tst-trust {
  display: flex; align-items: center; gap: 10px; margin-top: 20px;
  font-size: 14px; color: rgba(234,240,251,0.6);
}
.tst-trust strong { color: #fff; font-weight: 600; }
.tst-stars { color: #8CA0F6; letter-spacing: 2px; font-size: 13px; }

.tst-grid {
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  gap: 40px; align-items: stretch;
}

/* ---- Client list ---- */
.tst-list { display: flex; flex-direction: column; gap: 14px; }
.tst-client {
  appearance: none; cursor: pointer; text-align: left; width: 100%;
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center;
  column-gap: 13px; padding: 17px 19px;
  background: linear-gradient(180deg, rgba(20,50,125,0.28), rgba(4,10,34,0.32));
  border: 1px solid rgba(140,160,246,0.14);
  border-radius: 16px; color: inherit; font-family: var(--font-body);
  position: relative; overflow: hidden;
  transition: background 280ms var(--ease-smooth), border-color 280ms var(--ease-smooth),
              transform 280ms var(--ease-out-soft);
}
.tst-client::before {
  content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 3px;
  border-radius: 0 3px 3px 0; background: #8CA0F6;
  opacity: 0; transform: scaleY(0.3); transform-origin: center;
  transition: opacity 280ms ease, transform 280ms var(--ease-out-soft);
}
.tst-client:hover {
  border-color: rgba(140,160,246,0.3);
  background: linear-gradient(180deg, rgba(20,50,125,0.4), rgba(4,10,34,0.42));
}
.tst-client.is-active {
  border-color: rgba(140,160,246,0.5);
  background: linear-gradient(180deg, rgba(5,48,206,0.32), rgba(11,26,71,0.5));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 12px 26px -16px rgba(0,0,0,0.7);
}
.tst-client.is-active::before { opacity: 1; transform: scaleY(1); }

.tst-avatar {
  width: 40px; height: 40px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px; color: #DCE7FD;
  background: linear-gradient(135deg, rgba(90,116,236,0.55), rgba(5,48,206,0.32));
  border: 1px solid rgba(140,160,246,0.3);
}
.tst-client-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tst-client-name { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tst-client-role { font-size: 12px; color: rgba(234,240,251,0.55); white-space: nowrap; }
.tst-client-cat {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.03em; color: #8CA0F6;
  background: rgba(90,116,236,0.12); border: 1px solid rgba(140,160,246,0.22);
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}

/* ---- Featured quote ---- */
.tst-feature {
  position: relative; display: flex; flex-direction: column;
  padding: 52px 58px 48px; border-radius: 16px;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(90,116,236,0.16), transparent 60%),
    linear-gradient(165deg, rgba(20,50,125,0.5), rgba(4,10,34,0.62));
  border: 1px solid rgba(140,160,246,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 30px 70px -30px rgba(0,0,0,0.75);
  overflow: hidden;
}
.tst-quote-mark {
  position: absolute; top: 6px; right: 32px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 180px; line-height: 1; color: rgba(140,160,246,0.14);
  pointer-events: none; user-select: none;
}
.tst-quote {
  position: relative; margin: 0; flex: 1;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(20px, 1.4vw + 0.7rem, 30px);
  line-height: 1.4; letter-spacing: -0.01em; color: #F4F7FE;
  text-wrap: pretty;
  animation: tstQuoteIn 0.55s var(--ease-out-soft);
}
@keyframes tstQuoteIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.tst-author {
  display: flex; align-items: center; gap: 14px; margin-top: 36px;
  padding-top: 26px; border-top: 1px solid rgba(140,160,246,0.16);
}
.tst-avatar-lg { width: 48px; height: 48px; font-size: 15px; }
.tst-author-meta { display: flex; flex-direction: column; gap: 3px; }
.tst-author-name { font-size: 15px; font-weight: 600; color: #fff; }
.tst-author-role { font-size: 13px; color: rgba(234,240,251,0.6); }
.tst-cat-badge {
  margin-left: auto; font-size: 12px; font-weight: 500; color: #8CA0F6;
  background: rgba(90,116,236,0.12); border: 1px solid rgba(140,160,246,0.28);
  padding: 5px 12px; border-radius: 999px;
}
.tst-progress {
  margin-top: 26px; height: 3px; border-radius: 999px;
  background: rgba(140,160,246,0.14); overflow: hidden;
}
.tst-progress-fill {
  display: block; height: 100%; width: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #5A74EC, #8CA0F6);
  transform-origin: left; transform: scaleX(0);
  animation-name: tstProgress; animation-timing-function: linear; animation-fill-mode: forwards;
}
@keyframes tstProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 880px) {
  .tst-grid { grid-template-columns: 1fr; gap: 22px; }
  .tst-feature { padding: 36px 28px 32px; }
  .tst-quote-mark { font-size: 130px; right: 20px; }
}
