/* =============================================================
   CCLatam — layout.css
   Estructura: header, hero, navegación por categorías, grids de
   layout (home y artículo) y breadcrumb. Mobile-first; el bloque
   @media (min-width:1024px) al final reordena todo a escritorio,
   el mismo HTML sin duplicar plantillas.
   ============================================================= */

/* -------------------------------------------------------------
   HEADER (sticky, compartido por todas las páginas)
   ------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
	padding: 0 14px;
	background: #fff;
	border-bottom: 1px solid var(--grey-200);
}

.site-brand {
	display: flex;
	align-items: center;
	min-width: 0;
}

.site-logo {
	display: flex;
	align-items: center;
	height: 38px;
}

.site-logo img,
.site-logo .custom-logo {
	height: 38px;
	width: auto;
}

.site-logo-text {
	font-weight: 800;
	font-size: 16px;
	letter-spacing: -.02em;
}

.site-tagline {
	display: none;
	font-size: 11px;
	font-weight: 600;
	color: var(--grey-400);
	margin-left: 12px;
	padding-left: 12px;
	border-left: 1px solid var(--grey-200);
	white-space: nowrap;
}

@media (min-width: 480px) {
	.site-tagline {
		display: block;
	}
}

.site-header .icons {
	display: flex;
	align-items: center;
	gap: 18px;
}

.site-header .icons svg {
	width: 21px;
	height: 21px;
	display: block;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
}

/* Nav de categorías en desktop; en mobile vive en el panel off-canvas. */
.desktop-nav {
	display: none;
}

.cta-btn {
	display: none;
}

/* -------------------------------------------------------------
   HERO — carrusel de destacadas
   ------------------------------------------------------------- */

.hero {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	gap: 10px;
	padding: 12px 14px 14px 14px;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.hero::-webkit-scrollbar {
	display: none;
}

.hero-slide {
	position: relative;
	flex: 0 0 84%;
	scroll-snap-align: start;
	height: 200px;
	border-radius: var(--radius);
	overflow: hidden;
	display: block;
}

.hero-slide-media {
	position: absolute;
	inset: 0;
}

.hero-slide .tag {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	background: var(--red);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 20px;
	letter-spacing: .02em;
}

.hero-slide .overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 34px 14px 14px 14px;
	background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0));
}

.hero-slide h2 {
	color: #fff;
	font-size: 15.5px;
	line-height: 1.28;
	font-weight: 700;
}

.hero-slide .meta {
	color: rgba(255, 255, 255, .75);
	font-size: 10.5px;
	margin-top: 5px;
	font-weight: 500;
}

.hero-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 2px 0 6px 0;
}

.hero-dots span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--grey-200);
}

.hero-dots span.active {
	background: var(--red);
	width: 16px;
	border-radius: 4px;
}

/* -------------------------------------------------------------
   NAVEGACIÓN POR CATEGORÍAS (scroll táctil)
   ------------------------------------------------------------- */

.cats {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 2px 14px 14px 14px;
	scrollbar-width: none;
}

.cats::-webkit-scrollbar {
	display: none;
}

.cat-pill {
	flex: 0 0 auto;
	font-size: 12.5px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 20px;
	background: var(--grey-100);
	color: var(--grey-600);
	white-space: nowrap;
}

.cat-pill.active {
	background: var(--black);
	color: #fff;
}

/* -------------------------------------------------------------
   SECCIONES GENÉRICAS (home, archivos)
   ------------------------------------------------------------- */

section {
	padding: 0 14px;
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 22px 0 12px 0;
}

.section-head h3 {
	font-size: 16px;
	font-weight: 800;
}

.section-head .bar {
	width: 4px;
	height: 15px;
	background: var(--red);
	display: inline-block;
	margin-right: 7px;
	border-radius: 2px;
	position: relative;
	top: 2px;
}

.section-head .see-all {
	font-size: 11.5px;
	color: var(--grey-400);
	font-weight: 600;
}

/* -------------------------------------------------------------
   LAYOUT-GRID: home y archivos (columna principal + sidebar)
   ------------------------------------------------------------- */

.layout-grid {
	display: block;
}

.side-col {
	margin-top: 4px;
}

/* -------------------------------------------------------------
   BREADCRUMB
   ------------------------------------------------------------- */

.breadcrumb {
	padding: 12px 14px 0 14px;
	font-size: 11px;
	font-weight: 600;
	color: var(--grey-400);
}

.breadcrumb span.sep {
	margin: 0 5px;
	color: var(--grey-200);
}

.breadcrumb span.current {
	color: var(--red);
}

/* -------------------------------------------------------------
   ARTÍCULO — cabecera, imagen destacada, grid con sidebar
   ------------------------------------------------------------- */

.article-head {
	padding: 10px 14px 0 14px;
}

h1.title {
	font-size: 22px;
	line-height: 1.28;
	font-weight: 800;
	color: var(--black);
}

.deck {
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--grey-600);
	margin-top: 10px;
}

.featured {
	margin: 0 14px;
	height: 220px;
	border-radius: var(--radius);
	overflow: hidden;
	position: relative;
}

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

.caption {
	padding: 7px 14px 0 14px;
	font-size: 10.5px;
	color: var(--grey-400);
	font-style: italic;
}

.article-body {
	padding: 16px 14px 0 14px;
}

.inline-media {
	margin: 4px 0 18px 0;
}

.inline-media img {
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.article-grid {
	display: block;
}

section.related {
	padding: 0 14px;
}

/* -------------------------------------------------------------
   PAGINACIÓN (archive.php, index.php — the_posts_pagination)
   ------------------------------------------------------------- */

.cclatam-pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin: 18px 0 4px 0;
	padding: 0 14px;
}

.cclatam-pagination .page-numbers {
	font-size: 12.5px;
	font-weight: 700;
	padding: 9px 14px;
	border: 1.4px solid var(--grey-200);
	border-radius: 10px;
	color: var(--black);
}

.cclatam-pagination .page-numbers.current {
	background: var(--black);
	color: #fff;
	border-color: var(--black);
}

.cclatam-pagination .page-numbers.dots {
	border: none;
	padding: 0 4px;
}

/* =================================================================
   DESKTOP (min-width: 1024px) — mismo HTML, reflow vía media query
   ================================================================= */

@media (min-width: 1024px) {

	.site-header {
		padding: 0 40px;
		height: 72px;
	}

	.site-logo,
	.site-logo img,
	.site-logo .custom-logo {
		height: 46px;
	}

	.site-tagline {
		font-size: 14px;
		margin-left: 16px;
		padding-left: 16px;
	}

	.desktop-nav {
		display: flex;
		align-items: center;
		gap: 30px;
	}

	.desktop-nav a {
		font-size: 13.5px;
		font-weight: 700;
		color: var(--grey-600);
	}

	.desktop-nav a.active,
	.desktop-nav a:hover {
		color: var(--red);
	}

	.site-header .icons {
		gap: 22px;
	}

	.hamburger {
		display: none;
	}

	.cta-btn {
		display: inline-block;
		background: var(--red);
		color: #fff;
		font-size: 12.5px;
		font-weight: 700;
		padding: 9px 18px;
		border-radius: 20px;
		white-space: nowrap;
	}

	/* Hero: grilla asimétrica de 3 columnas, sin scroll */
	.hero {
		display: grid;
		grid-template-columns: 1.7fr 1fr 1fr;
		grid-template-rows: 1fr 1fr;
		gap: 16px;
		padding: 28px 40px 8px 40px;
		height: 460px;
		overflow: visible;
	}

	.hero-slide {
		height: 100%;
		width: 100%;
	}

	.hero-slide:nth-child(1) {
		grid-column: 1;
		grid-row: 1 / 3;
	}

	.hero-slide:nth-child(2) {
		grid-column: 2;
		grid-row: 1;
	}

	.hero-slide:nth-child(3) {
		grid-column: 2;
		grid-row: 2;
	}

	.hero-slide:nth-child(4) {
		grid-column: 3;
		grid-row: 1 / 3;
	}

	.hero-slide:nth-child(1) h2,
	.hero-slide:nth-child(4) h2 {
		font-size: 21px;
	}

	.hero-dots {
		display: none;
	}

	.cats {
		display: none;
	}

	/* Home / archivos: 2 columnas (contenido + sidebar fijo) */
	.layout-grid {
		display: grid;
		grid-template-columns: 2fr 1fr;
		gap: 56px;
		padding: 0 40px;
		align-items: start;
	}

	.layout-grid section {
		padding: 0;
	}

	.side-col {
		position: sticky;
		top: 96px;
	}

	.section-head {
		margin: 34px 0 16px 0;
	}

	.section-head h3 {
		font-size: 19px;
	}

	.cclatam-pagination {
		padding: 0;
	}

	/* Artículo: columna de lectura + sidebar fijo */
	.breadcrumb {
		padding: 22px 40px 0 40px;
		max-width: 1160px;
		margin: 0 auto;
	}

	.article-grid {
		display: grid;
		grid-template-columns: 1fr 340px;
		gap: 56px;
		max-width: 1160px;
		margin: 0 auto;
		padding: 0 40px;
		align-items: start;
	}

	.article-head {
		padding: 10px 0 0 0;
	}

	h1.title {
		font-size: 32px;
		line-height: 1.24;
		max-width: 680px;
	}

	.deck {
		max-width: 640px;
		font-size: 15.5px;
	}

	.featured {
		margin: 0;
		height: 400px;
	}

	.caption {
		padding: 8px 0 0 0;
	}

	.article-body {
		padding: 20px 0 0 0;
		max-width: 680px;
	}

	.inline-media img {
		max-height: 280px;
		object-fit: cover;
	}

	.tags-wrap {
		padding: 4px 0 4px 0;
	}

	.article-side {
		position: sticky;
		top: 96px;
	}

	section.related {
		padding: 0;
	}

	footer.site-footer {
		padding: 36px 40px 42px 40px;
	}

	.footer-inner {
		max-width: 1160px;
		margin: 0 auto;
	}
}
