/* popup.css - Versión corregida */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background-color: white;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    display: flex;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s ease;
    overflow: hidden;
}

.popup-overlay.active .popup-container {
    transform: scale(1);
    opacity: 1;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #555;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
}

.popup-content {
    padding: 40px;
    flex: 1;
}

.popup-badge {
    display: inline-block;
    background-color: #ff9800;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}

.popup-content h2 {
    color: var(--primary-navy);
    font-size: 28px;
    margin-bottom: 15px;
}

.popup-content p {
    color: var(--gray-700);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.highlight {
    color: #ff9800;
    font-weight: 600;
}

.popup-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.popup-benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.popup-benefits li i {
    color: #00B1EB;
    margin-right: 10px;
    flex-shrink: 0;
}

/* CORREGIDO: Botones en columna y mejor espacio */
.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-btn-primary,
.popup-btn-secondary {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 15px;
}

.popup-btn-primary {
    background-color: #00B1EB;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 177, 235, 0.2);
}

.popup-btn-primary:hover {
    background-color: #0095c8;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 177, 235, 0.3);
}

.popup-btn-secondary {
    background-color: transparent;
    color: #00B1EB;
    border: 2px solid #00B1EB;
}

.popup-btn-secondary:hover {
    background-color: rgba(0, 177, 235, 0.1);
    transform: translateY(-3px);
}

/* CORREGIDO: Contenedor de imagen con height 100% */
.popup-image {
    flex: 0 0 40%;
    background-color: #f0f5ff;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    height: auto; /* Corregido: elimina altura fija */
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Elimina espacio extra debajo de la imagen */
}

/* Animación adicional */
@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 177, 235, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 177, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 177, 235, 0);
    }
}

.popup-btn-primary {
    animation: pulse-border 2s infinite;
}

/* Media Queries */
@media (max-width: 768px) {
    .popup-container {
        flex-direction: column;
        max-width: 90%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .popup-content {
        padding: 25px;
    }
    
    .popup-image {
        min-height: 200px;
    }
    
    .popup-content h2 {
        font-size: 22px;
    }
    
    .popup-benefits li {
        font-size: 14px;
    }
}