/* ================== OVERLAY ================== */
#modalXML,
#modalProrrateo {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    display: none;
    z-index: 9999;
    overflow-y: auto;
}


/* ================== CONTENEDOR MODAL ================== */
.modal-contenido {
    background: var(--bg-card);
    width: 95%;
    max-width: 900px;
    margin: 30px auto;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,.7);
    overflow: hidden;
    color: var(--text-main);
}

/* ================== HEADER MODAL ================== */
.modal-header {
    background: #0B0E14;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent-red);
}

/* ================== TITULO MODAL ================== */
.modal-title {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.14em;
    font-size: 16px;
    color: #FFFFFF;
}

/* ================== BOTON CERRAR ================== */
.btn-cerrar {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-main);
    cursor: pointer;
}

.btn-cerrar:hover {
    color: var(--accent-red);
}

/* ================== BODY MODAL ================== */
.modal-body {
    padding: 18px;
    color: var(--text-main);
}


/* ================== MODAL ELIMINAR (AISLADO) ================== */
#modalEliminar {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 99999;

    display: none;

    /* AISLAMIENTO TOTAL */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CONTENEDOR SOLO PARA ELIMINAR */
#modalEliminar .modal-contenido {
    max-width: 520px;
    width: 90%;
    margin: 0;

    /* EVITA HERENCIA RARA */
    display: block;
}

/* ================== MODAL EDITAR RUTA ================== */
#modalEditar {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 9999;

    display: none;      /* SOLO ESTO */
    align-items: center;
    justify-content: center;
}

