/**
 * Paywalls Sutiles y Enganchados
 * Diseño persuasivo sin ser agresivo
 */

/* Overlay suave de paywall */
.lb-paywall-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

/* Modal del paywall */
.lb-paywall-modal {
    background: white;
    border-radius: 16px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

/* Header del paywall */
.lb-paywall-header {
    padding: 32px 32px 24px;
    text-align: center;
}

.lb-paywall-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.lb-paywall-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f172a;
}

.lb-paywall-message {
    font-size: 16px;
    line-height: 1.6;
    color: #64748b;
}

/* Body del paywall */
.lb-paywall-body {
    padding: 0 32px 24px;
}

/* Progress bar de uso */
.lb-usage-meter {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.lb-usage-meter-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    color: #0f172a;
    font-weight: 600;
}

.lb-usage-meter-bar {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.lb-usage-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 70%, #ef4444 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.lb-usage-meter-fill.full {
    background: #ef4444;
}

.lb-usage-meter-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}

/* Benefits list */
.lb-paywall-benefits {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.lb-paywall-benefits h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #0f172a;
}

.lb-paywall-benefits ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lb-paywall-benefits li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #0f172a;
    font-size: 14px;
}

.lb-paywall-benefits li::before {
    content: '✨';
    flex-shrink: 0;
}

/* Footer con CTAs */
.lb-paywall-footer {
    padding: 0 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lb-paywall-cta-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: block;
}

.lb-paywall-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.lb-paywall-cta-secondary {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #64748b;
    border: none;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

/* Inline paywall (dentro de la página) */
.lb-paywall-inline {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #bfdbfe;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lb-paywall-inline::before {
    content: '🔒';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 120px;
    opacity: 0.1;
}

.lb-paywall-inline h3 {
    margin: 0 0 12px 0;
    color: #1e40af;
    font-size: 20px;
}

.lb-paywall-inline p {
    margin: 0 0 20px 0;
    color: #1e40af;
    font-size: 15px;
    line-height: 1.6;
}

/* Badge de límite alcanzado */
.lb-limit-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    font-size: 13px;
    color: #92400e;
    font-weight: 600;
}

.lb-limit-badge.critical {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

/* Blur content cuando hay paywall */
.lb-content-blurred {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

