@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

.blog-header-container {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.blog-header-image{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.blog-header-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Fondo semitransparente */
    z-index: 1;
}

.blog-header-image img {
    background-position:center 70%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

/**Section Articulos Destacados**/

.featured-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(28, 31, 61, 0.3); /* sombra azul GISEA */
}

.featured-card-image{
    width: 100%;
    height: 200px;
    overflow: hidden; /* Evita que contenido excedente afecte */
}

.featured-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.featured-card-body {
    padding: 15px 20px;
}

.article-date {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 8px;
    font-style: italic;
}

.article-title a {
    font-family: "Oswald", sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1C1F3D;
    text-decoration: none;
}

.article-title a:hover {
    text-decoration: underline;
}

.article-desc {
    font-size: 1rem;
    line-height: 1.5;
    margin: 10px 0 15px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: #e0e0e0;
    border-radius: 15px;
    padding: 5px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.tag:hover {
    background-color: #1C1F3D;
    color: white;
}

/* Botón Ver más */
.btn-more {
    background-color: #1C1F3D;
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease-in-out;
}

.btn-more:hover {
    background-color: white;
    color: #1C1F3D;
    border: 2px solid #1C1F3D;
}

/**SUBNAVAR FILTRO**/
.blog-subnav-wrapper {
    overflow: hidden;
    width: 100%;
}

.blog-subnav-container {
    padding: 12px 0;
    margin-top: 3vh;
}

.blog-subnav {
    display: flex;
    flex-wrap: wrap; /* PERMITE QUE SALTEN DE LÍNEA */
    gap: 1rem; /* Espaciado entre etiquetas */
    justify-content: center; /* Centra los elementos */
    padding: 0.5rem 1rem;
}

.blog-subnav::-webkit-scrollbar {
    display: none;
}

.blog-subnav::-webkit-scrollbar-thumb {
    background: #ccc; /* color del thumb */
    border-radius: 10px;
}

.blog-tag {
    font-family: "Oswald", sans-serif;
    display: inline-block;
    padding: 8px 16px;
    font-size: 1.5rem;
    border-radius: 20px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-tag:hover {
    background-color: #e0e0e0;
}

.blog-tag.active {
    background-color: #1C1F3D; 
    color: #fff;
}

.section-title h1{
    margin-bottom: 0.3rem;
}


/* 2K o 4K (resoluciones grandes como 2560x1440 o más) */
@media (min-width: 2560px) {
    .blog-subnav-container {
        margin-top: 2vh;
    }
}

/* Laptops típicas de 1024px a 1439px */
@media (min-width: 1024px) and (max-width: 1439px) {
    .blog-subnav-container {
        margin-top: 3vh;
    }
}

/* Tablets (768px a 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .blog-subnav-container {
        margin-top: 2vh;
    }
    .blog-tag {
        font-size: 1.2rem;
    }
}

/* Smartphones (<768px) */
@media (max-width: 767px) {
    .blog-subnav-container {
        margin-top: 2vh;
    }
    
}
/* Móviles */
@media (max-width: 576px) {
    .blog-subnav-container {
        margin-top: 2vh;
    }
    .blog-header-container {
        height: 50vh;
    }
    .blog-tag {
        font-size: 1rem;
        padding: 6px 14px;
    }
}

/*** ESTILOS PAGINACION **/

.custom-pagination .page-link {
    font-family: "Oswald", sans-serif;
    color: #1C1F3D;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 8px;
    border: 1px solid #1C1F3D;
    transition: all 0.3s ease-in-out;
}

.custom-pagination .page-link:hover {
    background-color: #1C1F3D;
    color: white;
}

.custom-pagination .active .page-link {
    background-color: #1C1F3D;
    color: white;
    border-color: #1C1F3D;
}

.custom-pagination .disabled .page-link {
    color: #aaa;
    background-color: #f0f0f0;
    border-color: #ccc;
    cursor: not-allowed;
}

/***** EFECTO PARA CAMBIO DE CARDS DE BLOG *****/
.blog-card-item {
    opacity: 1;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

/* Fade out */
.fade-out-left {
    opacity: 0;
    transform: translateX(-30px);
}

.fade-out-right {
    opacity: 0;
    transform: translateX(30px);
}

/* Fade in */
.fade-in-left {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 1;
    transform: translateX(0);
}

/* Estado inicial para entradas */
.hidden-left {
    opacity: 0;
    transform: translateX(30px);
}

.hidden-right {
    opacity: 0;
    transform: translateX(-30px);
}
/* ===========================
   Modo oscuro — Cards Blog
   =========================== */
body.dark-mode .featured-card {
  background-color: #1E1E1E;
  border: 1px solid #333333;
  color: #E6E6E6;
}

body.dark-mode .featured-card:hover {
  box-shadow: 0 6px 12px rgba(196, 156, 60, 0.25); /* dorado GISEA suave */
}

body.dark-mode .featured-card-image {
  background: #151515; /* placeholder oscuro si la imagen no carga */
}

body.dark-mode .featured-card-image img {
  /* sin filtros para no “apagar” imágenes; ajusta si lo necesitas */
  object-fit: cover;
  object-position: center;
}

body.dark-mode .featured-card-body {
  color: #E6E6E6;
}

body.dark-mode .article-title a {
  color: #C49C3C;
}
body.dark-mode .article-title a:hover {
  color: #EAD08A; /* dorado más claro al hover */
}

body.dark-mode .article-desc {
  color: #E6E6E6;
}

body.dark-mode .article-date {
  color: #AAAAAA;
}

/* Tags de artículos destacados */
body.dark-mode .tag {
  background-color: #2A2A2A;
  color: #E6E6E6;
}
body.dark-mode .tag:hover {
  background-color: #333333;
  color: #FFFFFF;
}

/* Subnavbar de categorías */
body.dark-mode .blog-tag {
  background-color: #2A2A2A;
  color: #E6E6E6;
}
body.dark-mode .blog-tag:hover {
  background-color: #333333;
  color: #FFFFFF;
}
body.dark-mode .blog-tag.active {
  background-color: #C49C3C;
  color: #121212;
}

/* Paginación del listado principal */
body.dark-mode .custom-pagination .page-link {
  background-color: #1E1E1E;
  color: #E6E6E6;
  border-color: #333333;
}
body.dark-mode .custom-pagination .page-link:hover {
  background-color: #333333;
  color: #FFFFFF;
}
body.dark-mode .custom-pagination .active .page-link {
  color: #121212;
  border-color: #C49C3C;
}
body.dark-mode .custom-pagination .disabled .page-link {
  color: #777;
  background-color: #161616;
  border-color: #2A2A2A;
}
