/* CONTENEDOR PRINCIPAL */
.h-news-card{
    background:#ffffff;
    border-radius:18px;
    overflow:hidden;
    margin-bottom:30px;
    padding:18px;
    border:1px solid #e9ecef;
    box-shadow:0 4px 15px rgba(0,0,0,0.05);
    transition:all .3s ease;
}

.h-news-card:hover{
    transform:translateY(-4px);
    box-shadow:0 8px 25px rgba(0,0,0,0.08);
}

/* IMAGEN */
.h-news-image-box{
    width:100%;
    height:240px; /* TAMAÑO FIJO */
    overflow:hidden;
    border-radius:14px;
    background:#f5f5f5;
}

.h-news-image{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .4s ease;
}

.h-news-card:hover .h-news-image{
    transform:scale(1.05);
}

/* CONTENIDO */
.h-news-content{
    padding:5px 10px;
}

/* META */
.h-news-meta_bg{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
    margin-bottom:10px;
    color:#6c757d;
    font-size:13px;
}

.h-news-meta_bg i{
    color:#0d6efd;
    margin-right:5px;
}

/* TITULO */
.h-news-title{
    font-size:24px;
    font-weight:700;
    line-height:1.4;
    margin-bottom:15px;
}

.h-news-title a{
    color:#212529;
    text-decoration:none;
    transition:.3s;
}

.h-news-title a:hover{
    color:#0d6efd;
}

/* TEXTO */
.h-news-text{
    color:#555;
    font-size:15px;
    line-height:1.8;
    text-align:justify;
    margin-bottom:20px;
}

/* FOOTER */
.h-news-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
}

/* VISTAS */
.h-news-views{
    color:#6c757d;
    font-size:14px;
}

/* BOTON */
.h-news-btn{
    display:inline-block;
    background:#0d6efd;
    color:#fff;
    padding:10px 22px;
    border-radius:50px;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    transition:.3s;
}

.h-news-btn:hover{
    background:#084298;
    color:#fff;
    text-decoration:none;
}

.h-news-btn i{
    margin-left:6px;
}

/* RESPONSIVE */
@media(max-width:768px){

    .h-news-image-box{
        height:220px;
        margin-bottom:15px;
    }

    .h-news-title{
        font-size:20px;
    }

    .h-news-footer{
        flex-direction:column;
        align-items:flex-start;
    }

    .h-news-btn{
        width:100%;
        text-align:center;
    }

}
/* RIBBON */
.h-news-ribbon{
    position:absolute;
    top:15px;
    left:-5px;
    z-index:2;
    padding:8px 18px;
    font-size:12px;
    font-weight:700;
    color:#fff;
    text-transform:uppercase;
    border-radius:0 30px 30px 0;
    letter-spacing:.5px;
    box-shadow:0 4px 10px rgba(0,0,0,.15);
}

/* COLORES POR TIPO */
.ribbon-nota{
    background:#0d6efd;
}

.ribbon-comunicado{
    background:#198754;
}

.ribbon-noticia{
    background:#dc3545;
}

/* CONTENEDOR RELATIVO */
.h-news-image-wrapper{
    position:relative;
}

/* CONTENEDOR SINGLES */

.h-news-single{
    background:#fff;
    border-radius:24px;
    padding:20px;
    box-shadow:0 10px 35px rgba(0,0,0,.05);
}

/* IMAGEN */

.h-news-main-image{
    width:100%;
    height:100%;
    border-radius:16px;
    overflow:hidden;
}

.h-news-main-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.h-news-top{
    display:flex;
    align-items:stretch;
}

/* HEADER */

.h-news-header{
    padding-left:15px;
}

/* BADGE */

.h-news-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;

    background:#eef4ff;
    color:#0d6efd;

    padding:8px 14px;

    border-radius:50px;

    font-size:13px;
    font-weight:700;

    text-transform:uppercase;

    margin-bottom:5px;
}

/* TITULO */

.h-news-title{
    font-size:22px;
    line-height:1.2;
    font-weight:650;
    color:#0b1f44;
	text-align:justify;
    margin-bottom:10px;
}

/* META MODERNA */

.h-news-meta{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:14px;

    margin-top:10px;
    margin-bottom:20px;

    color:#6c757d;

    font-size:14px;
}

/* ITEM */

.h-news-meta-item{
    display:flex;
    align-items:center;
    gap:8px;
}

/* ICONOS */

.h-news-meta-item i{
    color:#0d6efd;
    font-size:13px;
}

/* DIVISOR */

.h-news-meta-divider{
    width:5px;
    height:5px;

    border-radius:50%;

    background:#cbd5e1;
}



/* LINEA BONITA */

.h-news-separator{
    width:100%;
    height:2px;

    background:linear-gradient(
        to right,
        transparent,
        #dbe4ff,
        transparent
    );

    margin-bottom:20px;
}

/* CONTENIDO */

.h-news-content{

    font-size:14px;
    line-height:1.5;
    color:#444;
}

.h-news-content p{
    margin-bottom:24px;
    text-align:justify;
}

.h-news-content strong{
    color:#0b1f44;
}

/* GALERIA */

.h-news-gallery-title{
    font-size:24px;
    font-weight:700;

    margin-top:50px;
    margin-bottom:25px;

    color:#0b1f44;
}

.owl-carousel .item{
    padding:5px;
}

.owl-carousel .item img{
    height:200px;
    width:100%;
    object-fit:cover;

    border-radius:18px;

    transition:.3s;
}

.owl-carousel .item img:hover{
    transform:scale(1.03);
}

/* REDES */

.h-news-social{
    margin-top:40px;
    padding-top:25px;
    border-top:1px solid #edf2f7;
}

/* RESPONSIVE */

@media(max-width:768px){

    .h-news-single{
        padding:20px;
    }

    .h-news-main-image img{
        height:260px;
    }

    .h-news-header{
        padding-left:0;
        margin-top:25px;
    }

    .h-news-title{
        font-size:28px;
    }

    .h-news-content{
        font-size:16px;
        line-height:1.8;
    }

}

/* =========================
   SIDEBAR MODERNO
========================= */

.widget-modern{
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    margin-bottom:15px;
    border:1px solid #eef2f7;
}

.widget-header{
    padding:18px 20px;
    background:linear-gradient(135deg,#005baa,#0077e6);
}

.widget-header .widget-title{
    color:#fff;
    margin:0;
    font-size:14px;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:10px;
}

.widget-header .widget-title i{
    font-size:20px;
}

/* =========================
   POSTS
========================= */

.modern-posts{
    padding:15px;
}

.post-card{
    display:flex;
    gap:12px;
    padding:8px;
    border-radius:12px;
    transition:all .3s ease;
    margin-bottom:8px;
    border:1px solid transparent;
}

.post-card:last-child{
    margin-bottom:0;
}

.post-card:hover{
    background:#f8fbff;
    border-color:#dcecff;
    transform:translateY(-3px);
    box-shadow:0 6px 18px rgba(0,91,170,.10);
}

.post-thumb{
    flex-shrink:0;
}

.post-thumb img{
    width:60px;
    height:50px;
    object-fit:cover;
    border-radius:10px;
    transition:.4s;
}

.post-card:hover .post-thumb img{
    transform:scale(1.05);
}

.post-content{
    flex:1;
}

.post-title{
    margin:0;
    line-height:1.15;
    font-size:12px;
    font-weight:800;
	text-transform:uppercase;
}

.post-title a{
    color:#243447;
    text-decoration:none;
    transition:.3s;
}

.post-title a:hover{
    color:#005baa;
}

.post-link{
    display:inline-block;
    margin-top:8px;
    font-size:12px;
    color:#005baa;
    font-weight:600;
}

.post-link i{
    margin-left:4px;
    transition:.3s;
}

.post-card:hover .post-link i{
    transform:translateX(4px);
}

/* =========================
   FACEBOOK WIDGET
========================= */

.widget-modern iframe{
    border-radius:0 0 16px 16px;
}

/* Header Facebook */
.facebook-header{
    background:linear-gradient(135deg,#1877f2,#0d5fd3);
}

.facebook-header .widget-title{
    color:#fff;
}

.facebook-header .widget-title i{
    width:28px;
    height:28px;
    border-radius:50%;
    background:rgba(255,255,255,.15);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
}

/* Widget */
.facebook-widget{
    padding:15px;
    background:#fff;
}

/* Facebook iframe */
.facebook-widget .fb-page{
    width:100% !important;
}

.facebook-widget iframe{
    width:100% !important;
    border:none !important;
    border-radius:12px;
}

/* Efecto elegante */
.facebook-widget{
    position:relative;
}

.facebook-widget::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:4px;
    height:100%;
    background:#1877f2;
}
/* =========================
   RESPONSIVE
========================= */

@media(max-width:991px){

    .post-thumb img{
        width:75px;
        height:60px;
    }

    .post-title{
        font-size:13px;
    }
}

/*** REACCIONES **/
	.news-reactions{
    margin:30px 0;
    padding:15px;
    background:#fff;
    border:1px solid #e8edf3;
    border-radius:15px;
    box-shadow:0 4px 15px rgba(0,0,0,.05);
}

.reactions-title{
    text-align:center;
    font-size:18px;
    font-weight:600;
    color:#1f2d3d;
    margin-bottom:10px;
}

.reaction-buttons{
    display:flex;
    gap:15px;
    justify-content:center;
    flex-wrap:wrap;
}

.reaction-btn{
    border:none;
    background:#f5f8fc;
    border-radius:12px;
    min-width:130px;
    padding:15px;
    cursor:pointer;
    transition:.3s;
    display:flex;
    flex-direction:column;
    align-items:center;
}

.reaction-btn:hover{
    transform:translateY(-3px);
    background:#eef6ff;
    box-shadow:0 5px 15px rgba(0,91,170,.15);
}

.reaction-btn span{
    margin-top:4px;
    font-size:13px;
    color:#5c677d;
}

.reaction-btn strong{
    margin-top:5px;
    font-size:18px;
    color:#005baa;
}

.reaction-btn.active{
	background:#005baa;
	color:#fff;
	border-color:#005baa;
}

.reaction-btn.active span,
.reaction-btn.active strong{
	color:#fff;
}

@media (max-width:768px){
    .reaction-buttons{
        gap:8px;
        justify-content:space-between;
    }

    .reaction-btn{
        flex-direction:row;
        justify-content:center;
        align-items:center;
        min-width:auto;
        padding:10px 12px;
        flex:1;
        border-radius:18px;
    }

    .reaction-btn span{
        display:none; /* Oculta el texto "Me gusta", "Me encanta", etc. */
    }

    .reaction-btn strong{
        margin-left:4px;
        margin-top:0;
        font-size:12px;
    }
}
.no-download {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;

    -webkit-touch-callout: none; /* iOS */
}

	/* Tabla general */
.mi-tabla {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    border: 1px solid #d9e2ec;
}

/* Encabezado principal */
.mi-tabla-header-principal th {
    background-color: #0b5fa5;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Encabezado secundario */
.mi-tabla-header-secundario th {
    background-color: #eef4f9;
    color: #0b5fa5;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 6px;
    border-bottom: 1px solid #d9e2ec;
}

/* Celdas */
.mi-tabla th,
.mi-tabla td {
    padding: 6px 8px;
    font-size: 0.85rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.3;
}

/* Filas */
.mi-tabla tbody tr {
    background-color: #ffffff;
    transition: background-color 0.2s ease;
}

/* Hover discreto */
.mi-tabla tbody tr:hover {
    background-color: #f5f9fc;
}

/* Botón descargar */
.btn-descargar {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #0b5fa5;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-descargar:hover {
    background-color: #084c84;
}

.btn-descargar i {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 576px) {
    .mi-tabla th,
    .mi-tabla td {
        padding: 5px;
        font-size: 0.75rem;
    }

    .label-text {
        display: none;
    }
}

.news-header{
    display:table;
    width:100%;
    margin-bottom:25px;
}

.news-date-card{
    display:table-cell;
    width:90px;
    vertical-align:top;

    background:#005baa;
    color:#fff;

    text-align:center;

    border-radius:12px;

    padding:12px 8px;
}

.news-date-card .day{
    display:block;
    font-size:30px;
    font-weight:700;
    line-height:1;
}

.news-date-card .month{
    display:block;
    margin-top:6px;

    font-size:12px;
    font-weight:600;

    letter-spacing:1px;
}

.news-date-card .year{
    display:block;
    margin-top:4px;

    font-size:13px;
    opacity:.9;
}

.news-info{
    display:table-cell;
    vertical-align:middle;
    padding-left:20px;
}

.news-title{
    font-family:'Poppins',sans-serif;
    font-weight:700;
    color:#0b1f44;
    line-height:1.3;
    font-size:26px;

    display:-webkit-box;
    -webkit-box-orient:vertical;
    overflow:hidden;

    transition:font-size .2s ease;
}

.news-title2{
    margin:0 0 10px;

    font-family:'Poppins',sans-serif;

    font-size:24px;
    font-weight:700;
    line-height:1.2;

    color:#0b1f44;
}
.news-meta{
    display:flex;
    flex-wrap:wrap;
    gap:20px;

    color:#64748b;
    font-size:14px;
}

.news-meta i{
    color:#005baa;
    margin-right:6px;
}
.news-divider{
    height: 1px;
    margin: 15px 0 10px;
    margin: 15px 0 10px;
    background: linear-gradient(
        to right,
        transparent,
        #005baa 15%,
        #d9e2ec 50%,
        #005baa 85%,
        transparent
    );
}
.news-divider-icon{
    height: 5px;
	margin: 15px 0 10px;
    text-align: center;
    margin: 15px 0 10px;
	background: linear-gradient(
        to right,
        transparent,
        #005baa 15%,
        #d9e2ec 50%,
        #005baa 85%,
        transparent
    );
}

.news-divider-icon:before{
    content:'';
    position:absolute;
    top:50%;
    left:0;
    width:100%;
    height:1px;
    background:#dbe3eb;
}

.news-divider-icon i{
    position:relative;
    z-index:2;

    background:#fff;
    color:#005baa;

    padding:0 15px;
    font-size:18px;
}
@media (max-width: 576px) {
	.news-title{
        font-size:18px !important;
		line-height:1.1;
        display:block;
        overflow:visible;
    }
    .news-meta{
		display:flex;
		flex-wrap:wrap;
		gap:10px;

		color:#64748b;
		font-size:10px;
	}
}
/* tags **/
.blog-tags-custom p{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.blog-tags-custom i{
    color: #0074d9;
    font-size: 16px;
}

.blog-tags-custom span{
    font-weight: 600;
    color: #555;
    margin-right: 5px;
}

.blog-tags-custom a{
    display: inline-block;
    padding: 6px 14px;
    background: #f5f9ff;
    color: #0056b3;
    border: 1px solid #d9e8ff;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all .3s ease;
	position:relative;
}

/* Tooltip */
.blog-tags-custom a::after{
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #003b70;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Flecha */
.blog-tags-custom a::before{
    content: "";
    position: absolute;
    bottom: calc(130% - 6px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #003b70;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
}

/* Mostrar */
.blog-tags-custom a:hover::after,
.blog-tags-custom a:hover::before{
    opacity: 1;
    visibility: visible;
}
@media (max-width: 768px) {

    /* Tamaño de los taps más pequeño */
    .blog-tags-custom a {
        padding: 4px 10px;     /* menos padding */
        font-size: 11px;       /* letra un poco más pequeña */
    }

    /* Tooltip debajo */
    .blog-tags-custom a::after {
        top: 130%;             /* aparece debajo */
        bottom: auto;          /* quitar bottom */
    }

    .blog-tags-custom a::before {
        top: calc(130% - 6px); /* flecha también debajo */
        bottom: auto;
        border-top-color: transparent;
        border-bottom-color: #003b70; /* color de la flecha apuntando hacia arriba */
    }
}
/** notificaciones */
.no-results{
    max-width: 520px;
    margin: 5px auto;
    padding: 15px 10px;
    text-align: center;
    background: #fff3f3;
    border: 1px solid #ffd1d1;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    animation: fadeIn .3s ease-in-out;
}

.no-results__icon{
    font-size: 40px;
    margin-bottom: 10px;
}

.no-results h4{
    margin: 0;
    font-size: 18px;
    color: #c0392b;
    font-weight: 700;
}

.no-results p{
    margin-top: 8px;
    color: #7a2e2e;
    font-size: 14px;
    line-height: 1.4;
}

/* Animación suave */
@keyframes fadeIn{
    from{
        opacity: 0;
        transform: translateY(8px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}
/* Contenedor */
.buscador-articulos-widget{
    margin-bottom: 20px;
}

/* Título */
.buscador-articulos-titulo{
    position: relative;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    color: #003b70;
    padding-bottom: 10px;
}

.buscador-articulos-titulo::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    border-radius: 5px;
    background: linear-gradient(90deg,#0066cc,#00aaff);
}

/* Buscador */
.buscador-articulos-contenedor{
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e5eef8;
    border-radius: 25px;
    overflow: hidden;
    transition: all .3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,.05);
}

.buscador-articulos-contenedor:hover{
    border-color: #0066cc;
}

.buscador-articulos-contenedor:focus-within{
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0,102,204,.15);
}

/* Input */
.buscador-articulos-input{
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 15px;
    font-size: 14px;
    background: transparent;
}

.buscador-articulos-input::placeholder{
    color: #9aa5b1;
}

/* Botón */
.buscador-articulos-boton{
    width: 55px;
    height: 55px;
    border: none;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg,#0066cc,#004b99);
    transition: all .3s ease;
}

.buscador-articulos-boton:hover{
    background: linear-gradient(135deg,#004b99,#003b70);
}

.buscador-articulos-boton i{
    font-size: 16px;
}
/* Categorias Título */
.categorias-noticias-titulo{
    position: relative;
    font-size: 22px;
    font-weight: 700;
    color: #003b70;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.categorias-noticias-titulo::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    border-radius: 10px;
    background: linear-gradient(90deg,#0066cc,#00aaff);
}

/* Lista */
.categorias-noticias-lista ul{
    list-style: none;
    margin: 0;
    padding: 0;
}

.categorias-noticias-lista li{
    margin-bottom: 10px;
}

.categorias-noticias-lista a{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e6eef7;
    border-radius: 12px;
    transition: all .3s ease;
}

.categorias-noticias-lista a:hover{
    background: #f5faff;
    border-color: #0066cc;
    transform: translateX(5px);
}

/* Nombre */
.categoria-nombre{
    color: #333;
    font-weight: 500;
}

/* Cantidad */
.categoria-total{
    min-width: 32px;
    text-align: center;
    padding: 2px 7px;
    border-radius: 50px;
    background: #0066cc;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}
/* NOTICIAS Título */
.noticias-recientes-titulo{
    position: relative;
    font-size: 22px;
    font-weight: 700;
    color: #003b70;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.noticias-recientes-titulo::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    border-radius: 10px;
    background: linear-gradient(90deg,#0066cc,#00aaff);
}

/* Lista */
.noticias-recientes-lista{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Item */
.noticia-reciente-item{
    display: flex;
    gap: 18px;
    padding: 12px;
    border: 1px solid #e6eef7;
    border-radius: 12px;
    background: #fff;
    transition: all .3s ease;
}

.noticia-reciente-item:hover{
    border-color: #0066cc;
    background: #f8fbff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

/* Imagen */
.noticia-reciente-imagen{
    flex-shrink: 0;
}

.noticia-reciente-imagen img{
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform .3s ease;
}

.noticia-reciente-item:hover .noticia-reciente-imagen img{
    transform: scale(1.05);
}

/* Contenido */
.noticia-reciente-contenido{
    flex: 1;
}

.noticia-reciente-contenido h5{
    margin: 0;
    line-height: 1.2;
    font-size: 11px;
    font-weight: 600;
}

.noticia-reciente-contenido h5 a{
    color: #333;
    text-decoration: none;
    transition: color .3s ease;
}

.noticia-reciente-contenido h5 a:hover{
    color: #0066cc;
}