/* ==========================================================================
   Cobrix — sitio comercial
   Hoja de estilos compartida por index.html y las páginas legales.
   Sin dependencias externas: tipografías y los íconos se sirven desde /assets.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marca (derivada del logo) */
  --brand-sky: #56b5f5;
  --brand: #1c7ace;
  --brand-deep: #1356a0;
  --primary: #176fbd;
  --primary-hover: #1356a0;
  --primary-soft: #eaf4fd;
  --primary-soft-2: #d7eafb;
  --grad: linear-gradient(135deg, #56b5f5 0%, #1c7ace 45%, #1356a0 100%);
  --grad-text: linear-gradient(120deg, #1c7ace 10%, #56b5f5 90%);

  /* Neutros */
  --bg: #f4f6f9;
  --surface: #ffffff;
  --ink: #0d1726;
  --text: #3b4555;
  --muted: #5f6878;
  --line: #e4e8ee;
  --line-strong: #d5dbe3;

  /* Montos */
  --charge: #ef4444;
  --charge-text: #c53030;
  --charge-soft: #fdeceb;
  --pay: #10b981;
  --pay-text: #047857;
  --pay-soft: #e3f6ee;
  --warn: #d97706;
  --warn-soft: #fdf3e2;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow: 0 12px 32px -12px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .04);
  --shadow-lg: 0 40px 80px -24px rgba(19, 86, 160, .28), 0 12px 24px -12px rgba(16, 24, 40, .12);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --container: 1200px;
  --nav-h: 72px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 800;
  text-wrap: balance;
}
p { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 3px solid rgba(23, 111, 189, .45); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--primary-soft-2); color: var(--ink); }

[hidden] { display: none !important; }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.ic {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 24px; height: 24px; }
.ic-fill { fill: currentColor; stroke: none; }
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 12px;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 8px 20px -8px rgba(23, 111, 189, .6);
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { border-color: #b9c4d2; background: #fbfcfd; }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { background: var(--primary-soft-2); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 22px 0 18px;
  background: #0d1117; color: #fff;
  border-radius: 14px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 10px 24px -12px rgba(13, 17, 23, .6);
}
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(13, 17, 23, .7); }
.btn-store .play { width: 26px; height: 28px; }
.btn-store span { display: grid; line-height: 1.15; text-align: left; }
.btn-store small { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; opacity: .78; }
.btn-store b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Etiquetas ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.eyebrow .tag {
  background: var(--primary-soft); color: var(--primary);
  border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 13px; font-weight: 700; letter-spacing: .01em;
  margin-bottom: 18px;
}
.kicker .ic { width: 15px; height: 15px; }

/* ---------- Navegación ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--scroll, 0));
}
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  transition: background-color .25s, box-shadow .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled,
.nav.is-solid {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom-color: rgba(213, 219, 227, .7);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--ink); letter-spacing: -.03em; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-links a {
  padding: 8px 12px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--ink); background: rgba(13, 23, 38, .04); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); place-items: center; color: var(--ink); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  background: rgba(255,255,255,.97);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px 20px;
  display: grid; gap: 4px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
  box-shadow: var(--shadow);
}
.mobile-menu.is-open { transform: none; opacity: 1; visibility: visible; }
.mobile-menu a:not(.btn) { padding: 12px 8px; font-weight: 600; color: var(--ink); border-radius: 10px; }
.mobile-menu .btn { margin-top: 8px; }

@media (max-width: 960px) {
  .nav-links, .nav-cta .hide-md { display: none; }
  .nav-toggle { display: grid; }
}

/* ---------- Secciones ---------- */
.section { padding: 112px 0; position: relative; }
.section-white { background: var(--surface); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.h2 { font-size: clamp(30px, 4.2vw, 46px); }
.lead { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--muted); margin-top: 16px; line-height: 1.65; }

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(86, 181, 245, .22), transparent 70%),
    radial-gradient(40% 40% at 90% 20%, rgba(28, 122, 206, .10), transparent 70%),
    linear-gradient(#fff, var(--bg) 70%);
  overflow: hidden;
}
.hero-rings {
  position: absolute; inset: -200px 0 auto; height: 1100px; pointer-events: none;
  background:
    radial-gradient(circle at 50% 30%, transparent 0 220px, rgba(23,111,189,.06) 221px 222px, transparent 223px),
    radial-gradient(circle at 50% 30%, transparent 0 380px, rgba(23,111,189,.05) 381px 382px, transparent 383px),
    radial-gradient(circle at 50% 30%, transparent 0 560px, rgba(23,111,189,.04) 561px 562px, transparent 563px);
}
.hero-copy { position: relative; text-align: center; max-width: 860px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 72px);
  letter-spacing: -.04em;
  line-height: 1.04;
  margin-top: 24px;
}
.hero .lead { max-width: 640px; margin: 22px auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;
  margin-top: 28px; font-size: 14.5px; color: var(--muted); font-weight: 500;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; list-style: none; }
.hero-trust .ic { color: var(--pay); width: 18px; height: 18px; }
ul.hero-trust { padding: 0; }

/* Entrada del hero (al cargar) */
.js .hero-in { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Escaparate (navegador + teléfono) ---------- */
.showcase-wrap { position: relative; margin-top: 64px; perspective: 1800px; }
.showcase {
  --p: 0;
  position: relative;
  width: min(1080px, 100%);
  margin: 0 auto;
  container-type: inline-size;
  aspect-ratio: 100 / 60;
}
.showcase-tilt {
  position: absolute; inset: 0;
  font-size: 1cqw; /* 1em = 1% del ancho del escaparate */
  transform-origin: 50% 0%;
  transform: rotateX(calc((1 - var(--p)) * 22deg)) scale(calc(.92 + var(--p) * .08)) translateY(calc((1 - var(--p)) * 2em));
  transform-style: preserve-3d;
  will-change: transform;
}
.no-js .showcase-tilt { transform: none; }

/* Ventana del navegador (todo en em: 1em = 1% del ancho del escaparate) */
.browser {
  position: absolute; left: 0; top: 0; width: 80em; height: 55em;
  background: var(--surface);
  border-radius: 1.6em;
  border: .1em solid rgba(213, 219, 227, .9);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid; grid-template-rows: 3.8em 1fr;
}
.browser-bar {
  display: flex; align-items: center; gap: 1.2em; padding: 0 1.6em;
  background: #f7f8fa; border-bottom: .1em solid var(--line);
}
.dots { display: flex; gap: .6em; }
.dots i { width: 1.05em; height: 1.05em; border-radius: 50%; background: #e3e7ed; }
.dots i:nth-child(1) { background: #fd6a5f; } .dots i:nth-child(2) { background: #fdbd2f; } .dots i:nth-child(3) { background: #28c840; }
.url {
  margin: 0 auto; display: flex; align-items: center; gap: .6em;
  width: 36em; height: 2.4em; padding: 0 1em; border-radius: .8em;
  background: #fff; border: .1em solid var(--line);
  font-size: 1.15em; color: var(--muted);
}
.url .ic { width: 1.1em; height: 1.1em; color: var(--pay); }

.app { display: grid; grid-template-columns: 13.5em minmax(0, 1fr); background: #f4f5f7; min-height: 0; }
.app-side { padding: 1.8em 1.2em; display: grid; align-content: start; gap: .3em; }
.app-logo { display: flex; align-items: center; gap: .7em; font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.55em; padding: 0 .5em .9em; }
.app-logo img { width: 1.4em; height: 1.4em; }
.app-side .group { font-size: 1.05em; color: var(--muted); font-weight: 600; padding: .9em .7em .4em; }
.app-side a { display: flex; align-items: center; gap: .7em; padding: .65em .7em; border-radius: .7em; font-size: 1.2em; color: var(--text); }
.app-side a .ic { width: 1.25em; height: 1.25em; }
.app-side a.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-xs); }
.app-main { padding: 2em 2.2em; display: grid; gap: 1.6em; align-content: start; min-width: 0; overflow: hidden; }
.app-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1em; }
.app-top small { display: block; font-size: 1.1em; color: var(--muted); }
.app-top b { font-family: var(--font-display); font-size: 1.85em; color: var(--ink); letter-spacing: -.03em; font-weight: 800; }
.app-top .acts { display: flex; gap: .7em; }
.mbtn { display: inline-flex; align-items: center; gap: .5em; height: 3.1em; padding: 0 1em; white-space: nowrap; border-radius: .9em; font-size: 1.1em; font-weight: 600; border: .1em solid var(--line-strong); background: #fff; color: var(--ink); }
.mbtn.pri { background: var(--primary); border-color: var(--primary); color: #fff; }
.mbtn .ic { width: 1.2em; height: 1.2em; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1em; }
.kpi { background: #fff; border: .1em solid var(--line); border-radius: 1.2em; padding: 1.1em 1em; display: flex; gap: .8em; min-width: 0; }
.kpi > div { min-width: 0; }
.kpi .ico { width: 2.7em; height: 2.7em; border-radius: .8em; display: grid; place-items: center; flex-shrink: 0; }
.kpi .ico .ic { width: 1.5em; height: 1.5em; }
.kpi small { display: block; font-size: 1.02em; color: var(--muted); white-space: nowrap; }
.kpi b { display: block; font-size: 1.45em; color: var(--ink); letter-spacing: -.02em; font-weight: 700; white-space: nowrap; }
.kpi em { display: block; font-style: normal; font-size: .98em; color: var(--muted); white-space: nowrap; }
.kpi em.up { color: var(--pay-text); }
.ico.blue { background: var(--primary-soft); color: var(--primary); }
.ico.green { background: var(--pay-soft); color: var(--pay-text); }
.ico.red { background: var(--charge-soft); color: var(--charge-text); }
.ico.amber { background: var(--warn-soft); color: var(--warn); }

.app-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.1em; }
.panel { background: #fff; border: .1em solid var(--line); border-radius: 1.3em; padding: 1.5em 1.6em; min-width: 0; }
.panel h4 { font-family: var(--font); font-size: 1.35em; letter-spacing: -.01em; font-weight: 700; }
.panel p.sub { font-size: 1.05em; color: var(--muted); }
.legend { display: flex; gap: 1.4em; font-size: 1.05em; color: var(--muted); margin: 1em 0 .6em; }
.legend i { display: inline-block; width: .8em; height: .8em; border-radius: 50%; margin-right: .45em; vertical-align: -.05em; }

.bars { display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 1em; height: 14em; padding: 0 .4em; border-bottom: .1em solid var(--line); background: repeating-linear-gradient(to top, transparent 0 4.6em, var(--line) 4.6em calc(4.6em + 1px)); }
.bars .m { display: flex; align-items: flex-end; justify-content: center; gap: .35em; height: 100%; position: relative; }
.bars .m.cur::before { content: ""; position: absolute; inset: -.6em -.4em 0; background: #f2f4f7; border-radius: .6em .6em 0 0; }
.bar { width: 1.5em; border-radius: .4em .4em 0 0; position: relative; transform-origin: bottom; }
.bar.c { background: #f8a5a5; } .bar.p { background: #93dcc0; }
.cur .bar.c { background: var(--charge); } .cur .bar.p { background: var(--pay); }
.months { display: grid; grid-template-columns: repeat(6, 1fr); font-size: 1em; color: var(--muted); text-align: center; margin-top: .5em; }
.months .cur { color: var(--ink); font-weight: 700; }
.js .bar { transform: scaleY(0); transition: transform 1s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 70ms + 250ms); }
.js .is-visible .bar, .js .bar.is-visible { transform: scaleY(1); }

.att-item { display: flex; align-items: center; gap: .9em; padding: .9em 0; border-top: .1em solid var(--line); }
.att-item:first-of-type { border-top: 0; margin-top: .8em; }
.av { width: 2.9em; height: 2.9em; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.1em; flex-shrink: 0; }
.av.a { background: #e6f0fe; color: #1d4ed8; } .av.b { background: #fdeef3; color: #be185d; } .av.c { background: #ecfdf3; color: #047857; } .av.d { background: #fff4e5; color: #b45309; } .av.e { background: #f1ecfe; color: #6d28d9; }
.att-item .who { flex: 1; min-width: 0; }
.att-item .who b { display: block; font-size: 1.15em; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-item .who small { display: block; font-size: 1em; color: var(--muted); white-space: nowrap; }
.att-item .amt { text-align: right; font-size: 1.15em; font-weight: 700; color: var(--charge-text); white-space: nowrap; }
.att-item .amt small { display: block; font-size: .85em; color: var(--primary); font-weight: 600; }

/* Teléfono (app Android) */
.phone {
  position: absolute; right: -3em; bottom: -3em; width: 24em; height: 48em;
  border-radius: 3.6em;
  background: #0d1117;
  padding: .9em;
  box-shadow: 0 50px 80px -30px rgba(13, 23, 38, .55), 0 0 0 .15em #2a313c inset;
  transform: translateZ(60px);
}
.phone-screen { position: relative; height: 100%; border-radius: 2.8em; overflow: hidden; background: #f6f8fb; display: flex; flex-direction: column; }
.phone-notch { position: absolute; left: 50%; top: .9em; width: 6.6em; height: 1.9em; background: #0d1117; border-radius: 1em; transform: translateX(-50%); z-index: 2; }
.ph-head { background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: #fff; padding: 4.4em 1.8em 2em; border-radius: 0 0 2.2em 2.2em; }
.ph-head .row { display: flex; align-items: center; gap: 1em; }
.ph-head .avatar { width: 3.6em; height: 3.6em; border-radius: 50%; background: rgba(255,255,255,.95); color: #1d4ed8; display: grid; place-items: center; font-weight: 800; font-size: 1.2em; }
.ph-head b { font-size: 1.5em; display: block; letter-spacing: -.01em; }
.ph-head small { font-size: 1.05em; opacity: .85; }
.ph-head .bal-l { margin-top: 1.4em; font-size: 1.05em; opacity: .85; }
.ph-head .bal { font-size: 2.6em; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.ph-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .9em; padding: 1.4em 1.4em .4em; }
.ph-actions span { height: 3.4em; border-radius: 1em; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.15em; }
.ph-actions .c { background: var(--charge); } .ph-actions .p { background: var(--pay); }
.ph-list { padding: .4em 1.4em; display: grid; }
.ph-list .ttl { font-weight: 700; color: var(--ink); font-size: 1.2em; padding: .8em 0 .2em; }
.tx { display: flex; align-items: center; gap: .9em; padding: .85em 0; }
.tx .ico { width: 3em; height: 3em; border-radius: 50%; display: grid; place-items: center; }
.tx .ico .ic { width: 1.35em; height: 1.35em; }
.tx .d { flex: 1; min-width: 0; }
.tx .d b { display: block; font-size: 1.12em; color: var(--ink); }
.tx .d small { display: block; font-size: .98em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx .v { font-weight: 700; font-size: 1.12em; white-space: nowrap; }
.tx .v.c { color: var(--charge-text); } .tx .v.p { color: var(--pay-text); }

/* Tarjetas flotantes */
.float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 1em;
  padding: 1.2em 1.5em 1.2em 1.2em;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: .1em solid rgba(228, 232, 238, .9);
  border-radius: 1.4em;
  box-shadow: var(--shadow);
  font-size: 1.15em;
  white-space: nowrap;
  transform: translateZ(90px) translateY(calc(var(--p) * var(--drift, -30px)));
}
.float .ico { width: 3em; height: 3em; border-radius: .9em; display: grid; place-items: center; }
.float .ico .ic { width: 1.5em; height: 1.5em; }
.float b { display: block; color: var(--ink); font-size: 1.05em; }
.float small { display: block; color: var(--muted); font-size: .92em; }
.float-1 { left: -5em; top: 13em; --drift: -50px; }
.float-2 { right: 21em; top: -3em; --drift: -20px; }
.float-3 { left: 6em; bottom: -4em; --drift: -70px; }
.js .float { animation: bob 6s ease-in-out infinite; animation-delay: var(--bob, 0s); }
@keyframes bob { 50% { translate: 0 -8px; } }

@media (max-width: 860px) {
  .float { font-size: 1.8em; }
  .float-2 { display: none; }
  .float-1 { left: 0; top: auto; bottom: 8em; }
  .float-3 { left: 3em; bottom: -6em; }
  .showcase { aspect-ratio: 100 / 66; }
}
@media (max-width: 560px) {
  .float-1 { display: none; }
  .float-3 { font-size: 2.1em; left: 0; bottom: -9em; }
  .showcase-wrap { margin-bottom: 40px; }
  .phone { width: 30em; height: 60em; bottom: -10em; }
  .showcase { aspect-ratio: 100 / 75; }
}

/* Banda de beneficios bajo el hero */
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 120px 0 96px; }
.chip {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.chip .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.chip b { display: block; color: var(--ink); font-size: 15px; }
.chip span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
@media (max-width: 960px) { .chips { grid-template-columns: repeat(2, 1fr); padding-top: 96px; } }
@media (max-width: 560px) { .chips { grid-template-columns: 1fr; padding: 72px 0 64px; } }

/* ---------- Dos plataformas ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; position: relative; }
.duo-card {
  position: relative; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 40px 40px 0;
  display: flex; flex-direction: column;
}
.duo-card .tagline { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--primary); }
.duo-card h3 { font-size: clamp(24px, 2.6vw, 30px); margin: 12px 0 10px; }
.duo-card > p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--pay-soft); color: var(--pay-text); stroke-width: 3; margin-top: 1px; }
.duo-visual {
  margin-top: auto; padding-top: 32px; /* ambas imágenes alineadas al fondo de su tarjeta */
  container-type: inline-size; position: relative;
  aspect-ratio: 100 / 52; box-sizing: content-box;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}
.duo-visual > * { font-size: 1cqw; }
.duo-sync {
  position: absolute; left: 50%; top: 50%; z-index: 4;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--primary);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}
.duo-sync .ic { width: 28px; height: 28px; }
.js .duo-sync.is-visible .ic { animation: spin 2.4s cubic-bezier(.6, 0, .3, 1) 2; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Mini teléfono (tarjeta Android) */
.mini-phone { position: absolute; left: 50%; top: 32px; transform: translateX(-50%); width: 50em; height: 100em; background: #0d1117; border-radius: 6em 6em 0 0; padding: 1.6em 1.6em 0; }
.mini-phone .phone-screen { border-radius: 4.8em 4.8em 0 0; font-size: 1.9em; }
.mini-phone .ph-head { padding-top: 3.8em; }
/* Mini ventana (tarjeta Web) */
.mini-browser { position: absolute; left: 4%; right: 0; top: 32px; height: 100em; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 2.2em 2.2em 0 0; box-shadow: var(--shadow); overflow: hidden; font-size: 1.85cqw; }
.mini-browser .browser-bar { height: 3.6em; }
.table { display: grid; font-size: 1.05em; }
.table .tr { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1fr; gap: 1em; align-items: center; padding: .95em 1.6em; border-top: .06em solid var(--line); }
.table .th { color: var(--muted); font-weight: 600; font-size: .95em; background: #fafbfc; border-top: 0; }
.table .name { display: flex; align-items: center; gap: .7em; color: var(--ink); font-weight: 600; white-space: nowrap; }
.table .name .av { width: 2.2em; height: 2.2em; font-size: .9em; }
.table .num { text-align: right; font-weight: 600; color: var(--ink); white-space: nowrap; }
.table .num.red { color: var(--charge-text); }
.table .muted { color: var(--muted); white-space: nowrap; }
.table .tr.sel { background: var(--primary-soft); }
.toolbar { display: flex; gap: .7em; padding: 1.2em 1.6em; align-items: center; }
.toolbar .search { flex: 1; height: 2.6em; border: .06em solid var(--line-strong); border-radius: .7em; display: flex; align-items: center; gap: .5em; padding: 0 .8em; color: var(--muted); font-size: .95em; }
.toolbar .search .ic { width: 1.1em; height: 1.1em; }
.toolbar kbd, .kbd { font-family: var(--font); font-size: .8em; border: .08em solid var(--line-strong); border-bottom-width: .16em; border-radius: .4em; padding: .1em .45em; color: var(--muted); background: #fff; }
.toolbar .pill { height: 2.6em; padding: 0 1em; border-radius: .7em; border: .06em solid var(--line-strong); display: inline-flex; align-items: center; gap: .4em; font-size: .95em; color: var(--ink); font-weight: 600; }
.toolbar .pill .ic { width: 1.05em; height: 1.05em; }

@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; }
  .duo-card { padding: 32px 24px 0; }
  .duo-visual { aspect-ratio: 100 / 62; }
  .duo-sync { top: 50%; }
}

/* ---------- Funciones (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { font-size: 19px; letter-spacing: -.02em; margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.card .ico .ic { width: 22px; height: 22px; }
.card .badge { position: absolute; top: 24px; right: 24px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
.card-art { margin: 22px -28px -28px; padding: 0 28px 28px; }
.mini-kpi { display: flex; gap: 12px; flex-wrap: wrap; }
.mini-kpi > div { flex: 1; min-width: 130px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fafbfc; }
.mini-kpi small { display: block; font-size: 12.5px; color: var(--muted); }
.mini-kpi b { display: block; font-size: 20px; color: var(--ink); letter-spacing: -.02em; }
.mini-kpi em { font-style: normal; font-size: 12.5px; color: var(--pay-text); font-weight: 600; }
.method-row { display: flex; flex-wrap: wrap; gap: 8px; }
.method-row span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink); background: #fff; }
.method-row span.on { background: var(--primary-soft); border-color: rgba(23, 111, 189, .45); color: var(--primary); }
.method-row .ic { width: 15px; height: 15px; }
.kbd-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.kbd-row .kbd { font-size: 13px; padding: 3px 8px; color: var(--ink); font-weight: 600; }
.search-demo { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--ink); font-size: 14.5px; }
.search-demo .ic { color: var(--muted); width: 18px; height: 18px; }
.search-demo .caret { width: 2px; height: 18px; background: var(--primary); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.search-hit { margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--primary-soft); font-size: 14px; }
.search-hit mark { background: rgba(86, 181, 245, .35); color: inherit; border-radius: 3px; padding: 0 2px; }
.search-hit b { color: var(--charge-text); }

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3 { grid-column: span 1; }
  .span-4 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4 { grid-column: auto; }
}

/* ---------- Historia con scroll (pasos) ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.story-steps { display: grid; gap: 0; }
.step { padding: 12vh 0; opacity: .35; transition: opacity .4s; }
.step:first-child { padding-top: 4vh; }
.step:last-child { padding-bottom: 20vh; }
.step.is-active { opacity: 1; }
.no-js .step { opacity: 1; }
.step .num {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s;
}
.step.is-active .num { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 10px 20px -10px rgba(23, 111, 189, .8); }
.step h3 { font-size: clamp(22px, 2.4vw, 28px); margin: 18px 0 10px; }
.step p { color: var(--muted); font-size: 17px; max-width: 460px; }
.step .where { display: inline-flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.step .where span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.step .where .ic { width: 14px; height: 14px; }
.story-visual { position: sticky; top: calc(50vh - 280px); height: 560px; display: grid; place-items: center; }
.stage {
  position: relative; width: 340px; height: 560px; container-type: inline-size;
}
.stage > .phone { font-size: calc(100cqw / 25.5); }
.stage .phone { position: absolute; inset: 0; width: auto; height: auto; transform: none; bottom: auto; right: auto; }
.stage .tx, .stage .ph-head .bal, .stage .toast { transition: opacity .5s, transform .5s cubic-bezier(.2, .8, .2, 1), max-height .5s; }
.stage .tx.new { max-height: 0; opacity: 0; transform: translateX(-12px); overflow: hidden; padding: 0; }
.stage[data-step="1"] .tx.new-c,
.stage[data-step="2"] .tx.new-c,
.stage[data-step="3"] .tx.new-c,
.stage[data-step="3"] .tx.new-p { max-height: 6em; opacity: 1; transform: none; padding: .85em 0; }
.bal-swap { position: relative; display: block; height: 1.1em; }
.bal-swap span { position: absolute; left: 0; top: 0; transition: opacity .4s, transform .4s; }
.bal-swap span:not(.on) { opacity: 0; transform: translateY(.4em); }
.toast {
  position: absolute; left: -18%; right: -18%; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 16px; box-shadow: var(--shadow-lg);
  font-size: 14.5px; opacity: 0; transform: translateY(16px) scale(.97); pointer-events: none;
}
.toast .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.toast b { display: block; color: var(--ink); font-size: 14.5px; }
.toast small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.toast-1 { top: 44%; } .toast-2 { top: 58%; } .toast-3 { top: 50%; }
.stage[data-step="1"] .toast-1,
.stage[data-step="2"] .toast-2,
.stage[data-step="3"] .toast-3 { opacity: 1; transform: none; }
.wa { background: #e7fbe9; }
.wa-bubble { background: #dcf8c6; border-radius: 12px 12px 12px 4px; padding: 8px 10px; color: #13361e; font-size: 13px; margin-top: 4px; }
.wa-bubble u { color: #0b6bcb; text-decoration: none; font-weight: 600; }

@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-visual { top: calc(var(--nav-h) + 8px); height: 300px; order: -1; z-index: 2; background: linear-gradient(var(--surface) 85%, transparent); margin: 0 -16px; padding-bottom: 12px; }
  .stage { width: 190px; height: 300px; }
  .toast { left: -45%; right: -45%; font-size: 13px; padding: 10px 12px; }
  .toast .ico { width: 32px; height: 32px; }
  .toast-1 { top: 52%; } .toast-2 { top: 62%; } .toast-3 { top: 40%; }
  .step { padding: 22vh 0 10vh; }
  .step:last-child { padding-bottom: 12vh; }
}

/* ---------- Estado de cuenta compartible ---------- */
.share { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.share-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.statement {
  width: min(380px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.statement-head { padding: 26px 26px 22px; background: var(--grad); color: #fff; }
.statement-head .brandline { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; opacity: .95; }
.statement-head .brandline img { width: 22px; height: 22px; background: #fff; border-radius: 6px; padding: 2px; }
.statement-head small { display: block; margin-top: 18px; opacity: .85; font-size: 13px; }
.statement-head b { display: block; font-family: var(--font-display); font-size: 34px; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.statement-head span { font-size: 13px; opacity: .9; }
.statement-body { padding: 10px 22px 22px; }
.statement-body .tx { font-size: 14px; }
.statement-body .tx .ico { width: 36px; height: 36px; }
.statement-body .tx .ico .ic { width: 17px; height: 17px; }
.statement-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 12.5px; color: var(--muted); }
.statement-foot .ic { width: 16px; height: 16px; color: var(--pay-text); }
.share-bubble {
  position: absolute; left: -6%; bottom: 4%; max-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px;
  box-shadow: var(--shadow); font-size: 13.5px;
}
.share-bubble .from { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 13px; margin-bottom: 4px; }
.share-bubble .from .ic { color: #16a34a; width: 16px; height: 16px; }
.share-pill {
  position: absolute; right: -4%; top: 3%;
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); font-size: 14px; font-weight: 600; color: var(--ink);
}
.share-pill .ic { color: var(--charge-text); }
.feature-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 16px; }
.feature-list .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--primary); }
.feature-list b { display: block; color: var(--ink); font-size: 16.5px; }
.feature-list span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .share { grid-template-columns: 1fr; gap: 48px; }
  .share-visual { min-height: 0; padding: 40px 0; }
  .share-visual { padding: 28px 0 56px; }
  .share-bubble { left: 0; top: auto; bottom: 0; }
  .share-pill { right: 0; top: 0; bottom: auto; }
}

/* ---------- Seguridad (banda azul) ---------- */
.security { background: radial-gradient(70% 90% at 85% 0%, rgba(86, 181, 245, .35), transparent 60%), linear-gradient(160deg, #0f3f78 0%, #0b2547 100%); color: #d6e4f5; overflow: hidden; }
.security .h2, .security h3 { color: #fff; }
.security .lead { color: #b8cce4; }
.security .kicker { background: rgba(255, 255, 255, .1); color: #fff; }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sec-item { padding: 26px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: background-color .3s, transform .3s; }
.sec-item:hover { background: rgba(255, 255, 255, .1); transform: translateY(-3px); }
.sec-item .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(86, 181, 245, .18); color: #9fd5fb; }
.sec-item h3 { font-size: 18px; margin: 16px 0 6px; letter-spacing: -.01em; }
.sec-item p { font-size: 15px; color: #b8cce4; }
.sec-orb { position: absolute; right: -140px; top: -140px; width: 480px; height: 480px; opacity: .1; pointer-events: none; }
@media (max-width: 960px) { .sec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sec-grid { grid-template-columns: 1fr; } }

/* ---------- Para quién (cinta) ---------- */
.marquee { position: relative; overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee + .marquee .marquee-track { animation-direction: reverse; animation-duration: 46s; }
.marquee + .marquee { margin-top: 14px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
.biz { display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px 14px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; font-weight: 600; color: var(--ink); white-space: nowrap; box-shadow: var(--shadow-xs); }
.biz .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }

/* ---------- Testimonios ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-xs); }
.stars { display: flex; gap: 3px; color: #f5a524; }
.stars .ic { width: 18px; height: 18px; }
.quote blockquote { color: var(--text); font-size: 16px; line-height: 1.65; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption .av { width: 44px; height: 44px; font-size: 15px; }
.quote figcaption b { display: block; color: var(--ink); font-size: 15px; }
.quote figcaption span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* ---------- Próximamente ---------- */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.road { display: flex; gap: 14px; padding: 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(255, 255, 255, .6); }
.road .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.road b { display: block; color: var(--ink); font-size: 15.5px; }
.road span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .roadmap { grid-template-columns: 1fr; } }

/* ---------- Preguntas frecuentes ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.faq-wrap .section-head { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; font-weight: 600; color: var(--ink); font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .25s; color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer a { color: var(--primary); font-weight: 600; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 0; } .faq-wrap .section-head { position: static; } }

/* ---------- Llamada final ---------- */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  background: radial-gradient(60% 120% at 100% 0%, rgba(86, 181, 245, .55), transparent 60%), linear-gradient(135deg, #1c7ace, #1356a0);
  color: #e3f0fc; text-align: center;
}
.cta h2 { color: #fff; font-size: clamp(30px, 4vw, 44px); }
.cta p { margin: 14px auto 0; max-width: 560px; font-size: 18px; color: #d3e6f9; }
.cta .hero-actions { margin-top: 32px; }
.cta .btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); box-shadow: none; }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.cta-logo { position: absolute; width: 360px; right: -80px; bottom: -120px; opacity: .08; filter: brightness(10); pointer-events: none; }
@media (max-width: 600px) { .cta { padding: 56px 22px; border-radius: var(--radius-lg); } }

/* ---------- Pie ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: 112px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 320px; }
.footer h3 { font-family: var(--font); font-size: 14px; letter-spacing: 0; font-weight: 700; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); font-size: 15px; transition: color .2s; }
.footer ul a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Animaciones al hacer scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Páginas legales
   ========================================================================== */
.legal-hero { padding: calc(var(--nav-h) + 64px) 0 48px; text-align: center; background: radial-gradient(60% 70% at 50% 0%, rgba(86, 181, 245, .2), transparent 70%), linear-gradient(#fff, var(--bg)); }
.legal-hero .hero-icon { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 22px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--primary); }
.legal-hero .hero-icon.danger { color: var(--charge-text); }
.legal-hero .hero-icon .ic { width: 32px; height: 32px; }
.legal-hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.035em; }
.legal-hero .lead { max-width: 560px; margin: 16px auto 0; }
.updated { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--muted); font-weight: 500; }
.updated .ic { width: 16px; height: 16px; color: var(--primary); }
.breadcrumbs { display: flex; justify-content: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs a:hover { color: var(--primary); }

.legal { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; padding-bottom: 32px; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.toc p { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0 8px; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 14px; color: var(--text); line-height: 1.35; transition: background-color .2s, color .2s; }
.toc a::before { counter-increment: toc; content: counter(toc); min-width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--bg); color: var(--muted); transition: inherit; }
.toc a:hover { background: var(--bg); color: var(--ink); }
.toc a.is-active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.toc a.is-active::before { background: var(--primary); color: #fff; }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 48px; box-shadow: var(--shadow-xs); min-width: 0; }
.doc section + section { margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--line); }
.doc h2 { display: flex; align-items: center; gap: 14px; font-size: 23px; margin-bottom: 16px; letter-spacing: -.02em; }
.doc h2 .n { width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 15px; }
.doc h3 { display: flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; margin: 26px 0 10px; }
.doc h3 .ic { width: 18px; height: 18px; color: var(--primary); }
.doc p { margin-bottom: 14px; line-height: 1.75; }
.doc p:last-child { margin-bottom: 0; }
.doc ul, .doc ol.steps { padding: 0; list-style: none; display: grid; gap: 10px; margin: 0 0 16px; }
.doc ul li { position: relative; padding-left: 24px; line-height: 1.7; }
.doc ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-sky); }
.doc a:not(.btn) { color: var(--primary); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(23, 111, 189, .3); text-underline-offset: 3px; }
.doc a:not(.btn):hover { text-decoration-color: currentColor; }
.note { display: flex; gap: 14px; padding: 18px 20px; border-radius: 14px; margin: 20px 0; border: 1px solid; }
.note .ic { width: 22px; height: 22px; margin-top: 2px; }
.note b { display: block; margin-bottom: 2px; }
.note p { margin: 0 !important; font-size: 15px; }
.note.info { background: var(--primary-soft); border-color: rgba(23, 111, 189, .18); color: #0f4a82; }
.note.ok { background: var(--pay-soft); border-color: rgba(16, 185, 129, .25); color: #065f46; }
.note.warn { background: var(--warn-soft); border-color: rgba(217, 119, 6, .25); color: #7c4a03; }
.note.danger { background: var(--charge-soft); border-color: rgba(239, 68, 68, .25); color: #8f1d1d; }
.note b, .note p { color: inherit; }
.contact-card { margin-top: 44px; padding: 28px; border-radius: var(--radius-lg); background: var(--grad); color: #e6f2fd; }
.contact-card h2 { color: #fff; font-size: 21px; margin-bottom: 8px; }
.contact-card p { color: #e6f2fd; }
.contact-card a { color: #fff !important; font-weight: 700 !important; text-decoration-color: rgba(255,255,255,.5) !important; }
@media (max-width: 960px) {
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .doc { padding: 28px 20px; }
  .toc ol { grid-template-columns: 1fr; }
}

/* Eliminar cuenta */
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 8px 0 8px; }
.method { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.method.rec { border-color: rgba(16, 185, 129, .5); box-shadow: 0 0 0 4px var(--pay-soft); }
.method .rec-tag { position: absolute; top: 16px; right: 16px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--pay); color: #fff; }
.method .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.method.rec .ico { background: var(--pay-soft); color: var(--pay-text); }
.method h3 { margin: 14px 0 6px !important; font-size: 17px !important; }
.method p { font-size: 14.5px; color: var(--muted); }
.method .time { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.method .time .ic { width: 15px; height: 15px; color: var(--primary); }
ol.steps { counter-reset: st; }
ol.steps li { counter-increment: st; position: relative; padding-left: 36px; }
ol.steps li::before { content: counter(st); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--primary-soft); color: var(--primary); }
.form { display: grid; gap: 18px; max-width: 560px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label span { color: var(--muted); font-weight: 400; }
.input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; font: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(23, 111, 189, .15); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 12px; background: var(--warn-soft); border: 1px solid rgba(217, 119, 6, .25); font-size: 14.5px; color: #5b3a07; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.done { display: none; padding: 32px; text-align: center; border-radius: var(--radius); border: 1px solid rgba(16, 185, 129, .4); background: var(--pay-soft); }
.done.is-shown { display: block; }
.done .ic { width: 40px; height: 40px; color: var(--pay-text); margin: 0 auto 10px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); }
.data-table tr:last-child td { border-bottom: 0; }
.tag-del { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--charge-soft); color: var(--charge-text); font-size: 13px; font-weight: 600; }
.tag-del .ic { width: 14px; height: 14px; }
@media (max-width: 860px) { .methods { grid-template-columns: 1fr; } }

/* Página 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 16px 64px; }
.notfound b.big { display: block; font-family: var(--font-display); font-size: clamp(90px, 18vw, 160px); line-height: 1; letter-spacing: -.06em; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .hero-in { opacity: 1; transform: none; }
  .js .bar { transform: none; }
  .step { opacity: 1; }
  .showcase-tilt { transform: none !important; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
}
