/*
  style.css para Lead Magnet Web Nativa 24
  Metodología: BEM
  Enfoque: Mobile-First
*/

/* --- 1. Variables y Estilos Globales --- */
:root {
    --primary-color: #3b82f6;
    --primary-gradient: linear-gradient(90deg, #3b82f6, #60a5fa);
    --dark-bg-primary: #0a0a0a;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --border-color: #27272a;
    --card-bg: #18181b;
    --font-main: 'Sora', sans-serif;
}

*, *::before, *::after { 
    box-sizing: border-box; 
}

html, body { 
    max-width: 100%; 
    overflow-x: hidden; 
}

/* El CSS crítico ya está en el HTML */
body {
    font-family: var(--font-main);
    background-color: var(--dark-bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color .3s ease;
}

a:hover {
    color: #60a5fa;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 2. Estructura y Layout --- */
.main-content {
    width: 100%;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 1.5rem;
    min-height: 100vh;
    justify-content: center;
}

.section {
    padding: 4rem 1.5rem;
    text-align: center;
}

.section--dark {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section__title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    max-width: 700px;
    line-height: 1.3;
}

.section__paragraph {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2rem;
}

.section__paragraph--highlight {
    font-weight: 700;
    color: var(--text-primary);
    background-color: #27272a;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.section__cta-box {
    margin-top: 2rem;
}

/* --- 3. Componentes --- */

/* Hero */
.hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    max-width: 650px;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero__ebook-cover {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto 2.5rem;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero__ebook-cover:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

.hero__cta-box {
    margin-bottom: 2.5rem;
}

.hero__cta-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Tarjetas */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.card__icon {
    margin: 0 auto 1rem;
}

.card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
}

.card__text {
    color: var(--text-secondary);
    margin: 0;
}

.pain-cards, .feature-cards, .faq {
    margin-top: 3rem;
}

/* Testimonio */
.testimonial {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 3rem auto;
    max-width: 600px;
    text-align: left;
}

.testimonial__text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.testimonial__author {
    font-weight: 700;
    color: var(--text-secondary);
}

/* FAQ */
.faq__item {
    margin-bottom: 2rem;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.faq__item:last-child {
    margin-bottom: 0;
}
.faq__question {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}
.faq__answer {
    color: var(--text-secondary);
    margin: 0;
}


/* Botones */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all .3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    text-align: center;
}

.btn--primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59,130,246,0.4);
}

.btn--primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(59,130,246,0.5);
}

.btn--large {
    padding: 1.2rem 3rem;
    font-size: 1.25rem;
}

/* Footer */
.footer {
    padding: 2.5rem 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

.footer__links a {
    margin: 0 10px;
}

.footer__copyright {
    margin-top: 1rem;
}

/* Banner de Cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    color: var(--text-primary);
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    display: none; /* Oculto por defecto, JS lo muestra */
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.cookie-banner.show {
    display: flex;
}
.btn--secondary {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
}


/* --- 4. Media Queries --- */
@media (min-width: 768px) {
    .hero__title {
        font-size: 3.5rem;
    }
    
    .section__title {
        font-size: 2.8rem;
    }

    .pain-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .feature-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .comparison-grid {
        padding: 0 2rem;
    }
}