/* Fondo oscuro semi-transparente - Fijo */
.modal-centrado-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 999999;
    display: none; /* Oculto inicialmente */
    overflow-y: auto; /* Permitir scroll si el modal es muy alto */
}

/* Contenedor del modal - Centrado perfecto */
.modal-centrado {
    width: 28%;
    min-width: 300px; /* Ancho mínimo para móviles */
    max-width: 1200px;
    height: 800px;
    max-height: 90vh; /* Máximo 90% del viewport height */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin: 5vh auto; /* Centrado vertical con margen */
}

/* Overlay para mejor contraste */
.modal-centrado::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    z-index: 1;
}

/* Contenedor de botones - Mejorado */
.modal-centrado-buttons {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Para responsive */
}

/* Estilos de botones - Mejorados */
.modal-centrado-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

/* Efecto hover más suave */
.modal-centrado-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Botón Aceptar */
.accept-btn {
    background-color: #44aa00;
    color: white;
}

/* Botón Cancelar */
.cancel-btn {
    background-color: #f87374;
    color: white;
}

/* Bloquear scroll cuando el modal está visible */
body.modal-centrado-active {
    overflow: hidden;
}

/* Responsive Design */


@media (max-width: 1200px) {
    .modal-centrado {
        height: 700px;
    }
}

@media (max-width: 768px) {
    .modal-centrado {
        height: 600px;
    }
    
    .modal-centrado-buttons {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .modal-centrado {
        height: 500px;
        max-height: 80vh;
    }
    
    .modal-centrado-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .modal-centrado-btn {
        width: 100%;
        padding: 12px 20px;
    }
}