/*
Theme Name: RicardoInfo
Theme URI: https://ricardoinfo.es
Author: Ricardo González
Description: Tema de noticias de política y geopolítica. Réplica del diseño original de ricardoinfo (fondo oscuro, acento rojo).
Version: 1.6.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ricardoinfo
*/

:root {
  --bg: #0B0C0F;
  --panel: #111216;
  --card: #17181C;
  --media: #292B36;
  --white: #FFFFFF;
  --grey: #C0C1CC;
  --grey-soft: #9C9DA8;
  --accent: #D92640;
  --accent-dark: #A81830;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1312px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--white); line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header { background: var(--panel); position: sticky; top: 0; z-index: 40; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; gap: 32px; padding: 18px 24px; }
.logo { display: inline-flex; align-items: center; gap: 0; flex: 0 0 auto; font-weight: 800; white-space: nowrap; }
.logo img { max-height: 48px; width: auto; }
.logo-word { color: var(--white); font-size: 26px; line-height: 1; letter-spacing: -.01em; }
.logo-highlight { display: inline-block; background: var(--white); color: #0d0d0d; padding: 5px 5px 3px; margin-left: 2px; font-size: 26px; line-height: 1; }
.main-nav { flex: 1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--grey); transition: color .15s ease; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-cat > a { color: var(--white); }
.search-pill { display: flex; align-items: center; gap: 8px; background: #1C1F24; color: var(--grey-soft); padding: 8px 16px; border-radius: 20px; font-size: 13px; min-width: 200px; }
.search-pill input { background: none; border: 0; color: var(--white); font: inherit; width: 100%; outline: none; }
.search-pill input::placeholder { color: var(--grey-soft); }
.search-pill button { background: none; border: 0; color: var(--grey-soft); padding: 0; cursor: pointer; display: grid; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 22px; cursor: pointer; margin-left: auto; }

/* ---------- Tags ---------- */
.tag { display: inline-block; align-self: flex-start; background: #23252B; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 5px 12px; border-radius: 3px; }
.tag--accent { background: var(--accent); color: #fff; }

/* ---------- Buttons ---------- */
.editor-button { display: inline-block; border: 0; border-radius: 4px; padding: 11px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.editor-button--save { background: var(--accent); color: var(--white); }
.editor-button--save:hover { background: var(--accent-dark); }
.editor-button--cancel { background: #292b33; color: var(--white); }
.editor-button--cancel:hover { background: #353741; }

/* ---------- Hero ---------- */
.hero { padding: 28px 0; }
.hero-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 20px; align-items: stretch; }
.hero-grid--video { grid-template-columns: minmax(0, 3.1fr) minmax(220px, .9fr); }
.hero-short-panel { display: flex; align-items: stretch; }
.hero-short-frame { width: 100%; border-radius: 10px; overflow: hidden; background: #0d0e12; border: 1px solid #292B36; box-shadow: 0 18px 42px rgba(0,0,0,.18); }
.hero-short-frame iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }

.main-story { position: relative; border-radius: 10px; overflow: hidden; min-height: 460px; background-color: #0D0D1F; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.main-story::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.8) 20%, rgba(0,0,0,0) 70%); }
.main-story-overlay { position: relative; padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.main-story-overlay h1 { font-size: 30px; font-weight: 800; line-height: 1.2; margin: 0; max-width: 22ch; }
.main-story-overlay .meta { margin: 0; font-size: 13px; color: var(--grey); }

/* ---------- Sections ---------- */
.section { padding: 10px 0 44px; }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.section-head .bar { width: 4px; height: 22px; background: var(--section-accent, var(--accent)); border-radius: 1px; }
.section-head h2 { font-size: 20px; font-weight: 800; margin: 0; }
.section-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.section-head-row .section-head { margin-bottom: 0; }
.section-more { color: var(--grey); font-size: 13px; font-weight: 700; }
.section-more:hover { color: var(--white); }

/* ---------- Tarjetas de noticias (estilo n8n / ri-card) ---------- */
.ri-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; grid-column: 1 / -1; }
.ri-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid #292B36; border-radius: 10px; overflow: hidden; transition: transform .15s; }
.ri-card:hover { transform: translateY(-3px); }
.ri-card img, .ri-card .ri-noimg { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--media); }
.ri-card .ri-txt { padding: 14px 16px 18px; }
.ri-card .ri-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.ri-card h3 { margin: 6px 0 8px; font-size: 19px; line-height: 1.3; }
.ri-card p { margin: 0; font-size: 15px; color: var(--grey); line-height: 1.5; }
.ri-card time { display: block; margin-top: 10px; font-size: 13px; color: var(--grey-soft); }

/* ---------- News grid ---------- */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.news-card { background: var(--card); border-radius: 8px; overflow: hidden; transition: transform .2s ease; }
.news-card:hover { transform: translateY(-4px); }
.news-card-media { display: block; aspect-ratio: 16/9.3; background: var(--media) center / cover; }
.news-card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.news-card-body h3 { font-size: 15px; font-weight: 700; line-height: 1.35; margin: 0; }
.card-title-link:hover { text-decoration: underline; }
.read-more-link { display: inline-block; margin-top: 10px; color: var(--accent); font-size: 12px; font-weight: 800; }
.read-more-link:hover { color: var(--white); }

/* ---------- Videos destacados ---------- */
.video-featured { padding: 18px 0 10px; }
.video-featured-card { background: var(--card); border: 1px solid #292B36; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 42px rgba(0,0,0,.18); display: flex; flex-direction: column; margin-top: 18px; }
.video-featured-player { position: relative; overflow: hidden; background: #0d0e12; aspect-ratio: 16 / 9; }
.video-featured-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-featured-copy { display: flex; align-items: center; gap: 12px; padding: 16px 18px 20px; }
.video-featured-copy h3 { margin: 0; font-size: 18px; line-height: 1.3; }

/* ---------- Footer ---------- */
.site-footer { background: var(--panel); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--grey-soft); }
.footer-links a:hover { color: var(--white); }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.footer-links li + li::before { content: "·"; margin-right: 6px; }

/* ---------- Páginas de sección (categorías) ---------- */
.section-main { padding: 34px 0 48px; }
.section-hero { display: flex; justify-content: space-between; align-items: end; gap: 28px; padding: 34px 36px; border-left: 5px solid var(--section-accent, var(--accent)); background: #1b1d23; border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.16); margin-bottom: 28px; }
.section-eyebrow { color: var(--section-accent, var(--accent)); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-hero h1 { margin: 8px 0 8px; font-size: clamp(30px, 5vw, 48px); line-height: 1.05; }
.section-hero p { margin: 0; max-width: 58ch; color: var(--grey); }
.section-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.section-story { display: grid; grid-template-columns: minmax(180px, .8fr) 1fr; background: var(--card); border: 1px solid #292c34; border-radius: 8px; overflow: hidden; }
.section-story-media { display: block; min-height: 210px; background: var(--media) center/cover; }
.section-story-body { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; }
.section-story-body h2 { margin: 12px 0 8px; font-size: 20px; line-height: 1.2; }
.section-story-body p { margin: 0; color: var(--grey-soft); font-size: 13px; }
.section-story-body .read-more-link { margin-top: auto; padding-top: 18px; font-size: 13px; }
.empty-msg { color: var(--grey-soft); }

/* ---------- Paginación ---------- */
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid #353741; border-radius: 4px; color: var(--grey); font-size: 14px; font-weight: 700; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { border-color: var(--accent); background: var(--accent); color: var(--white); }

/* ---------- Artículo ---------- */
.article-main { padding: 34px 0 60px; }
.article-panel { max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid #292B36; border-radius: 8px; padding: 32px; }
.article-panel h1 { margin: 14px 0 10px; font-size: clamp(26px, 4vw, 36px); line-height: 1.15; }
.article-lead { margin: 0 0 16px; color: var(--grey); font-size: 18px; line-height: 1.6; }
.article-meta { margin: 0 0 22px; color: var(--grey); font-size: 13px; }
.article-media { margin: 0 0 24px; border-radius: 6px; overflow: hidden; background: var(--media); }
.article-media img { width: 100%; }
.article-media--video { aspect-ratio: 16 / 9; }
.article-media--video iframe { display: block; width: 100%; height: 100%; border: 0; }
.article-body { color: var(--grey); font-size: 16px; line-height: 1.75; }
.article-body > * { margin: 0 0 16px; }
.article-body h2, .article-body h3 { color: var(--white); line-height: 1.25; margin-top: 28px; }
.article-body h2 { font-size: 22px; }
.article-body strong { color: var(--white); }
.article-body a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--accent); }
.article-body blockquote { border-left: 4px solid var(--accent); padding-left: 16px; margin-left: 0; font-style: italic; }
.article-body iframe { max-width: 100%; }
.article-body .wp-block-embed__wrapper iframe { width: 100%; aspect-ratio: 16/9; height: auto; }
.article-body figcaption, .wp-caption-text { font-size: 13px; color: var(--grey-soft); }
.article-source { margin-top: 24px; padding-top: 16px; border-top: 1px solid #292B36; font-size: 13px; color: var(--grey-soft); }
.article-source a { color: var(--white); text-decoration: underline; }
.related { max-width: 760px; margin: 32px auto 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .hero-grid--video { grid-template-columns: 1fr; }
  .hero-short-frame iframe { min-height: 0; aspect-ratio: 9/16; max-height: 640px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { flex-wrap: wrap; gap: 14px; }
  .main-nav, .search-pill { display: none; }
  .nav-toggle { display: block; }
  .site-header.is-open .main-nav, .site-header.is-open .search-pill { display: flex; flex: 1 1 100%; }
  .site-header.is-open .main-nav ul { flex-direction: column; gap: 14px; padding: 6px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .header-inner { padding: 14px 16px; }
  .logo-word, .logo-highlight { font-size: 24px; }
  .news-grid { grid-template-columns: 1fr; }
  .main-story { min-height: 340px; }
  .main-story-overlay { padding: 20px; }
  .main-story-overlay h1 { font-size: 22px; }
  .section-hero { align-items: flex-start; flex-direction: column; padding: 26px 22px; }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-cards { grid-template-columns: 1fr; }
  .section-story { grid-template-columns: 1fr; }
  .section-story-media { min-height: 180px; }
  .article-panel { padding: 20px; }
}

/* =========================================================
   v1.1 — Carrusel de destacados
   ========================================================= */
.ri-carousel-wrap { padding: 24px 0 8px; }
.ri-carousel { position: relative; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid #262833; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.ri-track { position: relative; display: grid; }
.ri-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); opacity: 0; visibility: hidden; transform: scale(.985); transition: opacity .55s ease, transform .55s ease, visibility 0s linear .55s; }
.ri-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .55s ease, transform .55s ease, visibility 0s; }
.ri-slide-media { position: relative; display: block; min-width: 0; background: #07080b center / cover no-repeat; }
.ri-slide-media::before { content: ""; display: block; padding-top: 56.25%; }
.ri-slide-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ri-slide-media--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,24,28,0) 60%, rgba(23,24,28,.9) 100%); }
.ri-slide-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: 36px 36px 84px; background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--section-accent, var(--accent)) 22%, transparent), transparent 60%), var(--card); }
.ri-slide-copy h2 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ri-slide-copy h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ri-slide-copy p { margin: 0; color: var(--grey); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ri-slide-meta { font-size: 12.5px; color: var(--grey-soft); }
.ri-slide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.ri-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--section-accent, var(--accent)); color: #fff; font-size: 14px; font-weight: 800; transition: filter .15s, transform .15s; }
.ri-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.ri-btn--yt { background: #FF0033; }
.ri-btn--ghost { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); }
.ri-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,0,51,.12); color: #ff5a73; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ri-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #FF0033; box-shadow: 0 0 0 0 rgba(255,0,51,.6); animation: ri-pulse 1.8s infinite; }
@keyframes ri-pulse { 70% { box-shadow: 0 0 0 8px rgba(255,0,51,0); } 100% { box-shadow: 0 0 0 0 rgba(255,0,51,0); } }

.ri-carousel-nav { position: absolute; left: calc(63.6% + 36px); right: 28px; bottom: 22px; display: flex; align-items: center; gap: 16px; z-index: 3; }
.ri-dots { display: flex; gap: 8px; flex: 1; }
.ri-dot { flex: 1; display: flex; flex-direction: column; gap: 7px; padding: 4px 0; background: none; border: 0; color: var(--grey-soft); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.ri-dot-bar { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; }
.ri-dot-bar > span { display: block; height: 100%; width: 0; background: var(--white); }
.ri-dot.is-done .ri-dot-bar > span { width: 100%; background: rgba(255,255,255,.45); }
.ri-dot.is-active .ri-dot-bar > span { width: 100%; }
.ri-carousel.is-running .ri-dot.is-active .ri-dot-bar > span { width: 0; animation: ri-progress var(--ri-delay, 8000ms) linear forwards; }
.ri-carousel.is-paused .ri-dot.is-active .ri-dot-bar > span { animation-play-state: paused; }
@keyframes ri-progress { to { width: 100%; } }
.ri-dot-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ri-dot.is-active .ri-dot-label, .ri-dot:hover .ri-dot-label { color: var(--white); }
.ri-arrows { display: flex; gap: 6px; }
.ri-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: var(--white); font-size: 16px; cursor: pointer; transition: background .15s, border-color .15s; }
.ri-arrow:hover { background: var(--accent); border-color: var(--accent); }

/* =========================================================
   v1.1 — Últimas noticias con barra lateral
   ========================================================= */
.section--latest { padding-top: 20px; }
.ri-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "a side" "b side"; gap: 20px 28px; align-items: start; }
.ri-layout-a { grid-area: a; }
.ri-layout-b { grid-area: b; }
.ri-layout-side { grid-area: side; align-self: stretch; }
.ri-side-sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.admin-bar .ri-side-sticky { top: 132px; }
.ri-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.ri-short { background: var(--card); border: 1px solid #292B36; border-radius: 14px; overflow: hidden; }
.ri-short-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-size: 13px; font-weight: 800; }
.ri-short-title { display: inline-flex; align-items: center; gap: 8px; }
.ri-short-head a { color: var(--grey-soft); font-size: 12px; font-weight: 700; }
.ri-short-head a:hover { color: var(--white); }
.ri-short-frame { aspect-ratio: 9 / 16; max-height: 560px; margin: 0 auto; background: #000; }
.ri-short-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================================================
   v1.1 — Espacios publicitarios
   ========================================================= */
.ri-ad { position: relative; margin: 24px auto; text-align: center; }
.ri-ad-label { display: block; margin-bottom: 6px; color: var(--grey-soft); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.ri-ad-inner { display: flex; justify-content: center; }
.ri-ad-inner img { border-radius: 10px; margin: 0 auto; }
.ri-ad--leaderboard .ri-ad-inner, .ri-ad--billboard .ri-ad-inner { max-width: 970px; margin: 0 auto; }
.ri-ad--skyscraper { margin: 0; }
.ri-ad--span { grid-column: 1 / -1; margin: 4px 0; }
.ri-ad--inarticle { margin: 28px 0; }
.ri-ad--empty .ri-ad-inner { width: 100%; }
.ri-ad-cta { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 22px 20px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.18); background:
	linear-gradient(115deg, rgba(217,38,64,.16), rgba(35,128,181,.12) 55%, rgba(108,90,179,.16)),
	repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 10px, transparent 10px 20px), #121318; transition: border-color .2s, transform .2s; }
.ri-ad-cta::before { content: ""; position: absolute; inset: -40% -10%; background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.07) 50%, transparent 60%); transform: translateX(-60%); animation: ri-shine 5s ease-in-out infinite; }
@keyframes ri-shine { 60%, 100% { transform: translateX(60%); } }
.ri-ad-cta:hover { border-color: var(--accent); transform: translateY(-2px); }
.ri-ad-kicker { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.ri-ad-cta strong { font-size: 18px; line-height: 1.25; }
.ri-ad-size { font-size: 12px; color: var(--grey-soft); }
.ri-ad-btn { margin-top: 6px; padding: 7px 14px; border-radius: 999px; background: var(--white); color: #0B0C0F; font-size: 12.5px; font-weight: 800; }
.ri-ad--leaderboard .ri-ad-cta { min-height: 90px; flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
.ri-ad--leaderboard .ri-ad-btn { margin-top: 0; }
.ri-ad--billboard .ri-ad-cta { min-height: 180px; }
.ri-ad--skyscraper .ri-ad-cta { min-height: 250px; }
.ri-ad--inarticle .ri-ad-cta { min-height: 120px; }
.article-body .ri-ad-cta, .article-body .ri-ad a { text-decoration: none; color: var(--white); }
@media (prefers-reduced-motion: reduce) {
	.ri-ad-cta::before, .ri-live-dot { animation: none; }
	.ri-slide, .ri-slide.is-active { transition: none; }
}

@media (max-width: 1100px) {
	.ri-slide { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); }
	.ri-carousel-nav { left: calc(58.3% + 28px); }
	.ri-slide-copy { padding: 28px 28px 80px; }
	.ri-layout { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 860px) {
	.ri-slide { grid-template-columns: 1fr; }
	.ri-slide-media--img::after { background: linear-gradient(0deg, rgba(23,24,28,.85), rgba(23,24,28,0) 45%); }
	.ri-slide-copy { padding: 20px 20px 86px; gap: 10px; }
	.ri-slide-copy p { -webkit-line-clamp: 3; }
	.ri-carousel-nav { left: 20px; right: 20px; bottom: 18px; }
	.ri-layout { grid-template-columns: 1fr; grid-template-areas: "a" "side" "b"; }
	.ri-side-sticky { position: static; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
	.ri-short { width: 100%; max-width: 360px; }
	.ri-ad--skyscraper { width: 100%; }
}
@media (max-width: 560px) {
	.ri-carousel { border-radius: 12px; }
	.ri-list--2 { grid-template-columns: 1fr; }
	.ri-arrows { display: none; }
	.ri-ad--leaderboard .ri-ad-cta { flex-direction: column; }
	.ri-ad-cta strong { font-size: 16px; }
}

/* =========================================================
   v1.2 — Bloques de 4, shorts y noticias anteriores
   ========================================================= */
.news-grid--row + .news-grid--row { margin-top: 22px; }
.ri-ad--between { margin: 30px auto; }
.section--latest { padding-bottom: 36px; }
.ri-more { display: flex; justify-content: center; margin-top: 34px; }
.ri-more .ri-btn { min-height: 48px; padding: 0 26px; }

.ri-shorts { padding: 36px 0 40px; margin: 8px 0 28px; background:
	radial-gradient(60% 120% at 0% 0%, rgba(255,0,51,.10), transparent 60%),
	radial-gradient(50% 120% at 100% 100%, rgba(108,90,179,.10), transparent 60%), var(--panel);
	border-top: 1px solid #1f2129; border-bottom: 1px solid #1f2129; }
.ri-shorts-h { display: inline-flex; align-items: center; gap: 8px; }
.ri-shorts-tools { display: flex; align-items: center; gap: 10px; }
.ri-shorts-tools .section-more { margin-right: 6px; }
.ri-arrow:disabled { opacity: .3; cursor: default; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); }
.ri-shorts-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 18px 0 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.ri-shorts-track::-webkit-scrollbar { display: none; }
.ri-shorts-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 14px; }
.ri-short-card { position: relative; scroll-snap-align: start; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.ri-short-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; text-align: left; }
.ri-short-play img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ri-short-card:hover .ri-short-play img { transform: scale(1.05); }
.ri-short-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 48%); }
.ri-short-icon { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 54px; height: 54px; margin: -27px 0 0 -27px; padding-left: 4px; border-radius: 50%; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(6px); font-size: 20px; opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s; }
.ri-short-card:hover .ri-short-icon, .ri-short-play:focus-visible .ri-short-icon { opacity: 1; transform: none; }
.ri-short-info { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.ri-short-name { font-size: 14px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ri-short-views { font-size: 12px; color: rgba(255,255,255,.75); }
.ri-short-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }

@media (max-width: 1100px) { .ri-shorts-track { grid-auto-columns: calc((100% - 3 * 16px) / 4); } }
@media (max-width: 860px)  { .ri-shorts-track { grid-auto-columns: calc((100% - 2 * 14px) / 3); gap: 14px; } }
@media (max-width: 560px)  {
	.ri-shorts-track { grid-auto-columns: 62%; gap: 12px; }
	.ri-shorts-tools .ri-arrow { display: none; }
	.ri-short-icon { opacity: 1; transform: none; }
}
.article-body .search-pill { display: flex !important; max-width: 420px; margin-bottom: 16px; }

/* =========================================================
   v1.3 — Programas
   ========================================================= */
.section-hero-actions { display: flex; gap: 10px; flex-shrink: 0; }
.ri-prog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.ri-prog-featured { background: var(--card); border: 1px solid #292B36; border-radius: 16px; overflow: hidden; }
.ri-prog-player { aspect-ratio: 16 / 9; background: #000; }
.ri-prog-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.ri-prog-body { padding: 22px 24px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ri-prog-title { margin: 0; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }
.ri-prog-meta { margin: 0; color: var(--grey-soft); font-size: 13px; }
.ri-prog-desc { color: var(--grey); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.ri-prog-desc.is-clamped { max-height: 7.5em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.ri-prog-desc a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.ri-prog-more { background: none; border: 0; padding: 0; color: var(--section-accent, var(--accent)); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.ri-prog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ri-prog-card { display: flex; flex-direction: column; gap: 8px; padding: 0 0 14px; background: var(--card); border: 1px solid #292B36; border-radius: 12px; overflow: hidden; color: var(--white); font: inherit; text-align: left; cursor: pointer; transition: transform .2s, border-color .2s; }
.ri-prog-card:hover { transform: translateY(-3px); border-color: #3a3d4a; }
.ri-prog-card.is-current { border-color: var(--section-accent, var(--accent)); }
.ri-prog-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.ri-prog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ri-prog-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,.8); font-size: 12px; font-weight: 700; }
.ri-prog-now { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; background: var(--section-accent, var(--accent)); font-size: 11px; font-weight: 800; opacity: 0; }
.ri-prog-card.is-current .ri-prog-now { opacity: 1; }
.ri-prog-card-title { padding: 0 14px; font-size: 15px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ri-prog-card-desc { padding: 0 14px; color: var(--grey-soft); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ri-prog-card template { display: none; }

.ri-prog-side { position: sticky; top: 100px; }
.admin-bar .ri-prog-side { top: 132px; }
.ri-vshorts { background: var(--card); border: 1px solid #292B36; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.ri-vshorts-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 800; }
.ri-vshorts-count { color: var(--grey-soft); font-size: 12px; font-weight: 700; }
.ri-vshorts-count b { color: var(--white); }
.ri-vshorts-stage { position: relative; aspect-ratio: 9 / 16; max-height: calc(100vh - 290px); min-height: 380px; margin: 0 auto; width: 100%; border-radius: 14px; overflow: hidden; background: #000; }
.ri-vshort { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(24px) scale(.97); transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s; }
.ri-vshort.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .35s ease, visibility 0s; }
.ri-vshort iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.ri-vshort .ri-short-icon { opacity: 1; transform: none; }
.ri-vshorts-nav { display: flex; align-items: center; gap: 10px; }
.ri-vshorts-dots { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.ri-vshorts-dots span { display: block; height: 100%; width: 0; background: #FF0033; transition: width .3s ease; }
.ri-vshorts-all { text-align: center; color: var(--grey-soft); font-size: 12.5px; font-weight: 700; }
.ri-vshorts-all:hover { color: var(--white); }

/* =========================================================
   v1.3 — Mapa de Conflicto Global
   ========================================================= */
.ri-cmap { margin: 0 0 12px; background: var(--card); border: 1px solid #292B36; border-radius: 18px; overflow: hidden; }
.ri-cmap-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 22px 16px; }
.ri-cmap-top h2 { margin: 8px 0 0; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.15; }
.ri-cmap-filters { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #0f1014; border: 1px solid #292B36; }
.ri-cmap-filters button { border: 0; background: none; color: var(--grey); font: inherit; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.ri-cmap-filters button.is-on { background: var(--section-accent, var(--accent)); color: #fff; }
.ri-cmap-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; border-top: 1px solid #292B36; }
.ri-cmap-map { height: 560px; background: #0b0c10; }
.ri-cmap-panel { display: flex; flex-direction: column; min-height: 0; height: 560px; border-left: 1px solid #292B36; background: #121318; }
.ri-cmap-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 4px; font-size: 15px; }
.ri-cmap-panel-head button { border: 1px solid #353741; background: none; color: var(--white); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.ri-cmap-stats { padding: 0 16px 10px; color: var(--grey-soft); font-size: 12px; border-bottom: 1px solid #22242c; }
.ri-cmap-list { list-style: none; margin: 0; padding: 6px 0; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: #353741 transparent; }
.ri-cmap-list li { position: relative; padding: 10px 16px 10px 26px; border-bottom: 1px solid #1d1f26; }
.ri-cmap-list li::before { content: ""; position: absolute; left: 12px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: #8a8fa3; }
.ri-cmap-list li.h-hot::before { background: #ff2d4a; box-shadow: 0 0 0 3px rgba(255,45,74,.2); }
.ri-cmap-list li.h-warm::before { background: #ff9f2e; }
.ri-cmap-list li.is-own a { color: #fff; }
.ri-cmap-list li.is-own::after { content: "RicardoInfo"; position: absolute; right: 16px; top: 10px; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--section-accent, var(--accent)); }
.ri-cmap-list a { display: block; color: var(--grey); font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.ri-cmap-list a:hover { color: var(--white); text-decoration: underline; }
.ri-cmap-meta { display: flex; gap: 8px; margin-top: 4px; color: var(--grey-soft); font-size: 11.5px; }
.ri-cmap-meta span + span::before { content: "·"; margin-right: 8px; }
.ri-cmap-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ri-cmap-chips button { border: 0; border-radius: 999px; padding: 2px 8px; background: #22242b; color: var(--grey); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.ri-cmap-chips button:hover { background: var(--section-accent, var(--accent)); color: #fff; }
.ri-cmap-empty { color: var(--grey-soft); font-size: 13px; }
.ri-cmap-empty::before { display: none; }
.ri-cmap-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 22px; border-top: 1px solid #292B36; color: var(--grey-soft); font-size: 12px; }
.ri-cmap-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.lg--hot { background: #ff2d4a; } .lg--warm { background: #ff9f2e; } .lg--old { background: #8a8fa3; } .lg--own { background: transparent; border: 2px solid #fff; }
.ri-cmap-note { margin-left: auto; font-size: 11.5px; opacity: .8; }
.ri-pin--hot { animation: ri-pin-pulse 2s ease-in-out infinite; }
@keyframes ri-pin-pulse { 50% { fill-opacity: .25; } }
.leaflet-container { font-family: var(--sans); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #17181C; color: var(--white); border: 1px solid #292B36; }
.leaflet-popup-content { margin: 12px 14px; }
.ri-cmap-pop strong { display: block; margin-bottom: 6px; font-size: 14px; }
.ri-cmap-pop ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ri-cmap-pop a { color: #fff; font-weight: 600; font-size: 13px; line-height: 1.3; }
.ri-cmap-pop a:hover { text-decoration: underline; }
.ri-cmap-pop small { display: block; color: var(--grey-soft); font-size: 11px; margin-top: 2px; }
.ri-cmap-pop em { display: block; margin-top: 8px; color: var(--grey-soft); font-size: 11.5px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--grey); }
.ri-cmap-tip { background: #17181C; color: #fff; border: 1px solid #353741; box-shadow: none; font-size: 12px; }
.ri-cmap-tip::before { border-top-color: #353741 !important; }
.leaflet-control-attribution { background: rgba(11,12,15,.7) !important; color: var(--grey-soft) !important; }
.leaflet-control-attribution a { color: var(--grey) !important; }
.leaflet-bar a { background: #17181C; color: #fff; border-color: #292B36; }
.leaflet-bar a:hover { background: #22242b; }

@media (max-width: 1100px) {
	.ri-prog-layout { grid-template-columns: minmax(0, 1fr) 300px; }
	.ri-prog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ri-cmap-body { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 860px) {
	.ri-prog-layout { grid-template-columns: 1fr; }
	.ri-prog-side { position: static; max-width: 380px; width: 100%; margin: 0 auto; }
	.ri-vshorts-stage { max-height: none; }
	.ri-cmap-body { grid-template-columns: 1fr; }
	.ri-cmap-map { height: 420px; }
	.ri-cmap-panel { height: 420px; border-left: 0; border-top: 1px solid #292B36; }
	.ri-cmap-note { margin-left: 0; }
}
@media (max-width: 560px) {
	.ri-prog-grid { grid-template-columns: 1fr; }
	.ri-cmap-map { height: 360px; }
	.ri-cmap-top { padding: 16px; }
	.ri-cmap-filters { width: 100%; justify-content: space-between; }
	.section-hero-actions { width: 100%; }
}
/* Ajustes con más prioridad que la hoja de Leaflet */
.ri-cmap .leaflet-popup-content-wrapper, .ri-cmap .leaflet-popup-tip { background: #17181C; color: #fff; border: 1px solid #292B36; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.ri-cmap .leaflet-container .ri-cmap-pop a { color: #fff; }
.ri-cmap .leaflet-container .ri-cmap-pop a:hover { color: #fff; text-decoration: underline; }
.ri-cmap .leaflet-container a.leaflet-popup-close-button { color: var(--grey); }
.ri-cmap .leaflet-interactive:focus { outline: none; }
.ri-cmap .leaflet-bar a { background: #17181C; color: #fff; border-bottom-color: #292B36; }
.ri-cmap .leaflet-bar a:hover { background: #22242b; }
.ri-cmap .leaflet-bar { border-color: #292B36; }
.ri-cmap .leaflet-tooltip.ri-cmap-tip { background: #17181C; color: #fff; border: 1px solid #353741; box-shadow: none; }
.ri-cmap .leaflet-tooltip-top.ri-cmap-tip::before { border-top-color: #353741; }
.ri-cmap .leaflet-control-attribution { background: rgba(11,12,15,.75); color: var(--grey-soft); }
.ri-cmap .leaflet-control-attribution a { color: var(--grey); }

/* =========================================================
   v1.4 — Mapa con OpenLayers (relieve sin fronteras)
   ========================================================= */
.ri-cmap-map { position: relative; }
.ri-cmap-map .ol-viewport { border-radius: 0; }
.ri-ol-relief { filter: invert(1) hue-rotate(180deg) saturate(.5) brightness(1.05) contrast(1.05); }
.ri-cmap .ol-control button { background: #17181C; color: #fff; border: 1px solid #292B36; border-radius: 6px; }
.ri-cmap .ol-control button:hover, .ri-cmap .ol-control button:focus { background: #22242b; outline: none; }
.ri-cmap .ol-control { background: transparent; }
.ri-cmap .ol-zoom { top: 12px; left: 12px; }
.ri-cmap .ol-attribution { background: rgba(11,12,15,.75); border-radius: 6px 0 0 0; }
.ri-cmap .ol-attribution ul { color: var(--grey-soft); text-shadow: none; font-size: 11px; }
.ri-cmap .ol-attribution a { color: var(--grey); }
.ri-cmap .ol-rotate { display: none; }
.ri-ol-tip { padding: 5px 9px; border-radius: 6px; background: #17181C; border: 1px solid #353741; color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none; }
.ri-ol-pop { position: relative; width: 320px; max-width: 80vw; padding: 12px 14px; border-radius: 10px; background: #17181C; border: 1px solid #292B36; box-shadow: 0 14px 34px rgba(0,0,0,.55); color: #fff; }
.ri-ol-pop::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: #17181C; }
.ri-ol-close { position: absolute; top: 6px; right: 8px; border: 0; background: none; color: var(--grey); font-size: 20px; line-height: 1; cursor: pointer; }
.ri-ol-close:hover { color: #fff; }
.ri-ol-pop strong { display: block; margin: 0 20px 6px 0; font-size: 14px; }
.ri-ol-pop ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; max-height: 260px; overflow-y: auto; }
.ri-ol-pop a { color: #fff; font-weight: 600; font-size: 13px; line-height: 1.3; }
.ri-ol-pop a:hover { text-decoration: underline; }
.ri-ol-pop small { display: block; color: var(--grey-soft); font-size: 11px; margin-top: 2px; }
.ri-ol-pop em { display: block; margin-top: 8px; color: var(--grey-soft); font-size: 11.5px; }

/* =========================================================
   v1.6 — Comunidad: redes, suscripción, comentarios, geo, humor
   ========================================================= */
.ri-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Cabecera */
.header-tools { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.search-pill { min-width: 170px; }
.ri-social { display: flex; align-items: center; gap: 6px; }
.ri-social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--grey); background: rgba(255,255,255,.04); transition: color .15s, background .15s, transform .15s; }
.ri-social a:hover { color: #fff; transform: translateY(-1px); }
.ri-social .ri-social-youtube:hover { background: #FF0033; }
.ri-social .ri-social-instagram:hover { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.ri-social .ri-social-facebook:hover { background: #1877F2; }
.ri-social .ri-social-threads:hover, .ri-social .ri-social-x:hover, .ri-social .ri-social-tiktok:hover { background: #000; box-shadow: inset 0 0 0 1px #444; }
.ri-social .ri-social-telegram:hover { background: #229ED9; }
.ri-social--header a { width: 30px; height: 30px; }
.ri-social--header .ri-ico { width: 15px; height: 15px; }
.ri-subscribe { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 12px; border-radius: 999px; background: #FF0033; color: #fff; font-size: 14px; font-weight: 800; white-space: nowrap; box-shadow: 0 6px 18px rgba(255,0,51,.35); transition: transform .15s, box-shadow .15s; animation: ri-sub-pulse 3.2s ease-in-out infinite; }
.ri-subscribe:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255,0,51,.5); }
.ri-subscribe .ri-ico { width: 20px; height: 20px; }
@keyframes ri-sub-pulse { 0%, 85%, 100% { box-shadow: 0 6px 18px rgba(255,0,51,.35); } 92% { box-shadow: 0 0 0 6px rgba(255,0,51,.18), 0 6px 18px rgba(255,0,51,.35); } }
@media (max-width: 1400px) { .ri-social--header { display: none; } }
@media (max-width: 1180px) { .search-pill { min-width: 140px; } .main-nav ul { gap: 20px; } }
@media (max-width: 980px) {
	.header-tools { margin-left: auto; order: 2; }
	.nav-toggle { order: 3; margin-left: 0; }
	.site-header.is-open .main-nav, .site-header.is-open .search-pill { order: 4; }
	.site-header.is-open .ri-social--header { display: flex; }
}
@media (max-width: 560px) {
	.ri-subscribe { height: 34px; padding: 0 12px 0 10px; font-size: 13px; }
	.logo-word, .logo-highlight { font-size: 21px; }
}
@media (max-width: 400px) { .ri-subscribe span { display: none; } .ri-subscribe { padding: 0 9px; } }

/* Pie */
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.ri-social--footer a { width: 34px; height: 34px; }

/* Banners laterales (solo pantallas muy anchas) */
.ri-side-banner { display: none; }
@media (min-width: 1680px) {
	.ri-side-banner { display: block; position: fixed; top: 50%; z-index: 30; width: 160px; transform: translateY(-38%); }
	.ri-side-banner--left { left: calc((100vw - var(--maxw)) / 4 - 80px); }
	.ri-side-banner--right { right: calc((100vw - var(--maxw)) / 4 - 80px); }
	.ri-side-banner a { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 600px; padding: 26px 16px; border-radius: 16px; text-align: center; color: #fff; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 40px rgba(0,0,0,.35); transition: transform .2s; overflow: hidden; }
	.ri-side-banner a:hover { transform: translateY(-3px); }
	.ri-side-banner img { display: block; width: 160px; height: auto; border-radius: 16px; }
	.ri-side-banner a:has(img) { padding: 0; min-height: 0; border: 0; }
	.ri-side-banner--youtube a { background: radial-gradient(120% 60% at 50% 0%, rgba(255,0,51,.55), transparent 70%), linear-gradient(180deg, #2a0710, #120408); }
	.ri-side-banner--telegram a { background: radial-gradient(120% 60% at 50% 0%, rgba(34,158,217,.55), transparent 70%), linear-gradient(180deg, #071c2a, #040f17); }
	.ri-sb-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 10px 0 8px; border-radius: 22px; background: rgba(255,255,255,.1); }
	.ri-sb-icon .ri-ico { width: 40px; height: 40px; }
	.ri-side-banner--youtube .ri-sb-icon { color: #FF0033; background: #fff; }
	.ri-side-banner--telegram .ri-sb-icon { color: #fff; background: #229ED9; }
	.ri-sb-kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
	.ri-sb-title { font-size: 24px; line-height: 1.1; }
	.ri-sb-text { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.8); }
	.ri-sb-btn { margin-top: auto; padding: 10px 14px; border-radius: 999px; background: #fff; color: #111; font-size: 13px; font-weight: 800; }
}

/* Ventana de bienvenida YouTube */
.ri-welcome { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 340px; max-width: calc(100vw - 32px); padding: 22px 22px 18px; border-radius: 18px; background: radial-gradient(120% 70% at 100% 0%, rgba(255,0,51,.25), transparent 60%), #17181C; border: 1px solid #2c2e38; box-shadow: 0 24px 60px rgba(0,0,0,.6); color: #fff; opacity: 0; transform: translateY(20px); transition: opacity .3s ease, transform .3s ease; }
.ri-welcome.is-open { opacity: 1; transform: none; }
.ri-welcome-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff; color: #FF0033; margin-bottom: 10px; }
.ri-welcome-icon .ri-ico { width: 30px; height: 30px; }
.ri-welcome strong { display: block; font-size: 19px; line-height: 1.2; margin-bottom: 6px; }
.ri-welcome p { margin: 0 0 14px; color: var(--grey); font-size: 14px; line-height: 1.5; }
.ri-welcome .ri-btn { width: 100%; justify-content: center; }
.ri-welcome-later { display: block; width: 100%; margin-top: 8px; padding: 6px; background: none; border: 0; color: var(--grey-soft); font: inherit; font-size: 13px; cursor: pointer; }
.ri-welcome-close { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: var(--grey); font-size: 24px; line-height: 1; cursor: pointer; }
@media (max-width: 560px) { .ri-welcome { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 16px; } .ri-welcome-icon { display: none; } .ri-welcome p { font-size: 13px; } }

/* Votos */
.ri-votes { display: inline-flex; gap: 6px; }
.ri-vote { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid #353741; background: transparent; color: var(--grey); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s; }
.ri-vote:hover { color: #fff; border-color: #55586a; }
.ri-vote--up.is-on { background: rgba(45,140,114,.2); border-color: #2D8C72; color: #6be0bb; }
.ri-vote--down.is-on { background: rgba(217,38,64,.18); border-color: var(--accent); color: #ff7184; }

/* Pie del artículo */
.article-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #292B36; }
.ri-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ri-chips a { padding: 5px 10px; border-radius: 999px; background: #22242b; color: var(--grey); font-size: 12px; font-weight: 700; }
.ri-chips a:hover { background: var(--accent); color: #fff; }
.ri-follow-inline { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--grey-soft); font-size: 13px; }

/* Comentarios */
.ri-comments-wrap { max-width: 760px; margin: 24px auto 0; }
.ri-comments .section-head { margin-bottom: 16px; }
.ri-comment-list, .ri-comment-list .children { list-style: none; margin: 0; padding: 0; }
.ri-comment-list .children { margin-left: 28px; padding-left: 16px; border-left: 2px solid #292B36; }
.ri-comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #22242b; }
.ri-comment .children { width: 100%; }
.ri-comment { flex-wrap: wrap; }
.ri-comment-avatar img { border-radius: 50%; display: block; }
.ri-comment-main { flex: 1; min-width: 0; }
.ri-comment-head { display: flex; align-items: baseline; gap: 10px; font-size: 14px; }
.ri-comment-head time { color: var(--grey-soft); font-size: 12px; }
.ri-comment-head time::before { content: "hace "; }
.ri-comment-text { color: var(--grey); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.ri-comment-text p { margin: 6px 0; }
.ri-comment-pending { margin: 4px 0; color: #ff9f2e; font-size: 13px; }
.ri-comment-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.ri-comment-actions .ri-vote { height: 28px; padding: 0 10px; font-size: 12px; }
.ri-comment-actions .comment-reply-link { color: var(--grey-soft); font-size: 13px; font-weight: 700; }
.ri-comment-actions .comment-reply-link:hover { color: #fff; }
.ri-comments .comment-respond { margin-top: 22px; }
.ri-comments .comment-reply-title { font-size: 18px; margin: 0 0 8px; }
.ri-comments .comment-reply-title small { margin-left: 10px; font-size: 13px; }
.ri-comments .comment-reply-title small a { color: var(--accent); }
.ri-comment-rules { color: var(--grey-soft); font-size: 13px; margin: 0 0 14px; }
.ri-comments .comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ri-comments .comment-form > p { margin: 0 0 14px; }
.ri-comments .comment-form-comment, .ri-comments .comment-notes, .ri-comments .ri-comment-rules, .ri-comments .comment-form-cookies-consent, .ri-comments .form-submit, .ri-comments .logged-in-as, .ri-comments .comment-form-url { grid-column: 1 / -1; }
.ri-comments .comment-form-url { display: none; }
.ri-comments label { display: block; margin-bottom: 6px; color: var(--grey); font-size: 13px; font-weight: 700; }
.ri-comments input[type=text], .ri-comments input[type=email], .ri-comments textarea, .ri-meme-form input[type=text], .ri-geo-pick select { width: 100%; padding: 11px 12px; border: 1px solid #353741; border-radius: 8px; background: #101116; color: #fff; font: inherit; }
.ri-comments textarea:focus, .ri-comments input:focus, .ri-meme-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ri-comments .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; color: var(--grey-soft); font-size: 12.5px; }
.ri-comments .comment-form-cookies-consent label { font-weight: 500; color: var(--grey-soft); margin: 0; }
.ri-comments .logged-in-as { color: var(--grey-soft); font-size: 13px; }
.ri-comments .logged-in-as a { color: var(--grey); }
.ri-comments .ri-btn { border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.ri-notice { padding: 12px 14px; border-radius: 10px; background: rgba(45,140,114,.15); border: 1px solid rgba(45,140,114,.5); color: #a9ecd6; font-size: 14px; }
.ri-notice.is-err { background: rgba(217,38,64,.12); border-color: rgba(217,38,64,.5); color: #ffb3bf; }
@media (max-width: 560px) { .ri-comments .comment-form { grid-template-columns: 1fr; } .ri-follow-inline { margin-left: 0; } .ri-comment-list .children { margin-left: 8px; } }

/* Geolocalización */
.ri-geo-pick { display: flex; align-items: center; gap: 8px; color: var(--grey-soft); font-size: 13px; }
.ri-geo-pick select { width: auto; padding: 7px 10px; font-size: 13px; }
.ri-geo-more { margin: 14px 0 0; text-align: right; }

/* Quiénes somos / contacto */
.ri-about { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.ri-about .article-panel { max-width: none; margin: 0; }
.ri-about-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.ri-about-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); }
.ri-about-head h1 { margin: 8px 0 4px; }
.ri-about-role { margin: 0; color: var(--grey); }
.ri-contact-card { position: sticky; top: 100px; padding: 24px; border-radius: 16px; background: radial-gradient(120% 60% at 100% 0%, rgba(217,38,64,.18), transparent 60%), var(--card); border: 1px solid #292B36; }
.ri-contact-card h2 { margin: 0 0 8px; font-size: 20px; }
.ri-contact-card p { color: var(--grey); font-size: 14px; }
.ri-contact-mail { width: 100%; justify-content: center; word-break: break-all; }
.ri-contact-sub { margin: 18px 0 8px; }
.ri-social--big { flex-wrap: wrap; }
.ri-social--big a { width: 40px; height: 40px; }
@media (max-width: 860px) { .ri-about { grid-template-columns: 1fr; } .ri-contact-card { position: static; } .ri-about-head { flex-direction: column; align-items: flex-start; } }

/* Humor */
.ri-memes { columns: 4 260px; column-gap: 18px; }
.ri-meme { break-inside: avoid; margin: 0 0 18px; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid #292B36; }
.ri-meme-img img { width: 100%; height: auto; display: block; }
.ri-meme-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.ri-meme-body h3 { margin: 0; font-size: 15px; line-height: 1.3; }
.ri-meme-by { color: var(--grey-soft); font-size: 12px; }
.ri-meme-upload { margin-top: 36px; padding: 26px; border-radius: 16px; background: var(--card); border: 1px solid #292B36; max-width: 760px; }
.ri-meme-login p { color: var(--grey); }
.ri-meme-form fieldset { border: 1px solid #292B36; border-radius: 12px; padding: 16px 18px; margin: 0 0 16px; }
.ri-meme-form legend { padding: 0 8px; font-weight: 800; }
.ri-meme-form label { color: var(--grey); font-size: 14px; }
.ri-meme-form input[type=file] { margin-top: 6px; color: var(--grey); }
.ri-follow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 8px 0; }
.ri-follow-btn { display: inline-flex; align-items: center; gap: 8px; min-width: 210px; padding: 9px 14px; border-radius: 999px; color: #fff; font-size: 14px; font-weight: 800; }
.ri-follow-btn.ri-social-instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.ri-follow-btn.ri-social-tiktok { background: #000; box-shadow: inset 0 0 0 1px #444; }
.ri-follow-btn.ri-social-youtube { background: #FF0033; }
.ri-check label { display: flex; gap: 8px; align-items: flex-start; }
.ri-meme-user { margin: 12px 0 0; color: var(--grey-soft); font-size: 13px; }
.ri-meme-user a { color: var(--grey); text-decoration: underline; }
.main-nav a { white-space: nowrap; }
.main-nav ul { gap: 22px; }
@media (max-width: 1600px) { .ri-social--header { display: none; } }
@media (max-width: 1280px) { .main-nav ul { gap: 16px; } .main-nav a { font-size: 13.5px; } .header-inner { gap: 22px; } }
@media (max-width: 1120px) { .search-pill { display: none; } }
@media (max-width: 980px) { .site-header.is-open .search-pill { display: flex; } }
