/* ========================================
   NOTICIAS UNIOTAVALO - ESTILOS
   ======================================== */

/* Contenedor principal */
.noticias-uniotavalo-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    font-family: Roboto, Arial, sans-serif;
}

/* Encabezado */
.noticias-uniotavalo-wrap .header-titulo {
    width: 100%;
    background-color: #1b223a;
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-align: center;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
}

/* Descripción */
.noticias-uniotavalo-wrap .descripcion {
    padding: 10px 0;
    font-size: 15px;
    line-height: 2;
    text-align: justify;
    color: #555;
}

/* Buscador */
.noticias-uniotavalo-wrap .buscador-uni {
    width: 100%;
    max-width: 600px;
    min-height: 46px;
    padding: 13px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    background: #ffffff;
    color: #555;
    font-size: 14px;
    line-height: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin: 0 auto;
}

/* Filtros */
.noticias-uniotavalo-wrap .filtro-uni {
    padding: 8px 17px;
    border-radius: 20px;
    background: #eeeeee;
    color: #555;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
    display: inline-block;
    margin: 0 4px;
}
.noticias-uniotavalo-wrap .filtro-uni.activo {
    background: #1b223a;
    color: #ffffff;
}

/* Tarjetas */
.noticias-uniotavalo-wrap .tarjeta-uni {
    flex: 0 0 320px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: none;
}
.noticias-uniotavalo-wrap .tarjeta-uni:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.16);
}
.noticias-uniotavalo-wrap .tarjeta-uni .img-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.noticias-uniotavalo-wrap .tarjeta-uni .img-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.noticias-uniotavalo-wrap .tarjeta-uni:hover .img-container img {
    transform: scale(1.05);
}
.noticias-uniotavalo-wrap .tarjeta-uni .categoria-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #85171b;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.noticias-uniotavalo-wrap .tarjeta-uni .contenido {
    padding: 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.noticias-uniotavalo-wrap .tarjeta-uni .fecha {
    color: #888;
    font-size: 12px;
    margin-bottom: 7px;
}
.noticias-uniotavalo-wrap .tarjeta-uni .titulo {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}
.noticias-uniotavalo-wrap .tarjeta-uni .descripcion {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}
.noticias-uniotavalo-wrap .tarjeta-uni .leer-mas {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eee;
    color: #85171b;
    font-size: 13px;
    font-weight: 600;
}

/* Sin resultados */
.noticias-uniotavalo-wrap .sin-resultados {
    display: none;
    padding: 40px 20px;
    text-align: center;
}
.noticias-uniotavalo-wrap .sin-resultados .icono {
    font-size: 35px;
    margin-bottom: 10px;
}
.noticias-uniotavalo-wrap .sin-resultados .titulo {
    font-size: 19px;
    color: #1b223a;
    font-weight: 600;
    margin-bottom: 8px;
}
.noticias-uniotavalo-wrap .sin-resultados .subtitulo {
    font-size: 14px;
    color: #777;
}

/* Modal */
#modalUni {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 20px;
}
#modalUni.visible {
    display: flex !important;
}
#modalUni .modal-box {
    position: relative;
    width: 95%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
#modalUni .modal-cerrar {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    line-height: 37px;
    text-align: center;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}
#modalUni .modal-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}
#modalUni .modal-body {
    padding: 25px 30px 30px 30px;
}
#modalUni .modal-categoria {
    display: inline-block;
    background: #85171b;
    color: #fff;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}
#modalUni .modal-titulo {
    color: #1b223a;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.35;
    margin: 5px 0 8px 0;
}
#modalUni .modal-fecha {
    color: #888;
    font-size: 13px;
    margin-bottom: 20px;
}
#modalUni .modal-contenido {
    color: #555;
    font-size: 15px;
    line-height: 1.9;
    text-align: justify;
}