/* ─── Design tokens (espejo de naga_facturacion/resources/css/app.css) ─── */
:root {
    color-scheme: light;
    --bg:           #f3f5fb;
    --card:         #ffffff;
    --card2:        #f8fafd;
    --head:         #1f2438;
    --muted:        #8b91a6;
    --muted2:       #aab0c6;
    --border:       #e9ecf6;
    --primary:      #3461eb;
    --primary-d:    #2750c8;
    --primary-soft: #e9efff;
    --success:      #1fbf75;
    --success-bg:   rgba(31, 191, 117, .14);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg:           #161b2b;
    --card:         #212741;
    --card2:        #1a2038;
    --head:         #eef0fa;
    --muted:        #8088a8;
    --muted2:       #606882;
    --border:       #2c3354;
    --primary:      #5d82f5;
    --primary-d:    #4a6de0;
    --primary-soft: rgba(93, 130, 245, .16);
    --success:      #29d98c;
    --success-bg:   rgba(41, 217, 140, .16);
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text, var(--head));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* Tipografía compartida */
.lp-kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.lp-h2 { font-size: 30px; font-weight: 800; color: var(--head); letter-spacing: -.5px; line-height: 1.18; margin-bottom: 12px; }
.lp-lead { font-size: 15px; color: var(--muted); line-height: 1.6; max-width: 560px; }
@media (max-width: 520px) { .lp-h2 { font-size: 24px; } }

/* Botones */
.lp-btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-size: 14.5px; font-weight: 700; text-decoration: none; transition: transform .15s ease, filter .15s ease; border: none; cursor: pointer; }
.lp-btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.lp-btn--light { background: #fff; color: var(--primary-d); box-shadow: 0 10px 26px -10px rgba(0,0,0,.4); }
.lp-btn--ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }

/* Barra de retorno al hub de marca (GStudio) — no forma parte del diseño original de esta landing */
.lp-back-to-hub {
    display: block; text-align: center; padding: 7px 22px; font-size: 12px; font-weight: 600;
    letter-spacing: .2px; text-decoration: none; color: var(--muted);
    background: var(--card2); border-bottom: 1px solid var(--border);
}
.lp-back-to-hub:hover { color: var(--primary); }

/* Cabecera */
.lp-header { position: sticky; top: 0; z-index: 20; background: var(--card); border-bottom: 1px solid var(--border); }
.lp-header__inner { max-width: 1120px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; }
.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lp-brand__logo { width: 32px; height: 32px; border-radius: 9px; background: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lp-brand__name { font-size: 19px; font-weight: 800; color: var(--head); letter-spacing: -.4px; }
.lp-nav { display: flex; align-items: center; gap: 18px; }
.lp-nav__link { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.lp-nav__link:hover { color: var(--head); }
.lp-nav__login { padding: 9px 18px; border-radius: 9px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.lp-nav__login:hover { filter: brightness(1.05); }
.lp-theme {
    width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border);
    background: transparent; color: var(--muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: color .15s ease, border-color .15s ease;
}
.lp-theme:hover { color: var(--head); border-color: var(--muted2); }
.lp-theme svg { pointer-events: none; }
@media (max-width: 760px) { .lp-nav__link { display: none; } }

/* Hero */
.lp-hero { background: linear-gradient(160deg, #2750c8, #3461eb 55%, #5d82f5); overflow: hidden; }
.lp-hero__inner {
    max-width: 1120px; margin: 0 auto; padding: 64px 22px 72px;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
@media (max-width: 880px) { .lp-hero__inner { grid-template-columns: 1fr; gap: 44px; } }

.lp-hero__info { color: #fff; }
.lp-badge { display: inline-block; padding: 5px 14px; background: rgba(255,255,255,.18); border-radius: 20px; font-size: 12.5px; font-weight: 600; margin-bottom: 18px; }
.lp-hero__title { font-size: 42px; font-weight: 800; line-height: 1.1; letter-spacing: -.8px; margin-bottom: 16px; }
.lp-hero__sub { font-size: 16px; opacity: .92; line-height: 1.65; max-width: 500px; margin-bottom: 26px; }
.lp-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 38px; }
@media (max-width: 520px) { .lp-hero__title { font-size: 30px; } }

.lp-metrics { display: flex; gap: 34px; flex-wrap: wrap; }
.lp-metric { display: flex; flex-direction: column; gap: 3px; }
.lp-metric__v { font-size: 24px; font-weight: 800; letter-spacing: -.3px; }
.lp-metric__l { font-size: 12px; opacity: .8; }

/* Mock de comprobante */
.lp-mock { position: relative; display: flex; justify-content: center; }
.lp-mock__doc {
    width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 24px;
    box-shadow: 0 30px 80px rgba(10,20,60,.45);
    animation: lp-float 6s ease-in-out infinite;
}
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .lp-mock__doc, .lp-mock__chip { animation: none !important; } }
.lp-mock__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.lp-mock__type { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #8b91a6; }
.lp-mock__serie { font-size: 19px; font-weight: 800; color: #1f2438; letter-spacing: -.3px; }
.lp-mock__status { padding: 5px 12px; border-radius: 8px; background: rgba(31,191,117,.14); color: #17a466; font-size: 11.5px; font-weight: 800; letter-spacing: .5px; }
.lp-mock__row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; }
.lp-mock__row span { color: #8b91a6; }
.lp-mock__row b { color: #1f2438; font-weight: 600; }
.lp-mock__divider { border-top: 1px dashed #e0e4f0; margin: 8px 0; }
.lp-mock__row--total { font-size: 15px; }
.lp-mock__row--total b { font-weight: 800; }
.lp-mock__cdr {
    margin-top: 14px; display: flex; align-items: center; gap: 8px; padding: 10px 12px;
    background: rgba(31,191,117,.1); border: 1px solid rgba(31,191,117,.3); border-radius: 10px;
    font-size: 12px; font-weight: 600; color: #17a466;
}
.lp-mock__chip {
    position: absolute; padding: 8px 14px; border-radius: 10px; background: #fff;
    font-size: 12px; font-weight: 800; color: #3461eb;
    box-shadow: 0 14px 34px rgba(10,20,60,.35);
    animation: lp-float 6s ease-in-out infinite;
}
.lp-mock__chip--xml { top: -14px; left: 2px; animation-delay: 1.4s; }
.lp-mock__chip--pdf { bottom: -12px; right: 6px; animation-delay: 2.6s; color: #17a466; }
@media (max-width: 880px) { .lp-mock__chip--xml { left: 10%; } .lp-mock__chip--pdf { right: 10%; } }

/* Franja de confianza */
.lp-trust { background: var(--card); border-bottom: 1px solid var(--border); }
.lp-trust__inner {
    max-width: 1120px; margin: 0 auto; padding: 16px 22px;
    display: flex; justify-content: center; gap: 14px 38px; flex-wrap: wrap;
}
.lp-trust__inner span { font-size: 12.5px; font-weight: 700; letter-spacing: .4px; color: var(--muted); text-transform: uppercase; }

/* Qué hacemos */
.lp-about { padding: 72px 22px; }
.lp-about__inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; }
@media (max-width: 880px) { .lp-about__inner { grid-template-columns: 1fr; gap: 36px; } }
.lp-about__text p { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.lp-about__text b { color: var(--head); }
.lp-about__points { display: flex; flex-direction: column; gap: 16px; list-style: none; }
.lp-about__points li { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.lp-point__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.lp-about__points b { display: block; font-size: 14.5px; color: var(--head); margin-bottom: 3px; }
.lp-about__points span { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Características */
.lp-features { background: var(--card2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 72px 22px; }
.lp-features__head { max-width: 1120px; margin: 0 auto 40px; text-align: center; }
.lp-features__head .lp-lead { margin: 0 auto; }
.lp-features__inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .lp-features__inner { grid-template-columns: 1fr; gap: 18px; } }
.lp-feature { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; transition: transform .18s ease, box-shadow .18s ease; }
.lp-feature:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -18px rgba(30,50,120,.35); }
.lp-feature__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.lp-feature__title { font-size: 16px; font-weight: 700; color: var(--head); margin-bottom: 7px; }
.lp-feature__text { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* Cómo funciona */
.lp-steps { padding: 72px 22px; }
.lp-steps__head { max-width: 1120px; margin: 0 auto 40px; text-align: center; }
.lp-steps__inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .lp-steps__inner { grid-template-columns: 1fr; } }
.lp-step { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 26px 24px; }
.lp-step__num {
    width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800; margin-bottom: 14px;
}
.lp-step h3 { font-size: 16px; font-weight: 700; color: var(--head); margin-bottom: 7px; }
.lp-step p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* Planes */
.lp-plans { background: var(--card2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 72px 22px; }
.lp-plans__head { max-width: 1120px; margin: 0 auto 36px; text-align: center; }
.lp-plans__head .lp-lead { margin: 0 auto 22px; }
.lp-billing { display: inline-flex; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; }
.lp-billing__opt {
    border: none; cursor: pointer; background: transparent; padding: 9px 18px; border-radius: 9px;
    font-size: 13.5px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px;
}
.lp-billing__opt.is-active { background: var(--primary); color: #fff; }
.lp-billing__save { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 10px; background: var(--success-bg); color: var(--success); }
.lp-billing__opt.is-active .lp-billing__save { background: rgba(255,255,255,.22); color: #fff; }

.lp-plans__grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 880px) { .lp-plans__grid { grid-template-columns: 1fr; max-width: 460px; } }
.lp-plan {
    position: relative; display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px 26px;
    border-top: 4px solid var(--plan-color, var(--primary));
}
.lp-plan--featured { border-color: var(--plan-color, var(--primary)); box-shadow: 0 24px 60px -24px rgba(30,50,150,.45); }
.lp-plan__badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    padding: 4px 14px; border-radius: 20px; background: var(--plan-color, var(--primary)); color: #fff;
    font-size: 11.5px; font-weight: 800; letter-spacing: .4px; white-space: nowrap;
}
.lp-plan__name { font-size: 19px; font-weight: 800; color: var(--head); margin-bottom: 6px; }
.lp-plan__desc { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 18px; min-height: 40px; }
.lp-plan__price { display: flex; align-items: baseline; gap: 6px; }
.lp-plan__amount { font-size: 34px; font-weight: 800; color: var(--head); letter-spacing: -.8px; }
.lp-plan__per { font-size: 14px; color: var(--muted); font-weight: 600; }
.lp-plan__note { font-size: 12px; color: var(--muted2); margin: 4px 0 18px; }
.lp-plan__list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; flex: 1; list-style: none; }
.lp-plan__list li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--head); line-height: 1.45; }
.lp-plan__list svg { flex-shrink: 0; margin-top: 2px; color: var(--plan-color, var(--primary)); }
.lp-plan__cta {
    display: block; text-align: center; padding: 12px; border-radius: 10px;
    background: var(--plan-color, var(--primary)); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none;
}
.lp-plan__cta:hover { filter: brightness(1.07); }
.lp-plans__foot { max-width: 1120px; margin: 26px auto 0; text-align: center; font-size: 13.5px; color: var(--muted); }
.lp-plans__foot a { color: var(--primary); font-weight: 700; text-decoration: none; }
.lp-plans__foot a:hover { text-decoration: underline; }
.lp-plans__loading { text-align: center; padding: 30px; color: var(--muted); font-size: 13.5px; }

/* Verificación pública (enlace a la app, sin formulario aquí) */
.lp-verify-sec { padding: 72px 22px; }
.lp-verify-sec__inner {
    max-width: 900px; margin: 0 auto; text-align: center;
    background: var(--card); border: 1px solid var(--border); border-radius: 20px;
    padding: 52px 32px; box-shadow: 0 24px 70px -34px rgba(10,20,60,.3);
}
.lp-verify-sec__inner .lp-lead { margin: 0 auto 26px; }
.lp-verify-icon {
    width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 18px;
    background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}

/* CTA final */
.lp-cta { background: linear-gradient(160deg, #2750c8, #3461eb 55%, #5d82f5); padding: 64px 22px; }
.lp-cta__inner { max-width: 720px; margin: 0 auto; text-align: center; color: #fff; }
.lp-cta__inner h2 { font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 10px; }
.lp-cta__inner p { font-size: 15.5px; opacity: .9; margin-bottom: 26px; }
.lp-cta__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Pie */
.lp-footer { margin-top: auto; background: var(--card); border-top: 1px solid var(--border); }
.lp-footer__inner {
    max-width: 1120px; margin: 0 auto; padding: 44px 22px 30px;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
}
@media (max-width: 720px) { .lp-footer__inner { grid-template-columns: 1fr; gap: 26px; } }
.lp-footer__brand p { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 320px; }
.lp-footer__col { display: flex; flex-direction: column; gap: 9px; }
.lp-footer__col b { font-size: 13px; font-weight: 800; color: var(--head); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; }
.lp-footer__col a { font-size: 13.5px; color: var(--muted); text-decoration: none; }
.lp-footer__col a:hover { color: var(--primary); }
.lp-footer__bottom { border-top: 1px solid var(--border); }
.lp-footer__bottom span { display: block; max-width: 1120px; margin: 0 auto; padding: 18px 22px; font-size: 12.5px; color: var(--muted); }
