/* eBook Landing Page Styles - Scoped */

/* Wrapper ID for high specificity */
#lcr-ebook-section {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', 'Segoe UI', Roboto, sans-serif;
    color: #fff;
}

#lcr-ebook-section * {
    box-sizing: border-box;
}

#lcr-ebook-section .lcr-ebook-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    min-height: 80vh;
    /* Taller */

    /* Premium Background from Recompensa */
    background:
        radial-gradient(circle at 15% 50%, rgba(0, 210, 106, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(247, 224, 166, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 50% 0%, #1a1d21 0%, #0b1014 80%);
    position: relative;
    overflow: hidden;
}

/* Background Animation */
#lcr-ebook-section .lcr-ebook-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjIiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wMykiLz48L3N2Zz4=');
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    animation: rotateBg 60s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes rotateBg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Card */
#lcr-ebook-section .lcr-ebook-card {
    background: rgba(19, 26, 32, 0.8);
    /* Transparent */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Lighter border */
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;

    /* Animation Entrance */
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

#lcr-ebook-section .lcr-ebook-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Icon */
#lcr-ebook-section .lcr-ebook-icon {
    width: 80px;
    height: 80px;
    background: rgba(13, 207, 133, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
}

#lcr-ebook-section .lcr-ebook-icon i {
    font-size: 32px;
    color: #0dcf85;
}

/* Typography */
#lcr-ebook-section .lcr-ebook-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    /* Gradient Text */
    background: linear-gradient(135deg, #fff 0%, #e2e2e2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#lcr-ebook-section .lcr-ebook-desc {
    font-size: 16px;
    color: #94a3b8;
    margin: 0 0 40px;
    line-height: 1.6;
}

/* Form */
#lcr-ebook-section .lcr-ebook-form {
    text-align: left;
}

#lcr-ebook-section .lcr-ebook-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#lcr-ebook-section .lcr-ebook-input-group {
    position: relative;
    margin-bottom: 24px;
}

#lcr-ebook-section .lcr-ebook-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 18px;
    pointer-events: none;
    z-index: 2;
}

#lcr-ebook-section .lcr-ebook-input {
    width: 100%;
    height: 56px;
    background: rgba(11, 16, 20, 0.6);
    border: 2px solid #2a343d;
    border-radius: 12px;
    padding: 0 16px 0 52px;
    font-size: 16px;
    color: #fff;
    transition: all 0.2s ease;
    -webkit-appearance: none;
}

#lcr-ebook-section .lcr-ebook-input:focus {
    border-color: #0dcf85;
    outline: none;
    background: #0f151a;
    box-shadow: 0 0 0 4px rgba(13, 207, 133, 0.1);
}

#lcr-ebook-section .lcr-ebook-input::placeholder {
    color: #475569;
}

/* Button */
#lcr-ebook-section .lcr-ebook-btn {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #0dcf85 0%, #0bb574 100%);
    color: #0b1014;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(13, 207, 133, 0.2);
    position: relative;
    overflow: hidden;
}

#lcr-ebook-section .lcr-ebook-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

#lcr-ebook-section .lcr-ebook-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(13, 207, 133, 0.3);
}

#lcr-ebook-section .lcr-ebook-btn:hover::after {
    opacity: 1;
}

#lcr-ebook-section .lcr-ebook-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Download Button specific */
#lcr-ebook-section .lcr-ebook-download-btn {
    text-decoration: none;
}

/* Footer & Messages */
#lcr-ebook-section .lcr-ebook-footer {
    margin-top: 24px;
    text-align: center;
}

#lcr-ebook-section .lcr-ebook-msg {
    font-size: 14px;
    font-weight: 500;
    min-height: 24px;
    margin-bottom: 12px;
    display: block;
}

#lcr-ebook-section .lcr-ebook-disclaimer {
    font-size: 11px;
    color: #475569;
    line-height: 1.5;
    max-width: 90%;
    margin: 0 auto;
}

#lcr-ebook-section .lcr-ebook-link {
    color: #94a3b8;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

#lcr-ebook-section .lcr-ebook-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Confetti Canvas */
#lcr-confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #lcr-ebook-section .lcr-ebook-wrapper {
        padding: 40px 16px;
        min-height: auto;
    }

    #lcr-ebook-section .lcr-ebook-card {
        padding: 32px 24px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    #lcr-ebook-section .lcr-ebook-title {
        font-size: 26px;
    }
}