/* ═══════════════════════════════════════════════════════════════════════
 * RANKING INFLUENCERS — Hoja de estilos del theme
 * Revista digital sobre la economía de los creadores.
 *
 * Índice
 *   0. Tipografías (@font-face)
 *   1. Tokens de marca
 *   2. Base y escala tipográfica
 *   3. Placeholders
 *   4. Botones
 *   5. Topbar · Masthead · Nav de secciones
 *   6. Antetítulos y colores de sección
 *   7. Portada y notas
 *   8. Ticker
 *   9. Mediciones
 *  10. Reportajes
 *  11. Entrevistas
 *  12. Opinión
 *  13. Lo más leído · Newsletter
 *  14. Pie
 *  15. Páginas interiores (layout, tablas, prose, formularios)
 *  16. Comentarios, paginación, 404
 *  17. Responsive
 * ═══════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════
 * 0. TIPOGRAFÍAS
 *
 * DONGLE — principal. Auto-alojada, sin CDN de Google.
 *   Solo subsets latin y latin-ext; el resto de la familia es coreana
 *   y pesaba 3 MB de más.
 *
 * COCOGOOSE — secundaria. Es de pago (Zetafonts), no se puede descargar.
 *   PARA ACTIVARLA: copia los .woff2 con licencia web en assets/fonts/
 *   con estos nombres exactos y ya funciona:
 *       cocogoose-light.woff2
 *       cocogoose-regular.woff2
 *       cocogoose-bold.woff2
 *   Mientras no estén, `local()` la coge si la tienes instalada en el Mac
 *   y si no cae a la pila del sistema. No rompe nada.
 * ═══════════════════════════════════════════════════════════════ */

/* --- Dongle 300 --- */
@font-face {
	font-family: "Dongle";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/dongle-300-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Dongle";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/dongle-300-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Dongle 400 --- */
@font-face {
	font-family: "Dongle";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/dongle-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Dongle";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/dongle-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Dongle 700 --- */
@font-face {
	font-family: "Dongle";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/dongle-700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Dongle";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/dongle-700-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Cocogoose (pendiente de archivos con licencia) --- */
@font-face {
	font-family: "Cocogoose";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: local("Cocogoose Pro Light"), local("CocogoosePro-Light"),
	     url("../fonts/cocogoose-light.woff2") format("woff2");
}
@font-face {
	font-family: "Cocogoose";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: local("Cocogoose Pro"), local("Cocogoose"), local("CocogoosePro-Regular"),
	     url("../fonts/cocogoose-regular.woff2") format("woff2");
}
@font-face {
	font-family: "Cocogoose";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: local("Cocogoose Pro Bold"), local("CocogoosePro-Bold"),
	     url("../fonts/cocogoose-bold.woff2") format("woff2");
}


/* ═══════════════════════════════════════════════════════════════
 * 1. TOKENS DE MARCA
 * Manual de identidad de Ranking Influencers.
 * ═══════════════════════════════════════════════════════════════ */
:root {

	/* --- Color corporativo --- */
	--ri-brand: #372879;          /* PRINCIPAL */
	--ri-brand-deep: #3A267E;
	--ri-brand-violet: #4E2672;
	--ri-brand-ink: #241a52;      /* derivado, para fondos muy oscuros */

	/* --- Paleta de acento --- */
	--ri-coral: #E94C3F;
	--ri-teal: #20A699;
	--ri-orange: #F39727;
	--ri-yellow: #F1BB22;

	/* --- Color por sección (sistema editorial) --- */
	--ri-c-notas: var(--ri-coral);
	--ri-c-mediciones: var(--ri-teal);
	--ri-c-reportajes: var(--ri-orange);
	--ri-c-entrevistas: var(--ri-yellow);
	--ri-c-opinion: var(--ri-brand-violet);
	--ri-c-rankings: var(--ri-brand);

	/* --- Neutros --- */
	--ri-bg: #ffffff;
	--ri-bg-alt: #f6f5fa;         /* blanco roto con matiz del morado */
	--ri-bg-tint: #efedf7;
	--ri-line: #ddd9ea;
	--ri-line-strong: #b8b1d1;
	--ri-text: #1d1830;
	--ri-muted: #6b6485;

	/* --- Enlaces / acción --- */
	--ri-accent: var(--ri-brand);
	--ri-accent-dark: #2a1e60;
	--ri-ok: var(--ri-teal);

	/* --- Tipografía ---
	 * display : Dongle. Titulares grandes. Renderiza PEQUEÑO respecto al
	 *           font-size y trae mucho interlineado interno: por eso todos
	 *           los tamaños van altos y los line-height por debajo de 1.
	 * ui      : Cocogoose. Antetítulos, nav, botones, metadatos. En mayúsculas.
	 * body    : texto largo. Cocogoose Light si está; si no, pila del sistema.
	 */
	--ri-font-display: "Dongle", "Trebuchet MS", "Segoe UI", sans-serif;
	--ri-font-ui: "Cocogoose", "Futura", "Avenir Next", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ri-font-body: "Cocogoose", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ri-font: var(--ri-font-body);

	/* --- Métrica --- */
	--ri-radius: 4px;
	--ri-radius-lg: 10px;
	--ri-gap: 28px;
	--ri-container: 1240px;
}


/* ═══════════════════════════════════════════════════════════════
 * 2. BASE Y ESCALA TIPOGRÁFICA
 * ═══════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--ri-font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ri-text);
	background: var(--ri-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--ri-accent);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

/* Titulares en Dongle. line-height < 1 a propósito: la fuente trae
   muchísimo espacio interno y con 1.2 se abre un boquete. */
h1, h2, h3, h4,
.masthead__logo,
.story__title,
.section__title,
.page-title,
.interview__quote,
.stat-box__num,
.cta__title,
.newsletter__title,
.hero__title {
	font-family: var(--ri-font-display);
	font-weight: 700;
	line-height: .92;
	letter-spacing: 0;
	margin: 0 0 .35em;
	text-wrap: balance;
}

h1 { font-size: 54px; }
h2 { font-size: 42px; }
h3 { font-size: 30px; }
h4 { font-size: 24px; }

p {
	margin: 0 0 1em;
}

strong, b {
	font-weight: 700;
}

::selection {
	background: var(--ri-brand);
	color: #fff;
}

.container {
	width: 100%;
	max-width: var(--ri-container);
	margin: 0 auto;
	padding: 0 22px;
}

.section {
	padding: 60px 0;
}

.section__header {
	margin-bottom: 30px;
	padding-bottom: 14px;
	border-bottom: 3px solid var(--ri-text);
}

.section__title {
	font-size: clamp(38px, 4.4vw, 54px);
	margin: 0;
}

.section__subtitle {
	font-family: var(--ri-font-body);
	font-size: 15px;
	color: var(--ri-muted);
	margin: 8px 0 0;
	line-height: 1.5;
}

.section__more {
	margin-top: 30px;
	text-align: center;
}

.page-title {
	font-size: clamp(44px, 6vw, 72px);
	margin: 0 0 10px;
}

.page-subtitle {
	font-family: var(--ri-font-body);
	color: var(--ri-muted);
	margin: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 999;
	width: auto;
	height: auto;
	clip: auto;
	clip-path: none;
	padding: 10px 16px;
	background: #fff;
	border: 2px solid var(--ri-brand);
	border-radius: var(--ri-radius);
}

:focus-visible {
	outline: 3px solid var(--ri-yellow);
	outline-offset: 2px;
}


/* ═══════════════════════════════════════════════════════════════
 * 3. PLACEHOLDERS
 * Cajas de reserva mientras no hay fotos del cliente.
 * ═══════════════════════════════════════════════════════════════ */
.ph {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	border: 2px dashed var(--ri-line-strong);
	border-radius: var(--ri-radius);
	background:
		repeating-linear-gradient(
			45deg,
			rgba(55, 40, 121, .04) 0 10px,
			transparent 10px 20px
		);
	color: var(--ri-muted);
	font-family: var(--ri-font-ui);
	font-size: 12px;
	letter-spacing: .04em;
	text-align: center;
	padding: 12px;
}

.ph--hero { min-height: 340px; }
.ph--card { min-height: 180px; }
.ph--thumb { min-height: 180px; }
.ph--sm { min-height: 90px; }


/* ═══════════════════════════════════════════════════════════════
 * 4. BOTONES
 * ═══════════════════════════════════════════════════════════════ */
.btn {
	display: inline-block;
	padding: 13px 24px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--ri-font-ui);
	font-weight: 700;
	font-size: 13px;
	line-height: 1.1;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.btn:hover,
.btn:focus {
	text-decoration: none;
}

.btn--primary {
	background: var(--ri-brand);
	border-color: var(--ri-brand);
	color: #fff;
}

.btn--primary:hover,
.btn--primary:focus {
	background: var(--ri-accent-dark);
	border-color: var(--ri-accent-dark);
	color: #fff;
}

.btn--coral {
	background: var(--ri-coral);
	border-color: var(--ri-coral);
	color: #fff;
}

.btn--yellow {
	background: var(--ri-yellow);
	border-color: var(--ri-yellow);
	color: var(--ri-text);
}

.btn--ghost {
	background: transparent;
	border-color: var(--ri-line-strong);
	color: var(--ri-text);
}

.btn--ghost:hover,
.btn--ghost:focus {
	border-color: var(--ri-brand);
	color: var(--ri-brand);
}

.btn--light {
	background: #fff;
	border-color: #fff;
	color: var(--ri-brand);
}

.btn--sm { padding: 9px 16px; font-size: 11px; }
.btn--lg { padding: 17px 34px; font-size: 15px; }

/* --- Botón solo con icono ---
 *
 * El `.btn` normal es inline-block y su icono lleva `margin-left: 8px`
 * y un `vertical-align` negativo, porque está pensado para ir DESPUÉS
 * de un texto. Sin texto al lado, esos dos ajustes lo dejan descentrado
 * a la derecha y algo caído. Aquí se centra de verdad, con flex.
 */
.btn--icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	min-width: 44px;
	padding: 0;
	border-radius: 50%;
	line-height: 1;
}

.btn--icon.btn--sm {
	width: 38px;
	min-width: 38px;
}

.btn--icon .icon {
	margin: 0;
	width: 18px;
	height: 18px;
	vertical-align: middle;
}

/* Sin texto no hay hacia dónde desplazarse */
.btn--icon:hover .icon {
	transform: none;
}

.btn[disabled] {
	opacity: .5;
	cursor: not-allowed;
}


/* ═══════════════════════════════════════════════════════════════
 * 5. TOPBAR · MASTHEAD · NAV DE SECCIONES
 * ═══════════════════════════════════════════════════════════════ */
.topbar {
	background: var(--ri-brand);
	color: rgba(255, 255, 255, .82);
	font-family: var(--ri-font-ui);
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.topbar__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 40px;
}

.topbar__edition {
	padding: 3px 10px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 999px;
}

.topbar__links {
	display: flex;
	gap: 16px;
	margin-left: auto;
	list-style: none;
	padding: 0;
	margin-bottom: 0;
}

.topbar__links a {
	color: rgba(255, 255, 255, .82);
}

.topbar__links a:hover {
	color: var(--ri-yellow);
	text-decoration: none;
}

/* --- Masthead --- */
.masthead {
	padding: 34px 0 24px;
	text-align: center;
	background: #fff;
}

.masthead__logo {
	margin: 0;
	font-family: var(--ri-font-display);
	font-size: clamp(58px, 11vw, 132px);
	font-weight: 700;
	line-height: .78;
	letter-spacing: -.005em;
	color: var(--ri-brand);
	text-transform: uppercase;
}

.masthead__logo a {
	color: inherit;
	text-decoration: none;
}

/* Logo en imagen. El lettering es de pincel y va con transparencia:
   se escala por ancho, nunca por alto, para no romper el trazo. */
.masthead__logo--image {
	line-height: 0;
	font-size: 0;
}

.masthead__logo img,
.custom-logo {
	width: clamp(260px, 42vw, 520px);
	height: auto;
	margin: 0 auto;
}

.masthead__tagline {
	margin: 10px 0 0;
	font-family: var(--ri-font-ui);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .3em;
	color: var(--ri-muted);
}

/* Filete tricolor bajo el masthead: la paleta trabajando */
.masthead__rule {
	display: flex;
	height: 5px;
	margin-top: 22px;
}

.masthead__rule span {
	flex: 1;
}

.masthead__rule span:nth-child(1) { background: var(--ri-coral); }
.masthead__rule span:nth-child(2) { background: var(--ri-orange); }
.masthead__rule span:nth-child(3) { background: var(--ri-yellow); }
.masthead__rule span:nth-child(4) { background: var(--ri-teal); }
.masthead__rule span:nth-child(5) { background: var(--ri-brand); }

/* --- Nav de secciones --- */
.sections-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--ri-line);
}

.sections-nav.is-stuck {
	box-shadow: 0 3px 16px rgba(29, 24, 48, .1);
}

.sections-nav__inner {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: 54px;
}

.sections-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sections-nav__list a {
	display: block;
	padding: 5px 0;
	color: var(--ri-text);
	font-family: var(--ri-font-ui);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	border-bottom: 3px solid transparent;
	text-decoration: none;
}

.sections-nav__list a:hover,
.sections-nav__list .current-menu-item > a {
	border-bottom-color: var(--ri-brand);
	color: var(--ri-brand);
}

/* Cada sección se subraya con su propio color */
.sections-nav__list [data-sec="notas"] a:hover        { border-bottom-color: var(--ri-c-notas); color: var(--ri-c-notas); }
.sections-nav__list [data-sec="mediciones"] a:hover   { border-bottom-color: var(--ri-c-mediciones); color: var(--ri-c-mediciones); }
.sections-nav__list [data-sec="reportajes"] a:hover   { border-bottom-color: var(--ri-c-reportajes); color: var(--ri-c-reportajes); }
.sections-nav__list [data-sec="entrevistas"] a:hover  { border-bottom-color: var(--ri-c-entrevistas); color: #a97f00; }
.sections-nav__list [data-sec="opinion"] a:hover      { border-bottom-color: var(--ri-c-opinion); color: var(--ri-c-opinion); }

.sections-nav__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

/* Cabecera simple (páginas interiores del theme) */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--ri-line);
}

.site-header.is-stuck {
	box-shadow: 0 2px 12px rgba(29, 24, 48, .08);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--ri-gap);
	min-height: 68px;
}

.site-title {
	font-family: var(--ri-font-display);
	font-size: 34px;
	line-height: .9;
	margin: 0;
	text-transform: uppercase;
}

.site-title a { color: var(--ri-brand); }

.site-description {
	margin: 0;
	font-family: var(--ri-font-ui);
	font-size: 10px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--ri-muted);
}

.main-navigation { margin-left: auto; }

.menu {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu a {
	color: var(--ri-text);
	font-family: var(--ri-font-ui);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.menu--empty {
	color: var(--ri-muted);
	font-style: italic;
	font-size: 12px;
	text-transform: none;
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	margin-left: auto;
	background: none;
	border: 2px solid var(--ri-brand);
	border-radius: 8px;
	cursor: pointer;
	position: relative;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	position: absolute;
	left: 12px;
	width: 18px;
	height: 2px;
	background: var(--ri-brand);
	content: "";
}

.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { top: -6px; left: 0; }
.nav-toggle__bar::after { top: 6px; left: 0; }

/* --- Buscador ---
 *
 * El icono va DENTRO de la píldora y hace de botón de envío. Antes era un
 * botón aparte al lado del campo y no había manera de centrarlo bien: el
 * icono heredaba el margen y la alineación pensados para acompañar a un
 * texto. Metido dentro, además, ocupa menos y se lee mejor.
 */
.search-form {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 0 16px;
	background: #fff;
	border: 2px solid var(--ri-line);
	border-radius: 999px;
	transition: border-color .2s ease;
}

.search-form:focus-within {
	border-color: var(--ri-brand);
}

.search-form__go {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ri-muted);
	cursor: pointer;
	transition: color .18s ease;
}

.search-form__go .icon {
	width: 18px;
	height: 18px;
	margin: 0;
	vertical-align: middle;
}

.search-form__go:hover,
.search-form:focus-within .search-form__go {
	color: var(--ri-brand);
}

/* El campo ya no lleva caja propia: la caja es la píldora del formulario */
.search-form__field {
	flex: 1;
	min-width: 0;
	padding: 10px 0;
	border: 0;
	background: none;
	border-radius: 0;
}

.search-form__field:focus {
	outline: none;
}

.field input,
.field select,
.field textarea,
.newsletter__form input,
.hero__search input {
	width: 100%;
	padding: 11px 16px;
	border: 2px solid var(--ri-line);
	border-radius: 999px;
	font-family: var(--ri-font-body);
	font-size: 14px;
	background: #fff;
	color: var(--ri-text);
}

.field textarea { border-radius: var(--ri-radius-lg); }

.newsletter__form input:focus {
	border-color: var(--ri-brand);
	outline: none;
}


/* ═══════════════════════════════════════════════════════════════
 * 6. ANTETÍTULOS Y COLORES DE SECCIÓN
 * ═══════════════════════════════════════════════════════════════ */
.kicker {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 10px;
	font-family: var(--ri-font-ui);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .13em;
	color: var(--ri-brand);
}

.kicker--notas       { color: var(--ri-c-notas); }
.kicker--mediciones  { color: var(--ri-c-mediciones); }
.kicker--reportajes  { color: #c9720d; }   /* naranja oscurecido para contraste AA */
.kicker--entrevistas { color: #9a7500; }   /* amarillo oscurecido para contraste AA */
.kicker--opinion     { color: var(--ri-c-opinion); }

/* Variante en pastilla, para cuando va sobre foto o fondo de color */
.kicker--pill {
	padding: 5px 11px;
	border-radius: 999px;
	color: #fff;
}

.kicker--pill.kicker--notas       { background: var(--ri-c-notas); color: #fff; }
.kicker--pill.kicker--mediciones  { background: var(--ri-c-mediciones); color: #fff; }
.kicker--pill.kicker--reportajes  { background: var(--ri-c-reportajes); color: #fff; }
.kicker--pill.kicker--entrevistas { background: var(--ri-c-entrevistas); color: var(--ri-text); }
.kicker--pill.kicker--opinion     { background: var(--ri-c-opinion); color: #fff; }


/* ═══════════════════════════════════════════════════════════════
 * 7. PORTADA Y NOTAS
 * ═══════════════════════════════════════════════════════════════ */
.section--lead {
	padding: 40px 0 46px;
}

.lead {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 44px;
}

.lead__aside {
	padding-left: 44px;
	border-left: 1px solid var(--ri-line);
}

.lead__aside-title {
	font-family: var(--ri-font-ui);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ri-muted);
	padding-bottom: 12px;
	border-bottom: 3px solid var(--ri-text);
	margin-bottom: 4px;
}

/* --- Nota --- */
.story__media {
	display: block;
	margin-bottom: 16px;
	overflow: hidden;
	border-radius: var(--ri-radius);
}

.story__title {
	font-size: 30px;
	margin: 0 0 10px;
}

.story__title a {
	color: var(--ri-text);
	text-decoration: none;
	background-image: linear-gradient(var(--ri-brand), var(--ri-brand));
	background-size: 0 2px;
	background-position: 0 92%;
	background-repeat: no-repeat;
	transition: background-size .25s ease;
}

.story__title a:hover {
	color: var(--ri-brand);
	background-size: 100% 2px;
	text-decoration: none;
}

.story__excerpt {
	font-family: var(--ri-font-body);
	color: var(--ri-muted);
	font-size: 16px;
	line-height: 1.55;
	margin: 0 0 12px;
}

.story__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 3px 14px;
	font-family: var(--ri-font-ui);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--ri-muted);
	margin: 0;
}

.story__meta strong {
	color: var(--ri-text);
}

/* Nota principal de portada */
.story--lead .story__title {
	font-size: clamp(46px, 6.4vw, 86px);
	line-height: .88;
	margin-bottom: 16px;
}

.story--lead .story__excerpt {
	font-size: 19px;
	max-width: 58ch;
}

.story--lead .ph {
	min-height: 420px;
}

/* Nota alta (reportajes) */
.story--tall .ph { min-height: 320px; }
.story--tall .story__title { font-size: 27px; }

/* Lista de secundarias */
.story-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.story-list__item {
	padding: 20px 0;
	border-bottom: 1px solid var(--ri-line);
}

.story-list__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.story-list__item .story__title {
	font-size: 24px;
	margin-bottom: 8px;
}

/* Variante con miniatura */
.story--row {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 14px;
	align-items: start;
}

.story--row .ph {
	min-height: 72px;
	margin: 0;
}


/* ═══════════════════════════════════════════════════════════════
 * 8. TICKER
 * ═══════════════════════════════════════════════════════════════ */
.ticker {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 14px 0;
	border-top: 3px solid var(--ri-text);
	border-bottom: 1px solid var(--ri-line);
	font-size: 15px;
	overflow: hidden;
}

.ticker__label {
	flex-shrink: 0;
	padding: 6px 13px;
	background: var(--ri-coral);
	color: #fff;
	border-radius: 999px;
	font-family: var(--ri-font-ui);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
}

.ticker__items {
	display: flex;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: none;
	white-space: nowrap;
}

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

.ticker__items a { color: var(--ri-text); }
.ticker__items a:hover { color: var(--ri-coral); }


/* ═══════════════════════════════════════════════════════════════
 * 9. MEDICIONES
 * ═══════════════════════════════════════════════════════════════ */
.section--measure {
	background: var(--ri-bg-alt);
	border-top: 1px solid var(--ri-line);
	border-bottom: 1px solid var(--ri-line);
}

.section--measure .section__header {
	border-bottom-color: var(--ri-teal);
}

.measure {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 40px;
	align-items: start;
}

/* Lista de ranking */
.ranking {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius-lg);
	overflow: hidden;
	background: #fff;
}

.ranking__item {
	display: grid;
	grid-template-columns: 46px 52px 1fr 118px 118px 108px;
	align-items: center;
	gap: 16px;
	padding: 15px 20px;
	border-bottom: 1px solid var(--ri-line);
}

.ranking__item:last-child { border-bottom: 0; }

.ranking__item:nth-child(1) { box-shadow: inset 4px 0 0 var(--ri-coral); }
.ranking__item:nth-child(2) { box-shadow: inset 4px 0 0 var(--ri-orange); }
.ranking__item:nth-child(3) { box-shadow: inset 4px 0 0 var(--ri-yellow); }

.ranking__pos {
	font-family: var(--ri-font-display);
	font-weight: 700;
	font-size: 34px;
	line-height: 1;
	color: var(--ri-brand);
	text-align: center;
}

.ranking__avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 2px dashed var(--ri-line-strong);
	display: block;
}

.ranking__avatar--sm {
	width: 26px;
	height: 26px;
	display: inline-block;
	vertical-align: middle;
	margin-right: 8px;
}

.ranking__name {
	display: block;
	font-family: var(--ri-font-display);
	font-size: 26px;
	line-height: 1;
	font-weight: 700;
}

.ranking__handle {
	display: block;
	font-family: var(--ri-font-ui);
	font-size: 11px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--ri-muted);
	margin-top: 2px;
}

.ranking__metric strong {
	display: flex;
	align-items: center;
	gap: 4px;
	font-family: var(--ri-font-display);
	font-size: 26px;
	line-height: 1;
}

/* El icono de tendencia va en Cocogoose-size, no al tamaño del número */
.ranking__metric strong .icon {
	width: 15px;
	height: 15px;
}

.ranking__metric span {
	font-family: var(--ri-font-ui);
	font-size: 10px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ri-muted);
}

.ranking__metric--up strong { color: var(--ri-teal); }
.ranking__metric--down strong { color: var(--ri-coral); }

/* Cajas de dato */
.stat-box {
	background: #fff;
	border: 1px solid var(--ri-line);
	border-top: 5px solid var(--ri-teal);
	border-radius: var(--ri-radius-lg);
	padding: 24px;
	margin-bottom: 18px;
}

.stat-box--alt { border-top-color: var(--ri-coral); }

.stat-box__num {
	display: block;
	font-family: var(--ri-font-display);
	font-size: 76px;
	font-weight: 700;
	line-height: .8;
	color: var(--ri-brand);
}

.stat-box--alt .stat-box__num { color: var(--ri-coral); }

.stat-box__label {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin-top: 10px;
	font-family: var(--ri-font-ui);
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ri-muted);
	line-height: 1.5;
}

.stat-box__foot {
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--ri-line);
	font-size: 14px;
	color: var(--ri-muted);
	line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════
 * 10. REPORTAJES
 * ═══════════════════════════════════════════════════════════════ */
.section--reports .section__header {
	border-bottom-color: var(--ri-orange);
}

.grid {
	display: grid;
	gap: var(--ri-gap);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }


/* ═══════════════════════════════════════════════════════════════
 * 11. ENTREVISTAS
 * ═══════════════════════════════════════════════════════════════ */
.section--interviews {
	background: var(--ri-brand);
	color: rgba(255, 255, 255, .88);
	position: relative;
}

.section--interviews .section__title,
.section--interviews .story__title a {
	color: #fff;
}

.section--interviews .story__title a {
	background-image: linear-gradient(var(--ri-yellow), var(--ri-yellow));
}

.section--interviews .story__title a:hover {
	color: var(--ri-yellow);
}

.section--interviews .story__excerpt,
.section--interviews .section__subtitle,
.section--interviews .story__meta {
	color: rgba(255, 255, 255, .72);
}

.section--interviews .ph {
	border-color: rgba(255, 255, 255, .3);
	color: rgba(255, 255, 255, .6);
	background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 10px, transparent 10px 20px);
}

.section--interviews .story-list__item {
	border-bottom-color: rgba(255, 255, 255, .18);
}

.interviews {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.interview__portrait .ph { min-height: 460px; }

.interview__quote {
	font-size: clamp(44px, 5.4vw, 76px);
	line-height: .88;
	margin: 0 0 20px;
	color: #fff;
}

.interview__quote::before,
.interview__quote::after {
	color: var(--ri-yellow);
}

.interview__quote::before { content: "“"; }
.interview__quote::after  { content: "”"; }

.interview__who {
	font-family: var(--ri-font-ui);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: rgba(255, 255, 255, .75);
	margin: 0 0 24px;
}

.interview__who strong { color: var(--ri-yellow); }


/* ═══════════════════════════════════════════════════════════════
 * 12. OPINIÓN
 * ═══════════════════════════════════════════════════════════════ */
.section--opinion .section__header {
	border-bottom-color: var(--ri-brand-violet);
}

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

.opinion__item {
	display: grid;
	grid-template-columns: 68px 1fr;
	gap: 16px;
	align-items: start;
	padding-right: 26px;
	border-right: 1px solid var(--ri-line);
}

.opinion__item:last-child {
	border-right: 0;
	padding-right: 0;
}

.avatar {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	border: 3px solid var(--ri-brand-violet);
	background: var(--ri-bg-tint);
	display: block;
}

.opinion__author {
	display: block;
	font-family: var(--ri-font-ui);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .09em;
	color: var(--ri-brand-violet);
	margin-bottom: 8px;
}

.opinion__title {
	font-family: var(--ri-font-display);
	font-size: 26px;
	line-height: .95;
	margin: 0;
}

.opinion__title a {
	color: var(--ri-text);
	text-decoration: none;
}

.opinion__title a:hover { color: var(--ri-brand-violet); }


/* ═══════════════════════════════════════════════════════════════
 * 13. LO MÁS LEÍDO · NEWSLETTER
 * ═══════════════════════════════════════════════════════════════ */
.closing {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 52px;
}

.most-read {
	list-style: none;
	counter-reset: mr;
	margin: 0;
	padding: 0;
}

.most-read__item {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 16px;
	align-items: start;
	padding: 16px 0;
	border-bottom: 1px solid var(--ri-line);
}

.most-read__item::before {
	counter-increment: mr;
	content: counter(mr);
	font-family: var(--ri-font-display);
	font-size: 54px;
	font-weight: 700;
	line-height: .75;
	color: var(--ri-bg-tint);
	-webkit-text-stroke: 1px var(--ri-line-strong);
}

.most-read__item:nth-child(1)::before { color: var(--ri-coral); -webkit-text-stroke: 0; }
.most-read__item:nth-child(2)::before { color: var(--ri-orange); -webkit-text-stroke: 0; }
.most-read__item:nth-child(3)::before { color: var(--ri-yellow); -webkit-text-stroke: 0; }

.most-read__item .story__title {
	font-size: 23px;
	margin: 0;
}

.newsletter {
	padding: 38px;
	background: var(--ri-yellow);
	border-radius: var(--ri-radius-lg);
	color: var(--ri-text);
}

.newsletter__title {
	font-size: 46px;
	margin: 0 0 10px;
	color: var(--ri-brand);
}

.newsletter__text {
	font-size: 16px;
	margin-bottom: 22px;
}

.newsletter__form {
	display: flex;
	gap: 10px;
}

.newsletter__form input {
	flex: 1;
	border-color: transparent;
}

.newsletter__legal {
	margin: 14px 0 0;
	font-family: var(--ri-font-ui);
	font-size: 10px;
	letter-spacing: .05em;
	text-transform: uppercase;
	opacity: .7;
}


/* ═══════════════════════════════════════════════════════════════
 * 14. PIE
 * ═══════════════════════════════════════════════════════════════ */
.site-footer {
	padding: 56px 0 26px;
	background: var(--ri-brand-ink);
	color: rgba(255, 255, 255, .72);
}

.site-footer a { color: rgba(255, 255, 255, .82); }
.site-footer a:hover { color: var(--ri-yellow); text-decoration: none; }

.site-footer__cols {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: var(--ri-gap);
}

.site-footer__brand {
	font-family: var(--ri-font-display);
	font-size: 44px;
	line-height: .85;
	font-weight: 700;
	color: #fff;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.site-footer__brand--image {
	line-height: 0;
	font-size: 0;
	margin-bottom: 14px;
}

.site-footer__brand img {
	width: 100%;
	max-width: 260px;
	height: auto;
}

.site-footer__tagline {
	font-family: var(--ri-font-ui);
	font-size: 10px;
	letter-spacing: .16em;
	text-transform: uppercase;
	opacity: .7;
}

.site-footer__title {
	font-family: var(--ri-font-ui);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--ri-yellow);
	margin-bottom: 14px;
}

.site-footer .menu {
	flex-direction: column;
	gap: 9px;
}

.site-footer .menu a {
	font-family: var(--ri-font-body);
	font-size: 14px;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
}

.site-footer .ph {
	border-color: rgba(255, 255, 255, .28);
	color: rgba(255, 255, 255, .55);
	background: none;
}

.site-footer__bottom {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .16);
	font-size: 13px;
	opacity: .75;
}


/* ═══════════════════════════════════════════════════════════════
 * 15. PÁGINAS INTERIORES
 * ═══════════════════════════════════════════════════════════════ */
.section--page-head {
	padding: 46px 0 28px;
	border-bottom: 3px solid var(--ri-text);
	background: var(--ri-bg-alt);
}

.layout {
	display: grid;
	gap: 44px;
}

.layout--sidebar { grid-template-columns: 1fr 310px; }
.layout--split { grid-template-columns: 1.4fr 1fr; }
.layout--sidebar .layout__aside { order: 2; }

.widget {
	margin-bottom: 30px;
	padding-bottom: 26px;
	border-bottom: 1px solid var(--ri-line);
}

.widget__title {
	font-family: var(--ri-font-ui);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--ri-text);
	margin-bottom: 16px;
}

/* Tarjeta genérica (blog, archivos) */
.card {
	background: #fff;
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.card__media { display: block; }

.card__media .ph {
	border: 0;
	border-bottom: 2px dashed var(--ri-line-strong);
	border-radius: 0;
}

.card__body { padding: 20px; }

.card__cat {
	display: inline-block;
	font-family: var(--ri-font-ui);
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-weight: 700;
	color: var(--ri-coral);
	margin-bottom: 8px;
}

.card__title {
	font-size: 26px;
	margin: 0 0 8px;
}

.card__title a { color: var(--ri-text); }
.card__title a:hover { color: var(--ri-brand); text-decoration: none; }

.card__text {
	color: var(--ri-muted);
	font-size: 15px;
	margin: 0 0 10px;
}

.entry__meta {
	font-family: var(--ri-font-ui);
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ri-muted);
	margin: 0;
}

/* Categorías */
.cat-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--ri-line);
	border-left: 5px solid var(--ri-brand);
	border-radius: var(--ri-radius);
	color: var(--ri-text);
}

.cat-card:hover {
	border-left-color: var(--ri-coral);
	text-decoration: none;
}

.cat-card__icon {
	width: 38px;
	height: 38px;
	border: 2px dashed var(--ri-line-strong);
	border-radius: 8px;
}

.cat-card__name {
	font-family: var(--ri-font-display);
	font-size: 28px;
	line-height: 1;
	font-weight: 700;
}

.cat-card__count {
	font-family: var(--ri-font-ui);
	font-size: 11px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--ri-muted);
}

/* Filtros */
.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.filters__chip {
	padding: 9px 16px;
	border: 2px solid var(--ri-line);
	border-radius: 999px;
	font-family: var(--ri-font-ui);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ri-text);
	background: #fff;
}

.filter-group { margin-bottom: 24px; }

.filter-group__title {
	font-family: var(--ri-font-ui);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.filter-group__list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 15px;
	color: var(--ri-muted);
}

.filter-group__list li { padding: 4px 0; }

/* Tabla de rankings */
.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius-lg);
	background: #fff;
}

.ranking-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 720px;
	font-size: 15px;
}

.ranking-table th,
.ranking-table td {
	padding: 13px 16px;
	text-align: left;
	border-bottom: 1px solid var(--ri-line);
}

.ranking-table th {
	background: var(--ri-brand);
	color: #fff;
	font-family: var(--ri-font-ui);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
}

.ranking-table tbody tr:last-child td { border-bottom: 0; }

/* Texto largo */
.prose {
	max-width: 68ch;
	font-size: 18px;
	line-height: 1.7;
}

.prose h2 { font-size: 40px; margin-top: 1.2em; }
.prose h3 { font-size: 30px; margin-top: 1.1em; }

.prose img,
.page-thumb {
	border-radius: var(--ri-radius);
	margin-bottom: 1.2em;
}

.prose a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.prose blockquote {
	margin: 1.6em 0;
	padding: 6px 0 6px 24px;
	border-left: 5px solid var(--ri-yellow);
	font-family: var(--ri-font-display);
	font-size: 32px;
	line-height: 1;
	color: var(--ri-brand);
}

.empty {
	padding: 44px;
	border: 2px dashed var(--ri-line-strong);
	border-radius: var(--ri-radius-lg);
	text-align: center;
	color: var(--ri-muted);
}

/* Formularios */
.form-wireframe {
	margin-top: 30px;
	padding: 28px;
	border: 2px dashed var(--ri-line-strong);
	border-radius: var(--ri-radius-lg);
}

.form-wireframe__note {
	font-size: 13px;
	color: var(--ri-muted);
	margin-bottom: 20px;
}

.field { margin-bottom: 18px; }

.field label {
	display: block;
	font-family: var(--ri-font-ui);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	margin-bottom: 7px;
}

.contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 15px;
}

.contact-list li {
	padding: 12px 0;
	border-bottom: 1px solid var(--ri-line);
}

/* Hero de la plantilla antigua (se conserva por compatibilidad) */
.hero {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 48px;
	align-items: center;
	padding: 32px 22px 48px;
}

.hero__eyebrow {
	font-family: var(--ri-font-ui);
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 11px;
	font-weight: 700;
	color: var(--ri-coral);
	margin: 0 0 12px;
}

.hero__title { font-size: clamp(46px, 6vw, 82px); margin: 0 0 16px; }

.hero__text {
	font-size: 19px;
	color: var(--ri-muted);
	max-width: 46ch;
}

.hero__search {
	display: flex;
	gap: 10px;
	margin: 26px 0;
	max-width: 520px;
}

.hero__stats {
	display: flex;
	gap: 40px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hero__stats strong {
	display: block;
	font-family: var(--ri-font-display);
	font-size: 44px;
	line-height: .9;
	color: var(--ri-brand);
}

.hero__stats span {
	font-family: var(--ri-font-ui);
	font-size: 10px;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--ri-muted);
}

.cta {
	text-align: center;
	padding: 52px 22px;
	background: var(--ri-brand);
	border-radius: var(--ri-radius-lg);
	color: #fff;
}

.cta__title { font-size: clamp(38px, 4.4vw, 58px); color: #fff; }

.cta__text {
	color: rgba(255, 255, 255, .8);
	max-width: 50ch;
	margin: 0 auto 24px;
}


/* ═══════════════════════════════════════════════════════════════
 * 16. COMENTARIOS · PAGINACIÓN · 404
 * ═══════════════════════════════════════════════════════════════ */
.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin: 44px 0;
	padding-top: 22px;
	border-top: 3px solid var(--ri-text);
	font-family: var(--ri-font-ui);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.ri-pagination,
.pagination { margin-top: 40px; }

.pagination .page-numbers {
	display: inline-block;
	padding: 9px 15px;
	margin-right: 5px;
	border: 2px solid var(--ri-line);
	border-radius: 999px;
	font-family: var(--ri-font-ui);
	font-size: 12px;
	font-weight: 700;
	color: var(--ri-text);
}

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

.comments-area {
	margin-top: 52px;
	padding-top: 30px;
	border-top: 3px solid var(--ri-text);
}

.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 30px; }

.comment-body {
	padding: 18px 0;
	border-bottom: 1px solid var(--ri-line);
}

.error-404 {
	text-align: center;
	max-width: 580px;
	margin: 0 auto;
}

.error-404__code {
	font-family: var(--ri-font-display);
	font-size: 190px;
	font-weight: 700;
	color: var(--ri-brand);
	margin: 0;
	line-height: .8;
}

.error-404 .search-form { max-width: 420px; margin: 26px auto; }
.error-404__back { margin-top: 22px; }


/* ═══════════════════════════════════════════════════════════════
 * 17. RESPONSIVE
 * ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
	.lead {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.lead__aside {
		padding-left: 0;
		border-left: 0;
		border-top: 3px solid var(--ri-text);
		padding-top: 24px;
	}

	.measure,
	.interviews,
	.closing {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.opinion { grid-template-columns: 1fr; gap: 26px; }

	.opinion__item {
		border-right: 0;
		padding-right: 0;
		padding-bottom: 24px;
		border-bottom: 1px solid var(--ri-line);
	}

	.opinion__item:last-child {
		border-bottom: 0;
		padding-bottom: 0;
	}

	.interview__portrait .ph { min-height: 320px; }

	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }

	.layout--sidebar,
	.layout--split { grid-template-columns: 1fr; }

	.site-footer__cols { grid-template-columns: repeat(2, 1fr); }
	.hero { grid-template-columns: 1fr; gap: 30px; }

	.ranking__item {
		grid-template-columns: 36px 46px 1fr auto;
		row-gap: 10px;
	}

	.ranking__cta { grid-column: 3 / -1; justify-self: end; }
}

@media (max-width: 782px) {
	.section { padding: 44px 0; }

	.topbar__links { display: none; }

	.masthead { padding: 22px 0 16px; }
	.masthead__rule { margin-top: 16px; height: 4px; }

	.sections-nav__inner { gap: 12px; min-height: 48px; }

	.sections-nav__list {
		gap: 18px;
		overflow-x: auto;
		flex-wrap: nowrap;
		white-space: nowrap;
		scrollbar-width: none;
	}

	.sections-nav__list::-webkit-scrollbar { display: none; }
	.sections-nav__actions { display: none; }

	.nav-toggle { display: block; }
	.site-header__search { display: none; }

	.main-navigation {
		display: none;
		order: 3;
		width: 100%;
		margin: 0;
		padding: 16px 0;
		border-top: 1px solid var(--ri-line);
	}

	.main-navigation.is-open { display: block; }
	.site-header__inner { flex-wrap: wrap; }
	.menu { flex-direction: column; gap: 12px; }

	.story--lead .ph { min-height: 240px; }
	.story--lead .story__excerpt { font-size: 17px; }

	.grid--2,
	.grid--3,
	.grid--4 { grid-template-columns: 1fr; }

	.newsletter { padding: 26px; }
	.newsletter__form { flex-direction: column; }
	.newsletter__form input { border-radius: 999px; }

	.hero__search { flex-direction: column; }
	.hero__stats { gap: 24px; }

	.ranking__item { grid-template-columns: 32px 42px 1fr; }

	.ranking__metric,
	.ranking__cta { grid-column: 2 / -1; }

	.site-footer__cols { grid-template-columns: 1fr; }

	.error-404__code { font-size: 130px; }
}


/* ═══════════════════════════════════════════════════════════════
 * 16 bis. PIE COMPARTIDO DE LAS VARIANTES
 *
 * template-parts/footer-variant.php lo usan las cuatro variantes, así
 * que su MAQUETACIÓN tiene que vivir aquí, en el CSS común. Antes estaba
 * en feed.css y las páginas de bento e inmersiva, que no cargan ese
 * archivo, se quedaban sin rejilla y el pie salía desarmado.
 *
 * Cada variante solo pone el color: .f-foot, .b-foot--full, .sc-foot--full.
 * ═══════════════════════════════════════════════════════════════ */
.ri-foot {
	padding: 48px 0 26px;
}

.ri-foot__cols {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 26px;
	margin-bottom: 32px;
}

.ri-foot__logo {
	width: 190px;
	height: auto;
	margin-bottom: 12px;
}

.ri-foot h3 {
	font-family: var(--ri-font-ui);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ri-yellow);
	margin-bottom: 12px;
}

/*
 * Se apunta a la clase del menú, NO a `ul` a secas.
 *
 * `.ri-foot ul` lleva un elemento en el selector, así que suma más
 * especificidad que `.social` y le imponía `flex-direction: column`:
 * los iconos de redes salían apilados en vertical.
 */
.ri-foot__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.ri-foot__menu li {
	padding: 4px 0;
}

/* Las redes siempre en fila, pase lo que pase por encima */
.ri-foot .social {
	flex-direction: row;
	flex-wrap: wrap;
}

.ri-foot a {
	color: rgba(255, 255, 255, .8);
	text-decoration: none;
	font-family: var(--ri-font-body);
	font-size: 14px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

.ri-foot a:hover {
	color: var(--ri-yellow);
	text-decoration: none;
}

.ri-foot__tagline {
	font-family: var(--ri-font-ui);
	font-size: 10px;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .65;
	margin: 0;
}

.ri-foot .social {
	margin-top: 14px;
}

.ri-foot .social a {
	border-radius: 50%;
}

.ri-foot .social a:hover {
	background: rgba(255, 255, 255, .14);
	transform: translateY(-2px);
}

.ri-foot__bottom {
	margin-top: 8px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, .14);
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	font-family: var(--ri-font-ui);
	font-size: 11px;
	letter-spacing: .05em;
	text-transform: uppercase;
}

@media (max-width: 1024px) {
	.ri-foot__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 782px) {
	.ri-foot__cols { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════
 * 17 ter. REMATES
 *
 * Hijos de rejilla y detalles que solo salen a la luz con contenido
 * real: títulos largos, nombres sin espacios, paginación de WordPress.
 * ═══════════════════════════════════════════════════════════════ */

/*
 * min-width: 0 en los hijos de grid y flex.
 *
 * Por defecto valen `min-width: auto`, o sea que NO pueden encogerse por
 * debajo del ancho de su contenido. Con un titular largo o una tabla, la
 * columna se estira y desborda la página en horizontal. Es el fallo de
 * maquetación más común con CSS Grid y no se ve hasta que entra contenido
 * de verdad.
 */
.layout__main,
.lead__main,
.measure__main,
.measure__side,
.ranking__body,
.interview__body,
.site-footer__col,
.data-row__name,
.sc-sticky__left {
	min-width: 0;
}

/* Nombres largos sin espacios no rompen la fila del ranking */
.ranking__name,
.ranking__handle,
.data-row__name {
	overflow-wrap: anywhere;
}

/* Tira del ticker: sin la clase .section no tenía respiro vertical */
.section--ticker {
	padding: 6px 0 2px;
}

/* Paginación de wp_link_pages dentro de una entrada */
.page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	margin: 2em 0;
	font-family: var(--ri-font-ui);
	font-size: 12px;
	font-weight: 700;
}

.page-links a,
.page-links > span:not(.page-links-title) {
	display: inline-block;
	padding: 7px 13px;
	border: 2px solid var(--ri-line);
	border-radius: 999px;
	color: var(--ri-text);
	text-decoration: none;
}

.page-links a:hover {
	border-color: var(--ri-brand);
	color: var(--ri-brand);
}

/* Comentarios */
.comments-title {
	font-size: 32px;
	margin-bottom: 24px;
}

.no-comments {
	padding: 18px 0;
	font-family: var(--ri-font-ui);
	font-size: 12px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--ri-muted);
}

/*
 * OJO: aquí NO va `overflow-x: hidden` en html o body.
 *
 * Es el parche habitual contra el scroll horizontal, pero convierte al
 * elemento en contenedor de scroll y eso ROMPE todos los `position: sticky`
 * de dentro: la nav de secciones, la columna lateral del feed y los pasos
 * de la variante inmersiva dejarían de pegarse.
 *
 * El desbordamiento se corrige en su origen, con los `min-width: 0` de
 * arriba y el `overflow-x: auto` de las tablas y los carruseles.
 */


/* ═══════════════════════════════════════════════════════════════
 * 17 bis. BARRA DE ADMINISTRACIÓN DE WORDPRESS
 *
 * Con sesión iniciada, WordPress mete una barra fija de 32 px arriba.
 * Todo lo que va pegado con `position: sticky; top: 0` se queda DEBAJO
 * de ella. Hay que desplazarlo mientras esa barra exista.
 *
 * Por debajo de 782 px la barra deja de ser fija (pasa a absolute) y
 * mide 46 px, así que ahí NO hay que compensar nada.
 * ═══════════════════════════════════════════════════════════════ */
.admin-bar .sections-nav,
.admin-bar .site-header,
.admin-bar .app-bar,
.admin-bar .b-head,
.admin-bar .br-head,
.admin-bar .sc-head {
	top: 32px;
}

.admin-bar .side-nav,
.admin-bar .rail__sticky,
.admin-bar .ad--sticky,
.admin-bar .sc-sticky__left {
	top: 52px;
}

.admin-bar .ftabs {
	top: 46px;
}

.admin-bar .sc-hero {
	min-height: calc(100svh - 32px);
}

@media screen and (max-width: 782px) {
	.admin-bar .sections-nav,
	.admin-bar .site-header,
	.admin-bar .app-bar,
	.admin-bar .b-head,
	.admin-bar .br-head,
	.admin-bar .sc-head,
	.admin-bar .side-nav,
	.admin-bar .rail__sticky,
	.admin-bar .ad--sticky,
	.admin-bar .sc-sticky__left,
	.admin-bar .ftabs {
		top: 0;
	}

	.admin-bar .ftabs { top: 8px; }
	.admin-bar .sc-hero { min-height: 100svh; }
}


/* ═══════════════════════════════════════════════════════════════
 * 18. ICONOS · Lucide v1.28.0 (ISC)
 *
 * Sprite inline en assets/img/icons.svg. Se usa así:
 *     <svg class="icon"><use href="#i-search"></use></svg>
 *
 * OJO: el contenido de un <symbol> hereda del <use>, NO del <svg> raíz
 * del sprite. Por eso fill/stroke se declaran aquí y no en el sprite.
 * ═══════════════════════════════════════════════════════════════ */
.icon {
	width: 1em;
	height: 1em;
	display: inline-block;
	vertical-align: -.14em;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.icon--sm { width: .8em; height: .8em; stroke-width: 2.4; }
.icon--lg { width: 1.5em; height: 1.5em; stroke-width: 1.75; }
.icon--xl { width: 2.4em; height: 2.4em; stroke-width: 1.5; }

/* Icono dentro de un botón o enlace: separación y desplazamiento al pasar */
.btn .icon { margin-left: 8px; transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }

.icon-left { margin-right: 7px; margin-left: 0; }

/* Enlaces sociales del topbar y del pie */
.social {
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.social a {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: 15px;
	transition: background .2s ease, transform .2s ease;
}

.topbar .social a:hover {
	background: rgba(255, 255, 255, .16);
	transform: translateY(-2px);
}

/* Metadatos con icono */
.meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

/* Entradas del ticker: icono + titular en línea */
.ticker__group li {
	display: flex;
	align-items: center;
	gap: 7px;
	color: var(--ri-coral);
}

.site-footer .social a:hover {
	background: rgba(255, 255, 255, .14);
	transform: translateY(-2px);
}


/* ═══════════════════════════════════════════════════════════════
 * 19. ANIMACIONES
 *
 * Todo lo de aquí se apaga por completo con prefers-reduced-motion
 * al final de la sección. No es opcional: hay gente a la que el
 * movimiento le provoca mareo real.
 * ═══════════════════════════════════════════════════════════════ */

/* --- 19.1 Aparición al hacer scroll --- */
.js .reveal {
	opacity: 0;
	transform: translateY(22px);
	transition:
		opacity .6s cubic-bezier(.22, .61, .36, 1),
		transform .6s cubic-bezier(.22, .61, .36, 1);
	transition-delay: var(--d, 0ms);
	will-change: opacity, transform;
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* Variantes de dirección */
.reveal--left  { transform: translateX(-26px); }
.reveal--right { transform: translateX(26px); }
.reveal--zoom  { transform: scale(.96); }

.reveal--left.is-visible,
.reveal--right.is-visible,
.reveal--zoom.is-visible { transform: none; }

/* --- 19.2 Zoom suave de la foto de la nota --- */
.story__media {
	overflow: hidden;
	border-radius: var(--ri-radius);
}

.story__media img,
.story__media .ph,
.card__media img,
.card__media .ph {
	transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}

.story:hover .story__media img,
.story:hover .story__media .ph,
.card:hover .card__media img,
.card:hover .card__media .ph {
	transform: scale(1.045);
}

/* --- 19.3 Filete de marca: se despliega al cargar --- */
.masthead__rule span {
	transform: scaleX(0);
	transform-origin: left;
	animation: ri-rule .55s cubic-bezier(.22, .61, .36, 1) forwards;
}

.masthead__rule span:nth-child(1) { animation-delay: .05s; }
.masthead__rule span:nth-child(2) { animation-delay: .13s; }
.masthead__rule span:nth-child(3) { animation-delay: .21s; }
.masthead__rule span:nth-child(4) { animation-delay: .29s; }
.masthead__rule span:nth-child(5) { animation-delay: .37s; }

@keyframes ri-rule {
	to { transform: scaleX(1); }
}

/* --- 19.4 Ticker en marquesina --- */
.ticker__track {
	display: flex;
	gap: 30px;
	overflow: hidden;
	flex: 1;
	mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent);
}

.ticker__group {
	display: flex;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
	white-space: nowrap;
	flex-shrink: 0;
	animation: ri-marquee 38s linear infinite;
}

.ticker__track:hover .ticker__group {
	animation-play-state: paused;
}

@keyframes ri-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(calc(-100% - 30px)); }
}

/* --- 19.5 Contador de las cajas de dato --- */
.stat-box__num {
	font-variant-numeric: tabular-nums;
}

/* --- 19.6 Botones y tarjetas --- */
.btn {
	transform: translateY(0);
	transition:
		background .18s ease,
		border-color .18s ease,
		color .18s ease,
		transform .18s ease,
		box-shadow .18s ease;
}

.btn--primary:hover,
.btn--coral:hover,
.btn--yellow:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(29, 24, 48, .22);
}

.btn:active { transform: translateY(0); }

.card,
.stat-box,
.cat-card {
	transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
}

.card:hover,
.stat-box:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(29, 24, 48, .1);
}

/* --- 19.7 Fila de ranking --- */
.ranking__item {
	transition: background .2s ease;
}

.ranking__item:hover {
	background: var(--ri-bg-alt);
}

.ranking__pos {
	transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

.ranking__item:hover .ranking__pos {
	transform: scale(1.18);
}

/* --- 19.8 Nav de secciones --- */
.sections-nav {
	transition: box-shadow .25s ease, padding .25s ease;
}

.sections-nav__list a {
	transition: color .18s ease, border-color .18s ease;
}

/* --- 19.9 Antetítulo en pastilla: latido discreto en "lo último" --- */
.ticker__label {
	position: relative;
}

.ticker__label::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: inherit;
	animation: ri-pulse 2.4s ease-out infinite;
	z-index: -1;
}

@keyframes ri-pulse {
	0%   { transform: scale(1); opacity: .6; }
	70%  { transform: scale(1.35); opacity: 0; }
	100% { transform: scale(1.35); opacity: 0; }
}

/* --- 19.10 Carga de la portada --- */
.story--lead .story__title,
.story--lead .story__excerpt,
.story--lead .kicker {
	animation: ri-up .7s cubic-bezier(.22, .61, .36, 1) backwards;
}

.story--lead .kicker       { animation-delay: .08s; }
.story--lead .story__title { animation-delay: .16s; }
.story--lead .story__excerpt { animation-delay: .26s; }

@keyframes ri-up {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: none; }
}

/* --- 19.11 APAGADO TOTAL --- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}

	.reveal {
		opacity: 1 !important;
		transform: none !important;
	}

	.masthead__rule span { transform: scaleX(1); }

	.ticker__group { animation: none; }
	.ticker__track { overflow-x: auto; }

	.ticker__label::after { display: none; }
}


/* ═══════════════════════════════════════════════════════════════
 * 20. PUBLICIDAD
 *
 * Formatos estándar IAB. La etiqueta "Publicidad" NO es decorativa:
 * la Ley Federal de Protección al Consumidor (art. 32) exige que la
 * publicidad sea identificable y no induzca a error, y el código de
 * autorregulación de la CONAR lo refuerza. No quitarla.
 * ═══════════════════════════════════════════════════════════════ */
.ad {
	display: block;
	margin: 0 auto;
	text-align: center;
}

.ad__label {
	display: block;
	margin-bottom: 6px;
	font-family: var(--ri-font-ui);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ri-muted);
	opacity: .8;
}

.ad__slot {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	max-width: 100%;
	overflow: hidden;
	border: 1px dashed var(--ri-line-strong);
	border-radius: var(--ri-radius);
	color: var(--ri-muted);
	font-family: var(--ri-font-ui);
	font-size: 11px;
	letter-spacing: .06em;

	/* Trama de puntos de marca: el hueco se lee como espacio reservado,
	   no como un fallo de maquetación. */
	background:
		radial-gradient(rgba(55, 40, 121, .1) 1px, transparent 1px) 0 0 / 14px 14px,
		linear-gradient(150deg, #faf9fd, #efedf7);
}

/* Cuando ya hay creatividad dentro, fuera la caja de reserva.
 *
 * OJO: aquí NO vale `.ad__slot:not(:empty)`. El hueco vacío lleva su
 * propio marcado (.ad__ph con icono, nombre de formato y medidas), así
 * que NUNCA está vacío y esa regla se aplicaba siempre: dejaba el hueco
 * sin fondo ni borde y la portada mostraba tres rectángulos de 970×250
 * completamente en blanco.
 *
 * La señal buena es `.ad--live`, que ri_ad() añade solo cuando el área
 * de widgets tiene un anuncio de verdad.
 */
.ad--live .ad__slot {
	background: none;
	border: 0;
	width: auto;
	height: auto;
}

/* --- Contenido del hueco de reserva ---
 *
 * Vive aquí y no en la hoja de una variante: lo pinta ri_ad() y por tanto
 * lo usan las cinco portadas. En feed.css solo estaba disponible para la
 * variante del feed, y en el resto salía sin estilo.
 */
.ad__ph {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 9px;
	padding: 16px;
	text-align: center;
}

.ad__ph .icon {
	width: 34px;
	height: 34px;
	padding: 9px;
	box-sizing: content-box;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--ri-brand), var(--ri-brand-violet));
	color: #fff;
	stroke-width: 1.7;
	margin: 0;
}

.ad__ph b {
	font-family: var(--ri-font-ui);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ri-text);
}

.ad__ph em {
	font-style: normal;
	padding: 3px 11px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--ri-line);
	font-family: var(--ri-font-ui);
	font-size: 10px;
	letter-spacing: .08em;
	color: var(--ri-muted);
}

.ad__ph small {
	font-family: var(--ri-font-ui);
	font-size: 9px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ri-muted);
	opacity: .75;
	max-width: 22ch;
	line-height: 1.5;
}

/* Sobre fondo oscuro el texto tiene que aclararse */
.section--interviews .ad__ph b,
.sc-ad .ad__ph b,
.cell--ad .ad__ph b {
	color: #fff;
}

/* --- Formatos --- */
.ad--billboard   .ad__slot { width: 970px; height: 250px; }
.ad--leaderboard .ad__slot { width: 728px; height: 90px; }
.ad--mpu         .ad__slot { width: 300px; height: 250px; }
.ad--halfpage    .ad__slot { width: 300px; height: 600px; }
.ad--mobile      .ad__slot { width: 320px; height: 100px; }

/* Separadores según dónde caiga */
.ad-band {
	padding: 30px 0;
	background: var(--ri-bg-alt);
	border-top: 1px solid var(--ri-line);
	border-bottom: 1px solid var(--ri-line);
}

.ad-band .ad__slot {
	background: #fff;
}

.ad--inline {
	margin: 40px auto;
}

/* Lateral pegajoso: acompaña el scroll de la columna */
.ad--sticky {
	position: sticky;
	top: 78px;
	margin-top: 26px;
}

/* Nativo dentro del listado: parece una nota, pero va etiquetado */
.ad--native {
	text-align: left;
	padding: 20px;
	border: 1px solid var(--ri-line);
	border-left: 4px solid var(--ri-yellow);
	border-radius: var(--ri-radius);
	background: #fffdf5;
}

.ad--native .ad__slot {
	background: none;
	border: 0;
	display: block;
	width: auto;
	height: auto;
	text-align: left;
	font-family: inherit;
	font-size: inherit;
	letter-spacing: 0;
	color: inherit;
}

@media (max-width: 1024px) {
	.ad--billboard .ad__slot { width: 728px; height: 90px; }
}

@media (max-width: 782px) {
	.ad--billboard   .ad__slot,
	.ad--leaderboard .ad__slot { width: 320px; height: 100px; }

	.ad--halfpage .ad__slot { width: 300px; height: 250px; }

	.ad-band { padding: 22px 0; }
	.ad--sticky { position: static; }
}
