@charset "utf-8";
/* CSS Document */

/*HOME DEL BLOG*******************************************/
.blog-container {
    max-width: 800px;
    margin: auto;
}

.category-filters {
    text-align: center;
    margin-bottom: 20px;
}

.filter-button {
    padding: 6px 10px;
    margin: 2px 4px;
    cursor: pointer;
    border: none;
    background-color: #fff;
    border-radius: 5px;
}

.filter-button.active {
    background-color: #30fdfc;
    color: white;
}

.category-section {
    display: none;
    margin-bottom: 40px;
}

.category-section.active {
    display: block;
}

.recent-articles,
.other-articles {
    margin: 4px 0;
}

.recent-articles article,
.other-articles article {
    margin: 4px 0;
}

.recent-articles article img {
    width: 100%;
    height: auto;
}

.view-all {
	display: block;
	width: 100%;
	padding: 10px;
	border: solid 1px #CCC;
	background-color: #F1F1F1;
	color: #007bff;
	cursor: pointer;
	border-radius: 5px;
}

/*PAGINAS DE CATEGORÍA******************************************/
.categories-nav {
	position: sticky;
	top: 5px;
}
.categories-nav .active {
    color: #181818;
	background-color: #30fdfc;
	border: solid 1px #30fdfc;
}
/* Contenedor fijo con proporción uniforme */
.article-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9; /* puedes cambiarlo a 4/3 o 3/2 según prefieras */
  overflow: hidden;
  background: #f3f3f3;
}

/* Imagen que llena el contenedor sin deformarse */
.article-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}


/*NAVEGACIÓN BLOGS**********************************************/
.blogs-nav-container small {
	display: block;
}
.blogs-nav-container .scroll-box {
	max-height: 300px;
	overflow: auto;
}

@media (min-width: 992px) {
	.blogs-nav-container {
		position: sticky;
		top: 100px;
	}
}

