/* VARIABLES GLOBALES SNTSS*/
:root {
    --noti-color-institutional: #003c82;
    --noti-color-secondary: #00a8ff;
    --noti-color-dark-blue: #2C4568;
    --noti-color-light: #f8fafc;
    --noti-gradient-main: linear-gradient(90deg, #003c82, #00a8ff);
    --noti-glass-bg: rgba(255, 255, 255, 0.75);
    --noti-glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --noti-shadow-glass: 0 30px 50px rgba(44, 69, 104, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    --noti-border-radius-xl: 32px;
    --noti-border-radius-lg: 20px;
    --noti-border-radius-md: 12px;
    --noti-border-radius-sm: 8px;
}

/* TÍTULO PRINCIPAL*/
/* TÍTULO PRINCIPAL*/
.noti-title {
    color: var(--noti-color-institutional);
    font-weight: 700;
    position: relative;
    margin-bottom: 50px; 
    text-shadow: 0 2px 5px rgba(255, 255, 255, 0.8);
    animation: noti-fadeIn 0.8s ease-out;
}

.noti-title::after {
    content: '';
    position: absolute;
    bottom: -15px; 
    left: 50%;
    transform: translateX(-50%);
    width: 180px; 
    height: 4px;
    background: var(--noti-gradient-main);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 168, 255, 0.3);
}

/* TARJETAS GLASS - CON BORDES DE 8px */
.noti-card {
    background: var(--noti-glass-bg) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: var(--noti-glass-border) !important;
    border-radius: 8px !important;
    box-shadow: var(--noti-shadow-glass) !important;
    transition: all 0.4s ease;
    overflow: hidden;
    height: 100%;
    animation: noti-fadeIn 0.8s ease-out;
    animation-fill-mode: both;
}

.noti-card:hover {
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 40px 60px rgba(44, 69, 104, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
    transform: translateY(-8px);
}

/* HEADER DE LA NOTA - SIN RECORTES (como en móvil) */
.noti-header {
    width: 100%;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    /* Sin altura fija - que se adapte al contenido */
    height: auto;
    line-height: normal;
}

.noti-footer {
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 8px 8px;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    /* Sin altura fija - que se adapte al contenido */
    height: auto;
    line-height: normal;
}

.noti-header-img,
.noti-footer-img {
    width: 100%;
    height: auto; /* Altura automática para mostrar toda la imagen */
    display: block;
    object-fit: contain; /* Contiene toda la imagen sin recortar */
    object-position: center;
    background: none !important;
}

/* Contenedor de imagen MÁS GRANDE */
.noti-img-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #f0f5ff, #e6ecf5);
    border-radius: 0 !important;
    cursor: default;
    /* Altura automática para que se vea completa */
    height: auto;
    aspect-ratio: 16/9; /* Proporción estándar para imágenes */
}

.noti-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(1.02) contrast(1.02);
}

.noti-img-container:hover .noti-img {
    transform: translate(-50%, -50%) scale(1.08);
}

/* Cuerpo de la tarjeta */
.noti-card .noti-card-body {
    padding: 1rem 1rem 1.2rem;
    position: relative;
    background: transparent;
    text-align: center;
}

/* Título */
.noti-card .noti-card-title {
    color: var(--noti-color-dark-blue);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: box;
    line-clamp: 2;
    box-orient: vertical;
    overflow: hidden;
    min-height: 2.6rem;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

/* Fecha */
.noti-card .noti-text-muted {
    color: var(--noti-color-dark-blue) !important;
    opacity: 0.7;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 0;
}

/* BUSCADOR GLASS */
.noti-search-container {
    max-width: 550px;
    margin: 0 auto 2.5rem auto;
    animation: noti-fadeIn 0.8s ease-out 0.2s both;
}

.noti-search-container .input-group {
    border-radius: 50px !important;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(44, 69, 104, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.noti-search-container .input-group:focus-within {
    box-shadow: 0 12px 30px rgba(44, 69, 104, 0.15),
        0 0 0 2px rgba(0, 168, 255, 0.4) inset;
    background: rgba(255, 255, 255, 0.8);
}

.noti-search-container .input-group-text {
    background: rgba(44, 69, 104, 0.1);
    border: none;
    color: var(--noti-color-dark-blue);
    padding: 0.8rem 1.2rem;
    backdrop-filter: blur(4px);
}

.noti-search-container .form-control {
    background: transparent !important;
    border: none !important;
    padding: 0.8rem 1.2rem;
    color: var(--noti-color-dark-blue);
}

.noti-search-container .form-control::placeholder {
    color: rgba(44, 69, 104, 0.3);
}

.noti-search-container button[type="submit"] {
    background: radial-gradient(circle at top left,
            rgba(0, 60, 130, 0.9),
            rgba(0, 110, 160, 0.75)) !important;
    border: none;
    color: white;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.noti-search-container button[type="submit"]:hover {
    background: radial-gradient(circle at top left,
            rgba(0, 110, 160, 0.9),
            rgba(0, 60, 130, 0.9)) !important;
    transform: translateY(-2px);
}

.noti-btn-clear {
    background: rgba(44, 69, 104, 0.3) !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

.noti-btn-clear:hover {
    background: rgba(44, 69, 104, 0.5) !important;
}

/* PAGINADOR GLASS */
.noti-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    animation: noti-fadeIn 0.8s ease-out 0.4s both;
}

.noti-pagination a,
.noti-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    color: var(--noti-color-dark-blue);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(44, 69, 104, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    transition: all 0.3s ease;
    border: none;
}

.noti-pagination a:hover {
    background: var(--noti-gradient-main);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 60, 130, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.noti-pagination .noti-active {
    background: var(--noti-gradient-main);
    color: white;
    box-shadow: 0 10px 25px rgba(0, 60, 130, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.noti-pagination .noti-dots {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    color: var(--noti-color-dark-blue);
}

/* RESULTADOS Y SIN RESULTADOS */
.noti-resultados {
    text-align: center;
    color: var(--noti-color-dark-blue);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.noti-resultados strong {
    color: var(--noti-color-institutional);
    font-weight: 700;
}

.noti-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border-radius: var(--noti-border-radius-xl);
    color: var(--noti-color-dark-blue);
    border: var(--noti-glass-border);
    box-shadow: var(--noti-shadow-glass);
}

.noti-no-results i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: var(--noti-gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    opacity: 0.8;
}

/* ANIMACIONES*/
@keyframes noti-fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* RESPONSIVE - MÍNIMO, solo para ajustes de espaciado */
@media (max-width: 768px) {
    .noti-title {
        font-size: 2rem;
        padding-bottom: 15px;
    }

    .noti-title::after {
        width: 80px;
    }

    .noti-search-container {
        max-width: 100%;
        margin: 0 1rem 2rem 1rem;
    }

    .noti-pagination a,
    .noti-pagination span {
        min-width: 40px;
        height: 40px;
    }
}

@media (max-width: 575.98px) {
    .noti-card .noti-card-body {
        padding: 0.8rem 0.8rem 1rem;
    }

    .noti-card .noti-card-title {
        font-size: 0.95rem;
        min-height: 2.4rem;
    }
}

/* Ajuste para el contenedor principal */
.container {
    position: relative;
    z-index: 2;
}