:root {
  --bg: #0E0E0E;
  --bg-soft: #131313;
  --card: #202020;
  --card-soft: #1A1A1A;
  --input: #2C2C2C;
  --border: #484847;
  --text: #FFFFFF;
  --muted: #ADAAAA;
  --dim: #767575;
  --accent: #84ADFF;
  --accent-strong: #0070EA;
  --red: #FF716C;
  --green: #33FF33;
  --yellow: #FFCC00;
  --radius: 16px;
  --radius-lg: 24px;
  --space: clamp(16px, 2.5vw, 32px);
}

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

/* Protección básica anti-copia */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
/* Reestablecer pointer-events en imágenes dentro de links (para que el
   click en botones con íconos siga funcionando). */
a img, button img, .btn img { pointer-events: auto; }
/* Dejar seleccionables inputs (por si agregamos alguno a futuro) */
input, textarea { -webkit-user-select: text; user-select: text; }
html { scroll-behavior: smooth; overflow-x: clip; max-width: 100vw; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  width: 100%;
  max-width: 100vw;
}
main, section, footer { max-width: 100%; overflow-x: clip; }

/* Skip link (accesibilidad) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #000;
  padding: 10px 16px; border-radius: 0 0 10px 0;
  font-weight: 600; font-size: 13px;
}
.skip-link:focus { left: 0; }

/* ---------- Animated background ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  will-change: transform;
}
.orb-1 { width: 560px; height: 560px; background: #0070EA; top: -150px; left: -150px; animation: float1 22s ease-in-out infinite; }
.orb-2 { width: 480px; height: 480px; background: #84ADFF; top: 40%; right: -180px; animation: float2 28s ease-in-out infinite; }
.orb-3 { width: 520px; height: 520px; background: #5F1E4A; bottom: -180px; left: 20%; animation: float3 30s ease-in-out infinite; opacity: 0.25; }

@keyframes float1 { 0%,100%{ transform: translate(0,0);} 50%{ transform: translate(80px,60px);} }
@keyframes float2 { 0%,100%{ transform: translate(0,0);} 50%{ transform: translate(-60px,-40px);} }
@keyframes float3 { 0%,100%{ transform: translate(0,0);} 50%{ transform: translate(40px,-80px);} }

.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: rgba(14,14,14,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--accent); }
.logo-icon { font-size: 22px; filter: drop-shadow(0 0 8px rgba(132,173,255,0.6)); }
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; letter-spacing: 2px; font-size: 18px;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #000 !important; padding: 8px 16px; border-radius: 10px;
  font-weight: 600 !important;
  box-shadow: 0 4px 20px rgba(0,112,234,0.35);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,112,234,0.5); }

.nav-cta-demo,
.nav-cta-demo:link,
.nav-cta-demo:visited {
  display: inline-flex; align-items: center; gap: 8px;
  background-color: #33C759;
  background-image: linear-gradient(135deg, #33C759, #33FF33);
  color: #001a08 !important;
  padding: 8px 16px; border-radius: 10px;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px rgba(51, 255, 51, 0.35);
  transition: transform .2s, box-shadow .2s;
  animation: demo-pulse 2.4s ease-in-out infinite;
}
.nav-cta-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(51, 255, 51, 0.55);
  animation: none;
}
.nav-cta-demo .demo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #001a08;
  box-shadow: 0 0 0 0 rgba(0, 26, 8, 0.6);
  animation: demo-dot-pulse 1.6s ease-in-out infinite;
}
@keyframes demo-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(51, 255, 51, 0.35); }
  50% { box-shadow: 0 4px 28px rgba(51, 255, 51, 0.65); }
}
@keyframes demo-dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 26, 8, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(0, 26, 8, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 26, 8, 0); }
}

.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); padding: 4px; cursor: pointer; }

@media (max-width: 640px) {
  .mobile-menu-btn { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(14,14,14,0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-direction: column; padding: 24px; gap: 20px;
    opacity: 0; pointer-events: none; transform: translateY(-10px);
    transition: opacity .2s, transform .2s;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  }
  .nav-links.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links a:not(.nav-cta):not(.nav-cta-demo) { display: block; font-size: 16px; text-align: center; }
  .nav-cta, .nav-cta-demo { width: 100%; justify-content: center; }
}

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
section { padding: 90px 0; position: relative; z-index: 1; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* ---------- Hero ---------- */
.hero {
  max-width: 1280px; margin: 0 auto;
  padding: 70px 24px 90px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 40px; }
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(132,173,255,0.08);
  border: 1px solid rgba(132,173,255,0.25);
  color: var(--accent); font-size: 12px; font-weight: 600;
  margin-bottom: 24px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(51,255,51,0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(51,255,51,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(51,255,51,0); }
  100% { box-shadow: 0 0 0 0 rgba(51,255,51,0); }
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.05; font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.grad-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  color: var(--muted); font-size: clamp(15px, 1.4vw, 18px);
  max-width: 520px; margin-bottom: 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.hero-price-pill { margin-bottom: 20px; }
.price-pill-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(132,173,255,0.08);
  border: 1px solid rgba(132,173,255,0.35);
  text-decoration: none;
  font-size: 14px; font-weight: 600;
  transition: background .2s, border-color .2s;
}
.price-pill-link:hover {
  background: rgba(132,173,255,0.15);
  border-color: rgba(132,173,255,0.6);
}
.price-pill-amount {
  color: var(--accent);
  font-size: 17px; font-weight: 700;
}
.price-pill-sep { color: var(--dim); }
.price-pill-link > [data-i18n] { color: var(--muted); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  color: var(--dim); font-size: 13px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 12px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #000;
  box-shadow: 0 8px 32px rgba(0,112,234,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,112,234,0.5); }
.btn-ghost {
  background: rgba(132, 173, 255, 0.12);
  border-color: rgba(132, 173, 255, 0.35);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(132, 173, 255, 0.2); border-color: rgba(132, 173, 255, 0.6); }
.btn-demo,
.btn-demo:link,
.btn-demo:visited {
  background-color: #33C759;
  background-image: linear-gradient(135deg, #33C759, #33FF33);
  color: #001a08;
  box-shadow: 0 8px 32px rgba(51,255,51,0.3);
}
.btn-demo:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(51,255,51,0.5); }
.btn-dual-icon {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-xl { padding: 16px 28px; font-size: 16px; }

/* Mobile buttons */
@media (max-width: 640px) {
  .hero-cta {
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 16px;
    font-size: 16px;
    font-weight: 700;
  }
  .hero-cta .btn-demo {
    background: transparent;
    border: 1px solid var(--green);
    color: var(--green) !important;
    box-shadow: none;
    animation: none;
  }
  .hero-cta .btn-demo:hover {
    background: rgba(51, 255, 51, 0.1);
  }
}

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 480px;
  display: flex; align-items: center; justify-content: center;
}
/* El wrapper interno recibe el parallax del mouse. Así el wrapper externo
   puede seguir haciendo su reveal sin conflicto de transforms. */
.hero-visual-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transform: translate(var(--mx, 0), var(--my, 0));
  transition: transform .2s ease-out;
}
.hero-visual picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 520px);
}
.phone {
  position: absolute;
  border-radius: 32px; overflow: hidden;
  background: #000;
  border: 10px solid #1a1a1a;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(132,173,255,0.15);
}
.phone img { display: block; width: 100%; height: auto; }

/* Carrusel del teléfono central — multiple imgs stacked with opacity. */
.phone-main {
  width: 260px;
  z-index: 3;
  animation: phoneFloat 6s ease-in-out infinite;
  aspect-ratio: 9/19;
}
.phone-main img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .7s ease;
}
.phone-main img.is-active { opacity: 1; }
/* Fallback sin JS: si no corre el carrusel, el primer img queda visible */
:not(.js-ready) .phone-main img:first-child { opacity: 1; }

.phone-side {
  width: 200px;
  opacity: 0.85;
  z-index: 1;
}
.phone-side-1 { animation: phoneFloatSide1 7s ease-in-out -2s infinite; }
.phone-side-2 { animation: phoneFloatSide2 7s ease-in-out -4s infinite; }
@keyframes phoneFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}
@keyframes phoneFloatSide1 {
  0%,100% { transform: translate(-170px, -20px) rotate(-8deg); }
  50%     { transform: translate(-170px, -32px) rotate(-8deg); }
}
@keyframes phoneFloatSide2 {
  0%,100% { transform: translate(170px, 30px) rotate(8deg); }
  50%     { transform: translate(170px, 18px) rotate(8deg); }
}
.glow-ring {
  position: absolute; z-index: 0;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,112,234,0.25) 0%, transparent 60%);
  filter: blur(40px);
}
@media (max-width: 900px) {
  .hero-visual { min-height: 540px; }
  .phone-main { width: 240px; }
  .phone-side { width: 180px; }
  @keyframes phoneFloatSide1 {
    0%,100% { transform: translate(-140px, -10px) rotate(-8deg); }
    50%     { transform: translate(-140px, -22px) rotate(-8deg); }
  }
  @keyframes phoneFloatSide2 {
    0%,100% { transform: translate(140px, 20px) rotate(8deg); }
    50%     { transform: translate(140px, 10px) rotate(8deg); }
  }
}
@media (max-width: 560px) {
  .hero-visual { min-height: 500px; }
  .phone-main { width: 220px; }
  .phone-side { display: none; }
}

/* ---------- Section headers ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  color: var(--accent); text-transform: uppercase;
  display: inline-block; margin-bottom: 14px;
}
.section-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -1px; margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- Stats ---------- */
.stats { padding: 40px 0 20px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  max-width: 1000px; margin: 0 auto;
}
.stat-card {
  text-align: center;
  padding: 28px 20px;
  background: linear-gradient(180deg, rgba(32,32,32,0.8), rgba(26,26,26,0.8));
  border: 1px solid rgba(132,173,255,0.15);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px; color: var(--muted);
  font-weight: 500;
}

/* ---------- Trust / EEAT ---------- */
.trust-section { padding: 80px 0; position: relative; z-index: 1; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.trust-card {
  background: linear-gradient(180deg, rgba(32,32,32,0.88), rgba(20,20,20,0.92));
  border: 1px solid rgba(132,173,255,0.16);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 210px;
}
.trust-card-muted { border-color: rgba(255,255,255,0.08); }
.trust-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(132,173,255,0.12);
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 14px;
}
.trust-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  margin-bottom: 8px;
}
.trust-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 24px;
  position: relative; overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.feature::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, var(--c, var(--accent)) 0%, transparent 60%);
  opacity: 0.06; transition: opacity .3s;
  pointer-events: none;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(132,173,255,0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(132,173,255,0.15);
}
.feature:hover::before { opacity: 0.14; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent);
  color: var(--c, var(--accent));
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature h3 { font-family: 'Space Grotesk', sans-serif; font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.feature code {
  background: rgba(132,173,255,0.1);
  color: var(--accent);
  padding: 1px 5px; border-radius: 4px; font-size: 12px;
  font-family: 'Space Grotesk', monospace;
}

/* ---------- Compare (Antes / Ahora) ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1000px; margin: 0 auto;
}
@media (max-width: 720px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
}
.compare-card--bad { border-color: rgba(255,113,108,0.2); }
.compare-card--good {
  border-color: rgba(132,173,255,0.3);
  background: linear-gradient(180deg, rgba(32,32,32,1), rgba(26,35,50,1));
  box-shadow: 0 20px 60px rgba(0,112,234,0.15);
}
.compare-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.compare-card--bad h3 { color: var(--red); }
.compare-card--good h3 { color: var(--accent); }
.compare-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.compare-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; color: var(--text);
}
.compare-list li::before {
  content: ""; flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 50%;
  margin-top: 1px;
}
.compare-card--bad .compare-list li::before {
  background: rgba(255,113,108,0.15);
  box-shadow: inset 0 0 0 1.5px var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF716C'%3E%3Cpath d='M18.3 5.7L12 12l6.3 6.3-1.4 1.4L10.6 13.4 4.3 19.7 2.9 18.3 9.2 12 2.9 5.7 4.3 4.3l6.3 6.3 6.3-6.3z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}
.compare-card--good .compare-list li::before {
  background: rgba(51,255,51,0.15);
  box-shadow: inset 0 0 0 1.5px var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2333FF33'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Cómo funciona ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px; margin: 0 auto;
}
@media (max-width: 820px) { .steps-grid { grid-template-columns: 1fr; } }
.step {
  padding: 28px 24px 32px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(132,173,255,0.25); }
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 64px; font-weight: 700;
  line-height: 1; letter-spacing: -3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.5;
  margin-bottom: 10px;
}
.step h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px; margin-bottom: 8px;
}
.step p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.step-icon {
  position: absolute;
  top: 24px; right: 24px;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(132,173,255,0.1);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Screenshots — Cover Flow slider ---------- */
.screens-coverflow {
  position: relative;
  perspective: 1600px;
  padding: 20px 0 40px;
  overflow: hidden;
}
.screens-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 30px clamp(40px, 40vw, 45vw);
  transform-style: preserve-3d;
}
.screens-grid::-webkit-scrollbar { display: none; }

.screen-card {
  flex: 0 0 auto;
  width: min(240px, 72vw);
  scroll-snap-align: center;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
  position: relative;
  transform-origin: center center;
  transition: transform .35s ease, opacity .35s ease, box-shadow .35s ease, border-color .35s ease;
  will-change: transform, opacity;
  opacity: 0.5;
  transform: scale(0.82) rotateY(var(--rot, 0deg));
}
.screen-card.is-center {
  opacity: 1;
  transform: scale(1.04) rotateY(0deg);
  border-color: rgba(132,173,255,0.35);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(132,173,255,0.15);
  z-index: 2;
}
.screen-card.is-near {
  opacity: 0.85;
  transform: scale(0.92) rotateY(var(--rot, 0deg));
}
.screen-card img {
  display: block; width: 100%; height: auto;
  border-radius: 12px;
  background: #000;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}
.screen-card figcaption { padding: 4px 4px 6px; text-align: center; }
.screen-card strong {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; color: var(--text); margin-bottom: 2px;
}
.screen-card span { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; }

.coverflow-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(20,20,20,0.8);
  border: 1px solid rgba(132,173,255,0.3);
  backdrop-filter: blur(8px);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 22px; font-weight: 700;
  z-index: 5;
  transition: background .2s, transform .2s;
}
.coverflow-nav:hover { background: rgba(132,173,255,0.15); transform: translateY(-50%) scale(1.08); }
.coverflow-prev { left: 16px; }
.coverflow-next { right: 16px; }
@media (max-width: 640px) {
  .coverflow-nav { width: 38px; height: 38px; font-size: 18px; }
  .coverflow-prev { left: 8px; }
  .coverflow-next { right: 8px; }
  .screens-grid { padding: 30px 35vw; }
}

/* ---------- Pricing ---------- */
.price-card {
  max-width: 540px; margin: 0 auto;
  background: var(--card);
  border: 1px solid rgba(132,173,255,0.3);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.price-glow {
  position: absolute; inset: -1px; border-radius: inherit;
  pointer-events: none; z-index: 0;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(132,173,255,0.35) 90deg, transparent 180deg, rgba(0,112,234,0.4) 270deg, transparent 360deg);
  filter: blur(24px); opacity: 0.6;
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.price-top { text-align: center; position: relative; z-index: 1; margin-bottom: 24px; }
.price-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  color: var(--muted);
}
.price-main { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 10px; }
.price-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(56px, 8vw, 84px);
  font-weight: 700; line-height: 1; letter-spacing: -3px;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.price-currency { color: var(--muted); font-size: 20px; font-weight: 600; }
.price-sub { color: var(--dim); font-size: 12px; margin-top: 8px; }

.price-features { list-style: none; padding: 0; margin: 0 0 28px; position: relative; z-index: 1; }
.price-features li {
  padding: 10px 0 10px 28px;
  color: var(--text); font-size: 14px;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  position: relative;
}
.price-features li::before {
  content: "";
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(51,255,51,0.15);
  box-shadow: inset 0 0 0 1.5px var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2333FF33'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}
.price-features li:last-child { border-bottom: none; }

.payments-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 14px; text-align: center;
  position: relative; z-index: 1;
}
.payments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
  position: relative; z-index: 1;
}
@media (max-width: 480px) { .payments { grid-template-columns: repeat(2, 1fr); } }
.pay-method {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px;
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  transition: transform .2s, border-color .2s;
}
.pay-method:hover { transform: translateY(-2px); border-color: rgba(132,173,255,0.25); }
.pay-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pay-icon svg { width: 100%; height: 100%; display: block; }
.pay-method span { color: var(--muted); font-size: 11px; text-align: center; }

.price-card .btn {
  width: 100%; justify-content: center;
  position: relative; z-index: 1;
}
.price-footnote {
  text-align: center; color: var(--dim); font-size: 11px;
  margin-top: 14px; position: relative; z-index: 1;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 780px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 10px;
}
.faq details {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 16px 20px;
  transition: border-color .2s, background .2s;
}
.faq details:hover { border-color: rgba(132,173,255,0.25); }
.faq details[open] { border-color: rgba(132,173,255,0.35); background: linear-gradient(180deg, var(--card), var(--card-soft)); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 600;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px; font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .3s;
}
.faq details[open] summary::after { content: "−"; }
.faq details > p, .faq details > div {
  margin-top: 14px;
  color: var(--muted); font-size: 14px; line-height: 1.65;
}

/* ---------- Download ---------- */
.download-inner {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
}
@media (max-width: 900px) {
  .download-inner { grid-template-columns: 1fr; gap: 32px; }
}
.download-text .eyebrow,
.download-text h2,
.download-text p { text-align: left; }
.download-text h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15; margin-bottom: 14px;
}
.download-text p { color: var(--muted); margin-bottom: 24px; max-width: 540px; }
.download-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.download-size { color: var(--dim); font-size: 13px; }
.download-hint {
  padding: 16px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; font-size: 13px; color: var(--muted); max-width: 540px;
}
.download-hint strong { display: block; margin-bottom: 8px; color: var(--text); font-weight: 600; }
.download-hint ol { margin: 0 0 0 18px; line-height: 1.7; }

.download-visual { display: flex; align-items: center; justify-content: center; position: relative; }
.big-logo { position: relative; width: 280px; aspect-ratio: 1; }
.big-logo img {
  width: 100%; height: 100%; object-fit: contain;
  position: relative; z-index: 2;
  animation: logoFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0,112,234,0.4));
}
@keyframes logoFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.big-logo-glow {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,112,234,0.5) 0%, transparent 70%);
  filter: blur(50px); z-index: 1;
  animation: logoGlow 4s ease-in-out infinite alternate;
}
@keyframes logoGlow {
  0% { opacity: 0.5; transform: scale(0.95); }
  100% { opacity: 0.9; transform: scale(1.05); }
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 80px 0 60px;
}
.final-cta-card {
  max-width: 960px; margin: 0 auto;
  padding: 56px 40px;
  background: linear-gradient(135deg, rgba(0,112,234,0.12) 0%, rgba(132,173,255,0.08) 100%);
  border: 1px solid rgba(132,173,255,0.3);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,112,234,0.15);
}
.final-cta-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,112,234,0.25) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(132,173,255,0.18) 0%, transparent 40%);
  pointer-events: none;
}
.final-cta-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.15; margin-bottom: 12px; position: relative;
  letter-spacing: -1px;
}
.final-cta-card p { color: var(--muted); max-width: 580px; margin: 0 auto 28px; position: relative; }
.final-cta-buttons {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  position: relative;
}

/* ---------- Sticky mobile download bar ---------- */
.sticky-dl {
  position: fixed; bottom: -100px; left: 0; right: 0; z-index: 60;
  padding: 12px 16px 16px;
  background: rgba(14,14,14,0.92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid rgba(132,173,255,0.2);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: bottom .4s cubic-bezier(.22, 1, .36, 1);
}
.sticky-dl.is-visible { bottom: 0; }
.sticky-dl-info {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.sticky-dl-info strong { font-size: 13px; color: var(--text); font-family: 'Space Grotesk', sans-serif; }
.sticky-dl-info span { font-size: 11px; color: var(--muted); }
.sticky-dl .btn { padding: 10px 18px; font-size: 13px; flex-shrink: 0; }
@media (min-width: 721px) { .sticky-dl { display: none; } }

/* ---------- Footer ---------- */
footer {
  background: #050505;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 60px 0 30px;
  margin-top: 40px;
  position: relative; z-index: 1;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr 2fr; gap: 48px;
}
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-tagline { color: var(--dim); font-size: 13px; margin-top: 12px; max-width: 260px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-cols h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-cols a {
  display: block; color: var(--text); text-decoration: none; font-size: 14px;
  padding: 6px 0; transition: color .2s;
}
.footer-cols a:hover { color: var(--accent); }
.footer-cols a.wa-link { display: inline-flex; align-items: center; gap: 8px; color: #25D366; }
.footer-cols a.wa-link:hover { color: #33e37a; }
.footer-copy {
  max-width: 1200px; margin: 40px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--dim); font-size: 12px; text-align: center;
}

/* ---------- Reveal animations — only when JS loaded ---------- */
/* Por default TODO el contenido está visible. Solo si el JS agrega .js-ready
   a <html>, aplicamos el estado oculto inicial y la transición hasta visible.
   De esta forma si el JS no corre (bot, error, no-JS), la página se ve
   entera y NO queda en blanco. */
/* Fade-in desactivado — todo se muestra al instante */
.js-ready .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .phone-main, .phone-side-1, .phone-side-2,
  .big-logo img, .big-logo-glow, .price-glow { animation: none !important; }
  .phone-main img { transition: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .bg-orbs, .bg-grid, .sticky-dl, .nav, .hero-visual, .price-glow { display: none !important; }
  body { background: #fff; color: #000; }
  .container { max-width: 100%; }
  section { padding: 20px 0; }
  .feature, .screen-card, .compare-card, .step, .faq details, .price-card, .final-cta-card {
    background: #fff !important; color: #000 !important;
    border: 1px solid #ccc !important; box-shadow: none !important;
  }
  .grad-text, .price-amount, .step-num { -webkit-text-fill-color: initial !important; color: #000 !important; }
}

/* ============================================================
   v2 — additions for demo / manual / iOS / grouped payments
   ============================================================ */

/* Hero badges (multi) */
.hero-badges { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hero-badges .badge { margin-bottom: 0; }
.badge-ok { background: rgba(51,255,51,0.08); border-color: rgba(51,255,51,0.25); color: var(--green); }
.badge-soon { background: rgba(132,173,255,0.08); border-color: rgba(132,173,255,0.25); color: var(--accent); }

/* Hero collage (replaces 3-phone stack) */
.hero-collage {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 22px;
  box-shadow:
    0 40px 90px rgba(0,0,0,0.6),
    0 0 0 1px rgba(132,173,255,0.12);
  animation: collageFloat 8s ease-in-out infinite;
}
@keyframes collageFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-collage { animation: none; }
}

/* Demo section */
.demo { padding: 80px 0; position: relative; z-index: 1; }
.demo-inner {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center;
}
.demo-image {
  position: relative;
  display: flex; justify-content: center;
}
.demo-image img {
  width: 100%; max-width: 420px; height: auto;
  border-radius: 24px;
  box-shadow:
    0 40px 90px rgba(0,0,0,0.6),
    0 0 0 1px rgba(132,173,255,0.12);
}
.demo-image::before {
  content: "";
  position: absolute; inset: -20px;
  background: radial-gradient(circle, rgba(132,173,255,0.22), transparent 60%);
  filter: blur(40px);
  z-index: -1;
}
.demo-text .eyebrow { display: inline-block; margin-bottom: 12px; }
.demo-text h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1; font-weight: 700;
  margin-bottom: 16px;
}
.demo-text > p {
  color: var(--muted); font-size: 16px;
  margin-bottom: 20px; max-width: 540px;
}
.demo-list {
  list-style: none; padding: 0; margin: 0 0 28px 0;
  display: flex; flex-direction: column; gap: 10px;
}
.demo-list li {
  color: var(--text); font-size: 14px;
  padding-left: 4px;
}
@media (max-width: 900px) {
  .demo-inner { grid-template-columns: 1fr; gap: 32px; }
  .demo-image { order: -1; }
}

/* Payments — grouped */
.payments-groups {
  display: flex; flex-direction: column; gap: 18px;
  margin-bottom: 28px; position: relative; z-index: 1;
}
.pay-group-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 10px;
  text-align: left;
}
.pay-group .payments { margin-bottom: 0; }
.pay-icon-img { background: #fff; padding: 0; overflow: hidden; }
.pay-icon-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pay-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-align: center;
  line-height: 1.1;
}

/* iOS notice */
.ios-notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(132,173,255,0.05);
  border: 1px solid rgba(132,173,255,0.2);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 24px;
  max-width: 520px;
}
.ios-icon {
  font-size: 28px; line-height: 1;
  flex-shrink: 0;
}
.ios-notice strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text); font-size: 15px;
  margin-bottom: 4px;
}
.ios-notice p {
  color: var(--muted); font-size: 13px;
  margin-bottom: 10px; line-height: 1.4;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* Manuals */
.manuals { padding: 80px 0; position: relative; z-index: 1; }
.manuals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.manual-card {
  display: block;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  position: relative;
}
.manual-card:hover {
  transform: translateY(-4px);
  border-color: rgba(132,173,255,0.35);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.manual-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: color-mix(in srgb, var(--c) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
  color: var(--c);
}
.manual-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px; font-weight: 700;
  margin-bottom: 8px;
}
.manual-card p {
  color: var(--muted); font-size: 13px; line-height: 1.5;
  margin-bottom: 14px;
}
.manual-cta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--accent);
}

/* ---------- Plataformas (tarjeta única con 3 logos) ---------- */
.platforms { padding: 80px 0; position: relative; z-index: 1; }
.platform-card-single {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 28px;
  background: rgba(26,26,26,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.platform-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 560px) { .platform-row { grid-template-columns: 1fr; } }
.platform-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  padding: 22px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.platform-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(132,173,255,0.35);
  background: rgba(132,173,255,0.06);
}
.platform-icon {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.platform-icon.windows { color: #00A4EF; }
.platform-icon.android { color: #3DDC84; }
.platform-icon.apple   { color: #ffffff; }
.platform-icon.ios     { color: #F5F5F7; }
.platform-icon.play {
  color: #001a08;
  background: linear-gradient(135deg, #33C759, #33FF33);
  border-color: rgba(51, 255, 51, 0.4);
  box-shadow: 0 4px 20px rgba(51, 255, 51, 0.3);
}
.platform-btn-demo:hover {
  border-color: rgba(51, 255, 51, 0.45) !important;
  background: rgba(51, 255, 51, 0.06) !important;
}
.platform-btn-demo:hover .platform-icon.play {
  box-shadow: 0 6px 24px rgba(51, 255, 51, 0.45);
}
.platform-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 700;
  margin-top: 4px;
}
.platform-sub {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.3px;
}

/* ---------- Scroll to Top Button ---------- */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(32, 32, 32, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(132, 173, 255, 0.3);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, background 0.3s, border-color 0.3s;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: rgba(132, 173, 255, 0.15);
  border-color: rgba(132, 173, 255, 0.6);
  transform: translateY(-4px);
}

@media (max-width: 640px) {
  .scroll-top-btn {
    bottom: 80px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

/* ---------- Legal pages ---------- */
.legal-main {
  position: relative;
  z-index: 1;
  padding: 72px 0 24px;
}
.legal-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 28px;
}
.legal-back:hover { color: var(--text); }
.legal-hero { margin-bottom: 28px; }
.legal-kicker {
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.legal-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
  margin-bottom: 16px;
}
.legal-hero p {
  color: var(--muted);
  max-width: 720px;
  font-size: 17px;
}
.legal-card {
  background: linear-gradient(180deg, rgba(32,32,32,0.92), rgba(18,18,18,0.96));
  border: 1px solid rgba(132,173,255,0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
  padding: clamp(22px, 4vw, 42px);
}
.legal-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  margin: 34px 0 12px;
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.legal-card ul {
  padding-left: 22px;
  margin: 10px 0 0;
}
.legal-card strong { color: var(--text); }
.legal-date {
  color: var(--dim);
  font-size: 13px;
  margin-top: 10px;
}
.legal-note {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(132,173,255,0.1);
  border: 1px solid rgba(132,173,255,0.18);
}
.legal-note p { color: var(--text); }

/* ---------- Asistente FixFlow ---------- */
.ai-assistant {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 96;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
}
.ai-assistant-panel,
.ai-assistant-toggle { pointer-events: auto; }
.ai-assistant-panel {
  width: min(340px, calc(100vw - 32px));
  height: min(430px, 56vh);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% 0%, rgba(132,173,255,0.2), transparent 32%),
    linear-gradient(180deg, rgba(34,34,38,0.96), rgba(14,14,16,0.98));
  border: 1px solid rgba(132,173,255,0.24);
  box-shadow: 0 26px 80px rgba(0,0,0,0.52);
  transform: translateY(18px) scale(0.96);
  transform-origin: right bottom;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.ai-assistant.is-open .ai-assistant-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.ai-assistant-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ai-assistant-avatar {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #07162d;
  background: linear-gradient(135deg, #84ADFF, #FFFFFF);
  box-shadow: 0 12px 28px rgba(132,173,255,0.28);
  font-size: 18px;
}
.ai-assistant-header strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
}
.ai-assistant-header span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 2px;
}
.ai-assistant-close {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.ai-assistant-messages {
  padding: 12px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(132,173,255,0.55) transparent;
}
.ai-msg {
  max-width: 90%;
  padding: 10px 11px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
}
.ai-msg.bot {
  align-self: flex-start;
  color: var(--text);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom-left-radius: 6px;
}
.ai-msg.user {
  align-self: flex-end;
  color: #061426;
  background: linear-gradient(135deg, #84ADFF, #C8DBFF);
  border-bottom-right-radius: 6px;
  font-weight: 600;
}
.ai-msg a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}
.ai-msg.user a { color: #061426; }
.ai-assistant-quick {
  display: flex;
  gap: 8px;
  padding: 0 12px 10px;
  overflow-x: auto;
}
.ai-assistant-quick button {
  border: 1px solid rgba(132,173,255,0.22);
  background: rgba(132,173,255,0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 10px;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 700;
  font-size: 11px;
}
.ai-assistant-form {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.ai-assistant-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 14px;
  padding: 11px 12px;
  outline: none;
  font: inherit;
}
.ai-assistant-form input:focus {
  border-color: rgba(132,173,255,0.8);
  box-shadow: 0 0 0 4px rgba(132,173,255,0.13);
}
.ai-assistant-form button {
  border: 0;
  border-radius: 14px;
  color: #061426;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ai-assistant-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(132,173,255,0.35);
  border-radius: 999px;
  padding: 12px 16px 12px 12px;
  color: #061426;
  background: linear-gradient(135deg, #FFFFFF, #AFC8FF);
  box-shadow: 0 18px 40px rgba(0,0,0,0.36);
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
}
.ai-assistant-toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #0070EA;
}
@media (max-width: 640px) {
  .ai-assistant {
    right: 14px;
    bottom: 76px;
  }
  .ai-assistant-panel {
    width: min(320px, calc(100vw - 56px));
    height: min(390px, 52vh);
    border-radius: 22px;
  }
  .ai-assistant-header { padding: 10px 12px; }
  .ai-assistant-messages { padding: 10px 12px; }
  .ai-msg { font-size: 12px; }
  .ai-assistant-quick { padding-bottom: 8px; }
  .ai-assistant-form { grid-template-columns: 1fr 40px; padding: 10px; }
  .ai-assistant-toggle span:last-child { display: none; }
  .ai-assistant-toggle { padding: 10px; }
}
