.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    transition: background-color 0.3s, color 0.3s;
}
.modal-header, .modal-footer {
    padding: 10px 0;
}
.modal-body {
    padding: 20px 0;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
.modal-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    margin-right: 10px;
}
.modal.dark-mode .modal-content {
    background-color: #333;
    color: #fff;
}
.modal.dark-mode .close {
    color: #fff;
}
.modal.dark-mode .close:hover,
.modal.dark-mode .close:focus {
    color: #ddd;
}
.modal.dark-mode .modal-btn {
    color: #fff;
}

/* Estilos base */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    transition: background-color 0.3s, color 0.3s;
}

.modal-header, .modal-footer {
    padding: 10px 0;
}

.modal-body {
    padding: 20px 0;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    margin-right: 10px;
}

/* Estilos para el modo oscuro */
.modal.dark-mode .modal-content {
    background-color: #333;
    color: #f0f0f0;
    border-color: #555;
}

.modal.dark-mode .modal-header,
.modal.dark-mode .modal-footer {
    border-color: #555;
}

.modal.dark-mode .close {
    color: #f0f0f0;
}

.modal.dark-mode .close:hover,
.modal.dark-mode .close:focus {
    color: #fff;
}

.modal.dark-mode .modal-btn {
    color: #f0f0f0;
}

.modal.dark-mode .modal-btn:hover {
    color: #fff;
}
