/* ==========================================
   CSS ESPECÍFICO PARA NOTICIAS.HTML
========================================== */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('../blog/image/fondo.jpg');
    /* Imagen proporcionada */
    background-color: #e9e7e7;
    /* Fallback rojo oscuro */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

body:not(.page-ready)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
}

body:not(.page-ready)::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 10000;
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    border: 4px solid rgba(227, 28, 61, .2);
    border-top-color: #e31c3d;
    border-radius: 50%;
    animation: page-loader-spin .8s linear infinite;
}

@keyframes page-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.page-wrapper {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 15px;
}

.content-wrapper {
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.blog-search-section {
    background: #fff;
}

.blog-search-box {
    max-width: 900px;
}

.linkedin-publication-section {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.linkedin-publication-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.linkedin-publication-title {
    margin: 0 0 1.25rem;
    color: #b30000;
    font-weight: 700;
    text-align: center;
}

.linkedin-publication-frame {
    display: block;
    width: 100%;
    max-width: 680px;
    height: 800px;
    margin: 0 auto;
    border: 0;
}

.linkedin-publication-link {
    display: block;
    margin-top: 1rem;
    color: #0a66c2;
    font-weight: 700;
    text-align: center;
}

.blog-search-box .input-group-text,
.blog-search-box .form-control {
    border-color: #d9d9d9;
}

.blog-search-box .form-control:focus {
    border-color: #b30000;
    box-shadow: 0 0 0 .2rem rgba(179, 0, 0, .12);
}

.blog-search-results {
    max-height: 520px;
    overflow-y: auto;
}

.blog-search-result {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.blog-search-result:hover,
.blog-search-result:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .1);
}

.blog-search-result img {
    width: 92px;
    height: 78px;
    object-fit: cover;
    border-radius: 7px;
}

/* Header */
.custom-header {
    background-color: #2b3a4a;
    /* Color oscuro */
    padding: 15px 30px;
    border-bottom: 4px solid #b30000;
}

.hamburger-icon span {
    display: block;
    width: 35px;
    height: 4px;
    background-color: #e31c3d;
    margin: 6px 0;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

@media (max-width: 767.98px) {
    .video-decorativo {
        max-width: 75% !important;
        max-height: 160px !important;
    }

    .header-actions {
        gap: 8px !important;
    }

    .header-actions .lang-switch {
        gap: 4px !important;
    }

    .header-actions .custom-switch-label {
        width: 42px !important;
        height: 23px !important;
    }

    .header-actions .custom-slider .thumb {
        width: 17px !important;
        height: 17px !important;
    }
}

/* Filtros Llama */
.btn-cat {
    background-color: #6c757d;
    color: white;
    border-radius: 5px;
    font-weight: 600;
    padding: 5px 20px;
}

.btn-cat:hover {
    background-color: #5a6268;
    color: white;
}

.btn-cat.active {
    background-color: #b30000;
    color: white;
}

/* Hero Section */
.hero-img {
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
}

.cat-badge {
    background-color: #fce8e8;
    color: #e31c3d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

/* TOP 10 Marquee Vertical */
.top10-wrapper {
    height: 300px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}

.top10-track {
    animation: scrollVertical 20s linear infinite;
    display: flex;
    flex-direction: column;
}

.top10-wrapper:hover .top10-track {
    animation-play-state: paused;
}

@keyframes scrollVertical {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.top10-item {
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.top10-item h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #1e1e24;
}

/* Cintillo Horizontal */
.ticker-wrapper {
    background-color: #000;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    animation: scrollHorizontal 120s linear infinite;
    padding: 10px 0;
}

@keyframes scrollHorizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    margin-right: 50px;
}

.ticker-item::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    background-color: #ff0000;
    border-radius: 50%;
    margin-right: 10px;
}

/* Grid News Card (Carrusel Horizontal) */
.news-card-inner {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card-inner img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Controles de flecha rojos abajo */
.custom-controls {
    background-color: #fdf2f2 !important;
    /* fondo rosa claro */
}

/* Footer */
.custom-footer {
    background-color: transparent;
    /* El fondo global se muestra a través */
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

/* Multimedia extra */
.media-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.media-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.media-card:hover .media-overlay {
    opacity: 1;
}

.media-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #b30000;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
}

.media-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

/* ==========================================
   MEDIA QUERIES PARA RESPONSIVE
========================================== */
@media (max-width: 991px) {
    .filters-bar {
        flex-direction: column;
        gap: 15px;
    }

    .category-filters {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-img {
        height: 250px;
    }

    .header-logo video {
        height: 70px !important;
    }

    /* Footer Horizontal en móviles (Escalar elementos) */
    .footer-logo img {
        width: 100px !important;
    }

    .footer-slogan h3 {
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
    .custom-header {
        flex-direction: column;
        gap: 15px;
    }
}

/* Header Nav Pill Links Hover Effect */
.nav-pill-link {
    transition: background-color 0.2s ease;
    border-radius: 50rem;
}

.nav-pill-link:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Animaciones de entrada */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Tarjetas con overlay en hover (PDF y Media) */
.hover-overlay-card {
    transition: transform 0.3s ease;
}
.hover-overlay-content {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.hover-overlay-card:hover .hover-overlay-content {
    opacity: 1;
}

/* Efecto hover Información de Valor */
.info-card-hover {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.info-card-hover:hover {
    transform: translateY(-8px) scale(1.03);
    background: linear-gradient(135deg, #bd27b8 0%, #6915a3 100%) !important;
    box-shadow: 0 15px 30px rgba(189, 39, 184, 0.3) !important;
}
.info-card-hover:hover .card-title {
    color: #fff !important;
}
.info-card-hover:hover svg path {
    stroke: #fff !important;
}
.info-card-hover:hover span.bg-danger {
    border: 2px solid #fff !important;
}