@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: #ffc921;
    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: #ff5418;
	cursor: pointer;
	border-radius: 5px;
}

/*PAGINAS DE CATEGORÍA******************************************/
.categories-nav {
	position: sticky;
	top: 5px;
}
.categories-nav .active {
    color: #181818;
	background-color: #ffc921;
	border: solid 1px #ffc921;
}
/* 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 .scroll-box {
	max-height: 300px;
	overflow: auto;
}

@media (min-width: 992px) {
	.blogs-nav-container {
		position: sticky;
		top: 5px;
	}
}


/*TABLA DE CONTENIDOS (TOC)**************************************/
.toc {
	background: #f5f6fa;
	border-left: 4px solid #007c6e;
	padding: 16px 20px;
	margin: 24px 0 32px;
	font-size: 0.95rem;
	z-index: 10;
}

.toc strong {
	display: block;
	margin-bottom: 8px;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #333;
}

.toc ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.toc li {
	margin: 6px 0;
}

.toc a {
	color: #333;
	text-decoration: none;
}

.toc a:hover {
	text-decoration: underline;
}

/*jerarquia h3*/
.toc li ul {
	margin-left: 16px;
	margin-top: 6px;
}

.toc li ul li {
	font-size: 0.9em;
}

/*mobile*/
@media (max-width: 768px) {
	.toc {
		font-size: 0.9rem;
		padding: 14px 16px;
	}
}

.toc a:focus {
	outline: 2px solid #007c6e;
	outline-offset: 2px;
}

/*Resaltar sección activa en la tabla de contenidos*/
.toc a.active {
	color: #007c6e;
	font-weight: 600;
	position: relative;
}

.toc a.active::before {
	content: "›";
	position: absolute;
	left: -12px;
}

/*Toc sticky excepto en mobile*/
@media (min-width: 992px) {

	.toc {
		position: sticky;
		top: 5px;
		max-height: calc(100vh - 140px);
		overflow-y: auto;
	}

}