/* Diseño "23 flúor" (28-11-2026, elegido por el dueño): morado eléctrico y fucsia neón.
   Va DESPUÉS de styles.css. */
:root {
  --bg: #1c0042;
  --bg-elev: #2a0766;
  --ink: #ffffff;
  --muted: #e6d8ff;
  --dim: #bda8e6;
  --indigo: #8a00ff;
  --violet: #b14bff;
  --magenta: #ff00e5;
  --rose: #ff2b9d;
  --fucsia: #ff3df5;
  --celeste: #00eaff;
  --amarillo: #ffe600;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-strong: rgba(255, 255, 255, 0.16);
  --stroke: rgba(214, 120, 255, 0.45);
  --halo: rgba(255, 0, 229, 0.7);
  --display: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  --neon: linear-gradient(100deg, #8a00ff, #ff00e5, #ff2b9d, #ff00e5, #8a00ff);
}

/* ── Fondo ── */
.bg-scene { background: linear-gradient(170deg, #24005a, #5a00c8 45%, #1c0042); overflow: hidden; }
.bg-scene::before, .bg-scene::after { content: ""; position: absolute; width: 80vmax; height: 80vmax; border-radius: 50%; will-change: transform; }
.bg-scene::before { left: -40vmax; top: 14vh; background: radial-gradient(circle, rgba(255, 0, 229, 0.42), transparent 62%); animation: deriva 8s ease-in-out infinite alternate; }
.bg-scene::after { right: -42vmax; top: 44vh; background: radial-gradient(circle, rgba(0, 234, 255, 0.22), transparent 62%); animation: deriva 11s ease-in-out infinite alternate-reverse; }
@keyframes deriva { from { transform: translate3d(0, -6vh, 0) scale(0.9); } to { transform: translate3d(20vw, 10vh, 0) scale(1.2); } }
.bg-noise { opacity: 0.05; }

/* Focos, notas y chispas (los crea brillo.js) */
.notas { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.notas i { position: absolute; bottom: -40px; font-style: normal; opacity: 0; text-shadow: 0 0 10px var(--fucsia); animation: sube linear infinite; }
@keyframes sube { 0% { transform: translate3d(0, 0, 0) rotate(-12deg); opacity: 0; } 12% { opacity: 0.8; } 85% { opacity: 0.4; } 100% { transform: translate3d(30px, -105vh, 0) rotate(24deg); opacity: 0; } }
.notas u { position: absolute; top: -8vh; width: 22vmin; height: 70vh; text-decoration: none; transform-origin: 50% 0; opacity: 0.2; background: linear-gradient(180deg, var(--fucsia), transparent); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); animation: foco 4.6s ease-in-out infinite alternate; }
@keyframes foco { from { transform: rotate(28deg); } to { transform: rotate(-28deg); } }
.notas s { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; text-decoration: none; box-shadow: 0 0 8px 3px var(--fucsia); animation: chispa 1.8s ease-in-out infinite; }
@keyframes chispa { 0%, 100% { opacity: 0; transform: scale(0.3); } 50% { opacity: 1; transform: scale(1.3); } }

/* ── Encabezado y logo ── */
.nav { background: rgba(28, 0, 66, 0.8); border-bottom-color: var(--stroke); }
.logo { gap: 8px; }
.logo-3d { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 0 8px var(--fucsia)); animation: latido 1.2s ease-in-out infinite; }
@keyframes latido { 25% { transform: scale(1.15); } 40% { transform: scale(1); } 55% { transform: scale(1.08); } }
.logo-txt { font: 700 1.42rem/1 var(--display); letter-spacing: -0.4px; color: #fff; }
.logo-txt em { font-style: normal; color: var(--fucsia); text-shadow: 0 0 10px var(--fucsia); }
.logo-txt small { display: block; margin-top: 4px; font: 800 0.55rem/1 "Plus Jakarta Sans", sans-serif; letter-spacing: 0.9px; color: var(--dim); }
.logo .flag-cl { width: 22px; height: 15px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4); }
@media (max-width: 520px) {
  .logo-3d { width: 34px; height: 34px; }
  .logo { gap: 6px; }
  .logo-txt { font-size: 1.08rem; }
  .logo-txt small { display: none; }
  .logo .flag-cl { width: 18px; height: 12px; }
  .nav-inner { gap: 6px; }
  .nav .btn-sm { padding-left: 10px; padding-right: 10px; font-size: 0.74rem; }
}
@media (max-width: 360px) { .logo .flag-cl { display: none; } }

/* ── Títulos ── */
h1, .section h2, .h1-crear, .wizard-card h2, .wizard-card h3, .popit h2 { font-family: var(--display); }
.hero h1 em, .h1-crear, .section h2 {
  background: linear-gradient(90deg, var(--fucsia), var(--celeste), var(--fucsia));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 61, 245, 0.55));
  animation: corre 2.8s linear infinite;
}
.hero h1 em { font-style: normal; padding-right: 0.06em; }
@keyframes corre { to { background-position: -220% 0; } }
.section h2::after { content: ""; display: block; width: 80px; height: 4px; margin: 10px auto 0; border-radius: 99px; background: var(--neon); }
.h1-pre { color: #ffb8fb; }

/* ── TODOS los botones tienen efecto ── */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: transform 0.18s, box-shadow 0.18s, background-color 0.18s; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.6), transparent); transform: skewX(-18deg); animation: destello 2.6s ease-in-out infinite; pointer-events: none; }
@keyframes destello { 0%, 45% { left: -60%; } 100% { left: 140%; } }
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: scale(0.96); }
.btn-primary { color: #fff; background: var(--neon); background-size: 250% 100%; animation: corre 2.8s linear infinite; border: 1px solid rgba(255, 255, 255, 0.75); box-shadow: 0 0 18px var(--halo), 0 0 40px rgba(255, 0, 229, 0.35); text-shadow: 0 1px 6px rgba(40, 0, 60, 0.55); }
.btn-ghost { color: #fff; border: 2px solid var(--fucsia); background: rgba(255, 0, 229, 0.18); box-shadow: 0 0 12px rgba(255, 0, 229, 0.45); }
.btn-ghost:hover { background: rgba(255, 0, 229, 0.42); box-shadow: 0 0 24px var(--halo); }

/* Botón principal de la portada, con ondas */
.aro { position: relative; width: min(100%, 460px); margin: 0 auto; }
.aro::before, .aro::after { content: ""; position: absolute; inset: 0; border-radius: 99px; border: 2px solid var(--fucsia); pointer-events: none; animation: onda 1.8s ease-out infinite; }
.aro::after { animation-delay: 0.9s; }
@keyframes onda { 0% { transform: scale(1); opacity: 0.95; } 100% { transform: scale(1.08, 1.4); opacity: 0; } }
.aro .btn-hero { display: block; width: 100%; padding: 20px 16px; border: 2px solid #fff; font: 700 1.42rem/1.2 var(--display); text-align: center; animation: corre 2.8s linear infinite, pulso 1.4s ease-in-out infinite; }
.aro .btn-hero small { display: block; margin-top: 4px; font-size: 0.9rem; font-weight: 600; }
@keyframes pulso { 50% { transform: scale(1.035); } }

/* Ecualizador sobre el botón (brillo.js) */
.ecualizador { display: flex; justify-content: center; align-items: flex-end; gap: 4px; height: 44px; margin: 6px 0 14px; }
.ecualizador i { width: 5px; height: 100%; border-radius: 99px; background: linear-gradient(180deg, var(--celeste), var(--fucsia)); box-shadow: 0 0 8px var(--fucsia); transform-origin: bottom; animation: barra 0.9s ease-in-out infinite alternate; }
@keyframes barra { from { transform: scaleY(0.18); } to { transform: scaleY(1); } }
.hero-cta-sub { font-weight: 800; color: #fff; }

/* ── Tarjetas de la portada ── */
.card, .glass-card, .faq details { border-color: var(--stroke); background: rgba(255, 255, 255, 0.09); box-shadow: 0 0 18px rgba(255, 0, 229, 0.18); }
.card { transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.card:hover { transform: translateY(-5px); border-color: var(--fucsia); box-shadow: 0 0 34px rgba(255, 0, 229, 0.45); }
.hero-badge, .hero-meta, .pill { border-color: var(--stroke); background: rgba(255, 255, 255, 0.1); }
.hero-box { border: 1px solid var(--stroke); background: rgba(255, 0, 229, 0.14); }
.plans-tres .plan .plan-que { font: 700 1.08rem/1.3 var(--display); color: #fff; }
.plans-tres .price { font-family: var(--display); text-shadow: 0 0 14px var(--fucsia); }
.plans-tres .plan li { color: #f1e8ff; }
.plans-tres .plan .btn { padding-top: 15px; padding-bottom: 15px; font-size: 1.02rem; }
.plans-tres .plan.featured { border: 2px solid transparent; background: linear-gradient(#26044f, #26044f) padding-box, conic-gradient(from var(--giro), var(--fucsia), var(--celeste), var(--fucsia)) border-box; box-shadow: 0 0 36px var(--halo); animation: girar 2.4s linear infinite; }
@property --giro { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes girar { to { --giro: 360deg; } }
.plan-tag.destacado { background: var(--fucsia); color: #fff; }
/* Las tarjetas de planes en morado (styles.css las pintaba casi negras) */
.plans.plans-duo.plans-tres .plan { background: linear-gradient(180deg, rgba(255, 0, 229, 0.16), rgba(255, 255, 255, 0.05) 60%), #2c0868; border-color: var(--stroke); }
.plans.plans-duo.plans-tres .plan.featured { border-color: transparent; background: linear-gradient(#3a0a72, #2c0868) padding-box, conic-gradient(from var(--giro), var(--fucsia), var(--celeste), var(--fucsia)) border-box; }

/* Tablet: el menú y el logo en una sola línea */
.nav-links a, .logo-txt small { white-space: nowrap; }
@media (max-width: 960px) {
  .logo-txt small { display: none; }
  .nav-links { gap: 14px; font-size: 0.86rem; }
}
.rp { border-color: var(--fucsia); background: rgba(255, 255, 255, 0.09); box-shadow: 0 0 34px rgba(255, 0, 229, 0.4); }
.rp-play { background: var(--neon); color: #fff; box-shadow: 0 0 22px var(--halo); }

/* ── Flujo de compra: mismos colores en todos los pasos ── */
.progress i { height: 6px; background: rgba(255, 255, 255, 0.18); }
.progress i.on { background: linear-gradient(90deg, var(--fucsia), var(--celeste), var(--fucsia)); background-size: 220% 100%; animation: corre 2s linear infinite; box-shadow: 0 0 12px var(--fucsia); }
.wizard-card { border: 2px solid transparent; background: linear-gradient(180deg, #2c0868, #1f034c) padding-box, linear-gradient(140deg, var(--celeste), #8a00ff 30%, var(--fucsia) 65%, #8a00ff) border-box; box-shadow: 0 0 46px rgba(255, 0, 229, 0.35); }
.choice { border-color: var(--stroke); background: rgba(255, 255, 255, 0.09); transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s; }
.choice:hover, .choice.active { border-color: var(--fucsia); background: linear-gradient(135deg, rgba(138, 0, 255, 0.55), rgba(255, 0, 229, 0.45)); }
.choice:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 18px var(--halo); }
.choice:active { transform: scale(0.96); }
.choice.active { box-shadow: 0 0 18px var(--halo); }
.wizard-card input, .wizard-card textarea, .wizard-card select, .popit input, .popit select, .lyrics-edit { background: rgba(255, 255, 255, 0.1); border-color: var(--stroke); color: #fff; }
.wizard-card input:focus, .wizard-card textarea:focus, .wizard-card select:focus, .popit input:focus { outline: none; border-color: var(--fucsia); box-shadow: 0 0 0 4px rgba(255, 0, 229, 0.3); }
select option { background: #2a0766; }
.popit-layer { background: rgba(20, 0, 50, 0.82); }
.popit { background: linear-gradient(180deg, #33097a, #1f034c) !important; border: 2px solid var(--fucsia) !important; box-shadow: 0 0 50px var(--halo); }
.popit-kicker { color: var(--fucsia); }
.gen-wait { color: #fff; }
.gen-loader-ring { border-top-color: var(--fucsia) !important; border-right-color: var(--celeste) !important; }
.gen-loader-core { background: var(--neon) !important; box-shadow: 0 0 30px var(--halo); }
.mini-badge { background: var(--fucsia); color: #fff; }
.warn-pill { border-color: var(--amarillo); color: var(--amarillo); }
.fx-box { border-color: var(--stroke); background: rgba(255, 255, 255, 0.1); }
.fx-box strong { font: 700 1.6rem/1.2 var(--display); color: #fff; text-shadow: 0 0 14px var(--fucsia); }
.fx-box small { color: var(--dim); }

.listen-card { border-color: var(--stroke); background: rgba(255, 255, 255, 0.1); }
.listen-card.on { border-color: var(--fucsia); box-shadow: 0 0 26px var(--halo); }
.play-orb { width: 46px; height: 46px; font-size: 1rem; background: var(--neon); color: #fff; box-shadow: 0 0 18px var(--halo); cursor: pointer; transition: transform 0.15s; }
.play-orb:hover { transform: scale(1.12); }
.wave-bars i { background: linear-gradient(180deg, var(--celeste), var(--fucsia)); }
.song-pick.on { border-color: var(--fucsia); background: var(--fucsia); }
.offer-bar { border: 2px solid var(--amarillo); background: linear-gradient(100deg, rgba(255, 230, 0, 0.22), rgba(255, 0, 229, 0.34)); color: #fff; box-shadow: 0 0 24px rgba(255, 230, 0, 0.35); }

/* Planes dentro de la compra */
.pack-card, .pack-card.tone-basic, .pack-card.tone-popular { background: rgba(255, 255, 255, 0.09); border-color: var(--stroke); }
.pack-card { transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.pack-card:hover { transform: translateY(-3px); border-color: var(--fucsia); box-shadow: 0 0 26px var(--halo); }
.pack-card.tone-reco, .pack-card.tone-gift { background: linear-gradient(180deg, rgba(255, 0, 229, 0.3), rgba(138, 0, 255, 0.2)); border-color: var(--fucsia); }
.pack-card.featured { box-shadow: 0 0 22px rgba(255, 0, 229, 0.45); }
.pack-card.active, .pack-card.plan-card.active { outline: 3px solid var(--fucsia); background: linear-gradient(180deg, rgba(255, 0, 229, 0.34), rgba(138, 0, 255, 0.3)); box-shadow: 0 0 34px var(--halo); }
.pack-price { font-family: var(--display); text-shadow: 0 0 12px var(--fucsia); }
.pack-card .pack-buy { width: 100%; padding: 15px 18px; font-size: 1.02rem; margin-top: 8px; }

/* Casilla del código de descuento: grande y llamativa */
.cupon { margin: 18px 0; padding: 18px 16px; border-radius: 20px; border: 3px dashed var(--amarillo); background: linear-gradient(135deg, rgba(255, 230, 0, 0.2), rgba(255, 0, 229, 0.22)); animation: cuponLuz 1.6s ease-in-out infinite; }
@keyframes cuponLuz { 0%, 100% { box-shadow: 0 0 10px rgba(255, 230, 0, 0.35); } 50% { box-shadow: 0 0 34px rgba(255, 230, 0, 0.8); } }
.cupon label { display: block; margin-bottom: 12px; text-align: center; font: 700 1.35rem/1.25 var(--display); color: var(--amarillo); }
.cupon-fila { display: flex; flex-wrap: wrap; gap: 10px; }
.cupon-fila input { flex: 1 1 220px; min-width: 0; padding: 16px; border-radius: 14px; border: 2px solid var(--amarillo) !important; font-size: 1.15rem; font-weight: 800; letter-spacing: 1.5px; text-align: center; text-transform: uppercase; }
.cupon-fila input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 600; color: #ffffffb0; }
.cupon-btn { flex: 1 0 140px; justify-content: center; padding: 16px 22px; background: var(--amarillo); color: #2a0050; font: 700 1.15rem/1 var(--display); border: 0; box-shadow: 0 0 20px rgba(255, 230, 0, 0.6); }
.cupon-msg { margin-top: 10px; text-align: center; font-size: 1rem; font-weight: 800; color: var(--amarillo); }
.cupon-msg:empty { display: none; }
.cupon-portada { max-width: 520px; margin: 26px auto 0; }

/* Pantalla "creando la canción" */
.gen-show { padding: 10px 0 4px; }
.gen-disco { position: relative; width: 170px; height: 170px; margin: 4px auto 14px; display: grid; place-items: center; }
.gen-disco img { width: 120px; height: 120px; position: relative; filter: drop-shadow(0 0 22px var(--fucsia)); animation: latido 1.1s ease-in-out infinite; }
.gen-disco span { position: absolute; inset: 14px; border-radius: 50%; border: 3px solid var(--fucsia); animation: expande 2.1s ease-out infinite; }
.gen-disco span:nth-child(2) { animation-delay: 0.7s; border-color: var(--celeste); }
.gen-disco span:nth-child(3) { animation-delay: 1.4s; }
@keyframes expande { 0% { transform: scale(0.7); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.gen-titulo { font: 700 1.5rem/1.25 var(--display); color: #fff; }
.gen-titulo em { font-style: normal; color: var(--fucsia); text-shadow: 0 0 12px var(--fucsia); }
.gen-barra { height: 16px; max-width: 420px; margin: 4px auto 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.gen-barra b { display: block; height: 100%; width: 6%; border-radius: 99px; background: linear-gradient(90deg, var(--celeste), var(--fucsia), var(--amarillo), var(--fucsia)); background-size: 220% 100%; animation: corre 1.6s linear infinite; box-shadow: 0 0 16px var(--fucsia); transition: width 0.7s linear; }
.gen-paso { font-weight: 800; font-size: 1.05rem; color: var(--amarillo); margin-bottom: 8px; }

/* Botones compactos, como fichas: se ven muchos en una pantalla */
.wizard-card .choices, .wizard-card .choices.dense { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.wizard-card .choice { position: relative; min-height: 46px; padding: 9px 34px 9px 11px; border-radius: 12px; text-align: left; font-size: 0.88rem; line-height: 1.25; overflow-wrap: anywhere; }
.wizard-card .choice small { margin-top: 1px; font-size: 0.72rem; line-height: 1.2; color: var(--dim); }
.wizard-card .choice::after { content: ""; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.45); }
.wizard-card .choice.active::after { content: "✓"; display: grid; place-items: center; border-color: var(--fucsia); background: var(--fucsia); color: #fff; font-size: 0.7rem; font-weight: 800; }
.wizard-card .nav-steps .btn { padding-top: 13px; padding-bottom: 13px; }
.wizard-card .nav-steps .btn-primary { flex: 1; justify-content: center; white-space: nowrap; }
.wizard-page .h1-crear { font-size: 1.25rem; margin-bottom: 12px; }
.ayuda-wa { display: none; text-align: center; margin: 16px 0 0; font-weight: 700; }
.ayuda-wa a { color: #7dffb0; text-decoration: underline; }
.pie-empresa { text-align: center; font-size: 0.8rem; line-height: 1.7; color: var(--dim); margin: 18px auto; }
.pie-empresa a { color: #fff; text-decoration: underline; display: inline; padding: 0; }
@media (max-width: 760px) {
  .wizard-page { padding-top: 16px; padding-bottom: 90px; width: calc(100% - 20px); }
  .wizard-card { padding: 18px 14px; }
  .wizard-card .choices, .wizard-card .choices.dense { grid-template-columns: 1fr 1fr; }
  .wizard-card h2 { font-size: 1.35rem; }
  /* Durante la compra, la pestaña de VOXEL tapaba opciones en el celular (la marca va al pie). */
  body:has(.wizard-page) .vxp, body:has(.wizard-page) .float-wa { display: none; }
  .ayuda-wa { display: block; }
}

/* Pago */
.pay-box { border: 2px solid var(--fucsia); background: rgba(255, 0, 229, 0.12); box-shadow: 0 0 30px rgba(255, 0, 229, 0.3); }
#payBtn { display: flex; width: 100%; justify-content: center; padding: 20px 18px; border: 2px solid #fff; font: 700 1.35rem/1.2 var(--display); animation: corre 2.8s linear infinite, latePago 1.3s ease-in-out infinite; }
@keyframes latePago { 0%, 100% { box-shadow: 0 0 16px var(--halo), 0 0 0 0 rgba(255, 61, 245, 0.7); } 60% { box-shadow: 0 0 34px var(--halo), 0 0 0 14px rgba(255, 61, 245, 0); } }

/* Confeti (cupón aplicado y pago confirmado) */
.confeti { position: fixed; top: -14px; width: 9px; height: 14px; border-radius: 2px; z-index: 10000; pointer-events: none; animation: cae linear forwards; }
@keyframes cae { to { transform: translate3d(var(--x), 108vh, 0) rotate(720deg); } }

/* Texto secundario más legible */
.hint, .fine, .lede, .section .sub { color: var(--muted); }

/* Aparecer al bajar (brillo.js agrega las clases) */
.aparece { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.aparece.visto { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .notas { display: none; }
  .aparece { opacity: 1; transform: none; }
}
