/* Página de inicio pública (Facilfacturard.com). Estilos propios, sin depender del resto del sistema. */

:root {
    --lp-fondo: #f8fafc;
    --lp-texto: #0f172a;
    --lp-suave: #475569;
    --lp-borde: #e2e8f0;
    --lp-azul: #2563eb;
    --lp-azul-oscuro: #1d4ed8;
    --lp-marino: #0f172a;
    --lp-ambar: #fbbf24;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--lp-fondo);
    color: var(--lp-texto);
    font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--lp-azul);
}

img {
    max-width: 100%;
    height: auto;
}

.lp-container {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.lp-container-medio {
    max-width: 60rem;
}

.lp-container-angosto {
    max-width: 48rem;
}

/* ---------- Encabezado ---------- */
.lp-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
}

.lp-header-fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.lp-logo img {
    display: block;
    height: 38px;
    width: auto;
    mix-blend-mode: multiply; /* el fondo blanco del logo se funde con el de la página */
}

.lp-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.lp-nav-enlace {
    padding: 0.55rem 0.85rem;
    border-radius: 9px;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.lp-nav-enlace:hover {
    background: #eef2f7;
}

/* ---------- Botones ---------- */
.lp-btn {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.lp-btn:hover {
    transform: translateY(-1px);
}

.lp-btn-chico {
    padding: 0.55rem 1.1rem;
    font-size: 0.95rem;
}

.lp-btn-grande {
    padding: 0.9rem 1.9rem;
    border-radius: 13px;
    font-size: 1.15rem;
}

.lp-btn-bloque {
    display: block;
    width: 100%;
}

.lp-btn-primario {
    background: var(--lp-azul);
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.lp-btn-primario:hover {
    background: var(--lp-azul-oscuro);
}

.lp-btn-oscuro {
    background: var(--lp-marino);
    color: #fff;
}

.lp-btn-oscuro:hover {
    background: #1e293b;
}

.lp-btn-claro {
    background: #fff;
    border-color: #cbd5e1;
    color: #1e293b;
}

.lp-btn-claro:hover {
    background: #f1f5f9;
}

/* ---------- Hero ---------- */
.lp-hero {
    padding: 2.5rem 0 3.5rem;
    text-align: center;
}

.lp-etiqueta {
    display: inline-block;
    padding: 0.3rem 0.95rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 0.95rem;
    font-weight: 600;
}

.lp-hero h1 {
    max-width: 52rem;
    margin: 1.25rem auto 1rem;
    font-size: clamp(2rem, 5.2vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.lp-hero-texto {
    max-width: 42rem;
    margin: 0 auto 1.75rem;
    color: var(--lp-suave);
    font-size: 1.2rem;
}

.lp-botones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

.lp-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.lp-chips li {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--lp-borde);
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 500;
}

/* ---------- Secciones ---------- */
.lp-seccion {
    padding: 3.5rem 0;
    scroll-margin-top: 4.2rem;
}

.lp-fondo-blanco {
    background: #fff;
}

.lp-titulo {
    margin: 0 0 2rem;
    text-align: center;
    font-size: clamp(1.6rem, 3.4vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.lp-subtitulo {
    max-width: 38rem;
    margin: -1rem auto 2rem;
    text-align: center;
    color: var(--lp-suave);
}

.lp-rejilla {
    display: grid;
    gap: 1.1rem;
}

.lp-rejilla-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lp-tarjeta {
    padding: 1.4rem;
    border: 1px solid var(--lp-borde);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.lp-tarjeta:hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.lp-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    margin-bottom: 0.85rem;
    border-radius: 12px;
    background: #eff6ff;
    font-size: 1.45rem;
}

.lp-tarjeta h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.lp-tarjeta p {
    margin: 0;
    color: var(--lp-suave);
    font-size: 0.97rem;
}

/* ---------- Pasos ---------- */
.lp-pasos {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.lp-paso-numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.8rem;
    border-radius: 50%;
    background: var(--lp-marino);
    color: var(--lp-ambar);
    font-size: 1.3rem;
    font-weight: 700;
}

.lp-pasos h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.lp-pasos p {
    max-width: 18rem;
    margin: 0 auto;
    color: var(--lp-suave);
}

/* ---------- Planes ---------- */
.lp-planes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

.lp-plan {
    position: relative;
    flex: 1 1 18rem;
    max-width: 24rem;
    padding: 1.7rem;
    border: 1px solid var(--lp-borde);
    border-radius: 20px;
    background: #fff;
}

.lp-plan-destacado {
    border: 2px solid var(--lp-azul);
    box-shadow: 0 14px 36px rgba(37, 99, 235, 0.14);
}

.lp-insignia {
    position: absolute;
    top: -0.8rem;
    left: 1.5rem;
    padding: 0.15rem 0.85rem;
    border-radius: 999px;
    background: var(--lp-ambar);
    color: var(--lp-marino);
    font-size: 0.82rem;
    font-weight: 700;
}

.lp-plan h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
}

.lp-precio {
    margin: 0.35rem 0 0.5rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lp-precio span {
    color: var(--lp-suave);
    font-size: 1rem;
    font-weight: 500;
}

.lp-plan-descripcion {
    margin: 0 0 0.9rem;
    color: var(--lp-suave);
}

.lp-lista {
    margin: 0 0 1.4rem;
    padding: 0;
    list-style: none;
}

.lp-lista li {
    position: relative;
    padding: 0.28rem 0 0.28rem 1.6rem;
}

.lp-lista li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--lp-azul);
    font-weight: 800;
}

/* ---------- Preguntas ---------- */
.lp-faq details {
    margin-bottom: 0.75rem;
    border: 1px solid var(--lp-borde);
    border-radius: 14px;
    background: var(--lp-fondo);
}

.lp-faq summary {
    position: relative;
    padding: 1rem 3rem 1rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.lp-faq summary::-webkit-details-marker {
    display: none;
}

.lp-faq summary::after {
    content: "+";
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lp-azul);
    font-size: 1.5rem;
    font-weight: 500;
}

.lp-faq details[open] summary::after {
    content: "–";
}

.lp-faq details p {
    margin: 0;
    padding: 0 1.2rem 1.1rem;
    color: var(--lp-suave);
}

/* ---------- Llamado final ---------- */
.lp-cierre {
    padding: 4rem 0;
    background: var(--lp-marino);
    color: #fff;
    text-align: center;
}

.lp-cierre h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.7rem, 3.8vw, 2.3rem);
    font-weight: 800;
}

.lp-cierre p {
    margin: 0 0 1.6rem;
    color: #cbd5e1;
    font-size: 1.15rem;
}

.lp-cierre p.lp-cierre-contacto {
    margin: 1.4rem 0 0;
    font-size: 1rem;
}

.lp-cierre-contacto a {
    color: #fff;
    font-weight: 600;
}

/* ---------- Pie ---------- */
.lp-pie {
    padding: 1.8rem 0;
    background: #fff;
    border-top: 1px solid var(--lp-borde);
    color: #64748b;
    font-size: 0.95rem;
    text-align: center;
}

.lp-pie p {
    margin: 0.2rem 0;
}

.lp-pie a {
    color: #64748b;
}

/* ---------- Pantallas medianas y pequeñas ---------- */
@media (max-width: 991.98px) {
    .lp-rejilla-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lp-solo-escritorio {
        display: none;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 1rem;
    }
    .lp-rejilla-3 {
        grid-template-columns: minmax(0, 1fr);
    }
    .lp-logo img {
        height: 30px;
    }
    .lp-header-fila {
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }
    .lp-hero {
        padding: 1.5rem 0 2.5rem;
    }
    .lp-hero-texto {
        font-size: 1.05rem;
    }
    .lp-btn-grande {
        width: 100%;
    }
    .lp-seccion {
        padding: 2.5rem 0;
    }
    .lp-pasos {
        gap: 1.6rem;
    }
}

@media (max-width: 520px) {
    .lp-ocultar-movil {
        display: none;
    }
    .lp-btn-chico {
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .lp-btn,
    .lp-tarjeta {
        transition: none;
    }
}
