#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 999;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 90%; /* Cambia el ancho por defecto */
    max-width: 400px; /* Máximo ancho para pantallas grandes */
    z-index: 1000;
    box-sizing: border-box; /* Asegura que el padding y borde estén dentro del ancho total */
}

.modal-header {
    background: #000;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
}

.close {
    background: none;
    border: none;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
}

.close:hover {
    color: #ccc;
}

.modal-content {
    padding: 20px;
}

.modal-footer {
    text-align: right;
    padding: 10px;
}

.modal-btn-close {
    background: #007BFF;
    color: #fff;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
}

.modal-btn-close:hover {
    background: #0056b3;
}

/* Media Queries para Responsividad */

/* Tamaños de pantalla pequeños (móviles) */
@media (max-width: 480px) {
    .modal {
        width: 95%; /* Aumenta el ancho para móviles */
        padding: 10px;
    }

    .modal-content {
        padding: 15px;
    }

    .modal-footer {
        padding: 8px;
    }
}

/* Tamaños de pantalla medianos (tabletas) */
@media (min-width: 481px) and (max-width: 768px) {
    .modal {
        width: 80%; /* Ajusta el ancho para tabletas */
    }

    .modal-content {
        padding: 20px;
    }

    .modal-footer {
        padding: 10px;
    }
}
