/* marketing.css - Elementos de conversión mejorada */

/* ===== POPUP DE OFERTA ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-container {
    background: linear-gradient(135deg, #0d9488 0%, #1a365d 100%);
    color: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.5s ease;
}

.popup-overlay.active .popup-container {
    transform: scale(1);
}

.popup-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    position: relative;
}

.popup-badge {
    background: #FFD700;
    color: #1a365d;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.popup-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.popup-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.popup-content {
    padding: 1rem 2rem;
    text-align: center;
}

.popup-countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 1.5rem 0;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px 10px;
    min-width: 60px;
}

.countdown-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.countdown-label {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 5px;
}

.popup-cta {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

/* Botón especial para popup */
.btn-success {
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
    color: #1a365d;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 300px;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 215, 0, 0.4);
    background: linear-gradient(90deg, #FFA500 0%, #FF8C00 100%);
}

.btn-lg {
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
}

.btn-block {
    display: block !important;
    width: 100% !important;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== BADGES DE CONFIANZA ===== */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-badge img {
    height: 25px;
    width: auto;
}

/* ===== FORMULARIO DE 2 PASOS ===== */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

.form-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.form-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.progress-bar {
    position: absolute;
    top: 15px;
    left: 0;
    height: 2px;
    background: #0d9488;
    z-index: 2;
    transition: width 0.4s ease;
}

.progress-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #64748b;
    position: relative;
    z-index: 3;
}

.progress-step.active {
    border-color: #0d9488;
    background: #0d9488;
    color: white;
}

/* ===== ANIMACIONES DE CONTADORES ===== */
.counter-element {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .popup-container {
        width: 95%;
        margin: 10px;
    }
    
    .popup-title {
        font-size: 1.5rem;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .countdown-box {
        min-width: 50px;
        padding: 10px 5px;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .popup-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .popup-content {
        padding: 1rem 1.5rem;
    }
    
    .popup-cta {
        padding: 1rem 1.5rem 1.5rem;
    }
}