/* ================================================
   MODAL TRATAMIENTO DE DATOS  (prefijo: mt-)
   Clases propias para evitar conflicto con Materialize
   ================================================ */

.mt-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.mt-overlay.active {
    display: flex;
}

/* --- Caja principal --- */
.mt-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* --- Cabecera fija --- */
.mt-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px 16px;
    border-bottom: 2px solid #db0e15;
    background: #ffffff;
    flex-shrink: 0;
    box-sizing: border-box;
}

.mt-title {
    color: #db0e15;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    flex: 1;
}

.mt-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #6f7274;
    flex-shrink: 0;
    padding: 0;
    transition: color 0.2s;
}

.mt-close:hover {
    color: #db0e15;
}

/* --- Cuerpo scrollable --- */
.mt-body {
    padding: 24px 32px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    text-align: justify;
}

.mt-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 20px 0 8px;
    color: #1a1a1a;
}

.mt-body p {
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.mt-body ol,
.mt-body ul {
    padding-left: 24px;
    margin-bottom: 12px;
}

.mt-body li {
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 6px;
    list-style: revert;
    color: #1a1a1a;
}

.mt-body a {
    color: #db0e15;
    text-decoration: underline;
}

.mt-body a:hover {
    opacity: 0.8;
}

/* --- Pie con botón Cerrar --- */
.mt-footer {
    padding: 16px 32px 24px;
    text-align: center;
    flex-shrink: 0;
}

.mt-btn-cerrar {
    display: inline-block;
    padding: 10px 36px;
    background: #db0e15;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.mt-btn-cerrar:hover {
    opacity: 0.85;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .mt-overlay {
        padding: 12px;
    }

    .mt-content {
        max-height: 92vh;
    }

    .mt-header {
        padding: 16px 16px 14px;
    }

    .mt-title {
        font-size: 0.95rem;
    }

    .mt-body {
        padding: 20px 16px;
    }

    .mt-footer {
        padding: 12px 16px 20px;
    }
}
