/* 
 * styles.css - Landing Page MentePower / Louise Hay
 * Arquitectura: Mobile-First & Responsive Design
 * Estilo: Femenino, Sanador y Elegante (Blush Rose Quartz, Warm Gold & Soft Silk)
 */

:root {
    --bg-main: #fdfbf7;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.96);
    --bg-accent-soft: #f8efe6;
    
    --border-color: rgba(217, 119, 127, 0.2);
    --border-glow: rgba(217, 119, 127, 0.45);

    --primary: #c25964;
    --primary-hover: #ab4752;
    --accent-gold: #d4af37;
    --accent-rose: #e8989f;
    --accent-blush: #fceeed;
    --accent-dark: #2e2426;
    
    --text-primary: #2e2426;
    --text-secondary: #5e4f52;
    --text-muted: #918083;
    
    --font-heading: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 32px;
    --shadow-soft: 0 12px 35px rgba(217, 119, 127, 0.08);
    --shadow-card: 0 18px 45px rgba(46, 36, 38, 0.07);
}

/* ============================================================
   1. BASE STYLES (MOBILE-FIRST - Default for 320px to 640px)
   ============================================================ */

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

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    position: relative;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
}

/* Halos luminosos rosados y dorados recortados */
.bg-glow-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    max-width: 90vw;
    background: radial-gradient(circle, rgba(232, 152, 159, 0.35) 0%, rgba(253, 251, 247, 0.1) 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.bg-glow-2 {
    position: absolute;
    top: 650px;
    right: 0;
    width: 260px;
    height: 260px;
    max-width: 90vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* --- Header --- */
header.navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(217, 119, 127, 0.15);
    text-align: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.2px;
}

.logo-badge {
    color: var(--primary);
    font-style: italic;
    font-weight: 500;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    width: 100%;
    max-width: 290px;
    transition: all 0.3s ease;
}

/* --- Hero Header Section Wrapper (Diferenciación Visual Silk Blush) --- */
.hero-header-wrapper {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fff6f7 55%, #fcedef 100%);
    box-shadow: 0 15px 45px rgba(194, 89, 100, 0.06);
    overflow: hidden;
    padding-bottom: 0;
}

.tag-badge-wrapper {
    text-align: center;
}

/* --- Hero Section Mobile --- */
.hero {
    padding: 30px 0 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--accent-blush);
    border: 1px solid rgba(217, 119, 127, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-align: center;
}

.hero-title span.highlight {
    color: var(--primary);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.65;
}

/* --- Form Card (Destacado, Premium & Diferenciado) --- */
.hero-form-card {
    background: linear-gradient(160deg, #ffffff 0%, #fff9f9 60%, #fdf3f4 100%);
    border: 2px solid rgba(194, 89, 100, 0.28);
    border-radius: 28px;
    padding: 32px 24px;
    box-shadow: 0 25px 55px rgba(194, 89, 100, 0.13), 0 8px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent-rose), var(--accent-gold));
}

.form-badge {
    display: inline-block;
    background: #fceeed;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.form-header {
    text-align: center;
    margin-bottom: 20px;
}

.form-header h3 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-header p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    min-height: 52px;
    padding: 14px 18px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(194, 89, 100, 0.15);
    background: #ffffff;
}

.btn-primary {
    width: 100%;
    min-height: 56px;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), #d9777f);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(194, 89, 100, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    touch-action: manipulation;
}

.btn-primary:active {
    transform: scale(0.98);
}

.form-footer-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 14px;
}

/* --- Card del Diario / Afirmaciones (Vista Previa Complementaria) --- */
.book-card {
    background: rgba(253, 251, 247, 0.8);
    border: 1px dashed rgba(194, 89, 100, 0.35);
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: none;
    text-align: center;
    margin-top: 24px;
}

.book-badge {
    background: var(--accent-blush);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 14px;
}

.book-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.book-author {
    font-size: 0.95rem;
    color: var(--primary);
    font-style: italic;
    margin-bottom: 20px;
}

.book-preview-affirmation {
    background: var(--bg-main);
    border-left: 3px solid var(--primary);
    padding: 18px 16px;
    border-radius: var(--radius-sm);
    text-align: left;
    margin-bottom: 18px;
}

.book-preview-affirmation p {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.5;
}

.book-preview-date {
    display: block;
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 700;
    text-align: right;
}

/* --- Features Section --- */
.section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 36px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.grid-3 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 26px 22px;
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-blush);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.feature-card h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Demostración Interactiva --- */
.interactive-demo {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 34px 18px;
    margin: 24px 0;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.demo-card-box {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 26px 18px;
}

.demo-quote {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 14px;
    font-style: italic;
}

.demo-date {
    font-size: 0.88rem;
    color: var(--primary);
    font-weight: 700;
}

.demo-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-demo {
    width: 100%;
    min-height: 50px;
    padding: 12px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    touch-action: manipulation;
}

/* --- Modal Overlay Mobile --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 36, 38, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.modal-card {
    background: var(--bg-surface);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 30px 18px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    position: relative;
    max-height: 88vh;
    overflow-y: auto;
    word-break: break-word;
    overflow-wrap: break-word;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: #faf7f2;
    border: 1px solid var(--border-glow);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    font-weight: bold;
    color: #7a6b6e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-blush);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 4px auto 14px;
}

.modal-card h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    line-height: 1.3;
    margin-bottom: 10px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.modal-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    width: 100%;
    min-height: 54px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary), #d9777f);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 22px rgba(194, 89, 100, 0.35);
}

/* --- Footer Mobile --- */
footer {
    border-top: 1px solid var(--border-color);
    padding: 38px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    background: var(--bg-surface);
}

/* ============================================================
   2. TABLET MEDIA QUERY (min-width: 640px)
   ============================================================ */
@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }

    header.navbar {
        flex-direction: row;
        justify-content: space-between;
        padding: 24px 0;
        text-align: left;
    }

    .nav-cta {
        width: auto;
    }

    .hero-title {
        font-size: 3rem;
    }

    .btn-demo {
        width: auto;
    }

    .grid-3 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   3. DESKTOP MEDIA QUERY (min-width: 992px)
   ============================================================ */
@media (min-width: 992px) {
    .container {
        max-width: 1180px;
    }

    .bg-glow-1 {
        width: 750px;
        height: 750px;
        top: -160px;
    }

    .bg-glow-2 {
        width: 650px;
        height: 650px;
        top: 800px;
    }

    .tag-badge-wrapper {
        text-align: left;
    }

    .hero {
        padding: 70px 0 50px;
        display: grid;
        grid-template-columns: 1.05fr 0.95fr;
        gap: 52px;
        align-items: center;
    }

    .hero-title {
        font-size: 3.5rem;
        text-align: left;
        line-height: 1.18;
    }

    .hero-subtitle {
        text-align: left;
        font-size: 1.1rem;
    }

    .hero-form-card {
        padding: 44px 38px;
        box-shadow: 0 35px 80px rgba(194, 89, 100, 0.16), 0 10px 30px rgba(46, 36, 38, 0.04);
        transition: transform 0.4s ease, box-shadow 0.4s ease;
    }

    .hero-form-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 45px 90px rgba(194, 89, 100, 0.22), 0 15px 35px rgba(46, 36, 38, 0.06);
    }

    .book-card {
        padding: 38px;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(212, 175, 55, 0.4);
        box-shadow: 0 15px 40px rgba(217, 119, 127, 0.08);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .feature-card {
        padding: 38px;
    }

    .feature-card:hover {
        transform: translateY(-6px);
        border-color: var(--border-glow);
        box-shadow: var(--shadow-card);
    }

    .interactive-demo {
        padding: 56px 36px;
        margin: 40px 0;
    }

    .demo-card-box {
        padding: 44px;
    }

    .demo-quote {
        font-size: 1.6rem;
    }

    .modal-card {
        padding: 48px 36px;
        max-width: 520px;
    }
}

/* --- Final CTA Section (Pre-Footer) --- */
.final-cta-section {
    padding: 20px 0 45px;
    position: relative;
    z-index: 1;
}

.final-cta-card {
    background: linear-gradient(160deg, #ffffff 0%, #fff9f9 60%, #fdf3f4 100%);
    border: 2px solid rgba(194, 89, 100, 0.28);
    border-radius: 28px;
    padding: 30px 18px;
    text-align: center;
    box-shadow: 0 25px 55px rgba(194, 89, 100, 0.12), 0 8px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.final-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent-rose), var(--accent-gold));
}

.final-cta-badge {
    display: inline-block;
    background: #fceeed;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.final-cta-card h2 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.25;
}

.final-cta-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 22px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-form-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 780px;
    margin: 0 auto;
}

.mb-0 {
    margin-bottom: 0 !important;
}

@media (min-width: 768px) {
    .final-cta-card {
        padding: 42px 36px;
    }
    .final-cta-card h2 {
        font-size: 2.3rem;
    }
    .final-cta-form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr auto;
        gap: 12px;
        align-items: center;
    }
}
