:root {
    --bg:         #0f0f11;
    --surface:    #17171a;
    --surface2:   #1e1e23;
    --border:     #2a2a31;
    --border-hi:  #3d3d48;
    --accent:     #e8ff47;
    --accent-dim: #b8cc2e;
    --text:       #e8e8ec;
    --text-dim:   #7a7a8a;
    --text-muted: #45454f;
    --radius:     6px;
    --radius-lg:  12px;
    --font-ui:    'Syne', sans-serif;
    --font-mono:  'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-ui);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Header (idéntico al de la app) ── */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; color: var(--text); }
.logo-icon { font-size: 20px; color: var(--accent); }
.logo-text strong { color: var(--accent); }
.header-nav { display: flex; gap: 6px; align-items: center; }
.btn { font-family: var(--font-ui); font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: all 0.15s; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-primary { background: var(--accent); color: #0f0f11; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); }
.btn-ghost { background: transparent; color: var(--text-dim); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-hi); color: var(--text); background: var(--surface2); }

/* ── Fondo decorativo ── */
.bg-glow {
    position: fixed;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 600px;
    background: radial-gradient(ellipse, rgba(232,255,71,0.055) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Hero ── */
.hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 88px 24px 64px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    border: 1px solid rgba(232,255,71,0.25);
    background: rgba(232,255,71,0.07);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 28px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.hero h1 {
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    max-width: 720px;
    margin: 0 auto 18px;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero p {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 520px;
    margin: 0 auto 44px;
    line-height: 1.6;
}

/* ── Toggle mensual/anual ── */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 5px 5px 5px 16px;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 60px;
}

.billing-toggle span { font-weight: 600; }
.billing-toggle .save-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    background: rgba(232,255,71,0.15);
    color: var(--accent);
    border-radius: 12px;
    padding: 2px 8px;
    letter-spacing: 0.04em;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border-hi);
    border-radius: 12px;
    transition: background 0.2s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); background: #0f0f11; }

/* ── Cards de precio ── */
.plans-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px 80px;
    align-items: start;
}

.plan-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    animation: fadeUp 0.5s ease both;
}

.plan-card:nth-child(1) { animation-delay: 0.05s; }
.plan-card:nth-child(2) { animation-delay: 0.15s; }
.plan-card:nth-child(3) { animation-delay: 0.25s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.plan-card:hover {
    border-color: var(--border-hi);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

/* Plan destacado */
.plan-card.featured {
    border-color: var(--accent);
    background: linear-gradient(160deg, rgba(232,255,71,0.06) 0%, var(--surface) 60%);
    box-shadow: 0 0 0 1px rgba(232,255,71,0.2), 0 16px 48px rgba(0,0,0,0.5);
}
.plan-card.featured:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(232,255,71,0.4), 0 20px 60px rgba(232,255,71,0.1);
}

/* Badge "Más popular" */
.popular-badge {
    position: absolute;
    height: 21.5px;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #0f0f11;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
    display: flex;
    gap: 6px;
}

.popular-badge svg{
    bottom: 0;
    align-items: flex-end;
}

.plan-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    font-family: var(--font-mono);
    margin-bottom: 20px;
}

.plan-name.accent { color: var(--accent); }

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 6px;
}

.price-currency {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.price-amount {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.price-period {
    font-size: 14px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    align-self: flex-end;
    padding-bottom: 6px;
}

.price-annual-note {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 24px;
    min-height: 16px;
}

.price-annual-note.visible { color: var(--accent); }

.plan-desc {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.55;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

/* Lista de features */
.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.4;
}

.feature-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-top: 1px;
}

.feature-icon.check { background: rgba(232,255,71,0.15); color: var(--accent); }
.feature-icon.dash  { background: var(--surface2); color: var(--text-muted); }

.feature-muted { color: var(--text-muted); }

/* CTA del plan */
.plan-cta {
    width: 100%;
    padding: 13px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    text-decoration: none;
    display: block;
}

.plan-cta.primary {
    background: var(--accent);
    color: #0f0f11;
    border-color: var(--accent);
}
.plan-cta.primary:hover {
    background: var(--accent-dim);
    border-color: var(--accent-dim);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(232,255,71,0.2);
}

.plan-cta.ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-hi);
}
.plan-cta.ghost:hover {
    background: var(--surface2);
    border-color: var(--accent);
    color: var(--accent);
}

.plan-cta.muted {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
    cursor: default;
}

/* ── Comparativa detallada ── */
.comparison-section {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 16px;
}

.comparison-section h2 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 40px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-mono);
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
}

.comparison-table th:not(:first-child) { text-align: center; }
.comparison-table th.featured-col { color: var(--accent); }

.comparison-table td {
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.comparison-table tr:last-child td { border-bottom: none; }

.comparison-table td:not(:first-child) { text-align: center; }

.comparison-table tr:hover td { background: rgba(255,255,255,0.02); }

.comparison-table .category-row td {
    background: var(--surface2);
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 20px;
}

.check-cell { color: var(--accent); font-size: 16px; }
.dash-cell  { color: var(--text-muted); font-size: 18px; }
.val-cell   { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); }

/* ── FAQ ── */
.faq-section {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.faq-section h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 36px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.15s;
}

.faq-item:hover { border-color: var(--border-hi); }

.faq-question {
    width: 100%;
    text-align: left;
    background: var(--surface);
    border: none;
    padding: 18px 20px;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background 0.15s;
}

.faq-question:hover { background: var(--surface2); }

.faq-arrow {
    color: var(--text-muted);
    font-size: 18px;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item.open .faq-arrow { transform: rotate(45deg); color: var(--accent); }
.faq-item.open .faq-question { background: var(--surface2); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.2s;
    background: var(--surface2);
}

.faq-answer-inner {
    padding: 0 20px 18px;
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.65;
}

.faq-item.open .faq-answer { max-height: 300px; }

/* ── Banner CTA final ── */
.final-cta {
    position: relative;
    z-index: 1;
    margin: 0 24px 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, rgba(232,255,71,0.1) 0%, rgba(232,255,71,0.03) 100%);
    border: 1px solid rgba(232,255,71,0.25);
    border-radius: 20px;
    padding: 56px 40px;
    text-align: center;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    bottom: -60px; right: -60px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(232,255,71,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.final-cta h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.final-cta p {
    font-size: 16px;
    color: var(--text-dim);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.final-cta-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.final-cta-btns .btn { padding: 12px 24px; font-size: 14px; }

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

footer .logo-small {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: -0.02em;
}
footer .logo-small strong { color: var(--accent); }

footer p {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .hero { padding: 56px 16px 40px; }
    .plans-grid { grid-template-columns: 1fr; }
    .comparison-table { font-size: 12px; }
    .comparison-table th, .comparison-table td { padding: 10px 12px; }
    .final-cta { padding: 40px 24px; }
    .billing-toggle { flex-wrap: wrap; justify-content: center; }
}