/* DVD Popups Styles */

.dvd-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.dvd-popup-overlay.active {
    display: flex;
}

.dvd-popup-container {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease-out;
}

.dvd-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.dvd-popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.dvd-popup-image {
    width: 100%;
    height: auto;
    border-radius: 12px 12px 0 0;
    display: block;
}

.dvd-popup-content {
    padding: 30px;
}

.dvd-popup-content.with-image {
    padding-top: 20px;
}

.dvd-popup-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.dvd-popup-text {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.dvd-popup-text p {
    margin-bottom: 10px;
}

.dvd-popup-button {
    display: inline-block;
    background: #0066cc;
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.dvd-popup-button:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    color: #fff;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .dvd-popup-container {
        max-width: 95%;
        width: 95%;
    }

    .dvd-popup-content {
        padding: 20px;
    }

    .dvd-popup-title {
        font-size: 22px;
    }

    .dvd-popup-text {
        font-size: 14px;
    }

    .dvd-popup-button {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* Estilos para scroll interno si el contenido es muy largo */
.dvd-popup-container::-webkit-scrollbar {
    width: 8px;
}

.dvd-popup-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 12px 12px 0;
}

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

.dvd-popup-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Efecto de cierre */
.dvd-popup-overlay.closing {
    animation: fadeOut 0.3s ease-in-out;
}

.dvd-popup-overlay.closing .dvd-popup-container {
    animation: slideOut 0.3s ease-in;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

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