/* ==========================================================================
   ESTILOS PREMIUM: CARRUSEL DE NOVEDADES BRICER
   ========================================================================== */

.noticias-slider-area {
    position: relative;
    overflow: hidden;
}

/* Header & Botones de Navegación */
.noticias-nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.noticias-nav-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #041488;
    background: #ffffff;
    color: #041488;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(4, 20, 136, 0.1);
}

.noticias-nav-btn:hover {
    background: #041488;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(4, 20, 136, 0.25);
}

.noticias-nav-btn:disabled,
.noticias-nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: #d1d5db;
    color: #9ca3af;
    transform: none;
    box-shadow: none;
}

/* Píldoras de Filtro (Tabs) */
.noticias-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.filter-pill-btn {
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.filter-pill-btn:hover {
    border-color: #041488;
    color: #041488;
    background: #f8faff;
    transform: translateY(-1px);
}

.filter-pill-btn.active {
    background: #041488;
    color: #ffffff;
    border-color: #041488;
    box-shadow: 0 4px 14px rgba(4, 20, 136, 0.25);
}

/* Contenedor del Carrusel y Alturas Uniformes */
.noticias-swiper {
    padding: 10px 4px 25px 4px;
}

.noticias-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.noticias-swiper .swiper-slide {
    height: auto !important;
    display: flex !important;
    flex-direction: column;
}

/* ==========================================================================
   ANTI-FOUC: Garantizar cuadrícula simétrica antes de que Swiper despierte
   ========================================================================== */
.noticias-swiper:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    gap: 28px;
    overflow-x: hidden;
    flex-wrap: nowrap;
}

.noticias-swiper:not(.swiper-initialized) .swiper-slide {
    flex: 0 0 calc(33.333% - 19px) !important;
    max-width: calc(33.333% - 19px) !important;
    width: calc(33.333% - 19px) !important;
}

@media (max-width: 1199px) {
    .noticias-swiper:not(.swiper-initialized) .swiper-slide {
        flex: 0 0 calc(50% - 14px) !important;
        max-width: calc(50% - 14px) !important;
        width: calc(50% - 14px) !important;
    }
}

@media (max-width: 767px) {
    .noticias-swiper:not(.swiper-initialized) .swiper-slide {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Anti-FOUC para carrusel de Blog Familia Bricer */
.project-active-1:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    gap: 30px;
    overflow-x: hidden;
    flex-wrap: nowrap;
}

.project-active-1:not(.swiper-initialized) .swiper-slide {
    flex: 0 0 calc(25% - 22.5px) !important;
    max-width: calc(25% - 22.5px) !important;
    width: calc(25% - 22.5px) !important;
}

@media (max-width: 1199px) {
    .project-active-1:not(.swiper-initialized) .swiper-slide {
        flex: 0 0 calc(33.333% - 20px) !important;
        max-width: calc(33.333% - 20px) !important;
        width: calc(33.333% - 20px) !important;
    }
}

@media (max-width: 991px) {
    .project-active-1:not(.swiper-initialized) .swiper-slide {
        flex: 0 0 calc(50% - 15px) !important;
        max-width: calc(50% - 15px) !important;
        width: calc(50% - 15px) !important;
    }
}

@media (max-width: 575px) {
    .project-active-1:not(.swiper-initialized) .swiper-slide {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Tarjeta del Carrusel (Altura Uniforme Garantizada) */
.noticia-slide-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 480px;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.noticia-slide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(4, 20, 136, 0.14);
    border-color: rgba(4, 20, 136, 0.2);
}

/* Imagen de la Tarjeta */
.noticia-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.noticia-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.noticia-slide-card:hover .noticia-img-wrap img {
    transform: scale(1.08);
}

/* Portada institucional elegante cuando la publicación no tiene foto */
.noticia-img-wrap.noticia-img-placeholder {
    background: linear-gradient(135deg, #041488 0%, #0a206a 50%, #0b1526 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.noticia-placeholder-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 30px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12) 0%, transparent 65%);
    transition: transform 0.4s ease;
}

.noticia-slide-card:hover .noticia-placeholder-link {
    transform: scale(1.06);
}

.noticia-logo-placeholder {
    max-width: 170px !important;
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
    opacity: 0.95;
}

/* Badge de Categoría Flotante */
.noticia-category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

.badge-cat-noticia {
    background: linear-gradient(135deg, #041488 0%, #1c36d9 100%);
    color: #ffffff;
}

.badge-cat-blog {
    background: linear-gradient(135deg, #6b21a8 0%, #9333ea 100%);
    color: #ffffff;
}

.badge-cat-comunicado {
    background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
    color: #ffffff;
}

/* Contenido de la Tarjeta (Estructura Flex Uniforme) */
.noticia-content {
    padding: 22px 22px 20px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.noticia-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    height: 22px;
    flex-shrink: 0;
}

.noticia-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.noticia-meta i {
    color: #041488;
}

/* Título con Espacio Fijo para 2 Líneas */
.noticia-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
    line-height: 1.35;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s ease;
    flex-shrink: 0;
}

.noticia-title a {
    color: inherit;
    text-decoration: none;
}

.noticia-slide-card:hover .noticia-title {
    color: #041488;
}

/* Resumen con Espacio Fijo para 3 Líneas */
.noticia-summary {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.55;
    margin-bottom: 16px;
    height: 65px;
    min-height: 65px;
    max-height: 65px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

/* Pie de Tarjeta Alineado al Fondo */
.noticia-footer {
    border-top: 1px solid #f3f4f6;
    padding-top: 14px;
    margin-top: auto;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.noticia-btn-more {
    font-size: 14px;
    font-weight: 700;
    color: #041488;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.25s ease;
}

.noticia-btn-more:hover {
    color: #dc2626;
    gap: 12px;
}

.noticia-hashtag {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
}

/* Paginación de Puntos */
.noticias-pagination {
    position: static;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.noticias-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #d1d5db;
    opacity: 1;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.noticias-pagination .swiper-pagination-bullet-active {
    width: 28px;
    background: #041488;
    border-radius: 5px;
}

/* ==========================================================================
   ESTILOS PREMIUM: CARRUSEL DE ARTÍCULOS PROHIBIDOS
   ========================================================================== */

.articulos-prohibidos-section {
    position: relative;
    overflow: hidden;
    background-color: #fbfbfb;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.prohibidos-nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prohibidos-nav-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #dc3545;
    background: #ffffff;
    color: #dc3545;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.12);
}

.prohibidos-nav-btn:hover {
    background: #dc3545;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(220, 53, 69, 0.25);
}

.prohibidos-nav-btn:disabled,
.prohibidos-nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: #d1d5db;
    color: #9ca3af;
    transform: none;
    box-shadow: none;
}

.prohibido-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    padding: 22px 14px 18px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 270px;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.prohibido-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc3545, #fd7e14);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prohibido-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(220, 53, 69, 0.14);
    border-color: rgba(220, 53, 69, 0.25);
}

.prohibido-card:hover::before {
    opacity: 1;
}

.prohibido-img-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prohibido-img-wrap img {
    max-width: 100%;
    max-height: 225px;
    object-fit: contain;
    transition: transform 0.35s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.prohibido-card:hover .prohibido-img-wrap img {
    transform: scale(1.05);
}

/* Paginación de Prohibidos */
.prohibidos-pagination {
    position: static;
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.prohibidos-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #d1d5db;
    opacity: 1;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.prohibidos-pagination .swiper-pagination-bullet-active {
    width: 28px;
    background: #dc3545;
    border-radius: 5px;
}

/* ==========================================================================
   Estandarización de Medida Uniforme para Carrusel Blog (Familia Bricer)
   ========================================================================== */
.project-slider-two-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
}

.project-slider-two-box figure.image {
    width: 100% !important;
    height: 480px !important;
    min-height: 480px !important;
    max-height: 480px !important;
    margin: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    display: block !important;
    background-color: #0b1526;
}

.project-slider-two-box figure.image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 20% !important;
    display: block !important;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.project-slider-two-box:hover figure.image img {
    transform: scale(1.06) !important;
}

/* Placeholder Institucional (Logo B) para Blog cuando no hay foto o da 404 */
.project-slider-two-box figure.image.blog-img-placeholder {
    background: linear-gradient(135deg, #041488 0%, #0a206a 50%, #0b1526 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.project-slider-two-box figure.image.blog-img-placeholder img {
    max-width: 170px !important;
    max-height: 140px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: auto !important;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.project-slider-two-box:hover figure.image.blog-img-placeholder img {
    transform: scale(1.08) !important;
}

/* Adaptación responsiva para pantallas medianas y móviles */
@media (max-width: 991px) {
    .project-slider-two-box figure.image,
    .project-slider-two-box figure.image.blog-img-placeholder {
        height: 420px !important;
        min-height: 420px !important;
        max-height: 420px !important;
    }
}

@media (max-width: 575px) {
    .project-slider-two-box figure.image,
    .project-slider-two-box figure.image.blog-img-placeholder {
        height: 360px !important;
        min-height: 360px !important;
        max-height: 360px !important;
    }
}


