/* ==========================================================================
   ARTÍCULOS — Listado (page-articulos.php + template-parts/art-header.php,
   template-parts/art-card.php). Extraído de articulos.html (#articulos).
   Prefijo "art-" (clases únicas).
   ========================================================================== */

#articulos {
	background: var(--navy);
	padding-top: clamp(8rem, 10vw, 10rem);
}

/* ── Cabecera ── */
.art-header {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.2rem;
	margin-bottom: clamp(2.5rem, 4vw, 3.8rem);
}

.art-orn {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
}

.art-orn-line {
	width: clamp(50px, 8vw, 90px);
	height: 1px;
	background: rgba(198, 170, 71, 0.5);
}

.art-orn-jv {
	height: 2.2rem;
	width: auto;
	display: block;
}

.art-title {
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(2.6rem, 5.5vw, 4.4rem);
	font-weight: 600;
	color: var(--white);
	line-height: 1.1;
}

.art-title em {
	font-style: normal;
	color: var(--gold);
}

/* ── Grid de tarjetas ── */
.art-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.6rem;
}

.art-card {
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(198, 170, 71, 0.18);
	border-radius: 12px;
	overflow: hidden;
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(198, 170, 71, 0.02));
	text-decoration: none;
	color: inherit;
	transition:
		border-color 0.3s,
		transform 0.3s;
}

.art-card:hover {
	border-color: rgba(198, 170, 71, 0.45);
	transform: translateY(-4px);
}

.art-card-img {
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.art-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s;
}

.art-card:hover .art-card-img img {
	transform: scale(1.05);
}

.art-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	padding: 1.3rem 1.3rem 1.7rem;
}

.art-meta {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	font-size: 0.72rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.5);
}

.art-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.art-meta-item svg {
	width: 14px;
	height: 14px;
	color: var(--gold);
	flex-shrink: 0;
}

.art-meta-sep {
	width: 1px;
	height: 12px;
	background: rgba(198, 170, 71, 0.3);
}

.art-card-title {
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(1.05rem, 1.4vw, 1.25rem);
	font-weight: 600;
	color: var(--white);
	line-height: 1.3;
}

.art-card-excerpt {
	font-size: 0.82rem;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.55);
	line-height: 1.6;
}

/* ── Paginación ── */
.art-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

.art-page {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.9rem 1.9rem;
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.25s;
}

.art-page svg {
	width: 18px;
	height: 18px;
}

.art-page-prev {
	background: transparent;
	color: rgba(255, 255, 255, 0.75);
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.art-page-prev:hover {
	border-color: var(--gold);
	color: var(--gold);
}

.art-page-next {
	background: var(--gold);
	color: var(--navy);
	border: 1px solid var(--gold);
}

.art-page-next:hover {
	background: var(--gold2);
	border-color: var(--gold2);
	transform: translateY(-2px);
}

/* Estado desactivado (paginación) */
.art-page.desactivado {
	opacity: 0.4;
	pointer-events: none;
	cursor: default;
}

/* ── Estado vacío ── */
.art-empty {
	text-align: center;
	font-size: 1rem;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.6);
	padding: 3rem 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
	.art-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	#articulos {
		padding-top: 7rem;
	}

	.art-grid {
		grid-template-columns: 1fr;
	}

	.art-page {
		padding: 0.8rem 1.3rem;
		font-size: 0.75rem;
	}
}
