:root {
	--bg: #09090b;
	--bg-2: #0f0f12;
	--surface: rgba(255, 255, 255, 0.04);
	--surface-2: rgba(255, 255, 255, 0.07);
	--border: rgba(255, 255, 255, 0.09);
	--border-2: rgba(255, 255, 255, 0.16);
	--text: #fafafa;
	--text-2: #a1a1aa;
	--muted: #71717a;
	--em: #10b981;
	--em-2: #34d399;
	--in: #6366f1;
	--in-2: #818cf8;
	--bad: #f87171;
	--radius: 16px;
	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, monospace;
	color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

a { color: inherit; }
img, svg { display: block; }

:focus-visible { outline: 2px solid var(--in-2); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; }

/* ── Nav ── */
.nav {
	position: sticky; top: 0; z-index: 50;
	background: rgba(9, 9, 11, 0.72);
	backdrop-filter: blur(14px) saturate(160%);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.nav-badges { display: flex; gap: 6px; margin-left: auto; }
.nav-badges span {
	padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px;
	color: var(--text-2); font-size: 12px; font-weight: 500;
}

/* ── Botones ── */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px; border-radius: 12px;
	font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
	border: 1px solid transparent;
	transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
	background: linear-gradient(135deg, var(--em), #14b8a6);
	color: #04130d;
	box-shadow: 0 8px 28px -10px rgba(16, 185, 129, 0.55);
}
.btn-primary:hover { box-shadow: 0 10px 34px -8px rgba(16, 185, 129, 0.7); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.glow-a { width: 520px; height: 520px; top: -180px; left: -120px; background: rgba(99, 102, 241, 0.22); }
.glow-b { width: 460px; height: 460px; top: 60px; right: -160px; background: rgba(16, 185, 129, 0.16); }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 7px 14px; border: 1px solid rgba(16, 185, 129, 0.28); border-radius: 999px;
	background: rgba(16, 185, 129, 0.08); color: var(--em-2);
	font-size: 13px; font-weight: 500;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--em); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); } }

h1 {
	max-width: 17ch; margin-top: 26px;
	font-size: clamp(2.2rem, 5.6vw, 4.1rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.04em;
}
.grad {
	background: linear-gradient(100deg, var(--em-2), var(--in-2));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 64ch; margin-top: 22px; color: var(--text-2); font-size: clamp(1rem, 1.5vw, 1.15rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-ctas.center { justify-content: center; }

.metrics {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
	margin-top: 56px; list-style: none;
	border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
	background: var(--border);
}
.metrics li { display: flex; flex-direction: column; gap: 2px; padding: 18px 28px; background: var(--bg-2); }
.metrics strong { font-family: var(--mono); font-size: 1.6rem; letter-spacing: -0.03em; }
.metrics span { color: var(--muted); font-size: 13px; }

/* ── Secciones ── */
.section { padding: 88px 0; border-top: 1px solid var(--border); }
.head { margin-bottom: 40px; }
.head.center { margin-left: auto; margin-right: auto; max-width: 760px; }
.eyebrow { color: var(--em-2); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
h2 { margin-top: 10px; font-size: clamp(1.75rem, 3.8vw, 2.75rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.035em; }
h3 { font-size: 1.12rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; }
.muted { margin-top: 12px; color: var(--text-2); }

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.pain { padding: 26px; transition: border-color 200ms ease, transform 200ms ease; }
.pain:hover { border-color: rgba(248, 113, 113, 0.35); transform: translateY(-2px); }
.pain .x {
	display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px;
	border-radius: 10px; background: rgba(248, 113, 113, 0.1); color: var(--bad); font-weight: 700;
}
.pain p { margin-top: 10px; color: var(--text-2); font-size: 15px; }

.pillar { padding: 28px; }
.pillar .num { font-family: var(--mono); color: var(--in-2); font-size: 13px; }
.pillar h3 { margin-top: 12px; font-size: 1.3rem; }
.pillar .sub { margin-top: 4px; color: var(--muted); font-size: 14px; }
.pillar-ai { border-color: rgba(16, 185, 129, 0.3); background: linear-gradient(160deg, rgba(16, 185, 129, 0.08), var(--surface) 60%); }
.pillar-ai .num { color: var(--em-2); }
.checks { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.checks li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 15px; }
.checks li::before {
	content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px;
	background: rgba(16, 185, 129, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ── Calculadora ── */
.cycle {
	display: inline-flex; gap: 4px; margin-top: 28px; padding: 4px;
	border: 1px solid var(--border); border-radius: 14px; background: var(--bg-2);
}
.cycle button {
	min-height: 42px; padding: 0 18px; border: 0; border-radius: 10px;
	background: transparent; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
	transition: background 160ms ease, color 160ms ease;
}
.cycle button em { margin-left: 6px; color: var(--em-2); font-style: normal; font-weight: 500; font-size: 12px; }
.cycle button[aria-checked="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }

.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.calc-config { display: grid; gap: 16px; }

.step { padding: 22px; }
.step legend {
	display: flex; align-items: center; gap: 10px; float: left; width: 100%; margin-bottom: 16px;
	font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
}
.step legend + * { clear: both; }
.step-n {
	display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
	background: rgba(99, 102, 241, 0.16); color: var(--in-2); font-size: 13px;
}
.options { display: grid; gap: 10px; }
.step .opt + .opt { margin-top: 10px; }
.options .opt + .opt { margin-top: 0; }

.opt {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
	padding: 16px; border: 1px solid var(--border); border-radius: 12px;
	background: rgba(0, 0, 0, 0.25); cursor: pointer;
	transition: border-color 160ms ease, background 160ms ease;
}
.opt:hover { border-color: var(--border-2); }
.opt.is-on { border-color: rgba(99, 102, 241, 0.7); background: rgba(99, 102, 241, 0.09); }
.opt[data-addon="ai"].is-on { border-color: rgba(16, 185, 129, 0.7); background: rgba(16, 185, 129, 0.08); }
.opt input { width: 18px; height: 18px; accent-color: var(--in); cursor: pointer; }
.opt[data-addon="ai"] input { accent-color: var(--em); }
.opt-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.opt-title { font-weight: 600; font-size: 15px; line-height: 1.35; }
.opt-desc { color: var(--muted); font-size: 13px; line-height: 1.45; }
.opt-price { text-align: right; font-family: var(--mono); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.opt-price b { color: var(--text); font-size: 15px; }
.opt-price small { display: block; color: var(--muted); font-size: 11px; font-family: var(--font); }
.opt-price s { color: var(--muted); }
.opt-price .free { color: var(--em-2); }

.tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; vertical-align: 2px; }
.tag-em { background: rgba(16, 185, 129, 0.15); color: var(--em-2); }
.tag-in { background: rgba(99, 102, 241, 0.18); color: var(--in-2); }

.summary {
	position: sticky; top: 88px;
	padding: 28px; border: 1px solid var(--border-2); border-radius: 22px;
	background: linear-gradient(180deg, #121217, #0b0b0e);
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.summary h3 { padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--border); font-size: 1.15rem; }
.summary dl { display: grid; gap: 12px; }
.row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-2); }
.row dd { font-family: var(--mono); font-weight: 700; color: var(--text); white-space: nowrap; }
.row.em, .row.em dd { color: var(--em-2); }
.row.discount { padding: 8px 10px; border-radius: 10px; background: rgba(99, 102, 241, 0.12); }
.row.discount, .row.discount dd { color: var(--in-2); }
.row.small { padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; }
.row[hidden] { display: none; }

.total { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.total > span { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.total p { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.total b { font-family: var(--mono); font-size: clamp(2.4rem, 5vw, 3rem); letter-spacing: -0.04em; }
.total small { color: var(--muted); font-size: 14px; }
.bump { animation: bump 320ms ease; }
@keyframes bump { 40% { transform: scale(1.04); color: var(--em-2); } }
.fine { margin-top: 8px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }

.guarantee-mini {
	display: flex; gap: 10px; margin: 20px 0; padding: 14px;
	border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
	color: var(--em-2);
}
.guarantee-mini p { color: var(--text-2); font-size: 13px; }
.guarantee-mini svg { flex-shrink: 0; margin-top: 2px; }

/* ── Comparación ── */
.compare { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.c-row { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; }
.c-row + .c-row { border-top: 1px solid var(--border); }
.c-row > span { padding: 18px 20px; font-size: 15px; }
.c-row > span:first-child { color: var(--text); font-weight: 600; }
.c-head { background: var(--bg-2); }
.c-head > span { color: var(--muted) !important; font-size: 12px !important; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.c-head > span:last-child { color: var(--em-2) !important; }
.bad { color: var(--text-2); }
.bad::before { content: "✕  "; color: var(--bad); font-weight: 700; }
.good { color: var(--text); background: rgba(16, 185, 129, 0.05); }
.good::before { content: "✓  "; color: var(--em-2); font-weight: 700; }

/* ── Garantía ── */
.guarantee {
	display: flex; gap: 28px; align-items: flex-start; padding: 40px;
	border-color: rgba(16, 185, 129, 0.3);
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(99, 102, 241, 0.06));
	color: var(--em-2);
}
.guarantee h2 { color: var(--text); }
.guarantee .muted { max-width: 62ch; }

/* ── FAQ ── */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.faq summary {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 18px 20px; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 22px; font-weight: 400; transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--text-2); font-size: 15px; }

/* ── Final ── */
.final h2 { max-width: 22ch; margin: 0 auto; }

.footer { padding: 32px 0 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 18px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms cubic-bezier(.2,0,0,1), transform 700ms cubic-bezier(.2,0,0,1); }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 960px) {
	.calc { grid-template-columns: 1fr; }
	.summary { position: static; }
	.grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
	.nav-badges { display: none; }
	.nav-inner .btn { margin-left: auto; }
	.hero { padding: 64px 0 64px; }
	.grid-2 { grid-template-columns: 1fr; }
	.metrics { grid-template-columns: 1fr; width: 100%; }
	.metrics li { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 14px 18px; }
	.hero-ctas { flex-direction: column; width: 100%; }
	.hero-ctas .btn { width: 100%; }
	.section { padding: 64px 0; }
	.cycle { display: flex; width: 100%; }
	.cycle button { flex: 1; padding: 0 8px; }
	.cycle button em { display: block; margin: 0; }
	.opt { grid-template-columns: auto 1fr; }
	.opt-price { grid-column: 2; text-align: left; }
	.opt-price small { display: inline; margin-left: 6px; }
	.c-head { display: none; }
	.c-row { grid-template-columns: 1fr; }
	.c-row > span { padding: 10px 18px; }
	.c-row > span:first-child { padding-top: 16px; }
	.c-row > span:last-child { padding-bottom: 16px; }
	.good { background: transparent; }
	.guarantee { flex-direction: column; padding: 28px; }
	.summary { padding: 22px; }
}

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