/* ==========================================
   POPUP LEAD MAGNET - HERMOSO Y EFECTIVO
   ========================================== */

/* Overlay del popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Contenedor del popup */
.popup-container {
    position: relative;
    max-width: 600px;
    width: 100%;
    background: linear-gradient(135deg, #1A1A1A 0%, #0F0F0F 100%);
    border: 1px solid rgba(199, 176, 140, 0.2);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(199, 176, 140, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Botón de cerrar */
.popup-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    line-height: 1;
    padding: 0;
}

.popup-close:hover {
    background: rgba(199, 176, 140, 0.2);
    color: #C7B08C;
    transform: rotate(90deg);
}

/* Icono del regalo */
.popup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #5A6B5A 0%, #7A8B7A 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 40px;
    box-shadow: 0 10px 30px rgba(90, 107, 90, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Título */
.popup-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.popup-title .gradient-text {
    background: linear-gradient(135deg, #5A6B5A 0%, #C7B08C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Descripción */
.popup-description {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Lista de beneficios */
.popup-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.popup-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
}

.popup-benefits li::before {
    content: '✅';
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Formulario */
.popup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popup-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.popup-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.popup-input:focus {
    outline: none;
    border-color: #C7B08C;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(199, 176, 140, 0.1);
}

/* Botón de submit */
.popup-submit {
    width: 100%;
    padding: 1.125rem 2rem;
    background: linear-gradient(135deg, #5A6B5A 0%, #7A8B7A 100%);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(90, 107, 90, 0.3);
}

.popup-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(90, 107, 90, 0.4);
    background: linear-gradient(135deg, #6A7B6A 0%, #8A9B8A 100%);
}

.popup-submit:active {
    transform: translateY(0);
}

.popup-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Mensaje de privacidad */
.popup-privacy {
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
    line-height: 1.5;
}

/* Mensaje de éxito */
.popup-success {
    text-align: center;
    padding: 2rem;
}

.popup-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #5A6B5A 0%, #7A8B7A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 40px;
    animation: successPop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.popup-success h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.popup-success p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.popup-success-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #5A6B5A 0%, #7A8B7A 100%);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.popup-success-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(90, 107, 90, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .popup-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .popup-title {
        font-size: 1.5rem;
    }
    
    .popup-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .popup-close {
        width: 36px;
        height: 36px;
        top: 1rem;
        right: 1rem;
    }
    
    .popup-benefits li {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .popup-overlay {
        padding: 0.5rem;
    }
    
    .popup-container {
        padding: 1.5rem 1.25rem;
    }
    
    .popup-title {
        font-size: 1.25rem;
    }
    
    .popup-submit {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}
