/* Portada — rediseño 2026-08. Paleta editorial + Roboto/Roboto Slab (ya cargadas por Elementor). */

.revista-portada {
	--rp-bg: #F5F2ED;
	--rp-surface: #FFFFFF;
	--rp-surface-2: #FBF9F5;
	--rp-ink: #201D1B;
	--rp-ink-soft: #6B655D;
	--rp-ink-faint: #9C958A;
	--rp-accent: #7C2938;
	--rp-accent-soft: #F1DBDD;
	--rp-line: #E4DFD6;
	--rp-radius: 3px;

	background: var(--rp-bg);
	color: var(--rp-ink);
	font-family: "Roboto", -apple-system, "Segoe UI", sans-serif;
}

.revista-portada a { color: inherit; text-decoration: none; }
.revista-portada * { box-sizing: border-box; }

.rp-wrap {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 24px;
}

.rp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--rp-accent);
}
.rp-eyebrow::before {
	content: "";
	width: 16px;
	height: 1.5px;
	background: var(--rp-accent);
}

.rp-media-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(160deg, var(--rp-accent-soft), transparent 60%),
		repeating-linear-gradient(135deg, var(--rp-line) 0 2px, transparent 2px 26px);
}

/* Hero */
.rp-hero {
	padding: 44px 0 40px;
	border-bottom: 1px solid var(--rp-line);
}
.rp-hero-grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 48px;
	align-items: center;
}
.rp-hero-media {
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: var(--rp-radius);
	overflow: hidden;
	background: var(--rp-surface-2);
}
.rp-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.rp-hero-title {
	font-family: "Roboto Slab", Georgia, serif;
	font-weight: 600;
	font-size: clamp(28px, 3.4vw, 42px);
	line-height: 1.12;
	margin: 16px 0 14px;
	text-wrap: balance;
}
.rp-hero-dek {
	font-size: 16px;
	line-height: 1.6;
	color: var(--rp-ink-soft);
	max-width: 46ch;
	margin: 0 0 20px;
}

/* Listado */
.rp-listing { padding: 46px 0 30px; }
.rp-listing-head { margin-bottom: 26px; }
.rp-listing-head h2 {
	font-family: "Roboto Slab", Georgia, serif;
	font-weight: 600;
	font-size: 20px;
	margin: 0;
}

.rp-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 34px 28px;
}

.rp-card-media {
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: var(--rp-radius);
	overflow: hidden;
	margin-bottom: 14px;
	background: var(--rp-surface-2);
}
.rp-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.rp-card h3 {
	font-family: "Roboto Slab", Georgia, serif;
	font-weight: 600;
	font-size: 18px;
	line-height: 1.3;
	margin: 10px 0 8px;
	text-wrap: balance;
}
.rp-card .rp-dek {
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--rp-ink-soft);
	margin: 0 0 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Paginación (envuelve la salida estándar de the_posts_pagination) */
.rp-listing .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 36px 0 56px;
}
.rp-listing .page-numbers {
	min-width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	font-size: 13px;
	color: var(--rp-ink-soft);
	border-radius: var(--rp-radius);
	font-variant-numeric: tabular-nums;
}
.rp-listing .page-numbers.current {
	background: var(--rp-accent);
	color: #fff;
	font-weight: 600;
}

@media (max-width: 860px) {
	.rp-hero-grid { grid-template-columns: 1fr; gap: 24px; }
	.rp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.rp-grid { grid-template-columns: 1fr; }
}

/* Tiempo de lectura dentro de la entrada individual (fuera de .revista-portada) */
.rp-reading-time {
	font-family: "Roboto", -apple-system, "Segoe UI", sans-serif;
	font-size: 12.5px;
	color: #6B655D;
	margin: 0 0 20px;
}
@media (prefers-color-scheme: dark) {
	.rp-reading-time { color: #B9B0A4; }
}
