:root {
  --night:      #0E0628;
  --night-2:    #160B3B;
  --night-deep: #09041C;
  --magenta:    #F21F7B;
  --violet:     #7C3AED;
  --violet-soft:#A78BFA;
  --blue:       #2DA0F6;
  --gold:       #FC9623;
  --white:      #F9F9F8;
  --muted:      rgba(249,249,248,0.60);
  --green:      #2FBF71;
  --grad: linear-gradient(120deg, #F21F7B 0%, #7C3AED 55%, #2DA0F6 100%);
  --border: rgba(167,139,250,0.20);
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--night);
  color: var(--white);
  overflow-x: hidden;
  width: 100%;
}
::selection { background: var(--violet); color: #fff; }
img { max-width: 100%; height: auto; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: 96px 0; overflow: hidden; }
@media (max-width: 640px) { section { padding: 64px 0; } }

h1, h2 { font-weight: 900; line-height: 1.1; letter-spacing: -0.5px; }
.accent { color: var(--magenta); }

/* ── Botones ── */
.btn {
  display: inline-block;
  background: var(--grad);
  color: #fff; text-decoration: none;
  font-weight: 900; font-size: 16px;
  padding: 15px 32px; border-radius: 999px;
  box-shadow: 0 8px 28px rgba(124,58,237,0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(124,58,237,0.5); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-ghost {
  display: inline-block;
  color: var(--white); text-decoration: none;
  font-weight: 800; font-size: 15px;
  padding: 14px 26px; border-radius: 999px;
  border: 1.5px solid rgba(249,249,248,0.25);
  transition: border-color 0.18s, background 0.18s;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--violet-soft); background: rgba(124,58,237,0.12); }
.btn-ghost:active { transform: scale(0.98); }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100; min-height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 24px;
  background: rgba(14,6,40,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.nav-brand img { width: 38px; height: 38px; }
.nav-brand strong { font-size: 18px; font-weight: 900; color: var(--white); }
.nav-brand small { display: block; font-size: 8px; font-weight: 800; letter-spacing: 2px; color: var(--violet-soft); text-transform: uppercase; white-space: nowrap; }
@media (max-width: 480px) {
  .nav-brand small { display: none; }
  nav > a.btn { font-size: 12px !important; padding: 9px 16px !important; }
}

/* ── Frames de dispositivo (screenshots reales) ── */
.phone {
  border-radius: 38px;
  background: #050212;
  padding: 10px;
  border: 1px solid rgba(167,139,250,0.30);
  box-shadow: 0 30px 80px rgba(5,2,18,0.8), 0 8px 30px rgba(124,58,237,0.25);
}
.phone img { display: block; border-radius: 28px; width: 100%; }
.browser {
  border-radius: 14px;
  background: #050212;
  border: 1px solid rgba(167,139,250,0.30);
  box-shadow: 0 30px 80px rgba(5,2,18,0.8), 0 8px 30px rgba(124,58,237,0.2);
  overflow: hidden;
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #0B0524;
  border-bottom: 1px solid rgba(167,139,250,0.15);
}
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(249,249,248,0.18); }
.browser-bar span {
  margin-left: 10px; font-size: 11px; font-weight: 700; font-style: normal;
  color: var(--muted); background: rgba(249,249,248,0.06);
  padding: 3px 14px; border-radius: 6px;
}
.browser img { display: block; width: 100%; }

/* ── Hero split ── */
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center;
  padding-top: 48px;
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 6fr 5fr; } }
.hero-visual { display: flex; align-items: flex-end; justify-content: center; gap: 0; }
.hero-visual .phone { width: min(220px, 50vw); flex-shrink: 0; }
.hero-visual .hero-mascot {
  width: min(300px, 58vw);
  flex-shrink: 0;
  margin-left: -34px;
  margin-bottom: -6px;
  filter: drop-shadow(0 16px 40px rgba(9,4,28,0.8));
}

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 800;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--violet-soft);
  margin-bottom: 16px;
}

/* ── Stat ── */
.stat-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 860px) { .stat-grid { grid-template-columns: 7fr 4fr; } }

/* ── Tiles (mockups de marca: paneles propios, sin recuadro agregado) ── */
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.tile-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 720px) { .tile-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 560px) and (max-width: 719px) { .tile-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .tile-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) { .ia-demo-grid { grid-template-columns: repeat(2, 1fr) !important; } }
.tile { transition: transform 0.2s ease; }
.tile:hover { transform: translateY(-4px); }
.tile img {
  display: block; width: 100%; border-radius: 22px;
  filter: drop-shadow(0 20px 50px rgba(5,2,18,0.55));
}
.tile-cap {
  font-size: 13px; font-weight: 800; color: var(--muted);
  text-align: center; margin-top: 14px;
}
.tile-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--violet); color: #fff; font-size: 11px; font-weight: 900;
  margin-right: 6px;
}
@media (min-width: 760px) { .panel-split { grid-template-columns: 7fr 5fr !important; } }

/* ── Pricing ── */
.price-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .price-grid { grid-template-columns: 5fr 6fr; } }
.price-card {
  position: relative;
  background: var(--night-2);
  border-radius: 24px; padding: 40px 34px;
}
.price-card::before {
  content: ""; position: absolute; inset: -1.5px;
  border-radius: 25px; padding: 1.5px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 26px 0 28px; }
.price-card li { display: flex; gap: 12px; font-size: 15px; font-weight: 700; align-items: baseline; }
.price-card li b { color: var(--green); font-weight: 900; }
.paypal-shell { background: #fff; border-radius: 14px; padding: 12px; }

/* ── FAQ ── */
details {
  background: var(--night-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px;
  margin-bottom: 10px;
}
details summary {
  cursor: pointer; font-weight: 800; font-size: 15px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--violet-soft); font-size: 22px; font-weight: 600; transition: transform 0.25s; flex-shrink: 0; }
details[open] summary::after { transform: rotate(45deg); }
details p { font-size: 14px; color: var(--muted); line-height: 1.7; padding-top: 12px; font-weight: 600; }

/* ── Beneficios: sin cuadros, ícono animado + texto ── */
.benefit-grid { display: grid; grid-template-columns: 1fr; gap: 40px 32px; }
@media (min-width: 620px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .benefit-grid { grid-template-columns: repeat(4, 1fr); } }
.benefit-item { text-align: center; }
.benefit-icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: radial-gradient(circle at 35% 30%, rgba(124,58,237,0.35), rgba(124,58,237,0.06));
  border: 1.5px solid var(--border);
  animation: benefit-float 3.6s ease-in-out infinite;
}
.benefit-item:nth-child(2n) .benefit-icon { animation-delay: 0.6s; }
.benefit-item:nth-child(3n) .benefit-icon { animation-delay: 1.2s; }
.benefit-item:nth-child(4n) .benefit-icon { animation-delay: 1.8s; }
@keyframes benefit-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.benefit-item h3 { font-size: 15px; font-weight: 900; margin-bottom: 8px; line-height: 1.3; }
.benefit-item p { font-size: 13px; color: var(--muted); font-weight: 600; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .benefit-icon { animation: none; } }

/* ── Animación "El problema": línea de proceso con pasos ── */
.process-timeline { position: relative; text-align: left; margin-top: 44px; padding-left: 56px; }
.process-line-track {
  position: absolute; left: 27px; top: 6px; bottom: 6px; width: 3px;
  background: rgba(167,139,250,0.15); border-radius: 3px; overflow: hidden;
}
.process-line-fill { width: 100%; height: 0%; background: var(--grad); border-radius: 3px; }
.process-step { position: relative; margin-bottom: 40px; }
.process-step:last-child { margin-bottom: 0; }
.process-dot {
  position: absolute; left: -56px; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--night-2); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.process-step.is-active .process-dot { border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(242,31,123,0.15); }
.process-text h3 { font-size: 16px; font-weight: 900; margin-bottom: 6px; line-height: 1.3; }
.process-text p { font-size: 14px; color: var(--muted); font-weight: 600; line-height: 1.6; }

/* ── Estrellas / glows ── */
.stars { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.star { position: absolute; border-radius: 50%; background: #fff; animation: twinkle var(--tw, 3s) ease-in-out var(--td, 0s) infinite; }
@keyframes twinkle { 0%,100% { opacity: 0.12; } 50% { opacity: 0.6; } }
.glow { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; opacity: 0.25; }

/* ── Sticky CTA mobile ── */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta {
    display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(14,6,40,0.92); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
  }
  .sticky-cta a { display: block; text-align: center; }
}

footer { background: var(--night-deep); padding: 40px 24px 64px; border-top: 1px solid var(--border); }

@media (prefers-reduced-motion: reduce) {
  .star { animation: none; opacity: 0.3; }
  html { scroll-behavior: auto; }
}
