.ntc {
    --ntc-azul: #1b4a9c;
    --ntc-azul-oscuro: #12346f;
    --ntc-texto: #1f2937;
    --ntc-suave: #6b7280;
    --ntc-borde: #e5e7eb;
}

.ntc-boton {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--ntc-azul);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(18, 52, 111, .35);
}

.ntc-boton:hover,
.ntc-boton:focus {
    background: var(--ntc-azul-oscuro);
    color: #fff;
}

.ntc-contador {
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #fff;
    color: var(--ntc-azul);
    font-size: 12px;
    text-align: center;
}

.ntc-fondo {
    position: fixed;
    inset: 0;
    z-index: 1045;
    background: rgba(15, 23, 42, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
}

.ntc-lista-abierta .ntc-fondo {
    opacity: 1;
    visibility: visible;
}

.ntc-lateral {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    width: 380px;
    max-width: 92vw;
    background: #fff;
    box-shadow: -8px 0 24px rgba(15, 23, 42, .18);
    transform: translateX(100%);
    transition: transform .25s ease;
}

.ntc-lista-abierta .ntc-lateral {
    transform: translateX(0);
}

.ntc-lateral-cabecera,
.ntc-modal-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ntc-borde);
}

.ntc-lateral-titulo,
.ntc-modal-titulo {
    margin: 0;
    color: var(--ntc-azul);
    font-weight: 800;
    font-size: 18px;
}

.ntc-cerrar {
    line-height: 1;
    font-size: 20px;
    padding: 2px 10px;
}

.ntc-lateral-cuerpo {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.ntc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--ntc-borde);
    border-radius: 12px;
    background: #fff;
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.ntc-item:hover,
.ntc-item:focus {
    border-color: var(--ntc-azul);
    box-shadow: 0 4px 12px rgba(27, 74, 156, .12);
}

.ntc-item-imagen {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.ntc-item-texto {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ntc-item-titulo {
    color: var(--ntc-texto);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
}

.ntc-item-fecha {
    margin-top: 2px;
    color: var(--ntc-suave);
    font-size: 12px;
}

.ntc-modal {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
}

.ntc-modal-abierta .ntc-modal {
    opacity: 1;
    visibility: visible;
}

.ntc-modal-caja {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(15, 23, 42, .3);
    overflow: hidden;
}

.ntc-modal-cuerpo {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    color: var(--ntc-texto);
}

.ntc-modal-imagen {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    margin-bottom: 14px;
    border-radius: 10px;
}

.ntc-modal-texto img {
    max-width: 100%;
    height: auto;
}

.ntc-modal-pie {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--ntc-borde);
}

.ntc-oculto {
    display: none !important;
}

@media (max-width: 575px) {
    .ntc-boton {
        left: 12px;
        bottom: 12px;
        padding: 9px 12px;
    }

    .ntc-boton-texto {
        display: none;
    }

    .ntc-modal-caja {
        max-height: 94vh;
    }
}
