/* =====================================================================
   Club+ · Landing de venta (Etapa 16)
   Concepto: "los puntos son oro" — tinta índigo profunda + dorado,
   motivos de voucher (bordes perforados) y carnet digital en CSS puro.
   ===================================================================== */

:root {
    --ink: #14122b;
    --ink-2: #1d1a3e;
    --ink-3: #262254;
    --brand: #4f46e5;
    --brand-soft: #a5b4fc;
    --gold: #f5b431;
    --gold-deep: #d98f0f;
    --paper: #faf9f6;
    --paper-2: #f1efe9;
    --text: #2a2740;
    --muted: #6b6885;
    --radius-lg: 22px;
    --font-display: "Bricolage Grotesque", "Inter", sans-serif;
    --font-body: "Inter", sans-serif;
}

.landing {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--paper);
    overflow-x: hidden;
}

.landing h1, .landing h2, .landing h3, .landing .display-font {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

/* ---------------- Nav ---------------- */
.ld-nav {
    background: rgba(20, 18, 43, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.ld-nav .navbar-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
}

.ld-nav .navbar-brand .plus { color: var(--gold); }

/* Glifo "+" dibujado del logotipo +stock (dorado, alineado al wordmark) */
.ld-plus {
    width: 0.82em;
    height: 0.82em;
    color: var(--gold);
    vertical-align: -0.06em;
    margin-right: 0.02em;
}

.ld-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    transition: color 0.2s;
}

.ld-nav .nav-link:hover { color: var(--gold); }

.btn-gold {
    background: linear-gradient(160deg, var(--gold), var(--gold-deep));
    color: var(--ink);
    font-weight: 700;
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    box-shadow: 0 4px 18px rgba(245, 180, 49, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-gold:hover {
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(245, 180, 49, 0.5);
}

.btn-ghost {
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------------- Hero ---------------- */
.ld-hero {
    position: relative;
    background:
        radial-gradient(1100px 520px at 82% -10%, rgba(79, 70, 229, 0.55), transparent 60%),
        radial-gradient(700px 420px at -8% 110%, rgba(245, 180, 49, 0.16), transparent 55%),
        linear-gradient(175deg, var(--ink) 0%, var(--ink-2) 60%, var(--ink-3) 100%);
    color: #fff;
    padding: 5.5rem 0 7rem;
}

/* Grano sutil para dar textura */
.ld-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.ld-hero .badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 180, 49, 0.12);
    border: 1px solid rgba(245, 180, 49, 0.4);
    color: var(--gold);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.ld-hero h1 {
    font-size: clamp(2.4rem, 5.4vw, 4rem);
    font-weight: 800;
    line-height: 1.06;
    margin: 1.2rem 0;
}

.ld-hero h1 .resaltado {
    color: var(--gold);
    position: relative;
    white-space: nowrap;
}

.ld-hero h1 .resaltado::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.05em;
    height: 0.28em;
    background: rgba(245, 180, 49, 0.25);
    border-radius: 4px;
    z-index: -1;
}

.ld-hero .lead-text {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.15rem;
    max-width: 34rem;
    line-height: 1.65;
}

.cta-sub { color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; }

/* Reveal escalonado del hero */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(18px); animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
    .reveal-1 { animation-delay: 0.05s; }
    .reveal-2 { animation-delay: 0.18s; }
    .reveal-3 { animation-delay: 0.32s; }
    .reveal-4 { animation-delay: 0.46s; }
    .reveal-5 { animation-delay: 0.62s; }

    @keyframes rise {
        to { opacity: 1; transform: translateY(0); }
    }
}

/* ---------------- Carnet digital en CSS puro ---------------- */
.mock-wrap { position: relative; min-height: 420px; }

.mock-card {
    position: relative;
    width: min(340px, 88%);
    margin-inline: auto;
    background: linear-gradient(165deg, #ffffff, #f3f1ff);
    color: var(--ink);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    animation: float 5.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50% { transform: translateY(-14px) rotate(-0.5deg); }
}

.mock-card .mc-head { display: flex; justify-content: space-between; align-items: center; }
.mock-card .mc-shop { font-family: var(--font-display); font-weight: 700; }
.mock-card .mc-level {
    background: linear-gradient(160deg, var(--gold), var(--gold-deep));
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mock-card .mc-points { margin: 1.1rem 0 0.2rem; }
.mock-card .mc-points b { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; }
.mock-card .mc-points span { color: var(--muted); font-size: 0.85rem; }

.mc-bar {
    height: 8px;
    background: #e8e6f5;
    border-radius: 999px;
    overflow: hidden;
    margin: 0.5rem 0 0.3rem;
}

.mc-bar i {
    display: block;
    height: 100%;
    width: 72%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--gold));
    animation: fill 2.4s ease-out;
}

@keyframes fill { from { width: 8%; } }

.mc-next { font-size: 0.75rem; color: var(--muted); }

/* QR dibujado con un grid CSS */
.mc-qr {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px dashed #d9d6ea;
    display: flex;
    gap: 0.9rem;
    align-items: center;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(7, 7px);
    grid-auto-rows: 7px;
    gap: 2px;
    padding: 6px;
    background: #fff;
    border: 1px solid #e5e2f2;
    border-radius: 8px;
}

.qr-grid i { background: var(--ink); border-radius: 1px; }
.qr-grid i.o { background: transparent; }

.mc-qr .mc-hint { font-size: 0.75rem; color: var(--muted); line-height: 1.4; }

/* Chips flotantes alrededor del carnet */
.mock-chip {
    position: absolute;
    background: #fff;
    color: var(--ink);
    border-radius: 14px;
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    animation: float 6s ease-in-out infinite;
}

.mock-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.chip-1 { top: 6%; right: 4%; animation-delay: 0.8s; }
.chip-2 { bottom: 14%; left: 0; animation-delay: 1.6s; }
.chip-3 { bottom: -2%; right: 10%; animation-delay: 2.4s; }
.chip-2 .bi, .chip-3 .bi { color: var(--gold-deep); }

/* ---------------- Franja de números ---------------- */
.ld-stats {
    background: var(--ink);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.6rem 0;
}

.ld-stats .stat b {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--gold);
    display: block;
    line-height: 1.1;
}

.ld-stats .stat span { color: rgba(255, 255, 255, 0.65); font-size: 0.85rem; }

/* ---------------- Secciones claras ---------------- */
.ld-section { padding: 5.5rem 0; }
.ld-section.alt { background: var(--paper-2); }

.sec-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; color: var(--ink); }
.sec-sub { color: var(--muted); font-size: 1.05rem; max-width: 40rem; }

.eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--brand);
}

/* Cita del problema */
.problem-quote {
    border-left: 5px solid var(--gold);
    background: #fff;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 2rem 2.4rem;
    box-shadow: 0 12px 40px rgba(20, 18, 43, 0.07);
}

/* Features */
.feature-card {
    background: #fff;
    border: 1px solid #eceaf5;
    border-radius: var(--radius-lg);
    padding: 1.7rem;
    height: 100%;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(20, 18, 43, 0.1);
    border-color: var(--brand-soft);
}

.feature-card .fi {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 1.35rem;
    background: linear-gradient(150deg, #eef2ff, #e0e7ff);
    color: var(--brand);
    margin-bottom: 1rem;
}

.feature-card:nth-child(3n) .fi,
.row > div:nth-child(3n) .feature-card .fi {
    background: linear-gradient(150deg, #fef6e5, #fdedc8);
    color: var(--gold-deep);
}

.feature-card h3 { font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.feature-card p { color: var(--muted); font-size: 0.92rem; margin: 0; line-height: 1.6; }

/* Cómo funciona */
.step-card { position: relative; padding: 2rem 1.6rem 1.6rem; }

.step-num {
    font-family: var(--font-display);
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px var(--brand-soft);
}

.step-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-top: 0.6rem; }
.step-card p { color: var(--muted); line-height: 1.6; }

.step-arrow { color: var(--gold-deep); font-size: 1.6rem; }

/* ---------------- Precios (estilo voucher) ---------------- */
.price-card {
    position: relative;
    background: #fff;
    border: 1px solid #eceaf5;
    border-radius: var(--radius-lg);
    padding: 2rem 1.8rem;
    height: 100%;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.price-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(20, 18, 43, 0.12); }

/* Perforaciones laterales tipo ticket */
.price-card::before, .price-card::after {
    content: "";
    position: absolute;
    top: 118px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--paper-2);
    border: 1px solid #eceaf5;
}

.price-card::before { left: -12px; }
.price-card::after { right: -12px; }

.price-card .divider { border-top: 2px dashed #e4e1f0; margin: 1.3rem 0; }

.price-card.popular {
    background: linear-gradient(178deg, var(--ink), var(--ink-3));
    color: #fff;
    border: 1px solid var(--ink-3);
    box-shadow: 0 24px 56px rgba(20, 18, 43, 0.35);
}

.price-card.popular::before, .price-card.popular::after { background: var(--paper-2); border-color: transparent; }
.price-card.popular .plan-name, .price-card.popular .price b { color: #fff; }
.price-card.popular .divider { border-color: rgba(255, 255, 255, 0.18); }
.price-card.popular li, .price-card.popular .plan-desc { color: rgba(255, 255, 255, 0.78); }

.popular-tag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(160deg, var(--gold), var(--gold-deep));
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.plan-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.plan-desc { color: var(--muted); font-size: 0.88rem; min-height: 2.6rem; }

.price b { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--ink); }
.price span { color: var(--muted); font-size: 0.9rem; }
.price-card.popular .price span { color: rgba(255, 255, 255, 0.6); }

.price-card ul { list-style: none; padding: 0; margin: 0; }
.price-card li { padding: 0.32rem 0; color: var(--text); font-size: 0.93rem; }
.price-card li .bi { color: var(--gold-deep); margin-right: 0.5rem; }
.price-card.popular li .bi { color: var(--gold); }

/* ---------------- FAQ ---------------- */
.ld-faq .accordion-item {
    border: 1px solid #eceaf5;
    border-radius: 16px !important;
    margin-bottom: 0.8rem;
    overflow: hidden;
    background: #fff;
}

.ld-faq .accordion-button {
    font-weight: 600;
    color: var(--ink);
    background: #fff;
    padding: 1.1rem 1.4rem;
}

.ld-faq .accordion-button:not(.collapsed) {
    background: #fdf8ec;
    color: var(--ink);
    box-shadow: none;
}

.ld-faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(245, 180, 49, 0.25); }
.ld-faq .accordion-body { color: var(--muted); line-height: 1.65; }

/* ---------------- CTA final ---------------- */
.ld-final {
    background:
        radial-gradient(800px 400px at 50% -20%, rgba(245, 180, 49, 0.2), transparent 60%),
        linear-gradient(175deg, var(--ink-2), var(--ink));
    color: #fff;
    text-align: center;
    padding: 5.5rem 0;
}

.ld-final h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.ld-final p { color: rgba(255, 255, 255, 0.7); font-size: 1.1rem; }

/* ---------------- Footer ---------------- */
.ld-footer { background: var(--ink); color: rgba(255, 255, 255, 0.6); padding: 3rem 0 2rem; font-size: 0.9rem; }
.ld-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.ld-footer a:hover { color: var(--gold); }
.ld-footer .brand { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: #fff; }
.ld-footer .brand .plus { color: var(--gold); }
.ld-footer .brand .ld-plus { width: 0.8em; height: 0.8em; }
.ld-footer .ld-by { font-size: 0.85rem; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.5); }
.ld-footer .ld-by a { color: rgba(255, 255, 255, 0.85); border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.ld-footer .ld-by a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.lang-switch a { font-size: 0.82rem; opacity: 0.7; }
.lang-switch a.active { opacity: 1; color: var(--gold); font-weight: 700; }

/* ---------------- Registro ---------------- */
.register-panel {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(20, 18, 43, 0.16);
    overflow: hidden;
}

.register-aside {
    background: linear-gradient(175deg, var(--ink), var(--ink-3));
    color: #fff;
    padding: 2.6rem;
}

.register-aside .check-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.register-aside .check-list li { padding: 0.4rem 0; color: rgba(255, 255, 255, 0.82); }
.register-aside .check-list .bi { color: var(--gold); margin-right: 0.55rem; }

.register-form { padding: 2.6rem; }

.register-form .form-label { font-weight: 600; color: var(--ink); font-size: 0.9rem; }

.register-form .form-control, .register-form .form-select {
    border-radius: 12px;
    padding: 0.7rem 0.95rem;
    border-color: #dfdcef;
}

.register-form .form-control:focus, .register-form .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.register-form .section-label {
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--brand);
    margin: 0 0 0.8rem;
}

/* Honeypot invisible para bots */
.hp-field { position: absolute; left: -6000px; opacity: 0; height: 0; overflow: hidden; }

@media (max-width: 991.98px) {
    .ld-hero { padding: 3.5rem 0 4.5rem; }
    .mock-wrap { min-height: 380px; margin-top: 2.5rem; }
    .ld-section { padding: 3.6rem 0; }
}
