:root {
    --void: #07061a;
    --ink: #f4f1ff;
    --muted: #b7b0d4;
    --panel: rgba(22, 16, 52, 0.78);
    --line: rgba(196, 132, 255, 0.28);
    --lime: #d6ff3d;
    --magenta: #ff2d95;
    --violet: #7a3cff;
    --cyan: #3cefff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Outfit", system-ui, sans-serif;
    background:
        radial-gradient(900px 480px at 8% -10%, rgba(122, 60, 255, 0.42), transparent 58%),
        radial-gradient(720px 420px at 100% 8%, rgba(255, 45, 149, 0.28), transparent 55%),
        radial-gradient(640px 380px at 70% 100%, rgba(60, 239, 255, 0.16), transparent 50%),
        var(--void);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 88%);
    z-index: 0;
}

h1, h2, h3, h4, h5, .brand-title {
    font-family: "Syne", system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
}

a {
    color: var(--lime);
}

.site-header,
.page-shell,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    padding: 42px 0 30px;
    text-align: center;
    background: linear-gradient(180deg, rgba(8, 6, 28, 0.55), transparent);
}

.brand-mark {
    display: inline-block;
    margin: 0 0 14px;
    padding: 6px 14px;
    border: 1px solid rgba(214, 255, 61, 0.45);
    border-radius: 999px;
    background: rgba(214, 255, 61, 0.1);
    color: var(--lime);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand-title {
    display: inline-block;
    max-width: 920px;
    color: #fff;
    font-size: clamp(2.1rem, 6vw, 3.6rem);
    line-height: 0.95;
    text-decoration: none;
    text-transform: uppercase;
}

.brand-title .brand-online {
    display: inline-block;
    margin-left: 8px;
    background: linear-gradient(90deg, var(--lime), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-title:hover {
    color: #fff;
}

.brand-tagline {
    max-width: 640px;
    margin: 16px auto 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.site-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.site-nav a {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #efeaff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-nav a:hover {
    border-color: var(--lime);
    color: var(--lime);
    box-shadow: 0 0 24px rgba(214, 255, 61, 0.25);
}

.page-shell {
    padding: 18px 0 32px;
}

.toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.toolbar label {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.section-title {
    display: inline-block;
    margin: 0 0 10px;
    padding-bottom: 8px;
    background: linear-gradient(90deg, var(--magenta), var(--violet), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    text-transform: uppercase;
}

.section-lead {
    max-width: 680px;
    margin: 0 0 28px;
    color: var(--muted);
}

.product-card,
.legal-card,
.panel-card,
.checkout-card {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 26px 22px 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--magenta), var(--violet), var(--lime));
}

.product-card:hover {
    transform: translateY(-8px) rotate(-0.4deg);
    border-color: rgba(214, 255, 61, 0.55);
    box-shadow: 0 24px 48px rgba(122, 60, 255, 0.35), 0 0 30px rgba(214, 255, 61, 0.12);
}

.product-card h5 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.25;
}

.product-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

.precio-curso {
    margin-top: auto;
    color: var(--lime);
    font-size: 1.28rem;
    font-weight: 800;
}

.form-label,
.small-note {
    color: var(--muted);
}

.form-control,
.form-select {
    background: rgba(8, 6, 28, 0.72);
    color: var(--ink);
    border: 1px solid rgba(196, 132, 255, 0.35);
    border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
    background: rgba(8, 6, 28, 0.9);
    color: var(--ink);
    border-color: var(--lime);
    box-shadow: 0 0 0 0.2rem rgba(214, 255, 61, 0.18);
}

.btn-primary {
    background: linear-gradient(90deg, var(--magenta) 0%, var(--violet) 55%, #4f46e5 100%);
    border: none;
    border-radius: 999px;
    padding: 12px 16px;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 10px 28px rgba(255, 45, 149, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(90deg, #ff4dad 0%, #8b5cff 55%, #6366f1 100%);
    box-shadow: 0 12px 32px rgba(60, 239, 255, 0.28);
}

.abono-wrap {
    max-width: 580px;
    margin: 8px auto 0;
}

.abono-wrap .product-card {
    padding: 34px 28px;
}

.legal-card,
.panel-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 36px;
}

.panel-card {
    max-width: 480px;
    text-align: center;
}

.legal-card h1,
.panel-card h1,
.checkout-card h1 {
    margin-bottom: 16px;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    text-transform: uppercase;
}

.legal-card h2 {
    margin-top: 28px;
    color: var(--lime);
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-card p,
.legal-card li,
.panel-card p,
.checkout-card p {
    color: var(--muted);
}

.checkout-card {
    max-width: 460px;
    margin: 0 auto;
    padding: 36px 28px;
}

.checkout-card h1,
.checkout-card p {
    text-align: center;
}

.checkout-card strong {
    color: #fff;
}

#card-element {
    margin-bottom: 16px;
    padding: 14px 12px;
    background: rgba(8, 6, 28, 0.8);
    border: 1px solid rgba(196, 132, 255, 0.35);
    border-radius: 12px;
}

.site-footer {
    padding: 28px 0 44px;
    text-align: center;
}

.site-footer hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--magenta), var(--lime), transparent);
    opacity: 1;
}

.legal-links a {
    color: #efeaff;
    font-weight: 700;
    text-decoration: none;
}

.legal-links a:hover {
    color: var(--lime);
}

.updated-note {
    margin-top: 18px;
    font-size: 0.86rem;
    color: #8d86ad;
}

@media (max-width: 768px) {
    .legal-card,
    .panel-card,
    .abono-wrap .product-card {
        padding: 28px 20px;
    }

    .toolbar {
        justify-content: flex-start;
    }
}
