/* =========================================================
   CENTRO DE NOTIFICACIONES
   ========================================================= */

.resumen-notificaciones {
    grid-template-columns: repeat(2, minmax(220px, 320px));
    justify-content: start;
}

.notificaciones-herramientas {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.notificaciones-filtros {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    background: #f0f2f4;
    border-radius: 12px;
}

.notificaciones-filtros a {
    padding: 10px 16px;
    color: #637178;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.notificaciones-filtros a:hover {
    color: #170571;
    background: #ffffff;
}

.notificaciones-filtros a.activo {
    color: #ffffff;
    background: #170571;
}

.notificaciones-buscador {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(100%, 430px);
}

.notificaciones-buscador .campo {
    min-width: 0;
    margin: 0;
}

.notificaciones-lista {
    display: flex;
    flex-direction: column;
    border: 1px solid #dfe4e7;
    border-radius: 16px;
    overflow: hidden;
}

.notificacion-item {
    position: relative;
    display: grid;
    grid-template-columns: 6px minmax(0, 1fr);
    background: #ffffff;
    border-bottom: 1px solid #e3e7e9;
}

.notificacion-item:last-child {
    border-bottom: 0;
}

.notificacion-item:hover {
    background: #fafbfc;
}

.notificacion-no-leida {
    background: #f7f6fc;
}

.notificacion-no-leida:hover {
    background: #f1effa;
}

.notificacion-indicador {
    width: 6px;
    height: 100%;
    background: #7a8790;
}

.notificacion-informacion .notificacion-indicador {
    background: #5f7cf2;
}

.notificacion-exito .notificacion-indicador {
    background: #2dcc5d;
}

.notificacion-advertencia .notificacion-indicador {
    background: #e6a400;
}

.notificacion-error .notificacion-indicador {
    background: #cf0606;
}

.notificacion-contenido {
    min-width: 0;
    padding: 22px 24px;
}

.notificacion-cabecera {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.notificacion-tipo {
    display: block;
    margin-bottom: 6px;
    color: #6d7a80;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.notificacion-cabecera h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.notificacion-cabecera h2 a {
    color: #203038;
    text-decoration: none;
}

.notificacion-cabecera h2 a:hover {
    color: #170571;
}

.notificacion-contenido > p {
    margin: 12px 0 18px;
    color: #526167;
    line-height: 1.6;
}

.notificacion-pie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #7a878d;
    font-size: 13px;
}

.notificacion-acciones {
    display: flex;
    align-items: center;
    gap: 18px;
}

.notificacion-acciones form {
    margin: 0;
}

.notificacion-acciones a,
.boton-enlace-oscuro {
    color: #176176;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.boton-enlace-oscuro {
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.notificacion-acciones a:hover,
.boton-enlace-oscuro:hover {
    color: #170571;
    text-decoration: underline;
}

.paginacion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
}

.paginacion span {
    color: #68767c;
    font-size: 14px;
    font-weight: 600;
}


/* Tablet y celular */

@media (max-width: 850px) {
    .resumen-notificaciones {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notificaciones-herramientas {
        align-items: stretch;
        flex-direction: column;
    }

    .notificaciones-buscador {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .resumen-notificaciones {
        grid-template-columns: 1fr;
    }

    .notificaciones-filtros {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .notificaciones-filtros a {
        padding: 10px 8px;
        text-align: center;
    }

    .notificaciones-buscador {
        align-items: stretch;
        flex-direction: column;
    }

    .notificacion-contenido {
        padding: 18px 16px;
    }

    .notificacion-cabecera,
    .notificacion-pie {
        align-items: flex-start;
        flex-direction: column;
    }

    .notificacion-acciones {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .paginacion {
        flex-wrap: wrap;
    }
}