/*
 * Rally Portal — estilos v2 (mezcla del diseño propio + "Kinetic Court" de Stitch).
 * Tokens del design system de Rally:
 *   Rally/composeApp/.../presentation/ui/theme/Color.kt · Rally-Frontend-Web/src/index.css
 *   Rally-Portal/stitch_rally_landing_page/kinetic_court/DESIGN.md
 * Barlow Condensed (display, MAYÚSCULAS) + Inter (texto). El neón (#D4FC2E) es SOLO relleno
 * con texto navy encima; como color de texto va el oliva en claro y el neón en oscuro.
 * Movimiento: todo respeta prefers-reduced-motion (ver bloque final).
 */

:root {
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --navy-deep: #0F172A;
  --navy: #0A2540;
  --navy-dark: #1E293B;
  --navy-elevated: #1A365D;
  --blue: #1976D3;
  --blue-soft: #90CAF9;
  --neon: #D4FC2E;
  --olive: #647800;
  --orange: #FF8A00;

  --bg: #FFFFFF;
  --surface: #F5F5F5;
  --surface-2: #F0F4F8;
  --text: #0F172A;
  --muted: #6B7280;
  --outline: #E2E8F0;
  --primary: #1976D3;
  --primary-hover: #1565C0;
  --on-primary: #FFFFFF;
  --primary-container: #E8F1FA;
  --on-primary-container: #0D47A1;
  --accent: #647800;
  --success: #15803D;
  --chip-on-bg: #E9F6B1;
  --chip-on-text: #0F172A;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-card: 0 1px 2px rgb(15 23 42 / .06), 0 1px 3px rgb(15 23 42 / .10);
  --shadow-hover: 0 12px 32px -4px rgb(10 37 64 / .14), 0 2px 6px -2px rgb(15 23 42 / .08);

  --max: 1200px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A2540;
    --surface: #1E293B;
    --surface-2: #2A374C;
    --text: #F9FAFB;
    --muted: #C8CED6;
    --outline: #3B4A61;
    --primary: #90CAF9;
    --primary-hover: #A6D4FB;
    --on-primary: #0F172A;
    --primary-container: #1D3A5C;
    --on-primary-container: #F9FAFB;
    --accent: #D4FC2E;
    --success: #4ADE80;
    --chip-on-bg: #3F4F39;
    --chip-on-text: #D4FC2E;
    --shadow-card: 0 1px 2px rgb(0 0 0 / .3), 0 1px 3px rgb(0 0 0 / .35);
    --shadow-hover: 0 12px 32px -4px rgb(0 0 0 / .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A2540; --surface: #1E293B; --surface-2: #2A374C; --text: #F9FAFB; --muted: #C8CED6;
  --outline: #3B4A61; --primary: #90CAF9; --primary-hover: #A6D4FB; --on-primary: #0F172A;
  --primary-container: #1D3A5C; --on-primary-container: #F9FAFB; --accent: #D4FC2E; --success: #4ADE80;
  --chip-on-bg: #3F4F39; --chip-on-text: #D4FC2E; color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-sans); font-size: 1rem; line-height: 1.5;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; }
section { scroll-margin-top: 80px; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Íconos de línea (RallyIcons: trazo 1.8, puntas redondas) */
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.logo { width: 36px; height: 36px; flex: none; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--neon); color: var(--navy-deep); padding: 8px 12px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--radius-sm); }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 110; background: var(--neon); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 12px rgb(212 252 46 / .6); pointer-events: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .875rem; color: var(--accent); }
.eyebrow-neon { color: var(--neon); }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .8125rem; font-weight: 700; }
.pill-hero { background: rgb(255 255 255 / .1); color: var(--neon); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); animation: blink 2.4s ease-in-out infinite; flex: none; }
.dot-muted { display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: middle; background: rgb(255 255 255 / .4); box-shadow: none; animation: none; }

.tag { display: inline-flex; align-items: center; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--outline); white-space: nowrap; }
.tag-orange { background: rgb(255 138 0 / .12); color: #B05500; border-color: transparent; }

/* ---------- Botones ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background-color .18s, color .18s, border-color .18s, filter .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 1.125rem; }

.btn-neon { background: var(--neon); color: var(--navy-deep); box-shadow: var(--shadow-card); }
.btn-neon:hover { box-shadow: 0 8px 24px -2px rgb(212 252 46 / .5); filter: brightness(1.04); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-card); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 8px 24px -4px rgb(25 118 211 / .45); }
.btn-outline { border-color: var(--outline); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--surface-2); border-color: var(--primary); color: var(--primary); }
.btn-ghost-light { border-color: rgb(255 255 255 / .55); color: #fff; background: rgb(255 255 255 / .04); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* destello que cruza los botones de relleno */
.btn-neon::after, .btn-primary::after {
  content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; z-index: -1;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .5), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn-neon:hover::after, .btn-primary:hover::after { left: 130%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--outline); box-shadow: var(--shadow-card); }
.header-inner { display: flex; align-items: center; gap: 12px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.brand .logo { transition: transform .3s var(--ease); }
.brand:hover .logo { transform: rotate(-6deg) scale(1.04); }

.nav { display: none; margin-left: auto; gap: 2px; }
.nav a {
  position: relative; padding: 8px 12px; text-decoration: none;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: .9375rem; color: var(--muted);
  transition: color .2s;
}
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--primary); }

.header-cta { display: none; gap: 10px; margin-left: 10px; }
.menu-toggle { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--outline); border-radius: var(--radius); background: transparent; color: var(--text); cursor: pointer; }
.legal-back { margin-left: auto; }
@media (min-width: 1024px) {
  .nav, .header-cta { display: flex; }
  .menu-toggle, .legal-back { display: none; }
}

/* ---------- Drawer (menú móvil) ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; }
.drawer.open { visibility: visible; pointer-events: auto; }
.drawer-backdrop { position: absolute; inset: 0; background: rgb(10 37 64 / .55); opacity: 0; transition: opacity .3s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--bg); display: flex; flex-direction: column; gap: 18px;
  padding: 14px var(--gutter) 24px; overflow-y: auto;
  transform: translateX(100%); transition: transform .4s var(--ease);
}
.drawer.open .drawer-panel { transform: none; }
.drawer-panel > * { flex: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.drawer-close { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--outline); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.drawer-nav { display: grid; }
.drawer-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 6px; border-bottom: 1px solid var(--outline); text-decoration: none;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-weight: 800; font-size: 1.75rem; color: var(--text);
  opacity: 0; transform: translateX(18px); transition: opacity .4s ease, transform .4s var(--ease);
  transition-delay: calc(var(--i, 0) * 45ms + .12s);
}
.drawer.open .drawer-nav a { opacity: 1; transform: none; }
.drawer-nav a .i { color: var(--muted); }
.drawer-actions { display: grid; gap: 10px; }
.drawer-actions .btn { width: 100%; }
.drawer-banner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; border-radius: var(--radius-xl); background: var(--navy); color: #fff; text-decoration: none; }
.drawer-banner::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 200px; height: 200px; border-radius: 50%; background: rgb(212 252 46 / .18); filter: blur(30px); }
.drawer-banner small { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--neon); font-weight: 700; }
.drawer-banner strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.25rem; margin-top: 2px; }
.drawer-banner .i { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: rgb(255 255 255 / .12); }
.drawer-foot { margin-top: auto; display: grid; gap: 6px; font-size: .875rem; color: var(--muted); }
.drawer-foot a { color: inherit; text-decoration: none; }
.drawer-foot > a { color: var(--primary); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; isolation: isolate; }
.glow { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 0; }
.glow-a { width: 620px; height: 620px; top: -240px; right: -180px; background: rgb(212 252 46 / .22); animation: drift 16s ease-in-out infinite alternate; }
.glow-b { width: 480px; height: 480px; bottom: -220px; left: -160px; background: rgb(25 118 211 / .45); animation: drift 20s ease-in-out infinite alternate-reverse; }
.glow-c { width: 420px; height: 420px; top: -220px; right: -120px; background: rgb(212 252 46 / .2); animation: drift 18s ease-in-out infinite alternate; }

.court { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.court line { stroke: #fff; stroke-width: 2; opacity: .08; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s var(--ease) forwards; }
.court line:nth-child(1) { animation-delay: .1s; }
.court line:nth-child(2) { animation-delay: .25s; }
.court line:nth-child(3) { animation-delay: .4s; }
.court line:nth-child(4) { animation-delay: .55s; }
.court line.net { animation-delay: .8s; stroke-width: 3; }
.court line:nth-child(8) { animation-delay: 1s; }
.court line.dash { stroke-dasharray: .012 .008; stroke-dashoffset: 0; opacity: 0; animation: fadeIn 1.2s 1.2s forwards; stroke-width: 1.5; }

.hero-inner { position: relative; z-index: 1; display: grid; gap: 48px; padding-block: clamp(56px, 8vw, 104px); align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.15fr .85fr; } }

.hero-copy > * { animation: fadeUp .9s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .15s; }
.hero-copy > :nth-child(3) { animation-delay: .3s; }
.hero-copy > :nth-child(4) { animation-delay: .45s; }
.hero-copy > :nth-child(5) { animation-delay: .6s; }

.hero h1 { font-size: clamp(2.75rem, 6.6vw, 5rem); font-weight: 900; margin-top: 18px; line-height: .98; letter-spacing: .03em; }
.hl {
  font-style: normal; color: var(--neon);
  background: linear-gradient(100deg, #D4FC2E 0%, #D4FC2E 42%, #F6FFC4 50%, #D4FC2E 58%, #D4FC2E 100%);
  background-size: 250% 100%; background-position: 0% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shine 6s ease-in-out 1.2s infinite;
}
.hero-sub { margin-top: 22px; font-size: 1.125rem; line-height: 1.6; color: rgb(255 255 255 / .78); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: .875rem; color: rgb(255 255 255 / .6); }

/* Mockup del teléfono */
.hero-visual { position: relative; display: flex; justify-content: center; animation: fadeUp 1.1s var(--ease) .35s both; }
.phone-float { animation: float 6s ease-in-out infinite; }
.phone {
  position: relative; width: min(320px, 78vw); aspect-ratio: 9 / 18.6;
  border-radius: 44px; background: #0B132B; padding: 11px;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .1), 0 0 90px -10px rgb(212 252 46 / .28);
  transform: perspective(1200px) rotateY(-10deg) rotateX(4deg);
  transition: transform .5s var(--ease);
}
.notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 96px; height: 22px; border-radius: 999px; background: #05080F; z-index: 2; }
.screen { height: 100%; border-radius: 34px; background: #0E1726; overflow: hidden; display: flex; flex-direction: column; font-size: 12px; color: #F9FAFB; text-align: left; }
.s-top { display: flex; align-items: center; gap: 10px; padding: 54px 16px 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #1976D3, #4DA3F5); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.s-name { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.s-sub { font-size: 11px; color: #94A3B8; margin-top: 2px; }
.s-bell { position: relative; margin-left: auto; width: 32px; height: 32px; border-radius: 8px; background: #172239; display: grid; place-items: center; color: #C8CED6; }
.s-bell .i { width: 16px; height: 16px; }
.s-bell i { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: #FF8A00; }
.chip { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: 9px; font-weight: 700; white-space: nowrap; }
.chip-ok { background: #264A47; color: #4ADE80; }
.chip-pend { background: #463A30; color: #FFB05C; }
.chip-neon { background: rgb(212 252 46 / .18); color: #D4FC2E; }
.pulse { position: relative; }
.pulse::before { content: ""; position: absolute; inset: -3px; border-radius: 999px; border: 1.5px solid #FFB05C; opacity: 0; animation: ring 2.2s ease-out infinite; }
.s-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 12px 0; }
.s-stat { background: #172239; border-radius: 12px; padding: 10px 12px; }
.s-stat .n { font-family: var(--font-display); font-weight: 900; font-size: 24px; color: #D4FC2E; line-height: 1; }
.s-stat .l { font-family: var(--font-display); font-size: 10px; color: #C8CED6; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.s-card { margin: 8px 12px 0; background: #172239; border: 1px solid rgb(226 232 240 / .1); border-radius: 12px; padding: 10px 12px; display: grid; gap: 5px; }
.s-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.s-label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: 9px; font-weight: 700; color: #94A3B8; }
.s-card .t { font-weight: 600; font-size: 13px; }
.s-card .m { display: flex; align-items: center; gap: 6px; color: #C8CED6; font-size: 11px; }
.s-card .m .i { width: 13px; height: 13px; color: #94A3B8; }
.s-card .m.neon, .s-card .m.neon .i { color: #D4FC2E; }
.avatars { display: flex; }
.avatars span { width: 22px; height: 22px; border-radius: 50%; background: #1D3A5C; border: 2px solid #172239; margin-left: -6px; display: grid; place-items: center; font-size: 8px; font-weight: 700; color: #fff; }
.avatars span:first-child { margin-left: 0; }
.avatars .plus { background: #D4FC2E; color: #0F172A; }
.s-nav { margin-top: auto; display: grid; grid-template-columns: repeat(5, 1fr); padding: 10px 6px 16px; background: #172239; border-top: 1px solid rgb(226 232 240 / .08); }
.s-nav span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 9px; color: #C8CED6; }
.s-nav i { width: 22px; height: 22px; border-radius: 6px; background: rgb(255 255 255 / .08); }
.s-nav .on { color: #90CAF9; }
.s-nav .on i { background: #1D3A5C; border: 1px solid #90CAF9; }

.toast {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 14px; background: #fff; color: #0F172A;
  box-shadow: 0 16px 40px -12px rgb(0 0 0 / .55); font-size: 12px; width: max-content; max-width: 250px;
  opacity: 0; pointer-events: none;
}
.toast strong { display: block; font-size: 12px; }
.toast small { display: block; font-size: 11px; color: #6B7280; }
.toast-ico { width: 32px; height: 32px; border-radius: 10px; background: #FFEAD1; color: #8F4700; display: grid; place-items: center; flex: none; }
.toast-ico .i { width: 18px; height: 18px; }
.toast-ico.ok { background: #E0F3E7; color: #166534; }
.toast-1 { top: 4%; left: -10%; animation: toast 14s ease-in-out 2s infinite; }
.toast-2 { bottom: 9%; right: -10%; animation: toast 14s ease-in-out 9s infinite; }
@media (max-width: 899px) {
  .phone { width: min(270px, 72vw); transform: none; }
  .toast { display: none; }
}

/* ---------- Marquesina ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--outline); background: var(--surface); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; gap: 44px; padding: 16px 22px; margin: 0; list-style: none; }
.marquee-list li { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: .9375rem; color: var(--muted); }
.marquee-list .i { width: 18px; height: 18px; color: var(--accent); }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-alt { background: var(--surface); }
.section-head { max-width: 66ch; margin-bottom: 40px; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 900; margin-top: 12px; }
.section-head h2 .blue { color: var(--primary); }
.section-head p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 1.0625rem; }

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

.card {
  position: relative; background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius-xl);
  padding: 24px; box-shadow: var(--shadow-card);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.section-alt .card { background: var(--bg); }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: var(--primary); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.icon-box { width: 48px; height: 48px; border-radius: var(--radius-lg); display: grid; place-items: center; background: var(--primary-container); color: var(--on-primary-container); flex: none; transition: background-color .3s, color .3s, transform .3s var(--ease); }
.icon-box .i { width: 24px; height: 24px; }
.card:hover .icon-box { background: var(--primary); color: var(--on-primary); transform: rotate(-6deg) scale(1.05); }
.card h3 { font-size: 1.375rem; font-weight: 700; margin-top: 18px; }
.grid-roles .card h3 { font-size: 1.25rem; }
.card p { margin-top: 8px; color: var(--muted); font-size: .9375rem; }
.card-foot { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 700; color: var(--accent); }
.card-foot::after { content: "→"; transition: transform .25s var(--ease); }
.card:hover .card-foot::after { transform: translateX(4px); }

/* Pasos */
.steps { position: relative; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; padding-top: 22px; }
.steps-line { position: absolute; top: 0; left: 8%; right: 8%; height: 3px; border-radius: 3px; background: var(--outline); overflow: hidden; }
.steps-line i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--primary), var(--neon)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .3s; }
.steps.in .steps-line i { transform: scaleX(1); }
.step { position: relative; padding: 24px; border-radius: var(--radius-xl); background: var(--bg); border: 1px solid var(--outline); transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-display); font-weight: 900; font-size: 2.75rem; color: var(--accent); line-height: 1; }
.step-ico { position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--primary-container); color: var(--on-primary-container); }
.step h3 { font-size: 1.375rem; font-weight: 700; margin-top: 14px; }
.step p { margin-top: 8px; color: var(--muted); font-size: .9375rem; }
.step .tag { margin-top: 16px; }
@media (max-width: 899px) { .steps-line { display: none; } .steps { padding-top: 0; } }

/* Precios */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--outline); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-card); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.plan-featured { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-container), var(--shadow-hover); }
.plan .badge { position: absolute; top: -13px; left: 24px; background: var(--neon); color: var(--navy-deep); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: .75rem; padding: 5px 12px; border-radius: 999px; box-shadow: 0 6px 16px -4px rgb(212 252 46 / .6); animation: badge-bob 3s ease-in-out infinite; }
.plan-kicker { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.plan h3 { font-size: 1.5rem; font-weight: 700; }
.plan .who { color: var(--muted); font-size: .9375rem; margin-top: 6px; }
.plan .price { margin-top: 22px; font-family: var(--font-display); font-weight: 900; font-size: 2.5rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.plan .price.blue { color: var(--primary); }
.plan .price small { display: block; font-family: var(--font-sans); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .9375rem; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.plan-body { flex: 1; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: .9375rem; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .i { width: 18px; height: 18px; color: var(--success); margin-top: 2px; stroke-width: 2.2; }
.plan .btn { width: 100%; margin-top: 24px; }
.plan-note { margin-top: 14px; font-size: .8125rem; color: var(--muted); }
.pricing-foot { margin-top: 20px; color: var(--muted); font-size: .9375rem; text-align: center; }

.note-banner { margin-top: 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 20px 24px; border-radius: var(--radius-xl); background: var(--bg); border: 1px solid var(--outline); }
.note-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--neon); color: var(--navy-deep); display: grid; place-items: center; }
.note-ico .i { width: 24px; height: 24px; stroke-width: 2.2; }
.note-body h3 { font-size: 1.25rem; font-weight: 700; }
.note-body p { margin-top: 4px; color: var(--muted); font-size: .9375rem; }
.note-pill { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--outline); }
.note-pill strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; color: var(--success); line-height: 1; }
.note-pill span { font-size: .8125rem; color: var(--muted); max-width: 13ch; line-height: 1.2; }
@media (max-width: 720px) { .note-banner { grid-template-columns: 1fr; } .note-pill { justify-self: start; } }

.compare { margin-top: 48px; }
.compare-head h3 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); font-weight: 800; margin-top: 8px; }
.table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--outline); border-radius: var(--radius-xl); background: var(--bg); }
.table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .9375rem; }
.table th, .table td { padding: 14px 18px; text-align: center; border-top: 1px solid var(--outline); }
.table thead th { border-top: 0; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .8125rem; color: var(--muted); background: var(--surface); }
.table tbody th { text-align: left; font-weight: 600; }
.table tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: .8125rem; margin-top: 2px; }
.table .hi { background: var(--primary-container); }
.table thead th.hi { color: var(--on-primary-container); }
.table tbody tr { transition: background-color .2s; }
.table tbody tr:hover { background: var(--surface-2); }
.ok { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(21 128 61 / .14); color: var(--success); }
.ok .i { width: 16px; height: 16px; stroke-width: 2.4; }
.no { color: var(--muted); }
.txt { font-size: .875rem; color: var(--muted); }
.ok-txt { color: var(--success); font-weight: 600; }

.cta-band { position: relative; overflow: hidden; isolation: isolate; margin-top: 40px; background: var(--navy); color: #fff; border-radius: 24px; padding: clamp(28px, 4vw, 44px); display: grid; gap: 24px; align-items: center; }
.cta-band > *:not(.glow) { position: relative; z-index: 1; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h3 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 900; margin-top: 10px; }
.cta-band p:not(.eyebrow) { margin-top: 10px; color: rgb(255 255 255 / .75); max-width: 56ch; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nosotros */
.problem { display: grid; gap: 40px; align-items: center; margin-top: 8px; }
@media (min-width: 900px) { .problem { grid-template-columns: 1fr 1fr; gap: 56px; } }
.problem-copy h3 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; margin-top: 12px; }
.problem-copy > p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 1.0625rem; line-height: 1.65; }
.friction { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.friction li { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--outline); transition: border-color .3s, transform .3s var(--ease); }
.friction li:hover { border-color: var(--primary); transform: translateX(4px); }
.friction .i { color: var(--accent); margin-top: 2px; }
.friction strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.125rem; font-weight: 700; }
.friction span { display: block; margin-top: 2px; color: var(--muted); font-size: .9375rem; }
.problem-art { margin: 0; }
.illus { width: 100%; height: auto; overflow: visible; }
.il-bg { fill: var(--surface); stroke: var(--outline); stroke-width: 1.5; }
.il-frame { fill: none; stroke: var(--outline); }
.il-line { stroke: var(--outline); stroke-width: 1.5; opacity: .7; }
.il-path { animation: dashflow 2.4s linear infinite; }
.il-float { transform-box: fill-box; transform-origin: center; animation: ilfloat 7s ease-in-out infinite; }
.il-f1 { animation-duration: 8s; }
.il-f2 { animation-duration: 7s; animation-delay: -2s; }
.il-f3 { animation-duration: 6.5s; animation-delay: -1s; }
.il-f4 { animation-duration: 7.5s; animation-delay: -3s; }
.il-f5 { animation-duration: 5s; animation-delay: -.5s; }
.il-f6 { animation: ilbounce 2.6s ease-in-out infinite; }
.problem-art figcaption { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }

.values-head { margin: 64px 0 28px; max-width: 64ch; }
.values-head h3 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; margin-top: 10px; }

.numbers { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-top: 56px; }
.number { text-align: center; padding: 28px 16px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--outline); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.number:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.number .n { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(2.5rem, 5vw, 3.5rem); color: var(--primary); line-height: 1; }
.number strong { display: block; margin-top: 10px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: 1.125rem; }
.number > span:not(.n) { display: block; color: var(--muted); font-size: .875rem; margin-top: 4px; }

.method { margin-top: 8px; }
.timeline { position: relative; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); padding-top: 34px; }
.timeline-line { position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--outline); overflow: hidden; }
.timeline-line i { display: block; height: 100%; width: 100%; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .2s; }
.timeline.in .timeline-line i { transform: scaleX(1); }
.tl-step { position: relative; }
.tl-dot { position: absolute; top: -34px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 3px solid var(--primary); transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i, 0) * 220ms + .5s); }
.tl-step.in .tl-dot { transform: scale(1); }
.tl-num { font-family: var(--font-display); font-weight: 900; font-size: 1.75rem; color: var(--accent); line-height: 1; }
.tl-step h4 { font-size: 1.25rem; font-weight: 700; margin-top: 8px; }
.tl-step p { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
@media (max-width: 719px) { .timeline { padding-top: 0; } .timeline-line, .tl-dot { display: none; } }

/* FAQ */
.faq-tools { max-width: 820px; margin: 0 auto 28px; display: grid; gap: 14px; }
.search { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border-radius: 999px; background: var(--bg); border: 1px solid var(--outline); box-shadow: var(--shadow-card); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgb(25 118 211 / .18); }
.search .i { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--text); outline: none; }
.search input::placeholder { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip-btn { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .8125rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--outline); background: var(--bg); color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.chip-btn:hover { border-color: var(--primary); color: var(--text); transform: translateY(-1px); }
.chip-btn.is-on { background: var(--chip-on-bg); color: var(--chip-on-text); border-color: transparent; }

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 28px; }
.faq-group { display: grid; gap: 10px; }
.faq-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.faq-group-head h3 { flex: 1; font-size: 1.25rem; font-weight: 700; }
.gdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.gdot.blue { background: var(--primary); }
.gdot.olive { background: var(--accent); }
.gdot.orange { background: var(--orange); }
.gdot.green { background: var(--success); }
.faq-item { background: var(--bg); border: 1px solid var(--outline); border-radius: var(--radius-lg); padding: 0 20px; transition: border-color .25s, box-shadow .25s; }
.faq-item[open] { border-color: var(--primary); box-shadow: var(--shadow-card); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 1.0625rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-family: var(--font-display); font-size: 1.375rem; line-height: 1; color: var(--accent); transition: transform .3s var(--ease), background-color .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--primary-container); }
.faq-body { padding-bottom: 18px; color: var(--muted); }
.faq-item.hide, .faq-group.hide { display: none; }
.faq-empty { text-align: center; color: var(--muted); padding: 24px; border: 1px dashed var(--outline); border-radius: var(--radius-lg); }
.faq-cta { max-width: 820px; margin: 32px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px; border-radius: 20px; background: var(--bg); border: 1px solid var(--outline); }
.faq-cta h3 { font-size: 1.5rem; font-weight: 800; margin-top: 8px; }
.faq-cta p:not(.eyebrow) { margin-top: 6px; color: var(--muted); font-size: .9375rem; }

/* Descargar */
.download { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: #fff; border-radius: 24px; padding: clamp(32px, 5vw, 56px); display: grid; gap: 32px; align-items: center; }
.download > *:not(.glow) { position: relative; z-index: 1; }
@media (min-width: 900px) { .download { grid-template-columns: 1.2fr .8fr; gap: 48px; } }
.download h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 900; margin-top: 14px; }
.download-sub { margin-top: 14px; color: rgb(255 255 255 / .75); max-width: 50ch; }
.download-note { margin-top: 16px; font-size: .875rem; color: rgb(255 255 255 / .6); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; min-width: 200px; padding: 10px 18px 10px 14px; border-radius: var(--radius-lg); background: #fff; color: var(--navy-deep); text-decoration: none; border: 2px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.store:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -10px rgb(0 0 0 / .5); }
.store-ico { width: 28px; height: 28px; }
.store small { display: block; font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: #6B7280; font-weight: 600; }
.store strong { display: block; font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; }
.store-match { border-color: var(--neon); box-shadow: 0 0 0 4px rgb(212 252 46 / .25); }
.web-box { background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .14); border-radius: var(--radius-xl); padding: 24px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.web-box-icon { width: 32px; height: 32px; color: var(--neon); }
.web-box h3 { font-size: 1.5rem; font-weight: 700; margin-top: 14px; }
.web-box p { margin-top: 8px; color: rgb(255 255 255 / .75); font-size: .9375rem; }
.web-box .btn { margin-top: 20px; width: 100%; }

/* Contacto */
.contact { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.contact h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 900; margin-top: 12px; }
.contact-sub { margin-top: 14px; color: var(--muted); font-size: 1.0625rem; }
.contact-cards { display: grid; gap: 12px; margin-top: 20px; }
.contact-card { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius-xl); background: var(--bg); border: 1px solid var(--outline); transition: border-color .3s, transform .3s var(--ease); }
.contact-card:hover { border-color: var(--primary); transform: translateX(4px); }
.contact-card > .i { width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.contact-card strong { display: block; font-weight: 600; }
.contact-card span { display: block; margin-top: 2px; color: var(--muted); font-size: .9375rem; }
.contact-card a { display: inline-block; margin-top: 6px; color: var(--primary); font-weight: 600; text-decoration: none; word-break: break-all; }
.contact-card a:hover { text-decoration: underline; }
.contact-hint { margin-top: 14px; font-size: .875rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.contact-hint .i { width: 16px; height: 16px; }

.form { display: grid; gap: 16px; padding: 24px; border-radius: 20px; background: var(--bg); border: 1px solid var(--outline); box-shadow: var(--shadow-card); }
.form-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .8125rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; }
.counter { font-size: .75rem; color: var(--muted); }
.input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--outline); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; font-size: .9375rem; transition: border-color .2s, box-shadow .2s; }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea.input { height: auto; min-height: 130px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgb(25 118 211 / .2); }
.input::placeholder { color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); flex: none; }
.check a { color: var(--primary); }
.form .btn { justify-self: start; }
.form-hint { font-size: .8125rem; color: var(--muted); }
.form-ok[hidden] { display: none; }
.form-ok { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--radius-lg); background: rgb(21 128 61 / .12); color: var(--success); animation: fadeUp .5s var(--ease); }
.form-ok .i { width: 20px; height: 20px; margin-top: 2px; stroke-width: 2.2; }
.form-ok span { color: var(--text); font-size: .9375rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--outline); background: var(--bg); padding-block: 48px 28px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: .9375rem; max-width: 34ch; }
@media (min-width: 900px) { .footer-brand { grid-column: span 2; } }
.site-footer h4 { font-size: .875rem; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { text-decoration: none; color: var(--text); font-size: .9375rem; transition: color .2s; }
.site-footer ul a:hover { color: var(--primary); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--outline); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .875rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--primary); }
.site-footer > .container > .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- Flotantes ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--bg); background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--outline); transform: translateY(110%); transition: transform .4s var(--ease); }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 55; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgb(0 0 0 / .5); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background-color .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--primary); }
@media (max-width: 1023px) { .to-top { bottom: 86px; } }

/* ---------- Páginas legales ---------- */
.legal-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: #fff; padding-block: clamp(40px, 6vw, 72px); }
.legal-hero .container { position: relative; z-index: 1; }
.legal-hero .eyebrow { color: var(--neon); }
.legal-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 900; margin-top: 12px; }
.legal-hero .meta { margin-top: 12px; color: rgb(255 255 255 / .7); }
.legal-hero .meta a { color: #fff; }
.legal-layout { display: grid; gap: 32px; padding-block: clamp(32px, 5vw, 56px); align-items: start; }
@media (min-width: 1024px) { .legal-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; } }
.legal-index { display: none; position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius-xl); padding: 16px; max-height: calc(100vh - 112px); overflow: auto; }
@media (min-width: 1024px) { .legal-index { display: block; } }
.legal-index h2 { font-size: .8125rem; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }
.legal-index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: idx; }
.legal-index a { display: flex; gap: 8px; padding: 6px 8px; border-radius: var(--radius); font-size: .875rem; color: var(--muted); text-decoration: none; counter-increment: idx; transition: background-color .2s, color .2s; }
.legal-index a::before { content: counter(idx) "."; color: var(--accent); font-family: var(--font-display); font-weight: 700; min-width: 1.6em; }
.legal-index a:hover { background: var(--surface-2); color: var(--text); }
.legal-index a.active { background: var(--primary-container); color: var(--on-primary-container); font-weight: 600; }
.legal { display: grid; gap: 14px; max-width: 820px; }
.legal-intro { color: var(--muted); font-size: 1.0625rem; margin-bottom: 10px; }
.legal-section { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius-xl); padding: 24px; scroll-margin-top: 90px; transition: border-color .3s; }
.legal-section:target { border-color: var(--primary); }
.legal-section h2 { display: flex; gap: 12px; align-items: baseline; font-size: 1.375rem; font-weight: 700; }
.legal-section h2 .num { font-family: var(--font-display); font-weight: 900; color: var(--accent); font-size: 1.75rem; line-height: 1; min-width: 1.6em; }
.legal-section p { margin-top: 12px; line-height: 1.65; }
.legal-section ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; line-height: 1.6; }
.see-also { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: var(--radius-xl); background: var(--bg); border: 1px solid var(--outline); text-decoration: none; color: var(--text); margin-top: 8px; transition: border-color .25s, transform .25s var(--ease); }
.see-also:hover { border-color: var(--primary); transform: translateX(4px); }
.see-also small { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--accent); font-weight: 700; }
.see-also strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.25rem; margin-top: 2px; }
.see-also .i { color: var(--primary); }
.legal-foot { color: var(--muted); font-size: .9375rem; }
.legal-foot a { color: var(--primary); }

/* ---------- Aparición al hacer scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .85s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); will-change: opacity, transform; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: .08; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-70px, 50px) scale(1.18); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes shine { 0%, 55% { background-position: 0% 0; } 100% { background-position: 100% 0; } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes toast { 0%, 100% { opacity: 0; transform: translateY(14px) scale(.96); } 5%, 38% { opacity: 1; transform: none; } 44% { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes badge-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes ilfloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7px) rotate(.6deg); } }
@keyframes ilbounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes dashflow { to { stroke-dashoffset: -20; } }

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .hl { background: none; -webkit-text-fill-color: currentColor; color: var(--neon); }
  .court line { stroke-dashoffset: 0; opacity: .08; }
  .court line.dash { opacity: .08; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; }
  .marquee-list[aria-hidden] { display: none; }
  .toast { display: none; }
  .phone { transform: none; }
  .steps.in .steps-line i, .timeline.in .timeline-line i { transform: scaleX(1); }
  .tl-dot { transform: scale(1); }
}
