/* ==========================================================================
   Roja Indirecta — estilos principales (mobile-first)
   ========================================================================== */

:root {
	--ri-red: #d7141a;
	--ri-red-dark: #9e0e12;
	--ri-red-soft: #fde8e9;
	--ri-yellow: #f5b800;
	--ri-ink: #111214;
	--ri-ink-2: #1c1e22;
	--ri-ink-3: #2a2d33;
	--ri-line-dark: #33363d;
	--ri-text: #16181c;
	--ri-muted: #5b6068;
	--ri-line: #e3e5e9;
	--ri-bg: #f3f4f6;
	--ri-card: #ffffff;
	--ri-white: #ffffff;

	--ri-font-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
	--ri-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--ri-radius: 8px;
	--ri-radius-sm: 4px;
	--ri-shadow: 0 1px 2px rgba(17, 18, 20, .06), 0 2px 8px rgba(17, 18, 20, .06);
	--ri-shadow-hover: 0 6px 24px rgba(17, 18, 20, .14);
	--ri-max: 1280px;
	--ri-gutter: 16px;
	--ri-header-h: 60px;
	--ri-ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
	:root { --ri-gutter: 24px; --ri-header-h: 68px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ri-header-h) + 16px); }
body {
	margin: 0;
	background: var(--ri-bg);
	color: var(--ri-text);
	font-family: var(--ri-font);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ri-red); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ri-yellow); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
.ri-icon { width: 1.25em; height: 1.25em; flex: none; }

.container { width: 100%; max-width: var(--ri-max); margin-inline: auto; padding-inline: var(--ri-gutter); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px; background: var(--ri-yellow); color: var(--ri-ink); font-weight: 700;
}

.btn, .comment-form .submit {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--ri-red); color: #fff; border: 0; border-radius: 999px;
	padding: 11px 24px; font-family: var(--ri-font-head); font-weight: 700; font-size: 17px;
	letter-spacing: .04em; text-transform: uppercase; transition: background .2s, transform .2s;
}
.btn:hover, .comment-form .submit:hover { background: var(--ri-red-dark); color: #fff; transform: translateY(-1px); }

.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px;
	border: 0; border-radius: 50%; background: transparent; color: inherit; transition: background .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Títulos de sección ---------- */
.section-title {
	display: flex; align-items: center; gap: 12px;
	font-family: var(--ri-font-head); font-weight: 800; font-size: 24px;
	text-transform: uppercase; letter-spacing: .02em; margin: 0 0 16px; color: var(--ri-ink);
}
.section-title span { position: relative; padding-left: 14px; white-space: nowrap; }
.section-title span::before {
	content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 5px; border-radius: 2px;
	background: linear-gradient(180deg, var(--ri-red) 0 60%, var(--ri-yellow) 60% 100%);
}
.section-title::after { content: ""; flex: 1; height: 2px; background: var(--ri-line); }
.section-title--light { color: #fff; }
.section-title--light::after { background: var(--ri-line-dark); }

.badge {
	display: inline-block; font-family: var(--ri-font-head); font-weight: 700; font-size: 13px;
	text-transform: uppercase; letter-spacing: .06em; color: var(--ri-red); margin-bottom: 6px;
}
.badge:hover { color: var(--ri-red-dark); }
.badge--hero {
	background: var(--ri-red); color: #fff; padding: 4px 10px; border-radius: var(--ri-radius-sm);
	box-shadow: 4px 4px 0 var(--ri-yellow);
}
.badge--hero:hover { color: #fff; background: var(--ri-red-dark); }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--ri-muted); }
.post-meta a { font-weight: 600; color: var(--ri-text); }
.post-meta__read { display: inline-flex; align-items: center; gap: 4px; }
.post-meta__read .ri-icon { width: 15px; height: 15px; }

/* ==========================================================================
   Barra de marcadores
   ========================================================================== */
.scorebar { background: var(--ri-ink-2); color: #fff; border-bottom: 1px solid #000; position: relative; z-index: 60; }
.scorebar__tabs {
	display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
	padding: 0 var(--ri-gutter); background: var(--ri-ink); border-bottom: 1px solid var(--ri-line-dark);
}
.scorebar__tabs::-webkit-scrollbar { display: none; }
.scorebar__tab {
	position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px;
	background: none; border: 0; color: #a9adb5; padding: 9px 12px 8px;
	font-family: var(--ri-font-head); font-weight: 700; font-size: 14px; letter-spacing: .06em;
	transition: color .2s;
}
.scorebar__tab::after {
	content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px;
	background: var(--ri-red); border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform .25s var(--ri-ease);
}
.scorebar__tab:hover { color: #fff; }
.scorebar__tab.is-active { color: #fff; }
.scorebar__tab.is-active::after { transform: scaleX(1); }
.scorebar__live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ri-red); box-shadow: 0 0 0 0 rgba(215, 20, 26, .7); animation: ri-pulse 1.6s infinite; }

.scorebar__body { position: relative; display: flex; align-items: stretch; }
.scorebar__games {
	flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
	scroll-behavior: smooth; min-height: 78px;
}
.scorebar__games::-webkit-scrollbar { display: none; }
.scorebar__arrow {
	flex: none; width: 34px; border: 0; background: var(--ri-ink-2); color: #fff; display: none;
	align-items: center; justify-content: center; transition: background .2s, opacity .2s; z-index: 1;
}
.scorebar__arrow:hover:not(:disabled) { background: var(--ri-ink-3); }
.scorebar__arrow:disabled { opacity: .25; cursor: default; }
.scorebar__arrow--prev { box-shadow: 6px 0 12px rgba(0, 0, 0, .35); }
.scorebar__arrow--next { box-shadow: -6px 0 12px rgba(0, 0, 0, .35); }
@media (min-width: 768px) { .scorebar__arrow { display: flex; } }

.game {
	flex: none; scroll-snap-align: start; width: 148px; padding: 8px 12px 9px;
	border-right: 1px solid var(--ri-line-dark); display: flex; flex-direction: column; justify-content: center; gap: 3px;
	font-size: 13px; transition: background .2s;
}
.game:hover { background: rgba(255, 255, 255, .04); }
.game__status { font-size: 11px; color: #a9adb5; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 1px; }
.game__status b { color: #fff; font-weight: 600; }
.game__status--live { color: #ff5a5f; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.game__status--live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ri-red); animation: ri-pulse 1.6s infinite; }
.game__status--final { color: #fff; font-weight: 700; }
.game__team { display: flex; align-items: center; gap: 7px; line-height: 20px; }
.game__team img, .game__nologo { width: 20px; height: 20px; object-fit: contain; flex: none; }
.game__nologo { display: grid; place-items: center; border-radius: 50%; background: var(--ri-ink-3); font-size: 10px; font-weight: 700; }
.game__abbr { font-weight: 700; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game__score { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 14px; }
.game__record { font-size: 11px; color: #8b9099; }
.game.game--in { background: linear-gradient(180deg, rgba(215, 20, 26, .1), transparent 70%); }
.game.game--post .is-loser { color: #8b9099; }
.game--event { width: 200px; }
.game__title { font-weight: 600; font-size: 12px; line-height: 1.3; }
.game--skeleton span { display: block; height: 14px; border-radius: 4px; background: linear-gradient(90deg, #26292f 25%, #31353c 50%, #26292f 75%); background-size: 200% 100%; animation: ri-shimmer 1.2s infinite; }
.game--skeleton span + span { width: 70%; margin-top: 8px; }
.scorebar__empty, .scorebar__noscript { margin: 0; padding: 0 var(--ri-gutter); display: flex; align-items: center; color: #a9adb5; font-size: 14px; min-height: 78px; }

@keyframes ri-pulse {
	0% { box-shadow: 0 0 0 0 rgba(215, 20, 26, .7); }
	70% { box-shadow: 0 0 0 7px rgba(215, 20, 26, 0); }
	100% { box-shadow: 0 0 0 0 rgba(215, 20, 26, 0); }
}
@keyframes ri-shimmer { to { background-position: -200% 0; } }

/* ==========================================================================
   Cabecera
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50; background: var(--ri-ink); color: #fff;
	box-shadow: 0 2px 0 0 transparent; transition: box-shadow .25s;
}
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
	background: linear-gradient(90deg, var(--ri-red) 0 70%, var(--ri-yellow) 70% 100%);
}
.site-header.is-compact { box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.site-header__inner { display: flex; align-items: center; gap: 12px; height: var(--ri-header-h); transition: height .25s var(--ri-ease); }
.site-header.is-compact .site-header__inner { height: 54px; }

.site-logo { display: flex; align-items: center; gap: 10px; flex: none; color: #fff; }
.site-logo:hover { color: #fff; }
.site-logo__img { width: auto; height: 46px; transition: height .25s var(--ri-ease), transform .3s; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4)); }
.site-logo:hover .site-logo__img { transform: rotate(-6deg) scale(1.05); }
.site-header.is-compact .site-logo__img { height: 38px; }
.site-logo__text { display: none; flex-direction: column; line-height: 1; }
.site-logo__name { font-family: var(--ri-font-head); font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
.site-logo__tagline { font-size: 11px; color: var(--ri-yellow); text-transform: uppercase; letter-spacing: .14em; margin-top: 3px; font-weight: 600; }
@media (min-width: 480px) { .site-logo__text { display: flex; } }
@media (min-width: 768px) { .site-logo__img { height: 54px; } }

.primary-nav { display: none; flex: 1; min-width: 0; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a {
	display: flex; align-items: center; height: var(--ri-header-h); padding: 0 12px;
	font-family: var(--ri-font-head); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .04em;
	color: #e7e8ea; position: relative; transition: color .2s, height .25s var(--ri-ease);
}
.site-header.is-compact .primary-nav .menu > li > a { height: 54px; }
.primary-nav .menu > li > a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 12px; height: 2px;
	background: var(--ri-red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ri-ease);
}
.primary-nav .menu > li:hover > a, .primary-nav .menu > .current-menu-item > a, .primary-nav .menu > .current-menu-ancestor > a, .primary-nav .menu > .current-cat > a { color: #fff; }
.primary-nav .menu > li:hover > a::after, .primary-nav .menu > .current-menu-item > a::after, .primary-nav .menu > .current-cat > a::after { transform: scaleX(1); }
.primary-nav .menu-item-has-children > a { padding-right: 24px; }
.primary-nav .menu-item-has-children > a::before {
	content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .7;
}
.primary-nav .sub-menu, .primary-nav .children {
	list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 230px;
	background: var(--ri-ink-2); border-top: 3px solid var(--ri-red); border-radius: 0 0 var(--ri-radius) var(--ri-radius);
	box-shadow: 0 16px 40px rgba(0, 0, 0, .4); opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: 9px 18px; font-size: 14px; font-weight: 500; color: #d3d5d9; }
.primary-nav .sub-menu a:hover { background: var(--ri-ink-3); color: #fff; }
@media (min-width: 1024px) {
	.primary-nav { display: block; }
	.nav-toggle { display: none !important; }
	.primary-nav .menu { flex-wrap: nowrap; overflow: visible; }
}

.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.install-btn {
	display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(245, 184, 0, .6); color: var(--ri-yellow);
	background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; transition: background .2s, color .2s;
}
.install-btn:hover { background: var(--ri-yellow); color: var(--ri-ink); }
.install-btn .ri-icon { width: 16px; height: 16px; }
.install-btn[hidden] { display: none; }
@media (max-width: 479px) { .site-header .install-btn span { display: none; } }

.search-panel { background: var(--ri-ink-2); border-top: 1px solid var(--ri-line-dark); padding: 14px 0; animation: ri-drop .2s var(--ri-ease); }
@keyframes ri-drop { from { opacity: 0; transform: translateY(-6px); } }

.search-form { display: flex; align-items: center; background: #fff; border-radius: 999px; overflow: hidden; border: 2px solid transparent; transition: border-color .2s; }
.search-form:focus-within { border-color: var(--ri-red); }
.search-form__input { flex: 1; min-width: 0; border: 0; padding: 12px 18px; font-size: 16px; background: transparent; color: var(--ri-text); outline: none; }
.search-form__btn { border: 0; background: var(--ri-red); color: #fff; width: 48px; height: 46px; display: grid; place-items: center; }
.search-form__btn:hover { background: var(--ri-red-dark); }

/* Menú rápido */
.quick-nav { background: #fff; border-bottom: 1px solid var(--ri-line); margin-top: 3px; }
.quick-nav__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.quick-nav__menu::-webkit-scrollbar { display: none; }
.quick-nav__menu a { display: block; padding: 10px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ri-muted); }
.quick-nav__menu a:hover, .quick-nav__menu .current-menu-item a { color: var(--ri-red); }

/* Off-canvas */
.offcanvas { position: fixed; inset: 0; z-index: 200; }
.offcanvas__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .28s; backdrop-filter: blur(2px); }
.offcanvas__panel {
	position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 360px); background: var(--ri-ink); color: #fff;
	padding: 16px; overflow-y: auto; transform: translateX(-100%); transition: transform .28s var(--ri-ease);
	display: flex; flex-direction: column; gap: 18px; border-right: 3px solid var(--ri-red);
}
.offcanvas.is-open .offcanvas__backdrop { opacity: 1; }
.offcanvas.is-open .offcanvas__panel { transform: none; }
.offcanvas__head { display: flex; align-items: center; justify-content: space-between; }
.offcanvas__head .site-logo__img { height: 56px; }
.mobile-menu, .offcanvas__nav .menu { list-style: none; margin: 0; padding: 0; }
.mobile-menu li, .offcanvas__nav .menu li { position: relative; border-bottom: 1px solid var(--ri-line-dark); }
.mobile-menu a, .offcanvas__nav .menu a { display: block; padding: 13px 44px 13px 4px; font-family: var(--ri-font-head); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .03em; }
.mobile-menu .sub-menu { list-style: none; margin: 0; padding: 0 0 8px 12px; display: none; }
.mobile-menu .sub-menu li { border: 0; }
.mobile-menu .sub-menu a { font-family: var(--ri-font); font-size: 15px; font-weight: 500; text-transform: none; padding: 8px 4px; color: #c9ccd1; }
.mobile-menu li.is-open > .sub-menu { display: block; }
.submenu-toggle { position: absolute; right: 0; top: 6px; width: 40px; height: 40px; border: 0; background: none; color: #fff; display: grid; place-items: center; transition: transform .2s; }
li.is-open > .submenu-toggle { transform: rotate(180deg); }

/* Última hora */
.breaking { background: var(--ri-red); color: #fff; margin-top: 3px; overflow: hidden; }
.quick-nav + .breaking { margin-top: 0; }
.breaking__inner { display: flex; align-items: center; gap: 14px; height: 40px; }
.breaking__label {
	flex: none; background: var(--ri-yellow); color: var(--ri-ink); font-family: var(--ri-font-head); font-weight: 800;
	text-transform: uppercase; font-size: 14px; letter-spacing: .06em; padding: 4px 10px; border-radius: 3px; position: relative;
}
.breaking__track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.breaking__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; white-space: nowrap; width: max-content; }
.breaking__list.is-animated { animation: ri-ticker 60s linear infinite; }
.breaking:hover .breaking__list { animation-play-state: paused; }
.breaking__list li { font-size: 14px; font-weight: 600; position: relative; }
.breaking__list li::before { content: "•"; position: absolute; left: -24px; color: var(--ri-yellow); }
.breaking__list a:hover { color: var(--ri-yellow); }
@keyframes ri-ticker { to { transform: translateX(-50%); } }
@media (max-width: 599px) { .breaking__label { font-size: 12px; } }

/* ==========================================================================
   Anuncios
   ========================================================================== */
.ad { position: relative; margin: 20px auto; text-align: center; overflow: hidden; }
.ad__label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #9aa0a8; margin-bottom: 4px; }
.ad--leaderboard { min-height: 116px; max-width: 970px; }
.ad--rectangle { min-height: 280px; }
.ad--wide { min-height: 120px; }
.ad--incontent { min-height: 250px; margin: 28px 0; }
@media (min-width: 768px) { .ad--leaderboard { min-height: 110px; } }
.ad--placeholder {
	display: grid; place-items: center; border: 2px dashed #c4c8ce; border-radius: var(--ri-radius);
	background: repeating-linear-gradient(45deg, #fafafa 0 10px, #f1f2f4 10px 20px); color: var(--ri-muted); font-size: 13px; font-weight: 600;
}
.header-ad .ad, .footer-ad .ad { margin: 16px auto; }

/* ==========================================================================
   Carrusel principal
   ========================================================================== */
.hero { display: grid; gap: 12px; margin: 20px 0 28px; }
@media (min-width: 1024px) { .hero { grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 16px; } }

.hero__stage { position: relative; border-radius: var(--ri-radius); overflow: hidden; background: var(--ri-ink); box-shadow: 0 10px 40px rgba(17, 18, 20, .25); isolation: isolate; }
.hero__track { position: relative; aspect-ratio: 4 / 5; }
@media (min-width: 600px) { .hero__track { aspect-ratio: 16 / 10; } }
@media (min-width: 1024px) { .hero__track { aspect-ratio: auto; height: 100%; min-height: 500px; } }

.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s var(--ri-ease), visibility .8s; }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media img { transform: scale(1.08); transition: transform 7s linear; }
.hero__slide.is-active .hero__media img { transform: scale(1); }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(17, 18, 20, 0) 30%, rgba(17, 18, 20, .55) 55%, rgba(17, 18, 20, .96) 100%),
		linear-gradient(90deg, rgba(158, 14, 18, .35), transparent 55%);
}
.hero__content {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 18px 64px; color: #fff; z-index: 2;
	transform: translateY(18px); opacity: 0; transition: transform .7s .15s var(--ri-ease), opacity .7s .15s;
}
.hero__slide.is-active .hero__content { transform: none; opacity: 1; }
.hero__title {
	font-family: var(--ri-font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .005em;
	font-size: clamp(28px, 6.4vw, 54px); line-height: .98; margin: 12px 0 10px; text-wrap: balance;
	text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}
.hero__title a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--ri-red); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.hero__excerpt { display: none; color: #d6d8dc; margin: 0 0 12px; max-width: 640px; font-size: 16px; }
.hero .post-meta { color: #c4c7cc; }
@media (min-width: 768px) {
	.hero__content { padding: 32px 36px 72px; }
	.hero__excerpt { display: block; }
}

.hero__controls { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 3; display: flex; align-items: center; gap: 12px; }
@media (min-width: 768px) { .hero__controls { left: 36px; right: 28px; bottom: 24px; } }
.hero__nav {
	width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(17, 18, 20, .45);
	color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .2s, border-color .2s;
}
.hero__nav:hover { background: var(--ri-red); border-color: var(--ri-red); }
.hero__nav--next { order: 3; }
.hero__dots { display: flex; gap: 6px; flex: 1; }
.hero__dot { flex: 1; max-width: 56px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.hero__dot::before { content: ""; position: absolute; inset: -10px 0; }
.hero__dot span { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active span { transform: scaleX(1); }
.hero.is-playing .hero__dot.is-active span { animation: ri-progress var(--hero-delay, 6000ms) linear forwards; background: var(--ri-yellow); }
.hero.is-paused .hero__dot.is-active span, .hero.is-paused .hero__thumb.is-active .hero__progress { animation-play-state: paused; }
@keyframes ri-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero.is-single .hero__controls, .hero.is-single .hero__thumbs { display: none; }

.hero__thumbs { list-style: none; margin: 0; padding: 0; display: none; }
@media (min-width: 1024px) {
	.hero__thumbs { display: flex; flex-direction: column; gap: 8px; }
	.hero__dots { display: none; }
	.hero__controls { left: auto; width: auto; }
}
.hero__thumbs li { flex: 1; display: flex; }
.hero__thumb {
	position: relative; flex: 1; display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
	padding: 10px; border: 0; border-radius: var(--ri-radius); background: var(--ri-card); color: var(--ri-text);
	box-shadow: var(--ri-shadow); overflow: hidden; transition: background .25s, color .25s, transform .25s var(--ri-ease);
}
.hero__thumb::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ri-red); transform: scaleY(0); transition: transform .25s var(--ri-ease); }
.hero__thumb:hover { transform: translateX(3px); }
.hero__thumb.is-active { background: var(--ri-ink); color: #fff; }
.hero__thumb.is-active::before { transform: scaleY(1); }
.hero__thumb-img { position: relative; flex: none; width: 104px; aspect-ratio: 16 / 10; border-radius: var(--ri-radius-sm); overflow: hidden; background: var(--ri-ink-2); }
.hero__thumb-img img { width: 100%; height: 100%; object-fit: cover; }
.hero__thumb-img .play-badge { transform: scale(.6); }
.hero__thumb-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hero__thumb-cat { font-family: var(--ri-font-head); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ri-red); }
.hero__thumb.is-active .hero__thumb-cat { color: var(--ri-yellow); }
.hero__thumb-title { font-size: 14px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ri-yellow); transform: scaleX(0); transform-origin: left; }
.hero.is-playing .hero__thumb.is-active .hero__progress { animation: ri-progress var(--hero-delay, 6000ms) linear forwards; }

/* ==========================================================================
   Tarjetas
   ========================================================================== */
.card { position: relative; background: var(--ri-card); border-radius: var(--ri-radius); overflow: hidden; box-shadow: var(--ri-shadow); transition: box-shadow .25s, transform .25s var(--ri-ease); }
.card:hover { box-shadow: var(--ri-shadow-hover); transform: translateY(-2px); }
.card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ri-ink-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ri-ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 14px 16px 16px; }
.card__title { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0 0 8px; letter-spacing: -.005em; }
.card__title a:hover { color: var(--ri-red); }
.card__excerpt { color: var(--ri-muted); font-size: 14px; margin: 0 0 10px; }

.thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, var(--ri-ink-3), var(--ri-ink)); }
.thumb-fallback img { width: 34%; max-width: 120px; height: auto; opacity: .85; object-fit: contain; }
.card:hover .thumb-fallback img { transform: none; }
.play-badge {
	position: absolute; left: 12px; bottom: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
	background: var(--ri-red); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(215, 20, 26, .3);
}

.card--large .card__title { font-family: var(--ri-font-head); font-weight: 800; font-size: clamp(26px, 4vw, 36px); line-height: 1.02; text-transform: uppercase; }
.card--large .card__body { padding: 18px 20px 20px; }
.card--large .card__excerpt { font-size: 16px; }

.card--list { display: grid; grid-template-columns: 112px 1fr; gap: 0; align-items: stretch; }
.card--list .card__media { aspect-ratio: auto; height: 100%; min-height: 84px; }
.card--list .card__body { padding: 10px 14px; }
.card--list .card__title { font-size: 15px; margin-bottom: 4px; }
.card--list .card__excerpt { display: none; }
.card--list .badge { font-size: 12px; margin-bottom: 2px; }
@media (min-width: 600px) {
	.card--list { grid-template-columns: 220px 1fr; }
	.card--list .card__title { font-size: 18px; }
	.card--list .card__excerpt { display: block; }
	.card--list .card__body { padding: 14px 18px; }
}
.cat-block .card--list, .layout__side .card--list { grid-template-columns: 112px 1fr; }
.cat-block .card--list .card__title { font-size: 15px; }
.cat-block .card--list .card__excerpt { display: none; }

.card--overlay { color: #fff; background: var(--ri-ink); min-height: 280px; display: flex; }
.card--overlay .card__media { position: absolute; inset: 0; aspect-ratio: auto; }
.card--overlay .card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(17, 18, 20, .92)); }
.card--overlay .card__body { position: relative; z-index: 1; margin-top: auto; padding: 20px; }
.card--overlay .card__title { font-family: var(--ri-font-head); font-weight: 800; text-transform: uppercase; font-size: 26px; line-height: 1.02; }
.card--overlay .card__title a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--ri-red); }
.card--overlay .badge { color: var(--ri-yellow); }
.card--overlay .post-meta { color: #c4c7cc; }
.card--overlay .play-badge { left: auto; right: 16px; top: 16px; bottom: auto; }

.cards-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) {
	.cards-grid--2, .cards-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) { .cards-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cards-grid .card--medium .card__title { font-size: 16px; }
.cards-list { display: flex; flex-direction: column; gap: 12px; }

/* ==========================================================================
   Portada
   ========================================================================== */
.home-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "headlines" "side"; margin-bottom: 36px; }
.home-grid__main { grid-area: main; display: flex; flex-direction: column; gap: 16px; }
.home-grid__headlines { grid-area: headlines; }
.home-grid__side { grid-area: side; }
@media (min-width: 768px) {
	.home-grid { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "main side" "headlines side"; }
}
@media (min-width: 1200px) {
	.home-grid { grid-template-columns: 250px minmax(0, 1fr) 300px; grid-template-areas: "headlines main side"; }
	.home-grid__headlines { position: sticky; top: calc(var(--ri-header-h) + 20px); align-self: start; }
}

.headlines { list-style: none; margin: 0; padding: 4px 16px; background: var(--ri-card); border-radius: var(--ri-radius); box-shadow: var(--ri-shadow); }
.headlines li { padding: 12px 0; border-bottom: 1px solid var(--ri-line); }
.headlines li:last-child { border-bottom: 0; }
.headlines a { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.headlines time { display: block; font-size: 12px; color: var(--ri-muted); margin-top: 4px; }

.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar .ad { margin: 0 auto; width: 100%; }
.sidebar__sticky { position: sticky; top: calc(var(--ri-header-h) + 20px); }
.widget { background: var(--ri-card); border-radius: var(--ri-radius); box-shadow: var(--ri-shadow); padding: 16px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--ri-line); }
.widget li:last-child { border-bottom: 0; }
.widget .section-title { font-size: 20px; }

.most-read__list { list-style: none; margin: 0; padding: 0; counter-reset: mr; }
.most-read__list li { counter-increment: mr; border-bottom: 1px solid var(--ri-line); padding: 12px 0; }
.most-read__list li:last-child { border-bottom: 0; }
.most-read__list a { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: start; }
.most-read__list a::before {
	content: counter(mr); font-family: var(--ri-font-head); font-weight: 800; font-size: 38px; line-height: .85;
	color: transparent; -webkit-text-stroke: 1.5px var(--ri-red);
}
.most-read__list li:first-child a::before { color: var(--ri-red); }
.most-read__title { font-weight: 600; font-size: 14.5px; line-height: 1.35; }

.cat-block { margin-bottom: 36px; }
.cat-block__head { display: flex; align-items: center; gap: 12px; }
.cat-block__head .section-title { flex: 1; }
.more-link { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ri-red); margin-bottom: 16px; white-space: nowrap; }
.more-link .ri-icon { width: 18px; height: 18px; }
.cat-block__grid { display: grid; gap: 16px; }
.cat-block__lead .card { height: 100%; min-height: 320px; }
.cat-block__rest { display: grid; gap: 12px; }
@media (min-width: 768px) {
	.cat-block__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
	.cat-block--b .cat-block__lead { order: 2; }
	.cat-block__lead .card--overlay .card__title { font-size: 34px; }
}

.video-block { background: var(--ri-ink); padding: 36px 0; margin: 12px 0 36px; position: relative; }
.video-block::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--ri-red) 0 70%, var(--ri-yellow) 70%); }
.video-block .card { box-shadow: none; }
.video-block .card--overlay { min-height: 240px; }
.video-block .card--overlay .card__title { font-size: 21px; }

.more-news { margin-bottom: 40px; }
.more-news__all { text-align: center; margin-top: 24px; }

/* ==========================================================================
   Archivos y layout con barra lateral
   ========================================================================== */
.layout { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); padding-top: 20px; padding-bottom: 40px; }
@media (min-width: 1024px) { .layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.layout__main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ri-muted); margin-bottom: 4px; }
.breadcrumbs a { font-weight: 600; color: var(--ri-text); }
.breadcrumbs a:hover { color: var(--ri-red); }

.archive-header { padding: 18px 20px; background: var(--ri-ink); color: #fff; border-radius: var(--ri-radius); position: relative; overflow: hidden; }
.archive-header::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 30px; background: var(--ri-red); transform: rotate(20deg); opacity: .9; }
.archive-header::before { content: ""; position: absolute; right: 60px; top: -60px; width: 140px; height: 180px; border-radius: 24px; background: var(--ri-yellow); transform: rotate(-12deg); opacity: .9; }
.archive-header > * { position: relative; z-index: 1; max-width: 75%; }
.archive-header__kicker { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--ri-yellow); font-weight: 700; }
.archive-header__title { font-family: var(--ri-font-head); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 5vw, 46px); margin: 0; }
.archive-header__desc { color: #c4c7cc; margin-top: 6px; }
.archive-header__desc p { margin: 0; }

.pagination { margin-top: 12px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers {
	min-width: 42px; height: 42px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 999px;
	background: var(--ri-card); box-shadow: var(--ri-shadow); font-weight: 700;
}
.pagination .page-numbers.current { background: var(--ri-red); color: #fff; }
.pagination a.page-numbers:hover { background: var(--ri-ink); color: #fff; }

.empty-state { background: var(--ri-card); padding: 28px; border-radius: var(--ri-radius); text-align: center; }
.empty-state .search-form { border-color: var(--ri-line); max-width: 520px; margin: 0 auto; }

/* ==========================================================================
   Artículo
   ========================================================================== */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 300; pointer-events: none; }
.reading-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--ri-red), var(--ri-yellow)); transform: scaleX(0); transform-origin: left; }
.admin-bar .reading-progress { top: 32px; }

.article { background: var(--ri-card); border-radius: var(--ri-radius); box-shadow: var(--ri-shadow); padding: 18px 16px 28px; }
@media (min-width: 768px) { .article { padding: 28px 40px 40px; } }
.article__title { font-family: var(--ri-font-head); font-weight: 800; font-size: clamp(32px, 5.4vw, 52px); line-height: 1; text-transform: uppercase; margin: 6px 0 14px; text-wrap: balance; }
.article__lead { font-size: 19px; line-height: 1.5; color: #3a3e45; margin: 0 0 18px; }
.article__byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--ri-line); border-bottom: 1px solid var(--ri-line); }
.article__avatar { border-radius: 50%; width: 44px; height: 44px; }
.article__byline .post-meta { flex: 1; min-width: 200px; }
.article__media { margin: 22px -16px; }
.article__media img { width: 100%; }
@media (min-width: 768px) { .article__media { margin: 24px 0; } .article__media img { border-radius: var(--ri-radius); } }
.article__media figcaption { font-size: 13px; color: var(--ri-muted); padding: 8px 16px 0; }

.share { display: flex; gap: 8px; }
.share__btn {
	width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 0; color: #fff;
	background: var(--ri-ink); transition: transform .2s, background .2s;
}
.share__btn .ri-icon { width: 18px; height: 18px; }
.share__btn:hover { transform: translateY(-2px); color: #fff; }
.share__btn--whatsapp { background: #25d366; }
.share__btn--facebook { background: #1877f2; }
.share__btn--x { background: #000; }
.share__btn--link.is-copied { background: var(--ri-yellow); color: var(--ri-ink); }

.entry-content { font-size: 18px; line-height: 1.75; color: #22252a; }
.entry-content > * { margin-top: 0; margin-bottom: 1.25em; }
.entry-content h2 { font-family: var(--ri-font-head); font-weight: 800; font-size: 32px; text-transform: uppercase; margin-top: 1.6em; }
.entry-content h3 { font-size: 22px; margin-top: 1.4em; }
.entry-content a { color: var(--ri-red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--ri-red-dark); }
.entry-content img { border-radius: var(--ri-radius-sm); }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin-inline: 0; padding: 16px 22px; border-left: 5px solid var(--ri-red); background: var(--ri-bg);
	font-family: var(--ri-font-head); font-size: 26px; line-height: 1.25; font-weight: 700; font-style: italic; border-radius: 0 var(--ri-radius) var(--ri-radius) 0;
}
.entry-content blockquote cite { display: block; font-family: var(--ri-font); font-size: 14px; font-style: normal; color: var(--ri-muted); margin-top: 8px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li::marker { color: var(--ri-red); font-weight: 700; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--ri-line); padding: 10px; text-align: left; }
.entry-content th { background: var(--ri-ink); color: #fff; font-family: var(--ri-font-head); text-transform: uppercase; letter-spacing: .04em; }
.entry-content iframe, .entry-content .wp-block-embed__wrapper iframe { width: 100%; }
.entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.entry-content .wp-block-embed.is-type-video iframe { position: absolute; inset: 0; height: 100%; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .wp-element-caption { font-size: 13px; color: var(--ri-muted); text-align: center; margin-top: 6px; }

.article__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; border-top: 1px solid var(--ri-line); margin-top: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tags span { font-weight: 700; font-size: 13px; text-transform: uppercase; }
.tags a { background: var(--ri-bg); padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.tags a:hover { background: var(--ri-red); color: #fff; }

.related { margin-top: 32px; }

.comments { margin-top: 36px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 14px 0; border-bottom: 1px solid var(--ri-line); }
.comment-author img { float: left; margin-right: 10px; border-radius: 50%; }
.comment-meta { font-size: 13px; color: var(--ri-muted); }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--ri-line); border-radius: var(--ri-radius-sm); font: inherit; background: #fff;
}
.comment-form textarea:focus, .comment-form input:focus { outline: none; border-color: var(--ri-red); box-shadow: 0 0 0 3px var(--ri-red-soft); }

/* 404 */
.error-404 { padding: 48px var(--ri-gutter); }
.error-404__card { max-width: 640px; margin: 0 auto; background: var(--ri-card); border-radius: 16px; padding: 40px 24px; text-align: center; box-shadow: var(--ri-shadow); }
.error-404__cards { position: relative; width: 120px; height: 110px; margin: 0 auto 8px; }
.error-404__cards span { position: absolute; width: 62px; height: 88px; border-radius: 8px; top: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.error-404__cards .yellow { left: 16px; background: var(--ri-yellow); transform: rotate(-14deg); }
.error-404__cards .red { left: 46px; background: var(--ri-red); transform: rotate(10deg); animation: ri-card-up 1.2s var(--ri-ease) both; }
@keyframes ri-card-up { from { transform: translateY(30px) rotate(0); opacity: 0; } }
.error-404__code { font-family: var(--ri-font-head); font-weight: 800; font-size: 80px; line-height: 1; margin: 0; color: var(--ri-red); }
.error-404__title { font-family: var(--ri-font-head); font-weight: 800; text-transform: uppercase; font-size: 30px; }
.error-404 .search-form { border-color: var(--ri-line); margin: 18px 0; }

/* ==========================================================================
   Pie de página
   ========================================================================== */
.site-footer { background: var(--ri-ink); color: #b9bdc4; margin-top: 20px; position: relative; }
.site-footer__stripe { height: 4px; background: linear-gradient(90deg, var(--ri-red) 0 70%, var(--ri-yellow) 70%); }
.site-footer__top { display: grid; gap: 32px; padding: 44px 0 32px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .site-footer__top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer__brand p { margin: 12px 0 16px; max-width: 320px; font-size: 14px; }
.site-logo--footer .site-logo__img { height: 92px; }
.footer-title { font-family: var(--ri-font-head); font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; font-size: 14px; }
.site-footer a:hover { color: var(--ri-yellow); }
.site-footer .widget { background: transparent; box-shadow: none; padding: 0; }
.site-footer .widget li { border-color: var(--ri-line-dark); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 0 28px; border-top: 1px solid var(--ri-line-dark); font-size: 13px; }
.copyright { margin: 0; }
.legal-nav ul { display: flex; flex-wrap: wrap; gap: 16px; }
.legal-nav li { padding: 0; font-size: 13px; }
.install-btn--footer { margin-top: 16px; }

.social-links { display: flex; gap: 8px; flex-wrap: wrap; }
.social-links a {
	width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ri-ink-3); color: #fff;
	transition: background .2s, transform .2s;
}
.social-links a:hover { background: var(--ri-red); color: #fff; transform: translateY(-2px); }
.social-links .ri-icon { width: 18px; height: 18px; }

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

/* ---------- Modo app (PWA instalada) ---------- */
@media (display-mode: standalone) {
	.site-header { padding-top: env(safe-area-inset-top); }
	.install-btn { display: none !important; }
}
