/* Estilos del Popup - Frontend */

/* Overlay (fondo oscuro) */
.popup-simple-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-simple-overlay.popup-mostrar {
    opacity: 1;
}

/* Modal del Popup */
.popup-simple-modal {
    position: relative;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
    animation: popupSlideIn 0.5s ease forwards;
}

.popup-simple-overlay.popup-mostrar .popup-simple-modal {
    transform: scale(1);
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Botón de cerrar X */
.popup-simple-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.popup-simple-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
    transform: rotate(90deg);
}

/* Título del Popup */
.popup-simple-titulo {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: inherit;
}

/* Contenido del Popup */
.popup-simple-contenido {
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 16px;
}

.popup-simple-contenido p {
    margin-bottom: 15px;
}

.popup-simple-contenido p:last-child {
    margin-bottom: 0;
}

.popup-simple-contenido a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.popup-simple-contenido a:hover {
    border-bottom-color: #667eea;
}

.popup-simple-contenido ul,
.popup-simple-contenido ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.popup-simple-contenido li {
    margin-bottom: 8px;
}

.popup-simple-contenido img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

/* Botón del Popup */
.popup-simple-boton {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.popup-simple-boton:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

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

/* Scrollbar personalizado para el modal */
.popup-simple-modal::-webkit-scrollbar {
    width: 8px;
}

.popup-simple-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.popup-simple-modal::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.popup-simple-modal::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .popup-simple-modal {
        padding: 30px 20px;
        max-height: 85vh;
    }
    
    .popup-simple-titulo {
        font-size: 24px;
        padding-right: 30px;
    }
    
    .popup-simple-contenido {
        font-size: 15px;
    }
    
    .popup-simple-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
        width: 36px;
        height: 36px;
    }
    
    .popup-simple-boton {
        width: 100%;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .popup-simple-overlay {
        padding: 10px;
    }
    
    .popup-simple-modal {
        padding: 25px 15px;
        border-radius: 8px;
    }
    
    .popup-simple-titulo {
        font-size: 20px;
    }
    
    .popup-simple-contenido {
        font-size: 14px;
    }
}

/* Animación de cierre */
.popup-simple-overlay.popup-cerrando {
    opacity: 0;
}

.popup-simple-overlay.popup-cerrando .popup-simple-modal {
    transform: scale(0.8);
}

/* Prevenir scroll del body cuando el popup está abierto */
body.popup-simple-abierto {
    overflow: hidden;
}
