:root {
  --bg: #0b0b12;
  --bg-alt: #12121c;
  --card: #181826;
  --line: #2a2a3d;
  --text: #ececf4;
  --muted: #9a9ab0;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --ok: #22c55e;
  --bad: #ef4444;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, sans-serif;
}
a { color: var(--accent-2); }
h1, h2, h3, .logo { font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 .5rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: #fff;
  font: 600 1rem Inter, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(139, 92, 246, .35); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-sm { padding: 8px 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border: 1px solid var(--line); }

.eyebrow { color: var(--accent-2); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin: 0 0 .5rem; }

/* Barra superior */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(11, 11, 18, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.35rem; font-weight: 700; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.topbar nav { display: flex; gap: 22px; align-items: center; }
.topbar nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; }
.topbar nav a:not(.btn):hover { color: var(--text); }

/* Hero */
.hero { padding: 80px 0 60px; background: radial-gradient(60% 80% at 80% 20%, rgba(139, 92, 246, .22), transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); margin: 0 0 1rem; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 28px; }
.pay-note { color: var(--muted); font-size: .9rem; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile { aspect-ratio: 4 / 5; border-radius: var(--radius); position: relative; overflow: hidden; border: 1px solid var(--line); }
.tile span { position: absolute; left: 12px; bottom: 12px; background: rgba(0, 0, 0, .55); padding: 4px 10px; border-radius: 999px; font-size: .8rem; }
.t1 { background: radial-gradient(circle at 50% 35%, #f4c7a1 0 18%, transparent 19%), radial-gradient(ellipse at 50% 95%, #3b3b5c 0 45%, transparent 46%), linear-gradient(160deg, #2b2440, #13131f); }
.t2 { background: radial-gradient(circle at 50% 38%, #ffd166 0 20%, transparent 21%), radial-gradient(ellipse at 50% 100%, #ef476f 0 45%, transparent 46%), linear-gradient(160deg, #06d6a0, #118ab2); transform: translateY(24px); }
.t3 { background: radial-gradient(circle at 45% 40%, #c9a27e 0 17%, transparent 18%), linear-gradient(200deg, #3a2a1a, #120d08); }
.t4 { background: radial-gradient(circle at 50% 55%, #e5e7eb 0 22%, transparent 23%), linear-gradient(140deg, #7c3aed, #22d3ee); transform: translateY(24px); }

/* Secciones */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.sub { color: var(--muted); margin: 0 0 32px; }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps b { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(139, 92, 246, .18); color: var(--accent); }
.steps h3 { margin: 14px 0 6px; }
.steps p { margin: 0; color: var(--muted); }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; position: relative; }
.plan.destacado { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px rgba(139, 92, 246, .2); }
.plan .badge { position: absolute; top: -12px; left: 26px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 1.3rem; }
.plan .fotos { color: var(--muted); margin: 2px 0 16px; }
.plan .precio { font-family: "Space Grotesk", sans-serif; font-size: 2.4rem; font-weight: 700; margin: 0; }
.plan .precio small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.plan .unit { color: var(--muted); font-size: .85rem; margin: 0 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--line); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* FAQ */
.faq { max-width: 760px; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Pie */
.footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: .9rem; }
.footer-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: var(--muted); }

/* Modal de compra */
.modal { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); padding: 0; width: min(460px, calc(100% - 32px)); }
.modal::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(3px); }
.modal form { padding: 28px; position: relative; }
.modal h3 { margin: 0; font-size: 1.5rem; }
.co-precio { font-size: 1.1rem; color: var(--muted); margin: 4px 0 18px; }
.close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 1.8rem; cursor: pointer; }
.modal label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 14px; }
.modal input:not([type=checkbox]), .modal select {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: inherit;
}
.modal input:focus, .modal select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--accent); }
.error { color: var(--bad); min-height: 1.2em; font-size: .9rem; margin: 0 0 10px; }
.fine { color: var(--muted); font-size: .8rem; text-align: center; margin: 12px 0 0; }

/* Páginas internas (resultado, legales) */
.page { padding: 60px 0 80px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.page h2 { font-size: 1.3rem; margin-top: 2rem; }
.page p, .page li { color: var(--muted); }
.estado { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; text-align: center; }
.estado .icono { font-size: 3rem; line-height: 1; }
.estado dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; text-align: left; max-width: 360px; margin: 24px auto; }
.estado dt { color: var(--muted); }
.estado dd { margin: 0; font-weight: 600; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .topbar nav a:not(.btn) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
}
