/* ==========================================================
   style.css — Diseño oscuro "neón", pensado primero para celular.
   --pc = color de la plataforma elegida. script.js lo cambia
   y TODA la página (brillos, botones, bordes) se adapta.
   ========================================================== */
:root {
  --bg: #07080c;
  --surface: rgba(20, 23, 33, .72);
  --surface-2: #11141d;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f3f5fa;
  --muted: #8f97ab;
  --pc: #7cf2c4;              /* color de plataforma (por defecto: menta) */
  --pc-2: #7aa8ff;            /* segundo color para degradados */
  --gold: #ffcf5a;
  --danger: #ff6b7a;
  --radius: 20px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Unbounded", var(--font);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }

/* ---------- Fondo aurora animado ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(90px); opacity: .28; transition: background 1s var(--ease);
}
.aurora span:nth-child(1) { background: var(--pc); top: -30vmax; right: -20vmax; animation: drift 18s ease-in-out infinite; }
.aurora span:nth-child(2) { background: var(--pc-2); bottom: -35vmax; left: -25vmax; animation: drift 22s ease-in-out infinite reverse; }
.aurora span:nth-child(3) { background: #b06bff; top: 30%; left: 40%; width: 30vmax; height: 30vmax; opacity: .12; animation: drift 26s ease-in-out infinite; }
.aurora::after {   /* rejilla sutil encima */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  opacity: .5;
}

/* ---------- Barra superior ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; max-width: 880px; width: 100%; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(135deg, var(--pc), var(--pc-2)); color: #07080c;
  box-shadow: 0 6px 24px color-mix(in srgb, var(--pc) 45%, transparent);
  transition: background .5s;
}
.brand-name { font-family: var(--display); font-weight: 800; font-size: .95rem; letter-spacing: -.02em; }
.lang select {
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 7px 10px; cursor: pointer; font-size: .85rem;
}

/* ---------- Contenido ---------- */
.wrap { flex: 1; width: 100%; max-width: 880px; margin: 0 auto; padding: 4px 16px 48px; }

.hero { padding: 26px 0 22px; text-align: center; animation: rise .6s var(--ease) both; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); color: var(--muted);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 10px var(--pc); animation: pulse 2s infinite; }
h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 8.4vw, 3.6rem);
  line-height: 1.04; letter-spacing: -.035em; margin: 18px 0 14px;
}
h1 span { display: block; }
.glow-text {
  background: linear-gradient(90deg, var(--pc), var(--pc-2), var(--pc));
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s linear infinite;
  filter: drop-shadow(0 0 24px color-mix(in srgb, var(--pc) 40%, transparent));
}
.sub { color: var(--muted); max-width: 44ch; margin: 0 auto; font-size: 1.02rem; }

/* ---------- Paneles (paso 1, paso 2) ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 14px; margin-top: 14px; backdrop-filter: blur(16px);
  animation: rise .6s var(--ease) both;
}
.panel:nth-of-type(3) { animation-delay: .08s; }
.step { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 700; margin-bottom: 14px; }
.step-num {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; font-size: .78rem;
  background: color-mix(in srgb, var(--pc) 18%, transparent); color: var(--pc);
  border: 1px solid color-mix(in srgb, var(--pc) 40%, transparent);
}
.small-step { margin: 16px 0 10px; font-size: .88rem; }

/* ---------- Selector de plataformas ---------- */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pf {
  --c: #fff;
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 12px 4px 10px; border-radius: 16px; cursor: pointer;
  background: var(--surface-2); border: 1.5px solid var(--line);
  transition: transform .18s var(--ease), border-color .2s, box-shadow .25s, background .25s;
}
.pf:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.pf:active { transform: scale(.96); }
.pf-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px;
  font-family: var(--display); font-weight: 800; font-size: 1rem; color: #fff;
  background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 55%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.pf-name { font-size: .74rem; font-weight: 600; text-align: center; line-height: 1.1; }
.pf-tag { font-size: .62rem; color: var(--muted); text-align: center; line-height: 1.1; }
.pf[aria-checked="true"] {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, var(--surface-2));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent), 0 10px 30px color-mix(in srgb, var(--c) 30%, transparent);
}
.pf[aria-checked="true"]::after {   /* check en la esquina */
  content: "✓"; position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: .6rem; font-weight: 800;
  background: var(--c); color: #07080c; animation: pop .25s var(--ease);
}

/* ---------- Buscador ---------- */
.search { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.field {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px;
  background: var(--surface-2); border: 1.5px solid var(--line-2); border-radius: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field:focus-within { border-color: var(--pc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 18%, transparent); }
.field-icon { font-size: 1.05rem; }
.field input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0;
  padding: 11px 0; font-size: 1rem; /* 16px evita el zoom automático en iPhone */
}
.field input::placeholder { color: var(--muted); }

/* ---------- Botones ---------- */
.primary, .success, .ghost, .opt {
  border: 0; border-radius: 14px; cursor: pointer; font-weight: 700;
  transition: transform .14s var(--ease), filter .2s, opacity .2s, box-shadow .25s;
}
.primary:active, .success:active, .opt:active { transform: scale(.97); }
.primary {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--pc), var(--pc-2)); color: #07080c;
  padding: 16px 22px; font-size: 1.04rem;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--pc) 35%, transparent);
}
.primary::before {   /* destello que recorre el botón */
  content: ""; position: absolute; inset: 0; left: -60%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); animation: sweep 3.2s ease-in-out infinite;
}
.primary:hover { filter: brightness(1.08); }
.success { background: var(--gold); color: #2a1f00; padding: 15px 18px; box-shadow: 0 10px 30px rgba(255, 207, 90, .3); }
.ghost { background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); padding: 10px 14px; font-size: .86rem; }
.ghost:hover { background: rgba(255, 255, 255, .1); }
.wide { width: 100%; margin-top: 14px; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.link:hover { color: var(--text); }
button[disabled] { opacity: .55; cursor: not-allowed; }

.spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
.loading .spinner { display: inline-block; }
.loading .btn-label { opacity: .75; }

.error {
  margin-top: 12px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 107, 122, .1); border: 1px solid rgba(255, 107, 122, .35);
  color: var(--danger); animation: shake .35s ease;
}

/* ---------- Tarjeta de resultado ---------- */
.result {
  margin-top: 16px; background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--pc) 35%, var(--line));
  border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px color-mix(in srgb, var(--pc) 15%, transparent);
  animation: rise .45s var(--ease) both;
}
.thumb-wrap { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); }
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.duration {
  position: absolute; right: 10px; bottom: 10px; font-size: .75rem; font-weight: 700;
  background: rgba(0, 0, 0, .78); padding: 3px 8px; border-radius: 7px;
}
.duration:empty { display: none; }
.r-body { padding: 16px; }
.r-platform { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--pc); }
.r-body h2 { font-size: 1.06rem; margin: 4px 0 2px; overflow-wrap: anywhere; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-bottom: 10px; }
.opt {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 13px 8px;
  background: var(--surface-2); border: 1.5px solid var(--line-2);
}
.opt:hover { border-color: var(--pc); box-shadow: 0 8px 24px color-mix(in srgb, var(--pc) 22%, transparent); transform: translateY(-2px); }
.opt strong { font-size: 1.02rem; }
.opt small { color: var(--muted); font-weight: 500; font-size: .7rem; }
.opt.locked { border-color: rgba(255, 207, 90, .5); background: linear-gradient(160deg, rgba(255, 207, 90, .1), var(--surface-2)); }
.opt.locked strong { color: var(--gold); }
.hint { font-size: .78rem; color: var(--muted); }

.ad-slot:empty { display: none; }
.ad-slot { margin: 22px 0; text-align: center; }

/* ---------- Navegación superior ---------- */
.topnav { display: none; gap: 22px; font-size: .88rem; font-weight: 600; }
.topnav a { color: var(--muted); text-decoration: none; transition: color .2s; }
.topnav a:hover { color: var(--text); }

/* ---------- Cifras bajo el título ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; margin: 22px auto 0; max-width: 440px; }
.stats li {
  display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 10px 6px; text-align: center;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(10px);
}
.stats strong { font-family: var(--display); font-size: 1.15rem; color: var(--pc); transition: color .4s; }
.stats span { font-size: .72rem; color: var(--muted); }

/* ---------- Consejo "cómo copiar el enlace" ---------- */
.tip {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--pc) 8%, transparent); border: 1px dashed color-mix(in srgb, var(--pc) 40%, transparent);
  animation: fade .3s ease;
}
.tip-icon { font-size: 1.1rem; line-height: 1.3; }
.tip-title { font-size: .84rem; font-weight: 700; }
.tip-text { font-size: .84rem; color: var(--muted); }

/* ---------- Secciones informativas ---------- */
.section { margin-top: 44px; }
.section-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.15rem, 4.6vw, 1.5rem); letter-spacing: -.02em; }
.section-sub { color: var(--muted); margin: 6px 0 16px; font-size: .93rem; }
.section > .section-title + :not(.section-sub) { margin-top: 16px; }

.how { list-style: none; display: grid; gap: 10px; }
.how li {
  display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(10px);
}
.how li span {
  flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  font-family: var(--display); font-weight: 800; font-size: .9rem; color: #07080c;
  background: linear-gradient(135deg, var(--pc), var(--pc-2));
}
.how li p { font-size: .93rem; }

.what-grid { display: grid; gap: 8px; }
.what {
  --c: #fff;
  display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px; border-radius: 16px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(10px);
  transition: border-color .2s, transform .15s var(--ease);
}
.what:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-2px); }
.what strong { display: block; font-size: .92rem; }
.what small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.pf-icon.small { width: 38px; height: 38px; flex-shrink: 0; font-size: .9rem; border-radius: 12px; }

.cards3, .cards4 { display: grid; gap: 10px; }
.cards4 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; padding: 16px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(12px);
}
.card h3 { font-size: 1rem; margin-bottom: 4px; }
.card p { font-size: .86rem; color: var(--muted); }
.card .q-label { font-family: var(--display); font-weight: 800; font-size: .8rem; color: var(--pc); margin-bottom: 6px; }
.card-rec { border-color: color-mix(in srgb, var(--pc) 50%, transparent); box-shadow: 0 10px 30px color-mix(in srgb, var(--pc) 14%, transparent); }
.card-gold { border-color: rgba(255, 207, 90, .45); }
.card-gold .q-label { color: var(--gold); }
.pill {
  display: inline-block; font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--pc) 16%, transparent); color: var(--pc);
  border: 1px solid color-mix(in srgb, var(--pc) 40%, transparent);
}
.card .pill { position: absolute; top: 12px; right: 12px; }
.pill-gold { background: rgba(255, 207, 90, .14); color: var(--gold); border-color: rgba(255, 207, 90, .4); }
.f-icon {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: 1.1rem;
  background: color-mix(in srgb, var(--pc) 14%, transparent); margin-bottom: 10px;
}

/* ---------- Extensión ---------- */
.ext-card {
  display: grid; gap: 22px; padding: 22px 18px; border-radius: 24px; overflow: hidden;
  background:
    radial-gradient(500px 240px at 100% 0%, color-mix(in srgb, var(--pc) 22%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--pc) 30%, var(--line)); backdrop-filter: blur(14px);
}
.checks { list-style: none; display: grid; gap: 8px; margin-bottom: 18px; }
.checks li { position: relative; padding-left: 26px; font-size: .9rem; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: .65rem; font-weight: 800; color: #07080c; background: var(--pc);
}
.ext-btn { display: inline-flex; text-decoration: none; padding: 13px 20px; font-size: .95rem; }
.ext-mock { position: relative; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); padding: 10px; min-height: 150px; }
.mock-bar { display: flex; gap: 5px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.mock-icon {
  margin-left: auto; font-style: normal; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
  font-size: .75rem; color: #07080c; background: linear-gradient(135deg, var(--pc), var(--pc-2));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 25%, transparent); animation: pulse 2s infinite;
}
.mock-pop {
  position: absolute; right: 12px; top: 44px; width: 64%; padding: 12px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  animation: rise .8s var(--ease) both .3s;
}
.mock-line { height: 8px; border-radius: 4px; background: var(--line-2); margin-bottom: 8px; }
.w60 { width: 60%; } .w90 { width: 90%; }
.mock-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.mock-btns b { height: 22px; border-radius: 7px; background: color-mix(in srgb, var(--pc) 30%, var(--surface-2)); }
.mock-btns b:first-child { background: linear-gradient(135deg, var(--pc), var(--pc-2)); }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: 8px; }
.faq details {
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(10px);
  transition: border-color .2s;
}
.faq details[open] { border-color: color-mix(in srgb, var(--pc) 40%, transparent); }
.faq summary {
  list-style: none; cursor: pointer; padding: 15px 44px 15px 16px; font-weight: 600; font-size: .95rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; font-weight: 400; color: var(--pc); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 16px 16px; color: var(--muted); font-size: .9rem; animation: fade .25s ease; }

/* ---------- Footer legal ---------- */
.footer {
  border-top: 1px solid var(--line); padding: 24px 16px 32px; text-align: center;
  max-width: 880px; width: 100%; margin: 0 auto;
}
.disclaimer { font-size: .75rem; color: var(--muted); margin-bottom: 8px; max-width: 70ch; margin-inline: auto; }
.footer-links { display: flex; gap: 18px; justify-content: center; margin: 14px 0; font-size: .86rem; }

/* ---------- Modales ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(3, 4, 8, .75); backdrop-filter: blur(6px); animation: fade .2s ease;
}
.modal[hidden] { display: none; }
.modal-card {
  position: relative; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 24px 24px 0 0; padding: 26px 18px calc(26px + env(safe-area-inset-bottom));
  animation: sheet .3s var(--ease);
}
.modal-card h3 { font-family: var(--display); font-size: 1.15rem; margin-bottom: 10px; padding-right: 30px; }
.modal-card p { margin-bottom: 8px; }
.modal-card a { color: var(--pc); }
.gate-badge {
  display: inline-block; font-family: var(--display); font-weight: 800; font-size: .8rem;
  padding: 5px 10px; border-radius: 8px; margin-bottom: 12px;
  background: rgba(255, 207, 90, .15); color: var(--gold); border: 1px solid rgba(255, 207, 90, .4);
}
.close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .07); font-size: 1.3rem; cursor: pointer;
}
.stack { display: grid; gap: 10px; margin-top: 12px; }
.stack input, .stack textarea {
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 11px 12px; font-size: 1rem; outline: 0; resize: vertical;
}
.stack input:focus, .stack textarea:focus { border-color: var(--pc); }

.progress { margin-top: 14px; }
.bar { height: 9px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), #ff9f43); transition: width 1s linear; }

.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px;
  font-size: .9rem; font-weight: 600; max-width: calc(100% - 32px); animation: rise .25s ease;
}

/* ---------- Pantallas más grandes ---------- */
@media (min-width: 640px) {
  .panel { padding: 22px; }
  .platforms { gap: 10px; }
  .pf { padding: 16px 6px 14px; }
  .pf-icon { width: 46px; height: 46px; }
  .pf-name { font-size: .84rem; }
  .pf-tag { font-size: .7rem; }
  .search { grid-template-columns: minmax(0, 1fr) auto; }
  .topnav { display: flex; }
  .cards3 { grid-template-columns: repeat(3, 1fr); }
  .cards4 { grid-template-columns: repeat(4, 1fr); }
  .what-grid { grid-template-columns: repeat(2, 1fr); }
  .how { grid-template-columns: repeat(3, 1fr); }
  .how li { flex-direction: column; align-items: flex-start; }
  .ext-card { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 30px; }
  .modal { align-items: center; padding: 16px; }
  .modal-card { border-radius: 24px; }
  .result { display: grid; grid-template-columns: 280px 1fr; }
  .thumb-wrap { aspect-ratio: auto; min-height: 100%; }
}

/* ---------- Animaciones ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6vmax, 4vmax); } }
@keyframes shine { to { background-position: 200% center; } }
@keyframes sweep { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Fotos de perfil ---------- */
.av { --c: #ff2e63; margin-top: 18px; border-color: color-mix(in srgb, var(--c) 30%, var(--line)); }
.av-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.av-emoji {
  display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; font-size: 1.2rem;
  background: color-mix(in srgb, var(--c) 18%, transparent); transition: background .3s;
}
.av-title { font-family: var(--display); font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 12px;
  border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
}
.seg button {
  border: 0; padding: 10px; border-radius: 10px; font-weight: 700; cursor: pointer; background: transparent; color: var(--muted);
  transition: background .2s, color .2s;
}
.seg button[aria-pressed="true"] { background: var(--c); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 35%, transparent); }
.av .field:focus-within { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.av .field-icon { font-weight: 800; color: var(--c); }
.av .primary { background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #ffb347)); box-shadow: 0 10px 30px color-mix(in srgb, var(--c) 30%, transparent); }
.av-result {
  display: grid; justify-items: center; text-align: center; gap: 10px; margin-top: 16px; padding: 18px 12px;
  border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); animation: rise .35s var(--ease) both;
}
.av-img {
  width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: var(--bg);
  border: 3px solid var(--c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 18%, transparent), 0 14px 40px color-mix(in srgb, var(--c) 30%, transparent);
}
.av-info { display: grid; }
.av-info strong { font-size: 1.05rem; }
.av-options { width: 100%; max-width: 380px; grid-template-columns: 1fr 1fr; margin: 4px 0 0; }

/* ---------- Portada nueva: herramienta primero ---------- */
.hero { padding: 18px 0 6px; }
.hero h1 { margin: 14px 0 8px; }
.tool { margin-top: 16px; border-color: color-mix(in srgb, var(--pc) 35%, var(--line));
  box-shadow: 0 24px 70px color-mix(in srgb, var(--pc) 14%, transparent); }
.nets { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.nets-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.nets-label:not(:first-child) { margin-top: 14px; }
.others { display: flex; flex-wrap: wrap; gap: 6px; }
.pf.mini {
  flex-direction: row; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px;
}
.pf.mini .pf-icon { width: 24px; height: 24px; border-radius: 50%; font-size: .66rem; }
.pf.mini .pf-name { font-size: .78rem; }
.pf.mini[aria-checked="true"]::after { display: none; }
.auto-note { margin-top: 12px; font-size: .82rem; color: var(--muted); }

/* ---------- Botón "¿Quieres descargar la foto de perfil…?" ---------- */
.av-cta {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 14px 16px; text-align: left;
  border-radius: 18px; cursor: pointer; color: var(--text);
  background: linear-gradient(120deg, rgba(225, 48, 108, .16), rgba(255, 46, 99, .08) 50%, rgba(37, 244, 238, .1)), var(--surface);
  border: 1px solid rgba(225, 48, 108, .4); backdrop-filter: blur(12px);
  transition: transform .15s var(--ease), box-shadow .25s, border-color .2s;
}
.av-cta:hover { transform: translateY(-2px); border-color: rgba(225, 48, 108, .75); box-shadow: 0 12px 34px rgba(225, 48, 108, .22); }
.av-cta-icon {
  display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px; font-size: 1.25rem;
  background: linear-gradient(135deg, #ff2e63, #e1306c 50%, #f9a03f);
}
.av-cta-text { display: grid; flex: 1; min-width: 0; }
.av-cta-text strong { font-size: .95rem; line-height: 1.25; }
.av-cta-text small { font-size: .78rem; color: var(--muted); }
.av-cta-arrow { font-size: 1.2rem; color: #ff6a95; transition: transform .2s var(--ease); }
.av-cta:hover .av-cta-arrow { transform: translateX(4px); }

/* La herramienta de fotos dentro de su ventana */
.modal-card.av { margin-top: 0; }
.stats { margin-top: 28px; }

/* ---------- Botones de descarga: peso + anuncio ---------- */
.opt { gap: 3px; padding: 12px 8px 10px; }
.opt .opt-meta { font-size: .72rem; color: var(--muted); }
.ad-chip {
  margin-top: 4px; font-size: .64rem; font-weight: 700; padding: 2px 7px; border-radius: 99px;
  background: rgba(255, 255, 255, .06); color: var(--muted);
}
.opt.lvl3 { border-color: rgba(255, 207, 90, .5); background: linear-gradient(160deg, rgba(255, 207, 90, .1), var(--surface-2)); }
.opt.lvl3 strong { color: var(--gold); }
.opt.lvl3 .ad-chip { background: rgba(255, 207, 90, .14); color: var(--gold); }

/* ---------- MP3: fila aparte, color violeta, fácil de distinguir ---------- */
.audio-wrap {
  margin: 4px 0 12px; padding: 12px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(168, 85, 247, .14), rgba(56, 189, 248, .08));
  border: 1px solid rgba(168, 85, 247, .45);
}
.audio-label { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #c79bff; margin-bottom: 8px; }
.audio-options { margin: 0; grid-template-columns: 1fr; }
.opt.opt-audio {
  flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 10px;
  border-color: rgba(168, 85, 247, .6); background: rgba(168, 85, 247, .12);
}
.opt.opt-audio strong { color: #d8b4fe; }
.opt.opt-audio:hover { border-color: #c084fc; box-shadow: 0 8px 24px rgba(168, 85, 247, .3); }

/* ---------- Botón de Instagram y aviso de política ---------- */
.ig-cta { border-color: rgba(249, 160, 63, .45);
  background: linear-gradient(120deg, rgba(131, 58, 180, .2), rgba(225, 48, 108, .14) 50%, rgba(249, 160, 63, .14)), var(--surface); }
.ig-icon { font-family: var(--display); font-weight: 800; font-size: .85rem !important; color: #fff;
  background: linear-gradient(135deg, #833ab4, #e1306c 55%, #f9a03f) !important; }
.terms-note { margin-top: 10px; text-align: center; font-size: .76rem; color: var(--muted); }
.terms-note a { color: var(--text); }
.gate-badge.lvl1, .gate-badge.lvl2 { background: color-mix(in srgb, var(--pc) 15%, transparent); color: var(--pc);
  border-color: color-mix(in srgb, var(--pc) 40%, transparent); }

/* ---------- Ventana de Instagram ---------- */
.ig { --c: #e1306c; }
.seg4 { grid-template-columns: repeat(4, 1fr); }
.seg4 button { padding: 9px 2px; font-size: .78rem; }
.ig-help { font-size: .82rem; color: var(--muted); margin: 0 0 10px; }
.ig-head { margin-top: 14px; font-weight: 700; font-size: .9rem; }
.ig-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.ig-item { border-radius: 14px; overflow: hidden; background: var(--bg); border: 1px solid var(--line-2); }
.ig-thumb { position: relative; aspect-ratio: 4 / 5; background: var(--surface-2); }
.ig-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ig-kind { position: absolute; left: 6px; top: 6px; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 8px; background: rgba(0, 0, 0, .7); }
.ig-opts { display: grid; gap: 6px; padding: 8px; }
.ig-opts .opt { padding: 8px 4px; }
.ig-opts .opt strong { font-size: .85rem; }
.ig-hl { display: grid; justify-items: center; gap: 6px; padding: 10px 6px; border-radius: 14px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line-2); color: var(--text); }
.ig-hl:hover { border-color: var(--c); }
.ig-hl img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--c); background: var(--surface-2); }
.ig-hl span { font-size: .8rem; font-weight: 600; }
@media (min-width: 640px) { .ig-results { grid-template-columns: repeat(3, 1fr); } .modal-card.ig { max-width: 640px; } }

.hint.warn { color: var(--gold); padding: 8px 10px; border-radius: 10px; background: rgba(255, 207, 90, .08); border: 1px solid rgba(255, 207, 90, .35); }


/* ---------- App para teléfono: botón y ventana ---------- */
.app-cta { border-color: rgba(124, 242, 196, .45);
  background: linear-gradient(120deg, rgba(124, 242, 196, .16), rgba(122, 168, 255, .1) 55%, rgba(124, 242, 196, .06)), var(--surface); }
.app-cta:hover { border-color: rgba(124, 242, 196, .8); box-shadow: 0 12px 34px rgba(124, 242, 196, .18); }
.app-cta .app-icon { background: linear-gradient(135deg, #7cf2c4, #7aa8ff); }
.app-cta .av-cta-arrow { color: #7cf2c4; }
.app-cta[hidden] { display: none; }

.app-card { max-width: 520px; }
.app-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; padding-right: 30px; }
.app-head img { border-radius: 14px; flex-shrink: 0; box-shadow: 0 8px 24px rgba(124, 242, 196, .25); }
.app-head h3 { margin-bottom: 4px; padding-right: 0; }
.app-head p { margin: 0; }
.app-perks { list-style: none; display: grid; gap: 6px; margin: 4px 0 16px; font-size: .86rem; }
.app-perks li { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.app-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 14px; background: var(--bg); margin-bottom: 14px; }
.app-tabs button { border: 0; border-radius: 10px; padding: 9px 4px; font: 600 .84rem var(--font); color: var(--muted); background: transparent; cursor: pointer; }
.app-tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.app-pane h4 { font-family: var(--display); font-size: .92rem; margin: 6px 0 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.app-badge { font: 700 .66rem var(--font); text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 99px;
  background: rgba(124, 242, 196, .15); color: #7cf2c4; border: 1px solid rgba(124, 242, 196, .4); }
.app-steps { counter-reset: st; list-style: none; display: grid; gap: 8px; margin: 10px 0 12px; }
.app-steps li { counter-increment: st; position: relative; padding-left: 36px; font-size: .9rem; line-height: 1.45; min-height: 26px; }
.app-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font: 800 .78rem var(--display); color: var(--bg); background: linear-gradient(135deg, #7cf2c4, #7aa8ff); }
.app-tip { font-size: .84rem; background: rgba(122, 168, 255, .1); border: 1px solid rgba(122, 168, 255, .3); border-radius: 12px; padding: 10px 12px; }
.app-warn { font-size: .84rem; background: rgba(255, 207, 90, .12); border: 1px solid rgba(255, 207, 90, .4); color: var(--gold); border-radius: 12px; padding: 10px 12px; }
.install-btn, .apk-btn { margin: 4px 0 6px; display: block; text-align: center; text-decoration: none; }
.modal-card a.apk-btn { color: var(--bg); }
.install-btn[hidden], .apk-box[hidden], .app-pane[hidden], .app-warn[hidden] { display: none; }
.apk-box { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.app-url { text-align: center; margin-top: 10px; }
.app-url code { font-size: .9rem; padding: 6px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line-2); user-select: all; }

/* ---------- Recuadro único: fotos de perfil + Instagram ---------- */
.tools-cta { cursor: default; align-items: flex-start; }
.tools-cta:hover { transform: none; }
.tools-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tool-chip {
  border: 1px solid rgba(225, 48, 108, .45); background: rgba(225, 48, 108, .1); color: var(--text);
  font: 600 .8rem var(--font); padding: 7px 11px; border-radius: 99px; cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s var(--ease);
}
.tool-chip:hover { background: rgba(225, 48, 108, .24); border-color: rgba(225, 48, 108, .85); transform: translateY(-1px); }

/* ---------- Extensión: descarga directa + guía ---------- */
.ext-zip-box { display: grid; gap: 8px; justify-items: start; }
.ext-zip-box[hidden] { display: none; }
.ext-help { padding: 10px 16px; border-radius: 12px; font-size: .88rem; }
.ext-codes { display: grid; gap: 6px; margin-top: 8px; }
.ext-code {
  text-align: left; cursor: pointer; font: 500 .82rem var(--font); color: var(--muted);
  background: var(--bg); border: 1px dashed var(--line-2); border-radius: 10px; padding: 8px 10px;
}
.ext-code code { color: var(--text); font-size: .86rem; }
.ext-code:hover { border-color: var(--pc); }

/* ---------- Marca ClipVerso ---------- */
.brand-accent { font-weight: 800; background: linear-gradient(90deg, #7cf2c4, #7aa8ff 55%, #b48cff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Tarjetas de calidad grandes y claras ---------- */
#r-options { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.audio-options { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.opt {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 10px 12px; border-radius: 16px; border-width: 1.5px;
}
.opt .opt-res { font-family: var(--display); font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.opt .opt-tag {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 9px; border-radius: 99px; background: rgba(124, 242, 196, .14); color: #7cf2c4;
}
.opt.lvl2 .opt-tag { background: rgba(122, 168, 255, .16); color: #9cc0ff; }
.opt.lvl3 .opt-tag { background: rgba(255, 207, 90, .16); color: var(--gold); }
.opt.opt-audio .opt-tag { background: rgba(168, 85, 247, .18); color: #d8b4fe; }
.opt .opt-meta { font-size: .76rem; margin-top: 2px; }
.opt .ad-chip { margin-top: 6px; font-size: .68rem; padding: 3px 9px; }
.opt-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: .66rem; font-weight: 800; padding: 3px 10px; border-radius: 99px;
  background: linear-gradient(90deg, #7cf2c4, #7aa8ff); color: #07080c; box-shadow: 0 4px 14px rgba(124, 242, 196, .35);
}
.opt.lvl3 .opt-badge { background: linear-gradient(90deg, #ffcf5a, #ff9f43); box-shadow: 0 4px 14px rgba(255, 207, 90, .35); }
.opt.opt-rec { border-color: #7cf2c4; background: linear-gradient(160deg, rgba(124, 242, 196, .14), var(--surface-2)); box-shadow: 0 10px 30px rgba(124, 242, 196, .16); }
#r-options, .audio-options { padding-top: 10px; }
@media (max-width: 420px) {
  #r-options, .audio-options { grid-template-columns: 1fr 1fr; }
  .opt .opt-res { font-size: 1.35rem; }
}

/* ---------- Enlaces para Google en el footer + FAQ de páginas SEO ---------- */
.footer-seo { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 6px 0 12px; font-size: .8rem; }
.footer-seo a { color: var(--muted); text-decoration: none; }
.footer-seo a:hover { color: var(--text); text-decoration: underline; }
.seo-faq { margin-top: 10px; }
