/* ============================================
   LANDING PAGES — estilos comunes
   Usado en index.php raíz y en pages/{cat}/index.php
   ============================================ */

.lp-hero {
    padding: 4rem 1rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.lp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(168,85,247,0.18), transparent 60%);
    pointer-events: none;
}
.lp-hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    margin: 0 0 1.2rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--lp-c1, #fbbf24) 0%, var(--lp-c2, #ec4899) 50%, var(--lp-c3, #a855f7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lp-hero p.lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: .88;
    max-width: 680px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    color: #fff;
}
.lp-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.lp-cta-primary {
    background: linear-gradient(135deg, var(--lp-c3, #a855f7), var(--lp-c2, #ec4899));
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 8px 25px rgba(168,85,247,.4);
    transition: transform .2s, box-shadow .2s;
}
.lp-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(168,85,247,.6);
}
.lp-cta-secondary {
    background: transparent;
    color: var(--lp-c1, #fbbf24);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border: 2px solid var(--lp-c1, #fbbf24);
    transition: all .2s;
}
.lp-cta-secondary:hover {
    background: var(--lp-c1, #fbbf24);
    color: #1a1a2e;
}

.lp-stats {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: .9;
    font-size: .95rem;
}
.lp-stats-item strong {
    display: block;
    font-size: 1.6rem;
    color: var(--lp-c1, #fbbf24);
    line-height: 1;
    margin-bottom: .2rem;
}
.lp-stats-item span { opacity: .75; }

.lp-section {
    margin: 4rem auto;
    padding: 0 1rem;
    max-width: 1200px;
}
.lp-section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 .5rem;
    color: #fff;
}
.lp-section-subtitle {
    text-align: center;
    opacity: .75;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Embed wrapper para apps embebidas */
.lp-embed-wrap {
    background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(236,72,153,0.05));
    border: 1px solid rgba(168,85,247,0.25);
    border-radius: 24px;
    padding: 1rem;
    margin: 0 auto;
    max-width: 760px;
}

/* Grid de cards principales (top apps) */
.lp-top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}
.lp-top-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.6rem;
    text-decoration: none;
    color: #fff;
    transition: all .25s;
    display: flex;
    flex-direction: column;
}
.lp-top-card:hover {
    transform: translateY(-4px);
    border-color: var(--lp-c3, rgba(168,85,247,0.5));
    background: rgba(168,85,247,0.06);
}
.lp-top-icon { font-size: 2.5rem; margin-bottom: .8rem; }
.lp-top-titulo { font-size: 1.15rem; font-weight: 700; margin: 0 0 .5rem; color: var(--lp-c1, #fbbf24); }
.lp-top-desc { font-size: .92rem; opacity: .85; line-height: 1.55; margin: 0 0 1rem; flex: 1; }
.lp-top-tag {
    display: inline-block;
    background: rgba(168,85,247,0.2);
    color: #c4b5fd;
    padding: .2rem .7rem;
    border-radius: 10px;
    font-size: .75rem;
    align-self: flex-start;
}

/* Grid de subcategorías compactas */
.lp-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .8rem;
}
.lp-sub-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.2rem 1rem;
    text-decoration: none;
    color: #fff;
    text-align: center;
    transition: all .2s;
}
.lp-sub-card:hover {
    transform: translateY(-2px);
    border-color: var(--lp-c1, #fbbf24);
    background: rgba(255,255,255,0.07);
}
.lp-sub-icon { font-size: 2rem; margin-bottom: .5rem; }
.lp-sub-title { font-weight: 600; font-size: .95rem; margin: 0 0 .2rem; }
.lp-sub-meta { font-size: .8rem; opacity: .7; margin: 0; }

/* Pasos numerados */
.lp-pasos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.lp-paso {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
}
.lp-paso-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lp-c3, #a855f7), var(--lp-c2, #ec4899));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    margin: 0 auto 1rem;
}
.lp-paso h3 { margin: 0 0 .6rem; font-size: 1.15rem; color: var(--lp-c1, #fbbf24); }
.lp-paso p { margin: 0; opacity: .85; line-height: 1.6; font-size: .95rem; }

/* Promesas */
.lp-promesa {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.lp-promesa-card {
    background: rgba(255,255,255,0.04);
    border-left: 3px solid var(--lp-c1, #fbbf24);
    border-radius: 0 12px 12px 0;
    padding: 1.3rem 1.4rem;
}
.lp-promesa-card h4 { margin: 0 0 .4rem; color: var(--lp-c1, #fbbf24); font-size: 1rem; }
.lp-promesa-card p { margin: 0; opacity: .88; font-size: .92rem; line-height: 1.55; }

/* CTA final */
.lp-cta-final {
    background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(236,72,153,0.1));
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 900px;
    margin: 4rem auto;
}
.lp-cta-final h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    margin: 0 0 .8rem;
    color: #fff;
}
.lp-cta-final p {
    opacity: .85;
    max-width: 560px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* Bloque de texto largo (descripción de categoría) */
.lp-prose {
    background: rgba(255,255,255,0.03);
    border-radius: 18px;
    padding: 2rem 2.2rem;
    max-width: 880px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.07);
}
.lp-prose p {
    line-height: 1.8;
    opacity: .92;
    margin: 0 0 1rem;
    font-size: 1.02rem;
}
.lp-prose p:last-child { margin-bottom: 0; }
.lp-prose strong { color: var(--lp-c1, #fbbf24); }

/* Categorías cruzadas (al final, otras categorías) */
.lp-cross {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .8rem;
}
.lp-cross-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1rem;
    text-decoration: none;
    color: #fff;
    text-align: center;
    transition: all .2s;
}
.lp-cross-card:hover {
    border-color: rgba(168,85,247,0.5);
    transform: translateY(-2px);
}
.lp-cross-icon { font-size: 1.8rem; margin-bottom: .4rem; }
.lp-cross-card h4 { margin: 0; font-size: .9rem; font-weight: 600; }
