/* ==========================================================================
   RIO MAR - Portal de Noticias · app.css
   Mobile-first · Responsive puro · Sin Bootstrap/Tailwind
   Variables sobreescribibles via :root inline desde PHP
   ========================================================================== */

/* ===== Tipografía Inter (local, sin CDN) ===== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Inter/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Inter/Inter-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/Inter/Inter-ExtraBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: local('Inter Light'),
       url('https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfMZg.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Inter Medium'),
       url('https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuI6fMZg.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local('Inter Italic'),
       url('https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuOKfMZg.ttf') format('truetype');
}

/* ===== Variables CSS (defaults RIO MAR · sobreescribibles via :root inline en PHP) ===== */
:root {
  --rm-primary: #0052A5;
  --rm-primary-dark: #003366;
  --rm-secondary: #00A651;
  --rm-secondary-dark: #007A3C;
  --rm-accent: #22C55E;
  --rm-white: #ffffff;
  --rm-gray-50: #f8fafc;
  --rm-gray-100: #f1f5f9;
  --rm-gray-200: #e2e8f0;
  --rm-gray-300: #cbd5e1;
  --rm-gray-400: #94a3b8;
  --rm-gray-500: #475569;
  --rm-gray-600: #475569;
  --rm-gray-700: #334155;
  --rm-gray-800: #1e293b;
  --rm-gray-900: #0f172a;
  --rm-breaking: #BE123C;
  --rm-success: #15803d;
  --rm-warning: #b45309;
  --rm-danger:  #b91c1c;
  --rm-info:    #0369a1;
  --rm-bg: #f5f7fa;
  --rm-header-bg: var(--rm-primary);
  --rm-header-text: #fff;
  --rm-footer-bg: var(--rm-primary-dark);
  --rm-footer-text: #fff;
  --rm-radius-sm: 6px;
  --rm-radius-md: 10px;
  --rm-radius: 10px;
  --rm-radius-lg: 14px;
  --rm-radius-xl: 20px;
  --rm-radius-pill: 9999px;
  --rm-shadow-sm: 0 1px 2px 0 rgba(15,23,42,.06);
  --rm-shadow-md: 0 4px 12px -4px rgba(15,23,42,.15);
  --rm-shadow: 0 4px 12px -4px rgba(15,23,42,.15);
  --rm-shadow-lg: 0 20px 40px -12px rgba(15,23,42,.25);
  --rm-transition: 0.18s cubic-bezier(.4,0,.2,1);
  --rm-font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --rm-container: 1280px;

  /* ===== Spacing tokens (multiplo 4px) ===== */
  --rm-space-1: .25rem;  /* 4px */
  --rm-space-2: .5rem;   /* 8px */
  --rm-space-3: .75rem;  /* 12px */
  --rm-space-4: 1rem;    /* 16px */
  --rm-space-5: 1.5rem;  /* 24px */
  --rm-space-6: 2rem;    /* 32px */

  /* ===== Typography scale · ratio 1.25 · base 16px ===== */
  --rm-fs-overline: .75rem;      /* 12px */
  --rm-fs-caption:  .8125rem;    /* 13px */
  --rm-fs-body:     1rem;        /* 16px */
  --rm-fs-body-lg:  1.0625rem;   /* 17px */
  --rm-fs-h6:       1rem;        /* 16px */
  --rm-fs-h5:       1.125rem;    /* 18px */
  --rm-fs-h4:       1.375rem;    /* 22px */
  --rm-fs-h3:       1.75rem;     /* 28px */
  --rm-fs-h2:       2.25rem;     /* 36px */
  --rm-fs-h1:       3rem;        /* 48px */
  --rm-fs-display:  3.5rem;      /* 56px */

  /* ===== Line-height tokens ===== */
  --rm-lh-tight:  1.2;
  --rm-lh-snug:   1.35;
  --rm-lh-normal: 1.5;
  --rm-lh-relax:  1.65;

  /* ===== Letter-spacing tokens ===== */
  --rm-ls-tight:   -0.02em;
  --rm-ls-normal:   0em;
  --rm-ls-wide:     0.02em;
  --rm-ls-overline: 0.12em;
}

/* ===== Reset Básico ===== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.rm-body {
  font-family: var(--rm-font-sans);
  background: var(--rm-bg);
  color: var(--rm-gray-800);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rm-primary); text-decoration: none; transition: color var(--rm-transition); }
a:hover { color: var(--rm-primary-dark); }

hr { border: none; border-top: 1px solid var(--rm-gray-200); margin: 2rem 0; }

h1,h2,h3,h4,h5,h6 {
  font-weight: 800;
  color: var(--rm-gray-900);
  line-height: 1.2;
  margin: 0 0 .8rem 0;
}

p { margin: 0 0 1rem 0; }

ul, ol { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

a, button, input, select, textarea,
.page-link, .share-btn, .rm-nav-link, .rm-mobile-nav-link,
.rm-menu-toggle, .rm-mini-play, .rm-radio-play, .rm-lb-btn,
.rm-lb-nav, .flyer-nav, .flyer-dots span, .gallery-item,
.btn, .video-card, .rm-programa-card, .flyer-card, .news-card,
.rm-trending-item, .rm-tag-badge, .rm-footer-socials a,
.rm-footer-links a, .rm-social-icon, .rm-mini-radio-close {
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .rm-breaking-track { padding-left: 24px; width: auto; flex-wrap: wrap; }
  .rm-pulse,
  .rm-live-dot,
  .rm-breaking-label::before { animation: none !important; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .news-card:hover,
  .video-card:hover,
  .flyer-card:hover,
  .rm-programa-card:hover,
  .rm-hero-main:hover img,
  .rm-hero-side-item:hover img,
  .news-card:hover .news-card-img,
  .podcast-card:hover,
  .gallery-item:hover,
  .share-btn:hover,
  .btn:hover { transform: none !important; }
  .rm-nav-link::after,
  .rm-mobile-nav-link,
  .rm-footer-links a:hover { transition: none !important; }
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--rm-container);
  margin: 0 auto;
  padding: 0 16px;
}
.rm-container {
  width: 100%;
  max-width: var(--rm-container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Sistema Grid Simple (mobile-first) ===== */
.row {
  display: grid;
  gap: 16px;
}
[class*="col-"] { width: 100%; }

.col-12 { width: 100%; }
.col-6  { width: 50%; }

@media (min-width: 576px) {
  .col-sm-6 { width: 100%; }
  .row-sm { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.333333%; }
  .col-md-6 { width: 50%; }
  .col-md-8 { width: 66.666667%; }
  .col-md-9 { width: 75%; }
  .col-md-12{ width: 100%; }
  .row-md-2 { grid-template-columns: repeat(2, 1fr); }
  .row-md-3 { grid-template-columns: repeat(3, 1fr); }
  .row-md-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 992px) {
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.333333%; }
  .col-lg-5 { width: 41.666667%; }
  .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.333333%; }
  .col-lg-8 { width: 66.666667%; }
  .col-lg-9 { width: 75%; }
  .row-lg-2 { grid-template-columns: repeat(2, 1fr); }
  .row-lg-3 { grid-template-columns: repeat(3, 1fr); }
  .row-lg-4 { grid-template-columns: repeat(4, 1fr); }
  .row-main-sidebar { grid-template-columns: 1fr 320px; gap: 28px; }
}

/* ===== Clases Utilitarias ===== */
.d-none     { display: none !important; }
.d-block    { display: block !important; }
.d-flex     { display: flex !important; }
.d-grid     { display: grid !important; }
.d-inline   { display: inline !important; }
.d-inline-flex { display: inline-flex !important; }

@media (min-width: 768px) {
  .d-md-none   { display: none !important; }
  .d-md-block  { display: block !important; }
  .d-md-flex   { display: flex !important; }
}
@media (min-width: 992px) {
  .d-lg-none   { display: none !important; }
  .d-lg-block  { display: block !important; }
  .d-lg-flex   { display: flex !important; }
}

.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-start   { justify-content: flex-start; }
.justify-end     { justify-content: flex-end; }
.align-center    { align-items: center; }
.align-start     { align-items: flex-start; }
.align-end       { align-items: flex-end; }
.flex-wrap       { flex-wrap: wrap; }
.flex-column     { flex-direction: column; }
.flex-1          { flex: 1; }
.text-center     { text-align: center; }
.text-left       { text-align: left; }
.text-right      { text-align: right; }
.w-100           { width: 100%; }
.h-100           { height: 100%; }
.mx-auto         { margin-left: auto; margin-right: auto; }

.m-0 { margin: 0 !important; }
.p-0 { padding: 0 !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2rem; }
.mt-8 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2rem; }
.mb-8 { margin-bottom: 3rem; }

.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-3 { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-5 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-6 { margin-top: 2rem; margin-bottom: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-6 { padding-top: 2rem; padding-bottom: 2rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-6 { padding-left: 2rem; padding-right: 2rem; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.5rem; }
.gap-6 { gap: 2rem; }

.fw-bold      { font-weight: 700; }
.fw-semibold  { font-weight: 600; }
.fw-extrabold { font-weight: 800; }
.fw-black     { font-weight: 900; }
.fst-italic   { font-style: italic; }

.text-muted   { color: var(--rm-gray-500); }
.text-light   { color: #fff; }
.text-dark    { color: var(--rm-gray-900); }
.text-primary { color: var(--rm-primary); }
.text-white   { color: #fff; }
.text-sm      { font-size: 0.85rem; }
.text-xs      { font-size: 0.75rem; }
.text-lg      { font-size: 1.15rem; }
.text-xl      { font-size: 1.35rem; }
.nowrap       { white-space: nowrap; }
.truncate     { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }

/* ===== TOPBAR ===== */
.rm-topbar {
  background: var(--rm-primary-dark);
  color: #fff;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.rm-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rm-topbar-left,
.rm-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.rm-topbar a {
  color: #fff;
  opacity: 0.9;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity var(--rm-transition);
}
.rm-topbar a:hover { opacity: 1; text-decoration: none; }
.rm-social-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background var(--rm-transition), transform var(--rm-transition);
}
.rm-social-icon:hover {
  background: var(--rm-secondary);
  transform: translateY(-1px);
}

/* ===== HEADER ===== */
.rm-header {
  background: linear-gradient(90deg, var(--rm-primary) 0%, var(--rm-secondary) 100%);
  color: var(--rm-header-text);
  padding: 18px 0;
  border-bottom: 6px solid var(--rm-secondary);
  position: relative;
}
.rm-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.rm-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}
.rm-logo {
  max-height: 80px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
  flex-shrink: 0;
}
.rm-site-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.rm-site-name {
  font-weight: 900;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -1px;
  font-family: 'Impact', 'Arial Black', sans-serif;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0,0,0,.25);
  line-height: 1;
}
.rm-site-slogan {
  font-size: 14px;
  opacity: 0.92;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
}
.rm-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.rm-mini-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,.22);
  padding: 10px 16px;
  border-radius: 50px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
}
.rm-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}
.rm-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rm-breaking);
  box-shadow: 0 0 0 0 rgba(225,29,72,.7);
  animation: rm-pulse 1.8s infinite;
}
@keyframes rm-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(225,29,72,.7); }
  70%  { box-shadow: 0 0 0 10px rgba(225,29,72,0); }
  100% { box-shadow: 0 0 0 0 rgba(225,29,72,0); }
}
.rm-mini-play {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--rm-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: transform var(--rm-transition), box-shadow var(--rm-transition);
  flex-shrink: 0;
}
.rm-mini-play:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.rm-mini-play.playing {
  background: var(--rm-breaking);
  color: #fff;
}
.rm-mini-radio-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rm-mini-radio-label strong {
  font-size: 13px;
  font-weight: 700;
}
.rm-mini-radio-label span {
  font-size: 11px;
  opacity: 0.82;
}

/* ===== BREAKING TICKER ===== */
.rm-breaking {
  background: var(--rm-breaking);
  color: #fff;
  min-height: 22px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.rm-breaking-inner {
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
}
.rm-breaking-label {
  background: rgba(0,0,0,.25);
  padding: 6px 14px;
  font-weight: 800;
  letter-spacing: .8px;
  font-size: 11px;
  text-transform: uppercase;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.1;
}
.rm-breaking-label::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: rm-pulse 1.8s infinite;
}
.rm-breaking-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.rm-breaking-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: rm-marquee 40s linear infinite;
  padding-left: 100%;
  width: max-content;
}
.rm-breaking-track:hover { animation-play-state: paused; }
.rm-breaking-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 0;
  line-height: 1.1;
}
.rm-breaking-item::before {
  content: "▸";
  font-weight: 800;
  opacity: 0.8;
}
@keyframes rm-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== NAV PRINCIPAL ===== */
.rm-nav {
  background: #fff;
  box-shadow: var(--rm-shadow-sm);
  position: -webkit-sticky;
  position: sticky;
  top: 90px;
  z-index: 1200;
  border-bottom: 1px solid var(--rm-gray-200);
}
.rm-nav.scrolled {
  box-shadow: 0 6px 24px -8px rgba(15,23,42,.18);
}
.rm-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rm-nav-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: stretch;
}
@media (min-width: 992px) {
  .rm-nav-list { display: flex; }
}
.rm-nav-item {
  position: relative;
  border-right: 1px solid var(--rm-gray-200);
}
.rm-nav-item:last-child { border-right: none; }
.rm-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 14px 18px;
  color: var(--rm-gray-800);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: color var(--rm-transition);
  position: relative;
  height: 100%;
  min-height: 48px;
  white-space: nowrap;
}
.rm-nav-link::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  background: var(--rm-secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--rm-transition);
}
.rm-nav-link:hover,
.rm-nav-link.active {
  color: var(--rm-primary);
  text-decoration: none;
}
.rm-nav-link:hover::after,
.rm-nav-link.active::after {
  transform: scaleX(1);
}
.rm-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--rm-radius-sm);
  border: 1px solid var(--rm-gray-200);
  background: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background var(--rm-transition);
}
.rm-menu-toggle:hover { background: var(--rm-gray-50); }
@media (min-width: 992px) {
  .rm-menu-toggle { display: none; }
}
.rm-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--rm-gray-700);
  position: relative;
  display: block;
  transition: transform .25s ease, background .2s ease;
}
.rm-menu-toggle span::before,
.rm-menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rm-gray-700);
  transition: transform .25s ease, top .2s ease;
}
.rm-menu-toggle span::before { top: -7px; }
.rm-menu-toggle span::after  { top:  7px; }
.rm-menu-toggle.is-open span { background: transparent; }
.rm-menu-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.rm-menu-toggle.is-open span::after  { top: 0; transform: rotate(-45deg); }

.rm-nav-search {
  display: flex;
  align-items: center;
  padding: 8px 0;
  gap: 8px;
}
.rm-nav-search input {
  border: 1px solid var(--rm-gray-200);
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 14px;
  width: 180px;
  transition: width var(--rm-transition), border-color var(--rm-transition);
  font-family: inherit;
}
@media (min-width: 992px) {
  .rm-nav-search input { width: 220px; }
}
.rm-nav-search input:focus {
  outline: none;
  border-color: var(--rm-primary);
  width: 240px;
}
@media (min-width: 992px) {
  .rm-nav-search input:focus { width: 280px; }
}
.rm-nav-search button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rm-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background var(--rm-transition);
}
.rm-nav-search button:hover { background: var(--rm-primary-dark); }

/* ===== Menú móvil offcanvas ===== */
.rm-mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 85%;
  max-width: 340px;
  background: #fff;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.2,.8,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--rm-shadow-lg);
  overflow-y: auto;
}
.rm-mobile-nav.open { transform: translateX(0); }
.rm-mobile-nav-head {
  padding: 18px 20px;
  background: linear-gradient(90deg, var(--rm-primary) 0%, var(--rm-secondary) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rm-mobile-nav-head strong { font-size: 17px; font-weight: 800; }
.rm-mobile-nav-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background var(--rm-transition);
}
.rm-mobile-nav-close:hover { background: rgba(255,255,255,.28); }
.rm-mobile-nav-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  flex: 1;
}
.rm-mobile-nav-link {
  display: block;
  padding: 13px 22px;
  color: var(--rm-gray-800);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid var(--rm-gray-100);
  border-left: 3px solid transparent;
  transition: all var(--rm-transition);
}
.rm-mobile-nav-link:hover,
.rm-mobile-nav-link.active {
  color: var(--rm-primary);
  background: var(--rm-gray-50);
  border-left-color: var(--rm-secondary);
  padding-left: 26px;
  text-decoration: none;
}
.rm-mobile-nav-foot {
  padding: 16px 22px;
  border-top: 1px solid var(--rm-gray-200);
  background: var(--rm-gray-50);
}
.rm-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.rm-nav-backdrop.show {
  opacity: 1;
  visibility: visible;
}
body.rm-mobile-open { overflow: hidden; }

/* ===== HERO NOTICIAS ===== */
.rm-hero {
  margin-top: 20px;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  .rm-hero { grid-template-columns: 2fr 1fr; }
}
.rm-hero-main {
  position: relative;
  border-radius: var(--rm-radius-lg);
  overflow: hidden;
  box-shadow: var(--rm-shadow-lg);
  aspect-ratio: 16/9;
  cursor: pointer;
  background: var(--rm-gray-200);
}
.rm-hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.rm-hero-main:hover img { transform: scale(1.04); }
.rm-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(0,0,0,0.92) 100%);
}
.rm-hero-main-content {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  color: #fff;
  z-index: 1;
}
.rm-hero-category {
  display: inline-block;
  background: var(--rm-secondary);
  color: #fff;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rm-hero-main-content h2 {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 900;
  margin: 12px 0 6px;
  text-shadow: 0 2px 4px rgba(0,0,0,.3);
  line-height: 1.15;
  color: #fff;
}
.rm-hero-main-content h2 a { color: #fff; text-decoration: none; }
.rm-hero-main-content h2 a:hover { color: rgba(255,255,255,.9); }
.rm-hero-excerpt {
  font-size: 15px;
  opacity: 0.92;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rm-hero-meta {
  margin-top: 10px;
  display: flex;
  gap: 16px;
  font-size: 12px;
  opacity: 0.82;
  flex-wrap: wrap;
}
.rm-hero-side {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 575.98px) {
  .rm-hero-side { grid-template-columns: 1fr; }
}
.rm-hero-side-item {
  position: relative;
  border-radius: var(--rm-radius);
  overflow: hidden;
  box-shadow: var(--rm-shadow);
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--rm-gray-200);
}
.rm-hero-side-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.rm-hero-side-item:hover img { transform: scale(1.05); }
.rm-hero-side-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(0,0,0,0.92) 100%);
}
.rm-hero-side-content {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  color: #fff;
  z-index: 1;
}
.rm-hero-side-content .rm-hero-category {
  font-size: 10px;
  padding: 3px 10px;
}
.rm-hero-side-content h3 {
  font-size: 13px;
  font-weight: 800;
  margin: 6px 0 0;
  line-height: 1.28;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rm-hero-side-content h3 a { color: #fff; text-decoration: none; }

/* ===== SECCIÓN TÍTULO ===== */
.rm-section-title {
  margin: 36px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.rm-section-title h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  color: var(--rm-gray-900);
  position: relative;
  padding-left: 14px;
  line-height: 1.1;
}
.rm-section-title h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 28px;
  border-radius: 3px;
  background: var(--rm-secondary);
}
.rm-section-title a.ver-todas {
  color: var(--rm-primary);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color var(--rm-transition), gap var(--rm-transition);
}
.rm-section-title a.ver-todas:hover {
  color: var(--rm-secondary);
  gap: 8px;
  text-decoration: none;
}

/* ===== NOTICIA CARD ===== */
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--rm-radius);
  overflow: hidden;
  box-shadow: var(--rm-shadow-sm);
  transition: transform var(--rm-transition), box-shadow var(--rm-transition);
  height: 100%;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--rm-shadow);
}
.news-card-media {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--rm-gray-200);
  position: relative;
}
.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.news-card:hover .news-card-img { transform: scale(1.04); }
.news-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 1;
}
.badge-breaking {
  background: var(--rm-breaking);
  color: #fff;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 4px;
  display: inline-block;
}
.news-card-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.news-card-section {
  display: inline-block;
  color: var(--rm-primary);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.news-card-title {
  margin: 0;
  line-height: 1.3;
  font-size: 17px;
  font-weight: 800;
}
.news-card-title a {
  color: var(--rm-gray-900);
  text-decoration: none;
  transition: color var(--rm-transition);
}
.news-card-title a:hover {
  color: var(--rm-primary);
  text-decoration: none;
}
.news-card-excerpt {
  color: var(--rm-gray-600);
  font-size: 14px;
  margin: 4px 0 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-meta {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--rm-gray-500);
  border-top: 1px solid var(--rm-gray-100);
}
.news-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===== GRID NOTICIAS ===== */
.rm-news-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 768px) {
  .rm-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .rm-news-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== FLYERS CARRUSEL ===== */
.flyers-carousel {
  position: relative;
  border-radius: var(--rm-radius-lg);
  overflow: hidden;
  box-shadow: var(--rm-shadow);
  background: var(--rm-gray-200);
  margin-top: 24px;
}
.flyers-track-wrap {
  overflow: hidden;
  position: relative;
}
.flyers-track {
  display: flex;
  transition: transform 0.55s ease;
  will-change: transform;
}
.flyer-slide {
  flex: 0 0 100%;
  position: relative;
  aspect-ratio: 21/9;
  min-height: 200px;
}
@media (max-width: 768px) {
  .flyer-slide { aspect-ratio: 16/10; }
}
.flyer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.flyer-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.75) 100%);
  display: flex;
  align-items: flex-end;
}
.flyer-caption-inner {
  padding: 28px 32px;
  color: #fff;
  max-width: 80%;
}
@media (min-width: 768px) {
  .flyer-caption-inner { padding: 32px 48px; }
}
.flyer-title {
  font-size: clamp(20px, 3.5vw, 34px);
  font-weight: 900;
  margin: 0 0 6px;
  text-shadow: 0 2px 6px rgba(0,0,0,.3);
  line-height: 1.1;
  color: #fff;
}
.flyer-subtitle {
  font-size: clamp(13px, 1.8vw, 17px);
  opacity: 0.95;
}
.flyer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  font-size: 28px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all var(--rm-transition);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.flyer-nav:hover {
  background: var(--rm-primary);
  transform: translateY(-50%) scale(1.08);
}
.flyer-prev { left: 12px; }
.flyer-next { right: 12px; }
.flyer-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.flyer-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: all var(--rm-transition);
}
.flyer-dots span.active {
  background: var(--rm-secondary);
  transform: scale(1.25);
}

/* ===== FLYERS GRID ===== */
.flyers-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 576px) {
  .flyers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .flyers-grid { grid-template-columns: repeat(3, 1fr); }
}
.flyer-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border-radius: var(--rm-radius);
  overflow: hidden;
  box-shadow: var(--rm-shadow-sm);
  transition: transform var(--rm-transition), box-shadow var(--rm-transition);
  height: 100%;
}
.flyer-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--rm-shadow);
  text-decoration: none;
}
.flyer-card-img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--rm-gray-200);
}
.flyer-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.flyer-card:hover .flyer-card-img { transform: scale(1.05); }
.flyer-card-body {
  padding: 12px 14px 16px;
  color: var(--rm-gray-900);
}
.flyer-card-tag {
  color: var(--rm-secondary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.flyer-card-title {
  font-weight: 700;
  font-size: 15px;
  margin: 4px 0 6px;
  line-height: 1.3;
}
.flyer-card-desc {
  font-size: 13px;
  color: var(--rm-gray-500);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== ARTÍCULO DETALLE ===== */
.rm-article-wrap {
  padding: 24px 0 0;
  display: grid;
  gap: 28px;
}
@media (min-width: 992px) {
  .rm-article-wrap { grid-template-columns: 1fr 320px; }
}
.rm-article {
  max-width: 100%;
}
.rm-article-header { margin-bottom: 20px; }
.rm-article-tags-top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.rm-article-category {
  display: inline-block;
  background: var(--rm-primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.rm-article h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 14px 0 12px;
  color: var(--rm-gray-900);
}
.rm-article-lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--rm-gray-600);
  margin: 0 0 20px;
  font-weight: 500;
}
.rm-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--rm-gray-200);
  border-bottom: 1px solid var(--rm-gray-200);
  font-size: 14px;
  color: var(--rm-gray-500);
}
.rm-article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rm-article-share {
  display: flex;
  gap: 10px;
  margin: 16px 0;
  flex-wrap: wrap;
  align-items: center;
}
.rm-article-share-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--rm-gray-700);
}
.share-btn {
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--rm-gray-200);
  background: #fff;
  cursor: pointer;
  color: var(--rm-gray-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--rm-transition);
  text-decoration: none;
}
.share-btn:hover {
  border-color: var(--rm-primary);
  color: var(--rm-primary);
  text-decoration: none;
  transform: translateY(-1px);
}
.share-btn.whatsapp:hover { border-color: #25D366; color: #25D366; }
.share-btn.facebook:hover { border-color: #1877F2; color: #1877F2; }
.share-btn.twitter:hover  { border-color: #1DA1F2; color: #1DA1F2; }
.share-btn.copied {
  background: var(--rm-secondary);
  border-color: var(--rm-secondary);
  color: #fff;
}
.rm-article-cover {
  margin: 22px 0;
  border-radius: var(--rm-radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--rm-gray-200);
  box-shadow: var(--rm-shadow);
}
.rm-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rm-article-cover-caption {
  font-size: 13px;
  color: var(--rm-gray-500);
  margin-top: 8px;
  padding: 0 4px;
  font-style: italic;
}
.rm-article-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--rm-gray-800);
}
.rm-article-content p { margin: 0 0 18px; }
.rm-article-content h2,
.rm-article-content h3 {
  margin: 28px 0 12px;
  font-weight: 800;
  color: var(--rm-gray-900);
  line-height: 1.25;
}
.rm-article-content h2 { font-size: 24px; }
.rm-article-content h3 { font-size: 20px; }
.rm-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--rm-radius);
  margin: 16px 0;
  box-shadow: var(--rm-shadow-sm);
}
.rm-article-content blockquote {
  border-left: 4px solid var(--rm-secondary);
  padding: 14px 20px;
  margin: 22px 0;
  color: var(--rm-gray-700);
  background: var(--rm-gray-50);
  font-style: italic;
  border-radius: 0 var(--rm-radius-sm) var(--rm-radius-sm) 0;
  font-size: 18px;
  line-height: 1.6;
}
.rm-article-content ul,
.rm-article-content ol {
  margin: 0 0 18px;
  padding-left: 24px;
}
.rm-article-content ul { list-style: disc; }
.rm-article-content ol { list-style: decimal; }
.rm-article-content li { margin: 0 0 8px; }
.rm-article-content a {
  color: var(--rm-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rm-article-content a:hover { color: var(--rm-primary-dark); }

/* Galería dentro del artículo */
.rm-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}
@media (max-width: 640px) {
  .rm-gallery { grid-template-columns: repeat(2, 1fr); }
}
.gallery-item {
  aspect-ratio: 1/1;
  border-radius: var(--rm-radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--rm-gray-200);
  box-shadow: var(--rm-shadow-sm);
  transition: transform var(--rm-transition);
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
}

.rm-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--rm-gray-200);
  margin-top: 24px;
}
.rm-tag-label {
  font-weight: 600;
  color: var(--rm-gray-700);
  font-size: 14px;
  align-self: center;
}
.rm-tag-badge {
  background: var(--rm-gray-100);
  color: var(--rm-gray-700);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  transition: all var(--rm-transition);
}
.rm-tag-badge:hover {
  background: var(--rm-primary);
  color: #fff;
  text-decoration: none;
}

/* ===== SIDEBAR ===== */
.rm-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 1023px) {
  .rm-sidebar { margin-top: 28px; }
}
.rm-widget {
  background: #fff;
  border-radius: var(--rm-radius);
  box-shadow: var(--rm-shadow-sm);
  padding: 18px;
}
.rm-widget-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--rm-gray-900);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rm-secondary);
  display: inline-block;
}
.rm-trending-list {
  display: flex;
  flex-direction: column;
  counter-reset: trending;
}
.rm-trending-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rm-gray-100);
  text-decoration: none;
  counter-increment: trending;
  transition: padding var(--rm-transition);
}
.rm-trending-item:last-child { border-bottom: none; }
.rm-trending-item:hover { padding-left: 4px; text-decoration: none; }
.rm-trending-num {
  font-size: 26px;
  font-weight: 900;
  color: var(--rm-gray-300);
  line-height: 1;
  flex-shrink: 0;
  width: 34px;
  font-family: 'Impact', sans-serif;
}
.rm-trending-item:nth-child(1) .rm-trending-num { color: var(--rm-breaking); }
.rm-trending-item:nth-child(2) .rm-trending-num { color: var(--rm-secondary); }
.rm-trending-item:nth-child(3) .rm-trending-num { color: var(--rm-primary); }
.rm-trending-info {
  flex: 1;
  min-width: 0;
}
.rm-trending-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.35;
  color: var(--rm-gray-800);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rm-trending-info h4:hover { color: var(--rm-primary); }
.rm-trending-info span {
  font-size: 11px;
  color: var(--rm-gray-500);
  display: inline-flex;
  gap: 4px;
}
.rm-widget-radio {
  background: linear-gradient(135deg, var(--rm-primary) 0%, var(--rm-secondary) 100%);
  border-radius: var(--rm-radius);
  padding: 20px;
  color: #fff;
  text-align: center;
}
.rm-widget-radio h4 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 4px;
}
.rm-widget-radio p {
  font-size: 13px;
  opacity: 0.9;
  margin: 0 0 16px;
}
.rm-widget-radio .rm-mini-play {
  margin: 0 auto;
  display: flex;
}
.rm-widget-banner {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--rm-primary) 0%, var(--rm-secondary) 100%);
  border-radius: var(--rm-radius);
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.rm-widget-banner strong {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
}

/* ===== RADIO PLAYER PÁGINA ===== */
.rm-radio-hero {
  background: linear-gradient(135deg, var(--rm-secondary-dark) 0%, var(--rm-primary-dark) 100%);
  color: #fff;
  border-radius: var(--rm-radius-lg);
  padding: 32px 24px;
  text-align: center;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .rm-radio-hero { padding: 48px 40px; }
}
.rm-radio-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.1), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(34,197,94,.15), transparent 50%);
}
.rm-radio-hero-inner { position: relative; z-index: 1; }
.rm-radio-station-name {
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  font-family: 'Impact', sans-serif;
}
.rm-radio-now {
  font-size: 16px;
  opacity: 0.92;
  margin: 10px 0 24px;
}
.rm-radio-now strong { color: #fff; }
.rm-radio-player {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.rm-radio-play {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  color: var(--rm-primary);
  border: none;
  font-size: 36px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: all var(--rm-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rm-radio-play:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 40px rgba(0,0,0,.3);
}
.rm-radio-play.playing {
  background: var(--rm-breaking);
  color: #fff;
}
audio.rm-audio-player {
  width: 100%;
  max-width: 520px;
  filter: invert(1);
}
.rm-radio-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 200px;
  color: #fff;
  font-size: 18px;
}
.rm-radio-volume input[type="range"] {
  flex: 1;
  accent-color: var(--rm-secondary);
}
.rm-radio-programas {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 28px;
}
@media (min-width: 768px) {
  .rm-radio-programas { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .rm-radio-programas { grid-template-columns: repeat(3, 1fr); }
}
.rm-programa-card {
  background: #fff;
  border-radius: var(--rm-radius);
  overflow: hidden;
  box-shadow: var(--rm-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--rm-transition), box-shadow var(--rm-transition);
}
.rm-programa-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--rm-shadow);
}
.rm-programa-cover {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--rm-primary) 0%, var(--rm-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 44px;
  font-weight: 900;
}
.rm-programa-body {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rm-programa-body h3 {
  font-size: 16px;
  margin: 0;
  font-weight: 800;
}
.rm-programa-schedule {
  font-size: 12px;
  color: var(--rm-secondary);
  font-weight: 700;
}
.rm-programa-desc {
  font-size: 13px;
  color: var(--rm-gray-600);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== VIDEOS / PODCAST ===== */
.rm-video-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 768px) {
  .rm-video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .rm-video-grid { grid-template-columns: repeat(3, 1fr); }
}
.video-card {
  background: #fff;
  border-radius: var(--rm-radius);
  overflow: hidden;
  box-shadow: var(--rm-shadow-sm);
  transition: transform var(--rm-transition), box-shadow var(--rm-transition);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--rm-shadow);
}
.video-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: var(--rm-gray-200);
}
.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.video-card:hover .video-card-thumb img { transform: scale(1.05); }
.video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--rm-transition);
}
.video-card:hover .video-play-overlay { background: rgba(0,0,0,.4); }
.video-play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--rm-breaking);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all var(--rm-transition);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.video-card:hover .video-play-icon {
  transform: scale(1.12);
  background: #fff;
}
.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,.75);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.video-card-body {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.video-card-body h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
}
.video-card-meta {
  font-size: 12px;
  color: var(--rm-gray-500);
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--rm-gray-100);
}

.rm-video-show {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--rm-radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--rm-shadow-lg);
  margin-bottom: 24px;
}
.rm-video-show iframe,
.rm-video-show video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.podcast-card {
  background: #fff;
  border-radius: var(--rm-radius);
  overflow: hidden;
  box-shadow: var(--rm-shadow-sm);
  display: grid;
  grid-template-columns: 120px 1fr;
  transition: transform var(--rm-transition), box-shadow var(--rm-transition);
}
@media (min-width: 576px) {
  .podcast-card { grid-template-columns: 160px 1fr; }
}
.podcast-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--rm-shadow);
}
.podcast-cover {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--rm-primary) 0%, var(--rm-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 36px;
  font-weight: 900;
}
.podcast-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.podcast-body h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.podcast-meta {
  font-size: 12px;
  color: var(--rm-gray-500);
}
.podcast-audio {
  margin-top: auto;
  width: 100%;
}
.podcast-audio audio {
  width: 100%;
  height: 36px;
}

/* ===== FOOTER ===== */
.rm-footer {
  background: var(--rm-footer-bg);
  color: var(--rm-footer-text);
  margin-top: 60px;
  padding: 48px 0 0;
  position: relative;
}
.rm-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--rm-secondary) 0%, var(--rm-primary) 50%, var(--rm-secondary) 100%);
}
.rm-footer-grid {
  display: grid;
  gap: 36px 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .rm-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
  .rm-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.rm-footer-col h4 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rm-secondary);
  display: inline-block;
  color: #fff;
}
.rm-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.rm-footer-brand .rm-footer-logo img,
.rm-footer-brand img {
  max-height: 112px;
  height: auto;
  width: auto;
  min-width: 160px;
  max-width: min(240px, 95%);
  display: block;
  object-fit: contain;
  filter: none !important;
  -webkit-filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  background: transparent;
  color-scheme: normal;
  isolation: isolate;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  contain: layout style;
}
.rm-footer-brand .rm-footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  margin: 0 0 8px 0;
  text-decoration: none;
  line-height: 0;
  flex: 0 0 auto;
  width: auto;
  min-width: 180px;
  max-width: 100%;
  background: transparent;
  isolation: isolate;
}
.rm-footer-brand .rm-footer-logo:hover,
.rm-footer-brand .rm-footer-logo:focus-visible {
  outline: none;
  filter: none !important;
  -webkit-filter: none !important;
}
.rm-footer-brand strong {
  font-size: 22px;
  font-weight: 900;
  font-family: 'Impact', sans-serif;
  letter-spacing: -0.5px;
}
.rm-footer-about {
  font-size: 14px;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 420px;
}
.rm-footer-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.rm-footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all var(--rm-transition);
  text-decoration: none;
}
.rm-footer-socials a:hover {
  background: var(--rm-secondary);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}
.rm-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rm-footer-links a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: 14px;
  transition: all var(--rm-transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rm-footer-links a::before {
  content: "▸";
  color: var(--rm-secondary);
  font-weight: 700;
  opacity: 0.8;
}
.rm-footer-links a:hover {
  color: #fff;
  padding-left: 4px;
  text-decoration: none;
}
.rm-footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,.8);
}
.rm-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.rm-footer-contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  color: var(--rm-secondary);
}
.rm-footer-bottom {
  margin-top: 36px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
}
.rm-footer-bottom a { color: rgba(255,255,255,.85); }
.rm-footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ===== BADGES / BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--rm-radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--rm-transition);
  font-size: 15px;
  font-family: inherit;
  line-height: 1.2;
  white-space: nowrap;
  user-select: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--rm-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--rm-primary-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,82,165,.28);
}
.btn-secondary {
  background: var(--rm-gray-200);
  color: var(--rm-gray-800);
}
.btn-secondary:hover {
  background: var(--rm-gray-300);
  color: var(--rm-gray-900);
}
.btn-success {
  background: var(--rm-secondary);
  color: #fff;
}
.btn-success:hover {
  background: var(--rm-secondary-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,166,81,.28);
}
.btn-danger {
  background: var(--rm-breaking);
  color: #fff;
}
.btn-danger:hover {
  filter: brightness(1.1);
  color: #fff;
  box-shadow: 0 4px 14px rgba(225,29,72,.28);
}
.btn-outline {
  background: transparent;
  border: 2px solid currentColor;
  padding: 8px 18px;
}
.btn-outline.btn-primary {
  background: transparent;
  color: var(--rm-primary);
  border: 2px solid var(--rm-primary);
}
.btn-outline.btn-primary:hover {
  background: var(--rm-primary);
  color: #fff;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 17px;
}
.btn-block {
  width: 100%;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.4;
}
.badge-primary { background: rgba(0,82,165,.12); color: var(--rm-primary); }
.badge-success { background: rgba(0,166,81,.12); color: var(--rm-secondary-dark); }
.badge-danger  { background: rgba(225,29,72,.12); color: var(--rm-breaking); }
.badge-gray    { background: var(--rm-gray-100); color: var(--rm-gray-700); }

/* ===== PAGINACIÓN ===== */
.pagination {
  margin: 28px 0;
}
.pagination ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.page-item { display: inline-flex; }
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--rm-radius-sm);
  border: 1px solid var(--rm-gray-200);
  color: var(--rm-gray-700);
  text-decoration: none;
  font-size: 14px;
  background: #fff;
  font-weight: 600;
  transition: all var(--rm-transition);
}
.page-link:hover {
  background: var(--rm-gray-100);
  color: var(--rm-primary);
  border-color: var(--rm-gray-300);
  text-decoration: none;
}
.page-item.active .page-link {
  background: var(--rm-primary);
  color: #fff;
  border-color: var(--rm-primary);
  box-shadow: 0 2px 8px rgba(0,82,165,.25);
}
.page-item.disabled .page-link {
  opacity: 0.45;
  pointer-events: none;
}

/* ===== LIGHTBOX GALERÍA ===== */
.rm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  color: #fff;
}
.rm-lightbox[hidden] { display: none !important; }
.rm-lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
  cursor: zoom-out;
}
.rm-lb-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 20px;
  background: linear-gradient(180deg, rgba(2,6,23,.75) 0%, rgba(2,6,23,0) 100%);
  pointer-events: none;
}
.rm-lb-topbar > * { pointer-events: auto; }
.rm-lb-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  max-width: calc(100% - 180px);
}
.rm-lb-caption {
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rm-lb-counter {
  font-size: 13px;
  color: var(--rm-gray-400);
  font-weight: 500;
}
.rm-lb-ctrls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rm-lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  min-width: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--rm-transition);
}
.rm-lb-btn:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.2);
  transform: translateY(-1px);
}
.rm-lb-btn-close {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.35);
}
.rm-lb-btn-close:hover {
  background: rgba(239, 68, 68, 0.45);
  border-color: var(--rm-breaking);
}
.rm-lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--rm-transition);
}
.rm-lb-nav:hover {
  background: var(--rm-primary);
  border-color: rgba(34,197,94,.4);
  transform: translateY(-50%) scale(1.06);
}
.rm-lb-nav-prev { left: 16px; }
.rm-lb-nav-next { right: 16px; }
@media (max-width: 640px) {
  .rm-lb-nav { width: 42px; height: 42px; font-size: 18px; }
  .rm-lb-nav-prev { left: 8px; }
  .rm-lb-nav-next { right: 8px; }
}
.rm-lb-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 72px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rm-lb-img-wrap {
  max-width: 100%;
  max-height: 100%;
  display: inline-flex;
}
.rm-lb-img-wrap img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
  border-radius: var(--rm-radius);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  animation: rm-lb-in .3s ease;
}
@keyframes rm-lb-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ===== TOAST / NOTIFICACIONES ===== */
.rm-toast-wrap {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
@media (max-width: 640px) {
  .rm-toast-wrap { top: auto; bottom: 20px; left: 12px; right: 12px; }
}
.rm-toast {
  background: var(--rm-gray-900);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--rm-radius);
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  pointer-events: auto;
  animation: rm-toast-in .3s ease;
  min-width: 220px;
  max-width: 360px;
}
@keyframes rm-toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@media (max-width: 640px) {
  @keyframes rm-toast-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
.rm-toast.success { border-left: 4px solid var(--rm-secondary); }
.rm-toast.error   { border-left: 4px solid var(--rm-breaking); }
.rm-toast.info    { border-left: 4px solid var(--rm-primary); }
.rm-toast-icon {
  font-size: 16px;
  flex-shrink: 0;
}

/* ===== BACK TO TOP ===== */
.rm-back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rm-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,82,165,.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--rm-transition);
  z-index: 90;
  border: none;
}
.rm-back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.rm-back-top:hover {
  background: var(--rm-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,82,165,.45);
}
@media (max-width: 640px) {
  .rm-back-top { bottom: 16px; right: 16px; width: 42px; height: 42px; }
}

/* ===== VIDEO MODAL ===== */
.rm-video-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
}
.rm-video-modal[hidden] { display: none !important; }
.rm-vm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.92);
  z-index: 1;
  cursor: pointer;
}
.rm-vm-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(239,68,68,.85);
  color: #fff;
  border: none;
  font-size: 22px;
  z-index: 3;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--rm-transition);
}
.rm-vm-close:hover { background: var(--rm-breaking); transform: scale(1.08); }
.rm-vm-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 72px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rm-vm-frame {
  width: 100%;
  max-width: 1080px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--rm-radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.rm-vm-frame iframe,
.rm-vm-frame video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ===== FORMULARIO CONTACTO / BÚSQUEDA ===== */
.rm-form-group { margin-bottom: 1rem; }
.rm-form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--rm-gray-800);
  font-size: 14px;
}
.rm-form-control,
.rm-form-select,
.rm-form-textarea {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--rm-gray-800);
  background: #fff;
  border: 1px solid var(--rm-gray-300);
  border-radius: var(--rm-radius-sm);
  transition: border-color var(--rm-transition), box-shadow var(--rm-transition);
}
.rm-form-control:focus,
.rm-form-select:focus,
.rm-form-textarea:focus {
  outline: none;
  border-color: var(--rm-primary);
  box-shadow: 0 0 0 3px rgba(0,82,165,.1);
}
.rm-form-textarea { resize: vertical; min-height: 140px; }

/* ===== ESTADO VACÍO ===== */
.rm-empty {
  padding: 60px 24px;
  text-align: center;
  background: #fff;
  border-radius: var(--rm-radius-lg);
  border: 2px dashed var(--rm-gray-200);
}
.rm-empty-icon {
  font-size: 56px;
  opacity: 0.4;
  margin-bottom: 16px;
}
.rm-empty h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.rm-empty p {
  color: var(--rm-gray-500);
  margin: 0;
}

/* ===== CATEGORÍAS LISTADO ===== */
.rm-cat-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .rm-cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
  .rm-cat-grid { grid-template-columns: repeat(4, 1fr); }
}
.rm-cat-card {
  aspect-ratio: 1/1;
  border-radius: var(--rm-radius);
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--rm-shadow-sm);
  transition: transform var(--rm-transition), box-shadow var(--rm-transition);
  display: block;
  cursor: pointer;
}
.rm-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rm-shadow);
  color: #fff;
  text-decoration: none;
}
.rm-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rm-cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
}

/* =========================================================
   CHUNK 1/3 — BREADCRUMB / PAGE HEAD / SECTION HEAD
   ========================================================= */
.rm-breadcrumb {
  font-size: 14px;
  margin-bottom: 18px;
}
.rm-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.rm-breadcrumb li + li::before {
  content: "›";
  color: var(--rm-gray-400);
  margin-right: 8px;
  font-weight: 700;
}
.rm-breadcrumb a {
  color: var(--rm-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--rm-transition);
}
.rm-breadcrumb a:hover { color: var(--rm-secondary); text-decoration: underline; }
.rm-breadcrumb .rm-active {
  color: var(--rm-gray-600);
  font-weight: 600;
}
.rm-breadcrumb-light li + li::before { color: rgba(255,255,255,.55); }
.rm-breadcrumb-light a { color: rgba(255,255,255,.92); }
.rm-breadcrumb-light a:hover { color: #fff; }
.rm-breadcrumb-light .rm-active { color: rgba(255,255,255,.8); }

.rm-page-head {
  padding: 40px 0 28px;
  background: linear-gradient(180deg, var(--rm-gray-50) 0%, transparent 100%);
  border-bottom: 1px solid var(--rm-gray-200);
}
.rm-page-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  margin: 4px 0 6px;
  color: var(--rm-gray-900);
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.rm-page-subtitle {
  font-size: 16px;
  color: var(--rm-gray-500);
  margin: 0;
}

.rm-section-head {
  padding: 56px 0 44px;
  position: relative;
  overflow: hidden;
}
.rm-section-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1000px 300px at 20% -50%, rgba(255,255,255,.18), transparent 60%);
  pointer-events: none;
}
.rm-section-head-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  position: relative;
}
.rm-section-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  flex-shrink: 0;
}
.rm-section-head-title {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.rm-section-head-desc {
  margin: 0;
  opacity: .92;
  font-size: 16px;
}
@media (max-width: 576px) {
  .rm-section-head-inner { flex-direction: column; align-items: flex-start; }
  .rm-section-icon { width: 56px; height: 56px; font-size: 28px; border-radius: 16px; }
}

/* =========================================================
   CHUNK 1/3 — BUTTONS (rm-btn family)
   ========================================================= */
.rm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  border-radius: var(--rm-radius-sm);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: all var(--rm-transition);
  white-space: nowrap;
  min-height: 40px;
}
.rm-btn-sm { padding: 7px 12px; font-size: 13px; min-height: 32px; border-radius: 6px; }
.rm-btn-lg { padding: 13px 24px; font-size: 15px; min-height: 48px; border-radius: 10px; }
.rm-btn-primary {
  background: var(--rm-primary);
  color: #fff;
  border-color: var(--rm-primary);
  box-shadow: 0 2px 0 rgba(0,0,0,.08);
}
.rm-btn-primary:hover {
  background: var(--rm-primary-dark, #003E7E);
  border-color: var(--rm-primary-dark, #003E7E);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,82,165,.28);
  text-decoration: none;
}
.rm-btn-primary:active { transform: translateY(0); }
.rm-btn-outline {
  background: transparent;
  color: var(--rm-primary);
  border-color: var(--rm-primary);
}
.rm-btn-outline:hover {
  background: var(--rm-primary);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

/* =========================================================
   CHUNK 1/3 — INPUTS / FILTERS FORM
   ========================================================= */
.rm-form-input,
.rm-form-select {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--rm-gray-800);
  background: #fff;
  border: 1.5px solid var(--rm-gray-300);
  border-radius: var(--rm-radius-sm);
  transition: border-color var(--rm-transition), box-shadow var(--rm-transition);
  min-height: 42px;
}
.rm-form-input::placeholder { color: var(--rm-gray-400); }
.rm-form-input:focus,
.rm-form-select:focus {
  outline: none;
  border-color: var(--rm-primary);
  box-shadow: 0 0 0 3px rgba(0,82,165,.12);
}
.rm-input-group {
  display: flex;
  gap: 0;
  border-radius: var(--rm-radius-sm);
  overflow: hidden;
}
.rm-input-group > .rm-form-input,
.rm-input-group > .rm-form-select {
  border-radius: 0;
  flex: 1;
  min-width: 0;
}
.rm-input-group > .rm-btn {
  border-radius: 0;
  flex-shrink: 0;
}
.rm-input-group-lg > .rm-form-input,
.rm-input-group-lg > .rm-form-select {
  min-height: 48px;
  padding: 12px 18px;
  font-size: 15px;
}
.rm-input-group-lg > .rm-btn {
  padding: 12px 24px;
  min-height: 48px;
  font-size: 15px;
}

.rm-filters-form {
  background: #fff;
  border-radius: var(--rm-radius-lg);
  padding: 20px;
  box-shadow: var(--rm-shadow-sm);
  border: 1px solid var(--rm-gray-200);
  margin-bottom: 28px;
}
.rm-filters-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}
.rm-filter-item label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rm-gray-700);
}
@media (max-width: 768px) {
  .rm-filters-row { grid-template-columns: 1fr; }
  .rm-input-group { flex-direction: column; }
  .rm-input-group > .rm-btn { border-radius: 0 0 var(--rm-radius-sm) var(--rm-radius-sm); }
  .rm-input-group > .rm-form-input { border-radius: var(--rm-radius-sm) var(--rm-radius-sm) 0 0; }
}

/* =========================================================
   CHUNK 1/3 — EMPTY STATE + 404 PAGE
   ========================================================= */
.rm-empty-state {
  padding: 64px 24px;
  text-align: center;
  background: #fff;
  border-radius: var(--rm-radius-lg);
  border: 2px dashed var(--rm-gray-200);
}
.rm-empty-state .rm-empty-icon {
  font-size: 64px;
  opacity: 0.45;
  margin-bottom: 16px;
  line-height: 1;
}
.rm-empty-state h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--rm-gray-800);
  font-weight: 700;
}
.rm-empty-state p {
  color: var(--rm-gray-500);
  margin: 0 0 18px;
  font-size: 15px;
}

.rm-404-wrap {
  text-align: center;
  padding: 56px 24px 24px;
  max-width: 680px;
  margin: 0 auto;
}
.rm-404-code {
  font-size: clamp(80px, 16vw, 160px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -4px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--rm-primary) 0%, var(--rm-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(0,82,165,.15));
}
.rm-404-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--rm-gray-900);
}
.rm-404-desc {
  color: var(--rm-gray-500);
  font-size: 16px;
  margin: 0 0 28px;
}
.rm-404-search {
  max-width: 520px;
  margin: 0 auto 28px;
}
.rm-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}
.rm-404-recomendadas {
  border-top: 1px solid var(--rm-gray-200);
  padding-top: 36px;
}
.rm-404-recomendadas .rm-section-title { margin-bottom: 22px; }

/* Section titles used across inner pages */
.rm-section-title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  color: var(--rm-gray-900);
  margin: 0 0 20px;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-left: 14px;
}
.rm-section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 10%;
  width: 4px;
  height: 80%;
  background: linear-gradient(180deg, var(--rm-primary), var(--rm-secondary));
  border-radius: 4px;
}

/* generic section paddings */
.rm-section {
  padding: 32px 0 56px;
}

/* =========================================================
   CHUNK 2/3 — TWO-COL LAYOUT + ARTICLE + SIDEBAR
   ========================================================= */
.rm-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 28px 0 56px;
}
@media (min-width: 992px) {
  .rm-two-col {
    grid-template-columns: 1fr 320px;
    gap: 36px;
    align-items: start;
  }
}

/* ---- Article wrapper ---- */
.rm-article-wrap { padding-bottom: 48px; }
.rm-article-wrap > .rm-container > .rm-breadcrumb { padding-top: 24px; margin-bottom: 20px; }

.rm-article {
  background: #fff;
  border-radius: var(--rm-radius-lg);
  overflow: hidden;
  box-shadow: var(--rm-shadow-sm);
  border: 1px solid var(--rm-gray-200);
}
.rm-article-header { padding: 28px 28px 18px; }
.rm-article-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.rm-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  border-radius: 999px;
  line-height: 1.2;
}
.rm-badge-section {
  background: var(--rm-primary);
  color: #fff;
}
.rm-badge-breaking {
  background: var(--rm-breaking);
  color: #fff;
  animation: rm-pulse-badge 1.8s ease-in-out infinite;
}
@keyframes rm-pulse-badge {
  0%,100% { box-shadow: 0 0 0 0 rgba(190,18,60,.35); }
  50%     { box-shadow: 0 0 0 8px rgba(190,18,60,0); }
}

.rm-article-title {
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.8px;
  color: var(--rm-gray-900);
  margin: 0 0 12px;
}
.rm-article-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--rm-gray-600);
  margin: 0 0 18px;
  font-weight: 500;
}
.rm-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  padding: 12px 0;
  margin: 10px 0 16px;
  border-top: 1px solid var(--rm-gray-100);
  border-bottom: 1px solid var(--rm-gray-100);
  color: var(--rm-gray-500);
  font-size: 13.5px;
}
.rm-article-meta a { color: var(--rm-primary); text-decoration: none; font-weight: 500; }
.rm-article-meta a:hover { text-decoration: underline; }

.rm-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.rm-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  color: #fff;
  transition: all var(--rm-transition);
  min-height: 36px;
  font-family: inherit;
  background: var(--rm-gray-500);
}
.rm-share-btn:hover { transform: translateY(-1px); text-decoration: none; color: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.rm-share-fb { background: #1877F2; }
.rm-share-tw { background: #000; }
.rm-share-wa { background: #25D366; }
.rm-share-copy { background: var(--rm-gray-700); }

/* ---- Article cover + content ---- */
.rm-article-cover {
  margin: 0;
  position: relative;
  background: var(--rm-gray-100);
}
.rm-article-cover-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.rm-article-cover-caption {
  padding: 10px 28px;
  font-size: 13px;
  color: var(--rm-gray-500);
  background: var(--rm-gray-50);
  border-top: 1px solid var(--rm-gray-200);
  font-style: italic;
}

.rm-article-content {
  padding: 24px 28px 8px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--rm-gray-800);
}
.rm-article-content h2,
.rm-article-content h3,
.rm-article-content h4 {
  font-weight: 800;
  margin-top: 28px;
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--rm-gray-900);
}
.rm-article-content h2 { font-size: 26px; }
.rm-article-content h3 { font-size: 22px; }
.rm-article-content h4 { font-size: 19px; }
.rm-article-content p { margin: 0 0 18px; }
.rm-article-content a { color: var(--rm-primary); text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(0,82,165,.3); }
.rm-article-content a:hover { border-bottom-color: var(--rm-primary); }
.rm-article-content ul, .rm-article-content ol { padding-left: 24px; margin: 0 0 18px; }
.rm-article-content li { margin-bottom: 8px; }
.rm-article-content blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  border-left: 4px solid var(--rm-primary);
  background: var(--rm-gray-50);
  border-radius: 0 var(--rm-radius) var(--rm-radius) 0;
  font-style: italic;
  color: var(--rm-gray-700);
}
.rm-article-content img { max-width: 100%; height: auto; border-radius: var(--rm-radius); }

.rm-ads-inline { padding: 0 28px; margin: 20px 0; }

/* ---- Subtitles ---- */
.rm-article-subtitle {
  font-size: 19px;
  font-weight: 800;
  color: var(--rm-gray-900);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- Gallery ---- */
.rm-article-gallery,
.rm-article-attachments,
.rm-article-tags,
.rm-article-related {
  padding: 12px 28px 24px;
}
.rm-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) {
  .rm-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.rm-gallery-item {
  display: block;
  border-radius: var(--rm-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  transition: transform var(--rm-transition), box-shadow var(--rm-transition);
}
.rm-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rm-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}

/* ---- Attachments ---- */
.rm-attachments-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rm-attachment-item {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  background: var(--rm-gray-50);
  border: 1px solid var(--rm-gray-200);
  border-radius: var(--rm-radius);
  transition: background var(--rm-transition);
}
.rm-attachment-item:hover { background: #fff; }
.rm-attachment-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--rm-shadow-sm);
  flex-shrink: 0;
}
.rm-attachment-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--rm-gray-800);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rm-attachment-size {
  font-size: 13px;
  color: var(--rm-gray-500);
}

/* ---- Tags ---- */
.rm-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rm-tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--rm-gray-200);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rm-gray-700);
  text-decoration: none;
  transition: all var(--rm-transition);
  min-height: 32px;
}
.rm-tag-badge:hover {
  background: var(--rm-primary);
  color: #fff;
  border-color: var(--rm-primary);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ---- Related grid ---- */
.rm-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 576px) {
  .rm-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .rm-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
  .rm-related-grid { grid-template-columns: repeat(4, 1fr); }
}
.rm-related-section { padding: 12px 28px 28px; }

/* ---- Sidebar ---- */
.rm-col-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 92px;
}
.rm-sidebar-card {
  background: #fff;
  border-radius: var(--rm-radius-lg);
  border: 1px solid var(--rm-gray-200);
  box-shadow: var(--rm-shadow-sm);
  overflow: hidden;
}
.rm-sidebar-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  padding: 16px 20px 12px;
  color: var(--rm-gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--rm-gray-100);
  background: linear-gradient(180deg, var(--rm-gray-50), transparent);
}
.rm-sidebar-list {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
}
.rm-sidebar-news,
.rm-sidebar-video,
.rm-sidebar-podcast {
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--rm-gray-100);
  transition: background var(--rm-transition);
  align-items: flex-start;
  color: inherit;
}
.rm-sidebar-news:last-child,
.rm-sidebar-video:last-child,
.rm-sidebar-podcast:last-child { border-bottom: none; }
.rm-sidebar-news:hover,
.rm-sidebar-video:hover,
.rm-sidebar-podcast:hover {
  background: var(--rm-gray-50);
  text-decoration: none;
}
.rm-sidebar-news-title {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--rm-gray-800);
  margin: 0 0 4px;
  transition: color var(--rm-transition);
}
.rm-sidebar-news:hover .rm-sidebar-news-title { color: var(--rm-primary); }
.rm-meta-date-sm {
  font-size: 12px;
  color: var(--rm-gray-500);
}
.rm-sidebar-ads { padding: 16px 20px 20px; }

/* Sidebar video / podcast compact thumb */
.rm-sidebar-video-sm,
.rm-sidebar-podcast-sm { gap: 10px; padding: 10px 14px; }
.rm-sidebar-video-thumb-sm,
.rm-sidebar-podcast-cover-sm {
  width: 82px;
  flex-shrink: 0;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  border-radius: var(--rm-radius-sm);
  position: relative;
}
.rm-sidebar-podcast-cover-sm { aspect-ratio: 1/1; }
.rm-play-overlay-sm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  background: rgba(0,0,0,.32);
  border-radius: var(--rm-radius-sm);
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.rm-sidebar-video-body,
.rm-sidebar-podcast-body {
  flex: 1;
  min-width: 0;
}
.rm-sidebar-video-title-sm,
.rm-sidebar-podcast-title-sm {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--rm-gray-800);
  margin: 0 0 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rm-sidebar-podcast-program-sm {
  font-size: 11.5px;
  color: var(--rm-gray-500);
  font-weight: 600;
}

/* =========================================================
   CHUNK 3/3 — NEWS-LIST / VIDEOS / PODCAST / RADIO / PROGRAMAS
   ========================================================= */

/* ---- News list grid ---- */
.rm-news-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .rm-news-list-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (min-width: 992px) {
  .rm-news-list-grid { grid-template-columns: repeat(3, 1fr); }
}
.rm-news-list-item { display: block; }

/* ---- Videos grid + cards ---- */
.rm-videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 32px;
}
@media (min-width: 576px) {
  .rm-videos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .rm-videos-grid { grid-template-columns: repeat(3, 1fr); }
}
.rm-videos-grid-sm { gap: 16px; }
@media (min-width: 576px) {
  .rm-videos-grid-sm { grid-template-columns: repeat(2, 1fr); }
}

.rm-video-card {
  background: #fff;
  border-radius: var(--rm-radius-lg);
  overflow: hidden;
  border: 1px solid var(--rm-gray-200);
  box-shadow: var(--rm-shadow-sm);
  transition: transform var(--rm-transition), box-shadow var(--rm-transition);
}
.rm-video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rm-shadow);
}
.rm-video-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.rm-video-link:hover { text-decoration: none; }
.rm-video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: var(--rm-gray-200);
}
.rm-play-overlay-large {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 42px;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 40%, rgba(0,0,0,.55) 100%);
  text-shadow: 0 3px 10px rgba(0,0,0,.5);
  transition: background var(--rm-transition);
}
.rm-video-thumb:hover .rm-play-overlay-large {
  background: linear-gradient(180deg, rgba(0,82,165,.15) 40%, rgba(0,82,165,.55) 100%);
}
.rm-duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,.78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .3px;
  backdrop-filter: blur(2px);
}
.rm-video-body { padding: 14px 16px 18px; }
.rm-video-title,
.rm-video-title-sm {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--rm-gray-900);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--rm-transition);
}
.rm-video-card:hover .rm-video-title,
.rm-video-card:hover .rm-video-title-sm { color: var(--rm-primary); }
.rm-video-title-sm { font-size: 14px; }
.rm-video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12.5px;
  color: var(--rm-gray-500);
}

/* ---- Video detail ---- */
.rm-video-detail-wrap { padding-bottom: 48px; }
.rm-video-player-section {
  background: #fff;
  border-radius: var(--rm-radius-lg);
  overflow: hidden;
  border: 1px solid var(--rm-gray-200);
  box-shadow: var(--rm-shadow-sm);
  padding-bottom: 4px;
}
.rm-video-player-wrap {
  background: #000;
}
.rm-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.rm-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.rm-video-tag { display: block; }
.rm-video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  position: relative;
}
.rm-video-detail-title {
  padding: 22px 24px 10px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.6px;
  color: var(--rm-gray-900);
  margin: 0;
}
.rm-video-detail-meta {
  padding: 4px 24px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  color: var(--rm-gray-500);
  font-size: 13.5px;
}
.rm-video-detail-desc {
  padding: 16px 24px 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--rm-gray-700);
  border-top: 1px solid var(--rm-gray-100);
}
.rm-video-detail-wrap .rm-tags-wrap { padding: 10px 24px 22px; }
.rm-video-detail-wrap .rm-related-section { padding: 14px 0 4px; }

/* ---- Podcast grid + cards ---- */
.rm-podcasts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 32px;
}
@media (min-width: 576px) {
  .rm-podcasts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .rm-podcasts-grid { grid-template-columns: repeat(3, 1fr); }
}
.rm-podcasts-grid-sm { gap: 16px; }

.rm-podcast-card {
  background: #fff;
  border-radius: var(--rm-radius-lg);
  overflow: hidden;
  border: 1px solid var(--rm-gray-200);
  box-shadow: var(--rm-shadow-sm);
  transition: transform var(--rm-transition), box-shadow var(--rm-transition);
}
.rm-podcast-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rm-shadow);
}
.rm-podcast-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.rm-podcast-link:hover { text-decoration: none; }
.rm-podcast-cover {
  width: 100%;
  aspect-ratio: 1/1;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: var(--rm-gray-200);
}
.rm-podcast-card-sm .rm-podcast-cover { aspect-ratio: 1/1; }
.rm-podcast-body { padding: 16px 18px 20px; }
.rm-podcast-program {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--rm-secondary);
  margin-bottom: 6px;
}
.rm-podcast-title,
.rm-podcast-title-sm {
  font-size: 15.5px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--rm-gray-900);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--rm-transition);
}
.rm-podcast-title-sm { font-size: 14px; -webkit-line-clamp: 3; }
.rm-podcast-card:hover .rm-podcast-title,
.rm-podcast-card:hover .rm-podcast-title-sm { color: var(--rm-primary); }
.rm-podcast-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12.5px;
  color: var(--rm-gray-500);
}

/* ---- Podcast detail ---- */
.rm-podcast-detail-wrap { padding-bottom: 48px; }
.rm-podcast-player-section {
  background: #fff;
  border-radius: var(--rm-radius-lg);
  overflow: hidden;
  border: 1px solid var(--rm-gray-200);
  box-shadow: var(--rm-shadow-sm);
}
.rm-podcast-detail-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, var(--rm-gray-50) 0%, #fff 100%);
  border-bottom: 1px solid var(--rm-gray-100);
}
@media (min-width: 640px) {
  .rm-podcast-detail-hero {
    grid-template-columns: 200px 1fr;
    align-items: center;
    gap: 26px;
  }
}
.rm-podcast-detail-cover {
  width: 100%;
  aspect-ratio: 1/1;
  background-size: cover;
  background-position: center;
  border-radius: var(--rm-radius-lg);
  box-shadow: var(--rm-shadow);
}
@media (min-width: 640px) {
  .rm-podcast-detail-cover { width: 200px; height: 200px; }
}
.rm-podcast-detail-program {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--rm-secondary);
  margin-bottom: 8px;
}
.rm-podcast-detail-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--rm-gray-900);
  margin: 0 0 10px;
}
.rm-podcast-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13.5px;
  color: var(--rm-gray-500);
}
.rm-podcast-player-box {
  padding: 18px 24px;
  background: var(--rm-gray-50);
  border-bottom: 1px solid var(--rm-gray-100);
}
.rm-audio-player {
  width: 100%;
  display: block;
  border-radius: 999px;
}
.rm-podcast-detail-desc {
  padding: 20px 24px 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--rm-gray-700);
}
.rm-podcast-detail-wrap .rm-related-section { padding: 14px 0 0; }

/* ---- Radio hero ---- */
.rm-radio-hero {
  padding: 56px 0 44px;
  position: relative;
  overflow: hidden;
}
.rm-radio-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 260px at 80% -40%, rgba(255,255,255,.18), transparent 60%);
  pointer-events: none;
}
.rm-radio-hero-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  position: relative;
}
.rm-radio-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  flex-shrink: 0;
}
.rm-radio-hero-title {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.rm-radio-hero-subtitle {
  margin: 0;
  opacity: .92;
  font-size: 16px;
}
@media (max-width: 576px) {
  .rm-radio-hero-inner { flex-direction: column; align-items: flex-start; }
  .rm-radio-hero-icon { width: 56px; height: 56px; font-size: 28px; border-radius: 16px; }
}

.rm-radio-player-wrap { margin: -18px 0 36px; position: relative; }
.rm-radio-player-card {
  background: #fff;
  border-radius: var(--rm-radius-lg);
  border: 1px solid var(--rm-gray-200);
  box-shadow: 0 20px 50px rgba(0,122,61,.12), 0 6px 18px rgba(0,0,0,.06);
  overflow: hidden;
}
.rm-radio-player-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--rm-secondary,#00A651), var(--rm-green-dark,#007A3D));
  color: #fff;
}
.rm-radio-onair {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.rm-dot-live {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: rm-dot-pulse 1.4s ease-in-out infinite;
  display: inline-block;
}
@keyframes rm-dot-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); transform: scale(1); }
  50%     { box-shadow: 0 0 0 8px rgba(255,255,255,0); transform: scale(1.1); }
}
.rm-radio-now {
  font-size: 14px;
  opacity: .95;
  font-weight: 500;
}
.rm-radio-player {
  padding: 18px 24px 22px;
  background: #fff;
}

/* ---- Programas grid ---- */
.rm-programas-section { margin-top: 16px; }
.rm-programas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 576px) {
  .rm-programas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .rm-programas-grid { grid-template-columns: repeat(3, 1fr); }
}
.rm-programa-card {
  background: #fff;
  border-radius: var(--rm-radius-lg);
  overflow: hidden;
  border: 1px solid var(--rm-gray-200);
  box-shadow: var(--rm-shadow-sm);
  transition: transform var(--rm-transition), box-shadow var(--rm-transition);
  display: flex;
  flex-direction: column;
}
.rm-programa-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rm-shadow);
}
.rm-programa-cover {
  width: 100%;
  aspect-ratio: 5/3;
  background-size: cover;
  background-position: center;
  background-color: var(--rm-gray-200);
}
.rm-programa-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.rm-programa-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--rm-gray-900);
  margin: 0 0 2px;
  line-height: 1.25;
}
.rm-programa-schedule,
.rm-programa-hosts {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rm-primary);
  letter-spacing: .2px;
}
.rm-programa-hosts { color: var(--rm-secondary); }
.rm-programa-desc {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--rm-gray-600);
}

/* ---- Meta badges misc ---- */
.rm-meta-section {
  font-weight: 700;
  color: var(--rm-primary);
}
.rm-meta-duration,
.rm-meta-episodio,
.rm-meta-episodio-badge,
.rm-meta-host {
  font-weight: 600;
}
.rm-meta-episodio-badge {
  padding: 3px 10px;
  background: var(--rm-secondary);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
}

/* ---- prefers-reduced-motion overrides for NEW animations ---- */
@media (prefers-reduced-motion: reduce) {
  .rm-badge-breaking { animation: none !important; }
  .rm-dot-live        { animation: none !important; }
}

/* ---- existing rm-news-grid fix (alias padding bottom margin bottom fix) ---- */
.rm-news-grid-item { display: block; }

.rm-cat-card-info h4 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #fff;
}
.rm-cat-card-info span {
  font-size: 12px;
  opacity: 0.85;
}

/* ===== UTILS / ANIMACIONES EXTRA ===== */
.rm-fade-in {
  animation: rm-fade-in .4s ease;
}
@keyframes rm-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rm-skeleton {
  background: linear-gradient(90deg, var(--rm-gray-200) 25%, var(--rm-gray-100) 50%, var(--rm-gray-200) 75%);
  background-size: 200% 100%;
  animation: rm-skeleton 1.4s infinite;
  border-radius: var(--rm-radius-sm);
}
@keyframes rm-skeleton {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== RESPONSIVE FINAL: TWEAKS MÓVIL ===== */
@media (max-width: 640px) {
  .rm-header .container { gap: 12px; }
  .rm-logo { max-height: 56px; }
  .rm-header-left { gap: 12px; width: 100%; }
  .rm-header-right { width: 100%; justify-content: center; }
  .rm-mini-radio { flex: 1; justify-content: center; }
  .rm-breaking-label { padding: 10px 12px; font-size: 11px; }
  .rm-breaking-item { font-size: 13px; }
  .rm-hero-main-content { bottom: 16px; left: 16px; right: 16px; }
  .rm-hero-main-content h2 { font-size: 20px; }
  .rm-hero-excerpt { display: none; }
  .rm-section-title h2 { font-size: 20px; }
  .rm-section-title { margin: 28px 0 14px; }
  .flyer-caption-inner { padding: 18px 20px; max-width: 95%; }
  .flyer-subtitle { display: none; }
  .flyer-nav { width: 38px; height: 38px; font-size: 22px; }
  .news-card-title { font-size: 15px; }
  .rm-article h1 { font-size: 26px; }
  .rm-article-lead { font-size: 16px; }
  .rm-article-content { font-size: 15px; }
  .rm-gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .rm-radio-hero { padding: 24px 18px; }
  .rm-radio-play { width: 64px; height: 64px; font-size: 28px; }
  .rm-footer { padding: 36px 0 0; }
  .rm-footer-grid { gap: 28px; }
}

/* ===== PRINT ===== */
@media print {
  .rm-topbar, .rm-header, .rm-nav, .rm-breaking, .rm-sidebar,
  .rm-footer, .rm-back-top, .share-btn, .rm-article-share,
  .flyer-nav, .flyer-dots { display: none !important; }
  .rm-article-wrap { grid-template-columns: 1fr; }
  body.rm-body { background: #fff; color: #000; }
}

/* ==========================================================================
   DESIGN TOKENS — UTILITIES
   ========================================================================== */

/* ===== Tipografía · tamaño / peso ===== */
.h1 { font-size: var(--rm-fs-h1); line-height: var(--rm-lh-tight); letter-spacing: var(--rm-ls-tight); font-weight: 800; color: var(--rm-gray-900); }
.h2 { font-size: var(--rm-fs-h2); line-height: var(--rm-lh-tight); letter-spacing: var(--rm-ls-tight); font-weight: 800; color: var(--rm-gray-900); }
.h3 { font-size: var(--rm-fs-h3); line-height: 1.22; letter-spacing: var(--rm-ls-tight); font-weight: 700; color: var(--rm-gray-900); }
.h4 { font-size: var(--rm-fs-h4); line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; color: var(--rm-gray-900); }
.h5 { font-size: var(--rm-fs-h5); line-height: 1.3; font-weight: 600; color: var(--rm-gray-900); }
.h6 { font-size: var(--rm-fs-h6); line-height: 1.35; font-weight: 600; color: var(--rm-gray-900); }
.display { font-size: var(--rm-fs-display); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; color: var(--rm-gray-900); }
.body-lg { font-size: var(--rm-fs-body-lg); line-height: var(--rm-lh-relax); color: var(--rm-gray-700); }
.caption  { font-size: var(--rm-fs-caption); line-height: 1.5; color: var(--rm-gray-500); }
.overline { font-size: var(--rm-fs-overline); line-height: 1.4; letter-spacing: var(--rm-ls-overline); text-transform: uppercase; font-weight: 600; color: var(--rm-gray-500); }
.text-muted   { color: var(--rm-gray-500) !important; }
.text-subtle  { color: var(--rm-gray-600) !important; }
.text-truncate{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.fw-300 { font-weight: 300; } .fw-400 { font-weight: 400; } .fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; } .fw-800 { font-weight: 800; }

/* ===== Flexbox · Grid ===== */
.d-flex   { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-grid   { display: grid; }
.d-block  { display: block; }
.d-none   { display: none !important; }
.flex-row         { flex-direction: row; }
.flex-column      { flex-direction: column; }
.flex-wrap        { flex-wrap: wrap; }
.flex-nowrap      { flex-wrap: nowrap; }
.flex-grow-1      { flex-grow: 1; }
.justify-content-start   { justify-content: flex-start; }
.justify-content-end     { justify-content: flex-end; }
.justify-content-center  { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-around  { justify-content: space-around; }
.align-items-start       { align-items: flex-start; }
.align-items-end         { align-items: flex-end; }
.align-items-center      { align-items: center; }
.align-items-stretch     { align-items: stretch; }
.gap-0 { gap: 0; }
.gap-1 { gap: var(--rm-space-1); }
.gap-2 { gap: var(--rm-space-2); }
.gap-3 { gap: var(--rm-space-3); }
.gap-4 { gap: var(--rm-space-4); }
.gap-5 { gap: var(--rm-space-5); }
.gap-6 { gap: var(--rm-space-6); }
@media (min-width: 768px) {
  .d-md-flex  { display: flex; }
  .d-md-block { display: block; }
  .d-md-none  { display: none !important; }
}
@media (min-width: 992px) {
  .d-lg-flex  { display: flex; }
  .d-lg-block { display: block; }
  .d-lg-none  { display: none !important; }
}

/* ===== Espaciado ===== */
.m-0 { margin: 0; } .p-0 { padding: 0; } .p-4 { padding: var(--rm-space-4); }
.mt-0 { margin-top: 0; }        .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: var(--rm-space-1); } .mb-1 { margin-bottom: var(--rm-space-1); }
.mt-2 { margin-top: var(--rm-space-2); } .mb-2 { margin-bottom: var(--rm-space-2); }
.mt-3 { margin-top: var(--rm-space-3); } .mb-3 { margin-bottom: var(--rm-space-3); }
.mt-4 { margin-top: var(--rm-space-4); } .mb-4 { margin-bottom: var(--rm-space-4); }
.mt-5 { margin-top: var(--rm-space-5); } .mb-5 { margin-bottom: var(--rm-space-5); }
.mt-6 { margin-top: var(--rm-space-6); } .mb-6 { margin-bottom: var(--rm-space-6); }
.pt-3 { padding-top: var(--rm-space-3); } .pb-3 { padding-bottom: var(--rm-space-3); }
.pt-4 { padding-top: var(--rm-space-4); } .pb-4 { padding-bottom: var(--rm-space-4); }
.py-3 { padding-top: var(--rm-space-3); padding-bottom: var(--rm-space-3); }
.py-4 { padding-top: var(--rm-space-4); padding-bottom: var(--rm-space-4); }
.py-5 { padding-top: var(--rm-space-5); padding-bottom: var(--rm-space-5); }
.px-3 { padding-left: var(--rm-space-3); padding-right: var(--rm-space-3); }
.px-4 { padding-left: var(--rm-space-4); padding-right: var(--rm-space-4); }
.ms-auto { margin-left: auto; } .me-auto { margin-right: auto; } .mx-auto { margin-left: auto; margin-right: auto; }

/* ===== Bordes · Sombra · Radio ===== */
.w-100 { width: 100%; } .h-100 { height: 100%; }
.rounded-sm   { border-radius: var(--rm-radius-sm); }
.rounded      { border-radius: var(--rm-radius); }
.rounded-md   { border-radius: var(--rm-radius-md); }
.rounded-lg   { border-radius: var(--rm-radius-lg); }
.rounded-xl   { border-radius: var(--rm-radius-xl); }
.rounded-pill { border-radius: var(--rm-radius-pill); }
.shadow-sm { box-shadow: var(--rm-shadow-sm); }
.shadow    { box-shadow: var(--rm-shadow); }
.shadow-md { box-shadow: var(--rm-shadow-md); }
.shadow-lg { box-shadow: var(--rm-shadow-lg); }
.border-top    { border-top: 1px solid var(--rm-gray-200); }
.border-bottom { border-bottom: 1px solid var(--rm-gray-200); }
.bg-white  { background: #fff; }
.bg-gray-50{ background: var(--rm-gray-50); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

/* ==========================================================================
   BOTONES · rm-btn family
   ========================================================================== */
.rm-btn {
  --rm-btn-bg: var(--rm-primary);
  --rm-btn-fg: #fff;
  --rm-btn-border: 1px solid transparent;
  --rm-btn-hover-bg: var(--rm-primary-dark);
  --rm-btn-hover-fg: #fff;
  --rm-btn-focus-ring: 0 0 0 3px rgba(0,82,165,.25);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 1.25rem;
  border: var(--rm-btn-border);
  border-radius: var(--rm-radius-pill);
  background: var(--rm-btn-bg);
  color: var(--rm-btn-fg);
  font-family: var(--rm-font-sans);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color 150ms ease, color 150ms ease,
              border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
  box-sizing: border-box;
}
.rm-btn:hover {
  background: var(--rm-btn-hover-bg);
  color: var(--rm-btn-hover-fg);
  text-decoration: none;
}
.rm-btn:active { transform: translateY(1px); }
.rm-btn:focus-visible {
  outline: none;
  box-shadow: var(--rm-btn-focus-ring);
}
.rm-btn[disabled],
.rm-btn.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
  filter: saturate(.6);
}
.rm-btn-sm {
  min-height: 36px;
  padding: 0 1rem;
  font-size: .875rem;
}
.rm-btn-lg {
  min-height: 52px;
  padding: 0 1.75rem;
  font-size: 1rem;
  font-weight: 700;
}

/* Variantes */
.rm-btn-primary {
  --rm-btn-bg: var(--rm-primary);
  --rm-btn-fg: #fff;
  --rm-btn-hover-bg: var(--rm-primary-dark);
  --rm-btn-focus-ring: 0 0 0 3px rgba(0,82,165,.3);
  box-shadow: 0 1px 2px rgba(0,82,165,.2);
}
.rm-btn-secondary {
  --rm-btn-bg: var(--rm-gray-800);
  --rm-btn-fg: #fff;
  --rm-btn-hover-bg: var(--rm-gray-900);
  --rm-btn-focus-ring: 0 0 0 3px rgba(30,41,59,.25);
}
.rm-btn-success {
  --rm-btn-bg: var(--rm-success);
  --rm-btn-fg: #fff;
  --rm-btn-hover-bg: #166534;
  --rm-btn-focus-ring: 0 0 0 3px rgba(21,128,61,.3);
}
.rm-btn-danger {
  --rm-btn-bg: var(--rm-danger);
  --rm-btn-fg: #fff;
  --rm-btn-hover-bg: #991b1b;
  --rm-btn-focus-ring: 0 0 0 3px rgba(185,28,28,.28);
}
.rm-btn-warning {
  --rm-btn-bg: var(--rm-warning);
  --rm-btn-fg: #fff;
  --rm-btn-hover-bg: #92400e;
  --rm-btn-focus-ring: 0 0 0 3px rgba(180,83,9,.28);
}
.rm-btn-info {
  --rm-btn-bg: var(--rm-info);
  --rm-btn-fg: #fff;
  --rm-btn-hover-bg: #075985;
  --rm-btn-focus-ring: 0 0 0 3px rgba(3,105,161,.3);
}
.rm-btn-ghost {
  --rm-btn-bg: transparent;
  --rm-btn-fg: var(--rm-primary);
  --rm-btn-border: 1px solid var(--rm-gray-200);
  --rm-btn-hover-bg: var(--rm-gray-50);
  --rm-btn-hover-fg: var(--rm-primary-dark);
  --rm-btn-focus-ring: 0 0 0 3px rgba(0,82,165,.2);
}
.rm-btn-link {
  --rm-btn-bg: transparent;
  --rm-btn-fg: var(--rm-primary);
  --rm-btn-hover-bg: transparent;
  --rm-btn-hover-fg: var(--rm-primary-dark);
  --rm-btn-focus-ring: 0 0 0 3px rgba(0,82,165,.2);
  padding: 0 .5rem;
  min-height: 28px;
  border-radius: 6px;
}
.rm-btn-link:hover { text-decoration: underline; }
.rm-btn-outline-primary {
  --rm-btn-bg: #fff;
  --rm-btn-fg: var(--rm-primary);
  --rm-btn-border: 1px solid var(--rm-primary);
  --rm-btn-hover-bg: var(--rm-primary);
  --rm-btn-hover-fg: #fff;
  --rm-btn-focus-ring: 0 0 0 3px rgba(0,82,165,.2);
}
.rm-btn-outline-success {
  --rm-btn-bg: #fff;
  --rm-btn-fg: var(--rm-success);
  --rm-btn-border: 1px solid var(--rm-success);
  --rm-btn-hover-bg: var(--rm-success);
  --rm-btn-hover-fg: #fff;
  --rm-btn-focus-ring: 0 0 0 3px rgba(21,128,61,.25);
}
.rm-btn-outline-danger {
  --rm-btn-bg: #fff;
  --rm-btn-fg: var(--rm-danger);
  --rm-btn-border: 1px solid var(--rm-danger);
  --rm-btn-hover-bg: var(--rm-danger);
  --rm-btn-hover-fg: #fff;
  --rm-btn-focus-ring: 0 0 0 3px rgba(185,28,28,.25);
}

/* Loading spinner (pseudo-elemento ::after) */
.rm-btn.is-loading {
  pointer-events: none;
  color: transparent !important;
  position: relative;
}
.rm-btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 1.1em; height: 1.1em;
  margin: -.55em 0 0 -.55em;
  border: 2px solid currentColor;
  border-right-color: transparent !important;
  border-top-color: transparent !important;
  border-radius: 50%;
  animation: rm-btn-spin .75s linear infinite;
  color: #fff;
}
.rm-btn-ghost.is-loading::after,
.rm-btn-outline-primary.is-loading::after { color: var(--rm-primary); }
.rm-btn-outline-success.is-loading::after { color: var(--rm-success); }
.rm-btn-outline-danger.is-loading::after { color: var(--rm-danger); }
@keyframes rm-btn-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   ACCESIBILIDAD · focus-visible global
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--rm-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip-link visible only on focus */
.rm-skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 9999;
  background: var(--rm-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: var(--rm-shadow-lg);
  transition: top .25s ease;
}
.rm-skip-link:focus {
  top: 16px;
  color: #fff;
  text-decoration: none;
  outline: 3px solid var(--rm-secondary);
  outline-offset: 2px;
}

.flyers-carousel {
  position: relative;
  padding: 0 22px 40px;
}
.flyers-track-wrap {
  overflow: hidden;
  border-radius: var(--rm-radius-lg);
  box-shadow: var(--rm-shadow-md);
}
.flyers-track {
  display: flex;
  width: 100%;
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.flyer-slide {
  flex: 0 0 100%;
  position: relative;
  min-width: 0;
}
.flyer-img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
}
.flyer-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(1rem, 2.2vw, 2rem);
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
}
.flyer-caption-inner { max-width: 68ch; }
.flyer-title {
  margin: 0 0 .25rem;
  font-size: var(--rm-type-h4);
  line-height: var(--rm-leading-tight);
  font-weight: 700;
}
.flyer-subtitle {
  margin: 0;
  opacity: .92;
  font-size: var(--rm-type-body);
  line-height: var(--rm-leading-normal);
}
.flyer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--rm-radius-pill);
  border: 0;
  background: #fff;
  color: var(--rm-primary);
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--rm-shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.flyer-nav:hover,
.flyer-nav:focus-visible {
  background: var(--rm-primary);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}
.flyer-nav.flyer-prev { left: -22px; }
.flyer-nav.flyer-next { right: -22px; }
.flyer-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  display: flex;
  gap: .5rem;
  justify-content: center;
  align-items: center;
  z-index: 4;
}
.flyer-dots [data-flyer-dot] {
  width: 10px;
  height: 10px;
  border-radius: var(--rm-radius-pill);
  background: var(--rm-gray-300);
  cursor: pointer;
  transition: background .2s ease, width .2s ease, transform .2s ease;
  border: 0;
  padding: 0;
}
.flyer-dots [data-flyer-dot].active {
  background: var(--rm-primary);
  width: 28px;
}
.flyer-dots [data-flyer-dot]:focus-visible {
  outline: 3px solid var(--rm-primary);
  outline-offset: 2px;
}
@media (max-width: 575.98px) {
  .flyers-carousel { padding: 0 0 40px; }
  .flyer-nav.flyer-prev { left: 8px; }
  .flyer-nav.flyer-next { right: 8px; }
  .flyer-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    opacity: .92;
  }
}

.has-bg-img { position: relative; overflow: hidden; }
.bg-img-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

.rm-article {
  display: flex;
  flex-direction: column;
  gap: var(--rm-space-4);
}
.rm-article-content,
.rm-video-detail-desc,
.rm-podcast-detail-desc {
  max-width: 68ch;
  font-size: var(--rm-type-body-lg);
  line-height: var(--rm-leading-relax);
  color: var(--rm-gray-800);
}
.rm-article-content > * + *,
.rm-video-detail-desc > * + *,
.rm-podcast-detail-desc > * + * { margin-top: 1.1em; }
.rm-article-content h2 { font-size: var(--rm-type-h3); line-height: var(--rm-leading-snug); font-weight: 700; color: var(--rm-gray-900); margin-top: 1.8em; }
.rm-article-content h3 { font-size: var(--rm-type-h4); line-height: var(--rm-leading-snug); font-weight: 700; color: var(--rm-gray-900); margin-top: 1.4em; }
.rm-article-content p, .rm-article-content li { line-height: var(--rm-leading-relax); }
.rm-article-content ul, .rm-article-content ol { padding-left: 1.4em; }
.rm-article-content a { color: var(--rm-primary); text-decoration: underline; text-underline-offset: 2px; }
.rm-article-content blockquote {
  border-left: 4px solid var(--rm-primary);
  background: var(--rm-gray-50);
  padding: var(--rm-space-3) var(--rm-space-4);
  border-radius: 0 var(--rm-radius-md) var(--rm-radius-md) 0;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--rm-gray-700);
}
.rm-article-content img,
.rm-video-detail-desc img,
.rm-podcast-detail-desc img {
  max-width: 100%;
  height: auto;
  border-radius: var(--rm-radius-md);
  margin: 1.2em auto;
  display: block;
}

.rm-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rm-space-2);
  align-items: center;
  margin-top: var(--rm-space-3);
}
.rm-share-btn {
  min-height: 48px;
  min-width: 48px;
  padding: 0 var(--rm-space-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: var(--rm-radius-pill);
  border: 1px solid var(--rm-gray-200);
  background: #fff;
  color: var(--rm-gray-700);
  font-weight: 600;
  font-size: var(--rm-type-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
}
.rm-share-btn:hover,
.rm-share-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--rm-shadow-sm);
  border-color: var(--rm-gray-300);
  color: var(--rm-gray-900);
}
.rm-share-fb { color: #1877F2; border-color: rgba(24,119,242,.22); }
.rm-share-fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.rm-share-tw { color: #000; border-color: rgba(0,0,0,.15); }
.rm-share-tw:hover { background: #000; color: #fff; border-color: #000; }
.rm-share-wa { color: #25D366; border-color: rgba(37,211,102,.22); }
.rm-share-wa:hover { background: #25D366; color: #fff; border-color: #25D366; }
.rm-share-copy { color: var(--rm-primary); border-color: rgba(0,82,165,.22); }
.rm-share-copy:hover { background: var(--rm-primary); color: #fff; border-color: var(--rm-primary); }

.rm-section-head,
.rm-radio-hero {
  --grad-c1: var(--rm-primary);
  --grad-c2: var(--rm-secondary);
  background: linear-gradient(135deg, var(--grad-c1), var(--grad-c2));
  color: #fff;
  padding: var(--rm-space-6) 0;
  border-radius: 0 0 var(--rm-radius-xl) var(--rm-radius-xl);
}
.rm-section-head .rm-breadcrumb a,
.rm-radio-hero .rm-breadcrumb a { color: rgba(255,255,255,.88); }
.rm-section-head .rm-breadcrumb a:hover,
.rm-radio-hero .rm-breadcrumb a:hover { color: #fff; }
.rm-section-head-inner,
.rm-radio-hero-inner {
  display: flex;
  align-items: center;
  gap: var(--rm-space-4);
  padding-top: var(--rm-space-3);
}
.rm-section-icon,
.rm-radio-hero-icon {
  font-size: 3rem;
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.16);
  border-radius: var(--rm-radius-lg);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}
.rm-section-head-title,
.rm-radio-hero-title {
  margin: 0 0 .25rem;
  font-size: clamp(1.75rem, 3vw, var(--rm-type-h1));
  line-height: var(--rm-leading-tight);
  font-weight: 800;
}
.rm-section-head-desc,
.rm-radio-hero-subtitle {
  margin: 0;
  opacity: .92;
  font-size: var(--rm-type-body-lg);
  line-height: var(--rm-leading-normal);
}

.rm-audio-player {
  width: 100%;
  display: block;
}
.rm-video-fill {
  width: 100%;
  height: auto;
  display: block;
}
.rm-empty-state--transparent {
  background: transparent !important;
  border: 1px dashed var(--rm-gray-300);
}

.rm-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--rm-space-5);
}
@media (min-width: 992px) {
  .rm-two-col {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--rm-space-6);
    align-items: start;
  }
}
.rm-col-main { min-width: 0; }
.rm-col-sidebar { min-width: 0; }
.rm-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--rm-space-4);
}
@media (min-width: 1200px) {
  .rm-container { max-width: 1320px; }
}
.rm-main {
  padding-block: var(--rm-space-5);
}
@media (min-width: 768px) {
  .rm-main { padding-block: var(--rm-space-6); }
}

/* ==========================================================================
   FIX OVERFLOW-X GLOBAL + BREAKING TICKER + NAV RESPONSIVE
   ========================================================================== */

html, body {
  overflow-x: hidden;
  max-width: 100%;
}
body { position: relative; }

* { max-width: 100vw; }
.rm-breaking,
.rm-breaking-inner,
.rm-breaking-track-wrap,
.rm-nav,
.rm-nav > .container,
.rm-header,
.rm-topbar {
  overflow-x: clip;
  max-width: 100vw;
}

/* Breaking ticker: asegura padding-left 100% no suma overflow */
.rm-breaking-inner { min-width: 0; }
.rm-breaking-track-wrap {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0);
  contain: layout paint;
}
.rm-breaking-track {
  will-change: transform;
  contain: layout style;
  flex-shrink: 0;
}

/* Nav principal: desktop >=992px oculta items que sobran + search no expande desborde */
.rm-nav > .container { min-width: 0; }
.rm-nav-list { min-width: 0; }
@media (min-width: 992px) {
  .rm-nav-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 100%;
  }
  .rm-nav-list::-webkit-scrollbar { display: none; }
  .rm-nav-item { flex: 0 0 auto; }
  .rm-nav-search {
    flex: 0 0 auto;
    max-width: 300px;
    min-width: 0;
  }
  .rm-nav-search input {
    width: 160px !important;
  }
  .rm-nav-search input:focus {
    width: 200px !important;
  }
}
@media (min-width: 1200px) {
  .rm-nav-search input { width: 200px !important; }
  .rm-nav-search input:focus { width: 260px !important; }
}
@media (min-width: 1400px) {
  .rm-nav-search input { width: 240px !important; }
  .rm-nav-search input:focus { width: 300px !important; }
}

/* ==========================================================================
   RENOVACION UI 2026-09-25 · Task5 · Animaciones fluidas optimizadas (GPU-only)
   Solo transform / opacity / will-change · Accesibilidad reduce-motion
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .rm-observe-fade {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
    will-change: opacity, transform;
  }
  .rm-observe-fade.rm-is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .rm-fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    animation: rm-fade-in-up 600ms ease-out forwards;
    will-change: opacity, transform;
  }
  .rm-fade-in-up.rm-stagger-1 { animation-delay: 50ms; }
  .rm-fade-in-up.rm-stagger-2 { animation-delay: 150ms; }
  .rm-fade-in-up.rm-stagger-3 { animation-delay: 250ms; }
  .rm-fade-in-up.rm-stagger-4 { animation-delay: 400ms; }

  @keyframes rm-fade-in-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .rm-nav-link {
    transition: transform 150ms ease-out, color 150ms ease-out, background-color 150ms ease-out;
  }
  .rm-nav-link:hover { transform: translateX(2px); }
  .rm-nav-link:focus-visible {
    outline: 3px solid rgba(0, 166, 81, 0.45);
    outline-offset: 2px;
    border-radius: 6px;
  }

  .rm-btn {
    transition: transform 180ms cubic-bezier(.2,.7,.2,1),
                box-shadow 180ms ease-out,
                background-color 180ms ease-out,
                border-color 180ms ease-out,
                opacity 180ms ease-out;
    will-change: transform;
  }
  .rm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(0, 82, 165, 0.5);
  }
  .rm-btn:active { transform: scale(0.98); }

  .rm-card {
    transition: transform 220ms cubic-bezier(.2,.7,.2,1),
                box-shadow 220ms ease-out,
                border-color 220ms ease-out;
    will-change: transform;
  }
  .rm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -16px rgba(15, 23, 42, 0.25);
    border-left: 3px solid #0052A5;
  }

  .rm-hero-main img,
  .rm-hero-side-item img {
    transition: transform 400ms cubic-bezier(.2,.7,.2,1);
    will-change: transform;
  }
  .rm-hero-main:hover img,
  .rm-hero-side-item:hover img {
    transform: scale(1.04);
  }

}

.rm-breaking-track {
  animation: rm-marquee 40s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .rm-observe-fade { opacity: 1 !important; transform: none !important; }
}

/* =====================================================================
   UIUX REDESIGN 2026-09-25 · RIO MAR TELEVISIÓN Y NOTICIAS (Editorial)
   · Navy institucional #0A2540 flat · Neutros · Rojo exclusivo ÚLTIMA HORA
   · NO MODIFICA tokens legacy --rm-primary #0052A5 / --rm-secondary #00A651 (R4 Flyer Sin Rodeos INAMOVIBLE)
   ===================================================================== */

/* ----- Task 1: Tokens editorial navy ----- */
:root {
  --rm-navy: #0A2540;
  --rm-navy-dark: #06182B;
  --rm-navy-700: #11325A;
  --rm-navy-50:  #F0F4FA;
  --rm-bg: #FFFFFF;
  --rm-bg-alt: #F8F9FA;
  --rm-bg-soft: #F1F5F9;
  --rm-text: #0F172A;
  --rm-text-600: #475569;
  --rm-text-400: #94A3B8;
  --rm-border: #E2E8F0;
  --rm-border-strong: #CBD5E1;
}

html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Layout base neutro */
body {
  background-color: var(--rm-bg);
  color: var(--rm-text);
  overflow-x: hidden;
  max-width: 100vw;
}
img { max-width: 100%; height: auto; }
.flex, .d-flex { min-width: 0; }
.rm-section {
  background-color: var(--rm-bg-alt);
  padding: 2.25rem 0;
}

/* Header FLAT NAVY (elimina degradado azul/verde legacy L428) */
.rm-header-wrap .rm-header,
.rm-header {
  background: var(--rm-navy) !important;
  color: #fff !important;
  padding: 16px 0 !important;
  border-bottom: 1px solid var(--rm-border) !important;
  background-image: none !important;
}
.rm-footer {
  background: var(--rm-navy-dark) !important;
  background-image: none !important;
}

/* Botones primarios flat navy (no degradados) */
.rm-btn-primary,
.rm-btn--primary,
.btn.rm-btn-primary,
a.rm-btn-primary,
button.rm-btn-primary {
  background-color: var(--rm-navy) !important;
  border-color: var(--rm-navy) !important;
  background-image: none !important;
  color: #fff !important;
  transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.rm-btn-primary:hover,
.rm-btn--primary:hover {
  background-color: var(--rm-navy-dark) !important;
  border-color: var(--rm-navy-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(10, 37, 64, 0.5);
}
.rm-btn-primary:active,
.rm-btn--primary:active { transform: scale(0.98); }

/* Breaking Ticker ROJO EXCLUSIVO (mantiene flat rojo, no navy) */
.rm-breaking {
  background-color: var(--rm-breaking, #BE123C) !important;
  color: #fff !important;
  min-height: 40px !important;
  height: 40px;
  line-height: 40px;
  overflow: hidden;
  position: relative;
  contain: layout paint;
}
.rm-breaking-inner {
  height: 40px;
  align-items: center;
}
.rm-breaking-label {
  font-size: 0.7rem !important;
  letter-spacing: 0.06em;
  font-weight: 800;
  padding: 10px 14px !important;
  line-height: 1;
  background: rgba(0, 0, 0, 0.24);
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  height: 40px;
  box-sizing: border-box;
}
.rm-breaking-track-wrap {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  height: 40px;
  aria-live: polite;
}
.rm-breaking-track-wrap:hover .rm-breaking-track,
.rm-breaking-track-wrap:focus-within .rm-breaking-track {
  animation-play-state: paused !important;
}
.rm-breaking-label::before {
  content: "";
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 9999px;
  animation: rm-live-pulse 2200ms ease-in-out infinite;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(255,255,255, 0.75);
}
@keyframes rm-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);   }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);   }
}
@media (prefers-reduced-motion: reduce) {
  .rm-breaking-label::before { animation: none !important; }
}

/* ----- Task 3: Topbar + Header compactos ----- */
.rm-topbar {
  background-color: var(--rm-bg-soft) !important;
  color: var(--rm-text-600) !important;
  border-bottom: 1px solid var(--rm-border) !important;
  padding: 7px 0 !important;
  font-size: 12.5px !important;
  line-height: 20px;
  min-height: 34px;
  height: 34px;
  overflow: hidden;
  contain: layout;
}
.rm-topbar a {
  color: var(--rm-text-600) !important;
  opacity: 0.92;
}
.rm-topbar a:hover { color: var(--rm-navy) !important; opacity: 1; }
.rm-topbar-left,
.rm-topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 20px;
}
.rm-topbar-left > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rm-text-600);
  font-weight: 500;
}
.rm-social-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  color: var(--rm-text-600);
  border-radius: 9999px;
  transition: background-color 180ms ease, color 180ms ease;
}
.rm-social-icon:hover {
  background-color: var(--rm-navy-50);
  color: var(--rm-navy) !important;
}
.rm-social-icon > svg { display: block; width: 14px; height: 14px; }
.rm-social-icon > span[aria-hidden="true"] { display: none !important; } /* oculta pseudo-letras legacy */

.rm-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-weight: 600;
  color: var(--rm-text) !important;
  background: rgba(10, 37, 64, 0.06);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.rm-admin-link:hover {
  background: var(--rm-navy);
  color: #fff !important;
  transform: translateY(-1px);
}
.rm-admin-link > svg { width: 13px; height: 13px; display: block; }

/* Header branding compacto 84px max */
.rm-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  flex-wrap: nowrap !important;
}
.rm-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 1 auto;
  min-width: 0;
}
.rm-site-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.rm-logo {
  display: block;
  height: 74px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
}
.rm-site-identity,
.rm-site-name,
.rm-site-slogan {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  clip: rect(0,0,0,0) !important;
}

/* Header right: search toggle + mini radio + menu (mobile) */
.rm-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

/* Search toggle lupa button (38x38) */
.rm-search-toggle {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255,255,255,0.10);
  transition: background-color 180ms ease, transform 180ms ease;
  border: 1px solid rgba(255,255,255,0.14);
}
.rm-search-toggle:hover,
.rm-search-toggle[aria-expanded="true"] {
  background: rgba(255,255,255,0.20);
  transform: translateY(-1px);
}
.rm-search-toggle > svg { width: 20px; height: 20px; display: block; }
.rm-search-toggle:focus-visible {
  outline: 3px solid rgba(139, 185, 249, 0.75);
  outline-offset: 2px;
}

/* Menu toggle hamburger visible solo <992px (por T7) */
.rm-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.10);
  color: #fff;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.14);
}
.rm-menu-toggle > svg { width: 22px; height: 22px; display: block; }

/* Mini radio compacto EN VIVO */
.rm-mini-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.rm-mini-play {
  width: 32px; height: 32px;
  border-radius: 9999px;
  background: #10b981; /* verde spotify-like para play live */
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, background-color 180ms ease;
}
.rm-mini-play:hover { transform: scale(1.06); background: #059669; }
.rm-mini-play[aria-pressed="true"] { background: var(--rm-navy-700); }
.rm-mini-play > svg { width: 16px; height: 16px; display: block; }
.rm-mini-radio-label {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 3px;
}
.rm-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.rm-live-indicator > svg.rm-live-dot {
  width: 8px; height: 8px; display: block;
  color: var(--rm-breaking, #BE123C);
  fill: currentColor;
  animation: rm-live-dot-pulse 2000ms ease-in-out infinite;
}
@keyframes rm-live-dot-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.8; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-live-indicator > svg.rm-live-dot { animation: none !important; }
}
.rm-mini-radio-label > span:not(.rm-live-indicator) {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

/* Nav principal FLAT blanco 48px */
.rm-nav {
  background-color: #fff !important;
  color: var(--rm-text);
  border-bottom: 1px solid var(--rm-border) !important;
  min-height: 48px;
  height: 48px;
  line-height: 48px;
  contain: layout;
  z-index: 40;
  position: sticky;
  top: 0;
  box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
}
.rm-nav .container {
  display: flex;
  align-items: stretch;
  height: 48px;
  justify-content: space-between;
  position: relative;
}
.rm-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: stretch;
  height: 48px;
  gap: 0;
  position: relative;
  z-index: 1;
  role: menubar;
}
.rm-nav-item {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  height: 48px;
  role: none;
}
.rm-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rm-text) !important;
  text-decoration: none !important;
  line-height: 1.15;
  border-bottom: 2px solid transparent;
  position: relative;
  role: menuitem;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
  white-space: nowrap;
}
.rm-nav-link > svg:first-child {
  width: 18px; height: 18px; display: block;
  color: var(--rm-navy);
  flex: 0 0 auto;
}
.rm-nav-link > span { display: inline-flex; align-items: center; gap: 0; }
.rm-nav-link__caret {
  width: 12px; height: 12px; display: block;
  margin-left: 2px;
  color: var(--rm-text-400);
  transition: transform 180ms ease, color 180ms ease;
}
.rm-nav-link:hover,
.rm-nav-link:focus-visible {
  color: var(--rm-navy) !important;
  background: var(--rm-navy-50);
}
.rm-nav-link:focus-visible {
  outline: 3px solid rgba(10, 37, 64, 0.35);
  outline-offset: -3px;
  border-radius: 4px;
}
.rm-nav-link.active,
.rm-nav-link[aria-current="page"] {
  color: var(--rm-navy) !important;
  border-bottom-color: var(--rm-navy);
}
.rm-nav-item.rm-has-submenu.rm-is-open > .rm-nav-link > .rm-nav-link__caret {
  transform: rotate(180deg);
  color: var(--rm-navy);
}

/* Dropdown submenu desktop */
.rm-nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 32px 64px -20px rgba(15, 23, 42, 0.38),
              0 10px 24px -12px rgba(15, 23, 42, 0.22);
  padding: 8px;
  list-style: none;
  margin: 0;
  z-index: 1500 !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 180ms cubic-bezier(.2,.8,.2,1), box-shadow .2s ease;
  role: menu;
}
.rm-nav-item.rm-has-submenu.rm-is-open > .rm-nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.rm-nav-submenu::before {
  content: "";
  position: absolute;
  top: -6px; left: 24px;
  width: 12px; height: 12px;
  background: #ffffff;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  transform: rotate(45deg);
  z-index: 2;
}
.rm-nav-submenu li { role: none; display: block; margin: 0; padding: 0; }
.rm-nav-sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rm-text) !important;
  text-decoration: none !important;
  border-radius: 8px;
  role: menuitem;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
  line-height: 1.2;
}
.rm-nav-sublink > svg {
  width: 16px; height: 16px; display: block; color: var(--rm-navy);
  flex: 0 0 auto;
}
.rm-nav-sublink:hover,
.rm-nav-sublink:focus-visible {
  background: var(--rm-navy-50);
  color: var(--rm-navy) !important;
  transform: translateX(2px);
}
.rm-nav-sublink:focus-visible {
  outline: 3px solid rgba(10, 37, 64, 0.3);
  outline-offset: -1px;
}
.rm-nav-sublink[aria-current="page"] {
  background: var(--rm-navy-50);
  color: var(--rm-navy) !important;
  font-weight: 700;
}

/* Búsqueda inline ANTIGUA (rm-nav-search) → oculta, reemplazada por sheet */
.rm-nav-search { display: none !important; }

/* Search sheet flotante (desktop ≥992px) */
.rm-header-search-wrap {
  position: relative;
}
.rm-search-sheet {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(92vw, 420px);
  z-index: 90;
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--rm-border-strong);
  box-shadow: 0 16px 32px -16px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 200ms cubic-bezier(.2,.8,.2,1);
  contain: layout paint;
}
.rm-header-search-wrap.rm-is-open > .rm-search-sheet {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.rm-search-sheet::before {
  content: "";
  position: absolute;
  top: -5px; right: 22px;
  width: 10px; height: 10px;
  background: #fff;
  border-left: 1px solid var(--rm-border-strong);
  border-top: 1px solid var(--rm-border-strong);
  transform: rotate(45deg);
}
.rm-search-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.rm-search-sheet-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rm-navy);
}
.rm-search-sheet-close {
  width: 30px; height: 30px;
  border-radius: 9999px;
  color: var(--rm-text-600);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 160ms ease, color 160ms ease;
}
.rm-search-sheet-close:hover {
  background: var(--rm-bg-soft);
  color: var(--rm-text);
}
.rm-search-sheet-close > svg { width: 16px; height: 16px; display: block; }
.rm-search-sheet form {
  display: flex;
  gap: 8px;
  align-items: center;
  role: search;
}
.rm-search-sheet input[type="search"] {
  flex: 1 1 auto;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--rm-border-strong);
  padding: 0 14px;
  font-size: 0.9rem;
  color: var(--rm-text);
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  min-width: 0;
  outline: none;
}
.rm-search-sheet input[type="search"]::placeholder { color: var(--rm-text-400); }
.rm-search-sheet input[type="search"]:focus {
  border-color: var(--rm-navy);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.18);
}
.rm-search-sheet-submit {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--rm-navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 160ms ease, transform 160ms ease;
  flex: 0 0 auto;
}
.rm-search-sheet-submit:hover { background: var(--rm-navy-dark); transform: translateY(-1px); }
.rm-search-sheet-submit > svg { width: 18px; height: 18px; display: block; }

/* Backdrop invisible para cerrar search sheet clickeando fuera (z-89 detrás sheet) */
.rm-search-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 89;
  display: none;
}
.rm-header-search-wrap.rm-is-open ~ .rm-search-backdrop,
.rm-search-backdrop.rm-is-open { display: block; }

/* ----- Task 5: Cards news line-clamp + grid uniforme ----- */
.rm-clamp-1 {
  display: -webkit-box !important;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rm-clamp-2 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rm-clamp-3 {
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card,
.rm-news-card {
  background: #fff;
  border: 1px solid var(--rm-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1),
              box-shadow 220ms ease,
              border-color 220ms ease;
}
.news-card:hover,
.rm-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.25);
  border-color: var(--rm-border-strong);
}
.rm-news-grid,
.news-grid,
.rm-cards-grid {
  display: grid !important;
  grid-auto-rows: 1fr;
  gap: 1.5rem;
}
.news-card__img,
.news-card img,
.rm-news-card__img {
  display: block;
  width: 100%;
  object-fit: cover;
  background: var(--rm-bg-soft);
}
.news-card__img-wrap--16x9,
.rm-news-card__img--16x9 {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--rm-bg-soft);
}
@supports not (aspect-ratio: 16/9) {
  .news-card__img-wrap--16x9 { padding-top: 56.25%; height: 0; }
  .news-card__img-wrap--16x9 > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}
.news-card__img-wrap--4x3,
.rm-news-card__img--4x3 {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--rm-bg-soft);
}
@supports not (aspect-ratio: 4/3) {
  .news-card__img-wrap--4x3 { padding-top: 75%; height: 0; }
  .news-card__img-wrap--4x3 > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}

.news-card h2, .news-card .news-card__title--hero,
.rm-news-card__title--hero {
  font-size: 1.802rem;
  line-height: 1.2;
  font-weight: 800;
  margin: 0.5rem 0 0.6rem;
  color: var(--rm-text);
  min-height: calc(1.802rem * 1.2 * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card h3, .news-card .news-card__title,
.rm-news-card__title {
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 800;
  margin: 0.35rem 0 0.4rem;
  color: var(--rm-text);
  min-height: calc(1.1rem * 1.3 * 2 + 0.1rem);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card a h3:hover,
.news-card h3:hover,
.rm-news-card__title:hover { color: var(--rm-navy); }
.news-card p, .news-card .excerpt,
.rm-news-card__excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 0.5rem;
  color: var(--rm-text-600);
  min-height: calc(0.95rem * 1.5 * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .meta,
.news-card .news-meta,
.rm-news-card__meta {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--rm-text-400);
  margin-top: auto;
  padding-top: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Video / radio / podcast cards igual altura */
.video-card,
.rm-programa-card,
.podcast-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--rm-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1), box-shadow 220ms ease;
}
.video-card:hover,
.rm-programa-card:hover,
.podcast-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.25);
}

/* ----- Task 7: Responsive media queries ----- */

/* 1200-: ligeramente más compacto nav items */
@media (max-width: 1199.98px) {
  .rm-nav-link { padding: 0 0.8rem; }
  .rm-site-name { font-size: 1.25rem; }
  .rm-site-slogan { font-size: 0.68rem; letter-spacing: 0.12em; }
}

/* <992: desktop nav se oculta, aparece hamburguesa, drawer móvil */
@media (max-width: 991.98px) {
  .rm-nav .rm-nav-list { display: none !important; }
  .rm-menu-toggle { display: inline-flex !important; }
  .rm-search-sheet { display: none !important; } /* search pasa a drawer móvil */
  .rm-header .container { min-height: 44px; }
  .rm-logo { height: 64px !important; }
  .rm-site-slogan { display: none !important; }
  .rm-header { padding: 12px 0 !important; min-height: 68px; }
  .rm-mini-radio { display: none; } /* mini radio pasa a drawer móvil */
  .rm-breaking-label { font-size: 0.64rem !important; padding: 10px 10px !important; }
}

/* <768: tablet / phablet */
@media (max-width: 767.98px) {
  .rm-topbar {
    height: auto !important;
    min-height: 60px !important;
    padding: 8px 0 !important;
  }
  .rm-topbar .container { flex-wrap: wrap; gap: 6px; }
  .rm-topbar-left,
  .rm-topbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .rm-site-name { font-size: 1.15rem; display:none !important; }
  .rm-logo { height: 58px !important; }
  .rm-header { padding: 10px 0 !important; min-height: 60px; }
  .rm-header-right { gap: 8px; }
  .rm-breaking-track-wrap .rm-breaking-item { font-size: 0.8rem; }
}

/* <420: móvil pequeño, oculta redes 3 menos relevantes */
@media (max-width: 420px) {
  .rm-social-icon.rm-social--tiktok,
  .rm-social-icon.rm-social--threads,
  .rm-social-icon.rm-social--whatsapp { display: none !important; }
  .rm-topbar-right { gap: 6px; }
  .rm-admin-link { padding: 3px 8px; font-size: 0.72rem; }
  .rm-admin-link > svg { width: 12px; height: 12px; }
  .rm-site-name { font-size: 1rem; display:none !important; }
  .rm-logo { height: 52px !important; }
}

/* Containers padding reducido en móvil */
@media (max-width: 575.98px) {
  .container {
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ============================================================
   RIO-MAR-EXTRA-FIXES-V55F
   Robustez menú desplegable + variables colors tema aplicadas
   ============================================================ */

/* (1) MENÚ DESPLEGABLE ROBUSTO V56F:
     - Click (class rm-is-open): GLOBAL (cualquier viewport).
     - Hover / focus-within: SÓLO en dispositivos con ratón/touchpad fine (pointer: fine).
     - Eliminar restricción min-width 992px para click. */
.rm-nav-item.rm-has-submenu.rm-is-open > .rm-nav-submenu {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
  display: block !important;
  visibility: visible !important;
}
.rm-nav-item.rm-has-submenu.rm-is-open > .rm-nav-link,
.rm-nav-item.rm-has-submenu.rm-is-open > .rm-nav-link--group {
  color: var(--rm-primary, #0052A5) !important;
  background-color: rgba(0, 82, 165, 0.07);
}
.rm-nav-item.rm-has-submenu.rm-is-open > .rm-nav-link > .rm-nav-link__caret {
  transform: rotate(180deg) !important;
  color: var(--rm-primary, #0052A5) !important;
}

@media (hover: hover) and (pointer: fine) {
  .rm-nav-item.rm-has-submenu:hover > .rm-nav-submenu,
  .rm-nav-item.rm-has-submenu:focus-within > .rm-nav-submenu {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
    display: block !important;
    visibility: visible !important;
  }
  .rm-nav-item.rm-has-submenu:hover > .rm-nav-link,
  .rm-nav-item.rm-has-submenu:focus-within > .rm-nav-link {
    color: var(--rm-primary, #0052A5) !important;
    background-color: rgba(0, 82, 165, 0.07);
  }
  .rm-nav-item.rm-has-submenu:hover > .rm-nav-link > .rm-nav-link__caret,
  .rm-nav-item.rm-has-submenu:focus-within > .rm-nav-link > .rm-nav-link__caret {
    transform: rotate(180deg);
    color: var(--rm-primary, #0052A5);
  }
}

/* (2) APLICAR VARIABLES CSS TEMA (desde :root) A LAS ZONAS CLAVE: header, breaking, footer
   para que personalización Colores del tema V4 -> V55F SI se vea reflejada en sitio público. */

.rm-header { background-color: var(--rm-header-bg, #0052A5) !important; color: var(--rm-header-text, #fff) !important; }
.rm-header a:not(.rm-nav-link),
.rm-header .rm-site-name,
.rm-header .rm-site-slogan,
.rm-header .rm-mini-radio-label > span,
.rm-header .rm-topbar-date { color: var(--rm-header-text, #fff) !important; }

.rm-breaking { background-color: var(--rm-breaking-bg, #DC2626) !important; color: var(--rm-breaking-text, #fff) !important; }
.rm-breaking .rm-breaking-label,
.rm-breaking .rm-breaking-item { color: var(--rm-breaking-text, #fff) !important; }

/* Footer público: aplica colors si partial public_footer usa --rm-footer-bg / --rm-footer-text */
.rm-footer,
footer.rm-footer,
#rm-footer { background-color: var(--rm-footer-bg, #0A1628) !important; color: var(--rm-footer-text, #E2E8F0) !important; }
.rm-footer a,
footer.rm-footer a,
#rm-footer a { color: rgba(255,255,255,0.85); }

/* (3) Nav: sticky z-index MUY alto para que dropdowns no se corten por otros stacks
   + consumir variables tema personalizado de site_settings para colorear CTAs/activos. */
.rm-nav { z-index: 200 !important; position: relative; }

/* Consumir vars :root del tema (Admin > Ajustes > Colores) en UIUX core: */
:root {
  --rm-navy: var(--rm-primary, #0A2540);
  --rm-primary-50: color-mix(in srgb, var(--rm-primary, #0052A5) 8%, white);
  --rm-navy-50: var(--rm-primary-50, rgba(0, 82, 165, 0.08));
  --rm-secondary-700: color-mix(in srgb, var(--rm-secondary, #00A651) 78%, black);
  --rm-accent-700: color-mix(in srgb, var(--rm-accent, #22C55E) 78%, black);
}
.rm-nav-link.active > svg:first-child,
.rm-nav-link[aria-current="page"] > svg:first-child {
  color: var(--rm-primary, #0052A5) !important;
}
.rm-nav-link.active,
.rm-nav-link[aria-current="page"] {
  color: var(--rm-primary, #0052A5) !important;
  border-bottom-color: var(--rm-primary, #0052A5) !important;
}
.rm-nav-link::after {
  background: var(--rm-secondary, #00A651) !important;
}
.rm-nav-link:hover > svg:first-child,
.rm-nav-link:focus-visible > svg:first-child {
  color: var(--rm-primary, #0052A5) !important;
}
.rm-header .rm-topbar a {
  color: inherit !important;
}
/* Botones CTA públicos alineados a colores tema: */
.rm-btn, [class*="rm-btn-"] { --rm-cta: var(--rm-accent, #22C55E); }
.rm-breaking .rm-breaking-label { background: color-mix(in srgb, var(--rm-breaking-bg, #E11D48) 92%, black); }

/* --- REDISEÑO RPP 2026-09-28 --- */
@keyframes rm-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(225,29,72, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(225,29,72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225,29,72, 0); }
}
.rm-header-wrap.rm-header-rpp {
  background: #ffffff;
  border-bottom: none !important;
  box-shadow: none !important;
}
.rm-topbar-new.rm-grid-3 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.75rem .85rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.rm-tb-col { display: inline-flex; align-items: center; min-width: 0; }
.rm-tb-col-left  { justify-content: flex-start; }
.rm-tb-col-center{ justify-content: center; display:flex; }
.rm-tb-col-right { justify-content: flex-end; gap: .75rem; flex-wrap: wrap; }

.rm-btn-menu {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .95rem;
  background: #F1F5F9;
  color: #0F172A;
  border: 1px solid transparent;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 700;
  font-size: .92rem;
  line-height: 1;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
  position: relative;
  z-index: 1700;
  isolation: isolate;
}
.rm-btn-menu.is-open {
  background: #0A2540;
  color: #ffffff;
  border-color: rgba(255,255,255,0.12);
}
.rm-btn-menu.is-open > svg { color: #ffffff; }
.rm-btn-menu:hover { background:#E2E8F0; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(15,23,42,.06); }
.rm-btn-menu:focus-visible { outline: 3px solid rgba(59,130,246,.45); outline-offset: 2px; }
.rm-btn-menu > svg { color: #0F172A; }
.rm-btn-menu-label { white-space: nowrap; }

.rm-brand-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none !important;
}
.rm-brand-center .rm-logo {
  height: 74px !important;
  max-height: 74px;
  width: auto;
  display: block;
  object-fit: contain;
}

.rm-header-right { gap: .75rem; }
.rm-search-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem 1rem;
  background: #F1F5F9;
  color: #334155;
  border: 1px solid transparent;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  line-height: 1;
  transition: background-color .18s ease, color .18s ease;
}
.rm-search-toggle:hover { background:#E2E8F0; color: #0F172A; }
.rm-search-toggle-label { white-space: nowrap; }
.rm-search-toggle > svg { color: inherit; }

.rm-signal {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #0F172A;
  font-weight: 700;
  font-size: .86rem;
  letter-spacing: .01em;
  padding: .25rem .65rem .25rem .25rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
}
.rm-live-dot {
  width: 10px; height: 10px; border-radius: 9999px;
  background: #E11D48;
  margin-left: .35rem;
  animation: rm-live-pulse 1.5s infinite;
  display: inline-block;
}
.rm-signal-label { color:#475569; font-weight: 600; margin-right: .15rem; }
.rm-signal-link {
  color: #0F172A;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  padding: 2px 1px;
}
.rm-signal-link:hover { border-bottom-color: #0052A5; color: #0052A5; }
.rm-signal-sep { color:#94A3B8; margin: 0 .2rem; font-weight: 600; }

.rm-play-circle {
  width: 48px; height: 48px;
  border-radius: 9999px;
  border: none;
  background: #2563EB;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32), inset 0 -2px 0 rgba(0,0,0,0.1);
  transition: transform .18s ease, filter .18s ease, background-color .18s ease;
  flex-shrink: 0;
}
.rm-play-circle:hover { transform: translateY(-1px) scale(1.03); filter: brightness(1.05); }
.rm-play-circle:focus-visible { outline: 3px solid rgba(37,99,235,.55); outline-offset: 3px; }
.rm-play-circle[aria-pressed="true"] { background: #16A34A; box-shadow: 0 4px 14px rgba(22,163,74,.35); }
.rm-play-circle-icon { transform: translateX(1px); display: inline-block; }

.rm-live-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .7rem 1.1rem;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 700;
  line-height: 1.3;
  margin: .6rem 1.75rem 0;
  box-shadow: 0 2px 10px rgba(15,23,42,.06);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  color: #fff;
}
.rm-live-banner:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(15,23,42,.10); filter: brightness(1.02); }
.rm-live-banner--black {
  background: #0F172A;
  color: #ffffff;
}
.rm-live-banner-yticon { display: inline-flex; flex-shrink: 0; }
.rm-live-banner-yticon > svg { display: block; }
.rm-live-banner-prefix {
  background: #E11D48; color: #fff;
  padding: .18rem .6rem;
  border-radius: 9999px;
  font-size: .78rem;
  letter-spacing: .06em;
  font-weight: 800;
}
.rm-live-banner-sep { color: rgba(255,255,255,.55); font-weight: 600; }
.rm-live-banner-text { font-size: 1.02rem; letter-spacing: .005em; }

.rm-live-banner--featured {
  background: var(--rm-banner-color, #B8860B);
  color: #ffffff;
  font-weight: 700;
}
.rm-live-banner--featured .rm-live-banner-text { font-size: .98rem; }

.rm-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.52);
  backdrop-filter: blur(2px);
  z-index: 1390;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  /* NUNCA tapear el botón Menú (top-left ~70px alto). Garantiza click en btn drawer TOGGLE even when open */
  clip-path: polygon(0 110px, 100% 110px, 100% 100%, 0 100%);
}
.rm-drawer-overlay.show { opacity: 1; pointer-events: auto; }

.rm-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(420px, 92vw);
  max-width: 100%;
  background: #ffffff;
  z-index: 1400;
  transform: translateX(-105%);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 30px 80px -24px rgba(15,23,42,0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  contain: layout paint;
}
.rm-drawer.is-open { transform: translateX(0); }
body.rm-drawer-open { overflow: hidden; touch-action: none; }

.rm-drawer-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(15,23,42,.08);
  flex: 0 0 auto;
  background: #fff;
}
.rm-drawer-close {
  width: 40px; height: 40px;
  border-radius: 9999px;
  background: #F1F5F9;
  color: #0F172A;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}
.rm-drawer-close:hover { background:#E2E8F0; transform: rotate(90deg); }
.rm-drawer-close > svg { display:block; color:#0F172A; }
.rm-drawer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none !important;
  width: 100%;
}
.rm-drawer-logo .rm-logo {
  height: 58px !important;
  max-height: 58px;
  object-fit: contain;
  display: block;
  width: auto;
  max-width: 100%;
}
.rm-drawer-search {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  text-decoration: none !important;
  padding: .45rem .6rem;
  border-radius: 10px;
  color: #0F172A;
  font-weight: 800;
  font-size: .86rem;
  letter-spacing: .05em;
  transition: background-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.rm-drawer-search:hover { background: #F1F5F9; color: #2563EB; }
.rm-drawer-search > svg { color: inherit; }

.rm-drawer-social {
  padding: 1rem 1.1rem .6rem;
  text-align: center;
  border-bottom: 1px solid rgba(15,23,42,.06);
  flex: 0 0 auto;
}
.rm-drawer-social-title {
  margin: 0 0 .75rem;
  font-size: .98rem;
  font-weight: 600;
  color: #475569;
}
.rm-drawer-social-list {
  display: inline-flex;
  gap: .7rem;
  align-items: center;
  justify-content: center;
}
.rm-drawer-social-item {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #F1F5F9;
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.rm-drawer-social-item:hover { background: #2563EB; color: #fff; transform: translateY(-1px); }
.rm-drawer-social-item > svg { display: block; }

.rm-drawer-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  background: #25D366;
  color: #ffffff !important;
  padding: .85rem 1.1rem;
  border-radius: 14px;
  margin: .9rem 1.1rem .5rem;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none !important;
  box-shadow: 0 6px 22px rgba(37,211,102,.28);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  flex: 0 0 auto;
}
.rm-drawer-whatsapp:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(37,211,102,.42); filter: brightness(1.03); }
.rm-drawer-whatsapp > svg { flex-shrink: 0; display:block; }

.rm-drawer-promo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #0F172A;
  color: #ffffff !important;
  padding: .85rem 1.1rem;
  border-radius: 14px;
  margin: 0 1.1rem .9rem;
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(15,23,42,.22);
  transition: transform .18s ease, box-shadow .18s ease;
  flex: 0 0 auto;
}
.rm-drawer-promo:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(15,23,42,.38); }

.rm-drawer-sections-wrap {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: .35rem 1.1rem 1.25rem;
  -webkit-overflow-scrolling: touch;
  background: #F8FAFC;
  border-top: 1px solid rgba(15,23,42,.05);
}
.rm-drawer-sec-title {
  margin: .8rem 0 .55rem;
  color: #64748B;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: none;
}
.rm-drawer-sections {
  list-style: none;
  margin: 0;
  padding: 0 0 .35rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.rm-drawer-sections > li { margin: 0; }

.rm-drawer-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  background: #fff;
  color: #0F172A;
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 12px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.25;
  min-height: 48px;
  box-sizing: border-box;
  transition: background-color .16s ease, transform .16s ease, color .16s ease, border-color .16s ease;
}
.rm-drawer-link > span:nth-of-type(1) { flex: 1 1 auto; min-width: 0; }
.rm-drawer-link > span:nth-of-type(2) { color: #94A3B8; font-weight: 600; font-size: 1.05rem; flex-shrink: 0; }
.rm-drawer-link:hover {
  background: #EFF6FF;
  border-color: rgba(37,99,235,.25);
  color: #1D4ED8;
  transform: translateX(2px);
}
.rm-drawer-link:focus-visible {
  outline: 3px solid rgba(37,99,235,.38);
  outline-offset: 2px;
}
.rm-drawer-link--live {
  background: #EFF6FF;
  border-color: rgba(37,99,235,.25);
  color: #1D4ED8;
}

.rm-drawer-section-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  background: #fff;
  color: #0F172A;
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.25;
  cursor: pointer;
  min-height: 48px;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.rm-drawer-section-btn:hover { background: #F1F5F9; }
.rm-drawer-section-btn > span:nth-of-type(1) { text-align: left; flex: 1 1 auto; }
.rm-drawer-section-btn .caret {
  color: #94A3B8;
  font-size: .8rem;
  transition: transform .18s ease, color .18s ease;
  flex-shrink: 0;
}
.rm-drawer-section[aria-expanded="true"] > .rm-drawer-section-btn,
.rm-drawer-section-btn[aria-expanded="true"] {
  background: #F1F5F9;
  color: #1D4ED8;
  border-color: rgba(37,99,235,.22);
}
.rm-drawer-section-btn[aria-expanded="true"] .caret { transform: rotate(180deg); color: #1D4ED8; }

.rm-drawer-submenu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: .2rem .15rem 0;
  padding: 0 .5rem;
  border-left: 2px solid rgba(37,99,235,.25);
  transform: translateY(-4px);
  transition: max-height .28s ease, opacity .22s ease, transform .22s ease, padding-top .2s ease, padding-bottom .2s ease;
}
.rm-drawer-section.is-open > .rm-drawer-submenu {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  padding-top: .25rem;
  padding-bottom: .35rem;
}
.rm-drawer-link--sub {
  min-height: 42px;
  padding: .7rem 1rem;
  background: #FFFFFF;
  border-color: rgba(15,23,42,.05);
  font-weight: 600;
  font-size: .92rem;
  color: #334155;
  margin: .25rem 0;
}
.rm-drawer-desc {
  margin: .35rem 0 .5rem .5rem;
  padding: .35rem .5rem;
  font-size: .82rem;
  line-height: 1.4;
}

.rm-live-page {
  background: linear-gradient(180deg, #0B1220 0%, #0A2540 100%);
  color: #fff;
  padding: 1.5rem 0 3rem;
  min-height: calc(100vh - 260px);
}
.rm-live-hero { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.rm-live-hero-head { margin-bottom: 1.25rem; }
.rm-live-dot-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .25rem .75rem; background: rgba(225,29,72,.18);
  color:#FECDD3; border:1px solid rgba(225,29,72,.35);
  border-radius: 9999px; font-size: .78rem; font-weight: 800;
  letter-spacing: .08em; margin-bottom: .65rem;
}
.rm-live-dot-badge .dot {
  width: 8px; height: 8px; border-radius: 9999px;
  background: #E11D48; animation: rm-live-pulse 1.5s infinite;
}
.rm-live-title { margin: 0 0 .45rem; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.rm-live-muted { margin: 0; color:#94A3B8; }
.rm-live-stage {
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 40px 80px -24px rgba(0,0,0,.7);
  border: 1px solid rgba(148,163,184,.12);
}
.rm-live-stage.is-offline { aspect-ratio: auto; padding: 3rem 1.5rem; display:flex; align-items:center; justify-content:center; }
.rm-embed { width:100%; height:100%; display:block; background:#000; }
.rm-embed > iframe, .rm-embed > video { width:100%; height:100%; display:block; border:0; background:#000; }
.rm-live-offline-card { text-align:center; max-width: 560px; color: #CBD5E1; }
.rm-live-offline-card .icon { font-size: 3.5rem; margin-bottom: .5rem; }
.rm-live-offline-card h2 { margin: 0 0 .4rem; color: #fff; font-weight: 800; }
.rm-live-offline-tip { margin-top: 1rem; padding: .7rem .9rem; background: rgba(148,163,184,.12); border: 1px solid rgba(148,163,184,.18); border-radius: 12px; font-size: .85rem; color:#94A3B8; }
.rm-live-actions { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.rm-live-actions .btn { padding: .65rem 1rem; border-radius: 9999px; font-weight: 700; display: inline-flex; align-items: center; gap: .45rem; text-decoration: none !important; border: 1px solid rgba(148,163,184,.25); color:#E2E8F0; background: rgba(148,163,184,.1); }
.rm-live-actions .btn:hover { background: rgba(148,163,184,.18); color:#fff; transform: translateY(-1px); }

@media (max-width: 1199px) {
  .rm-topbar-new.rm-grid-3 { padding: .8rem 1.25rem; gap: .75rem; }
  .rm-signal { padding: .2rem .5rem .2rem .2rem; gap: .4rem; font-size: .8rem; }
  .rm-brand-center .rm-logo { height: 64px !important; max-height: 64px; }
  .rm-live-banner { margin-left: 1.25rem; margin-right: 1.25rem; }
}

@media (max-width: 991px) {
  .rm-topbar-new.rm-grid-3 {
    grid-template-columns: auto 1fr auto;
    padding: .7rem .9rem .65rem;
    gap: .4rem;
  }
  .rm-btn-menu { padding: .5rem; border-radius: 9999px; }
  .rm-btn-menu-label { display: none; }
  .rm-brand-center .rm-logo { height: 58px !important; max-height: 58px; }
  .rm-search-toggle { padding: .5rem; border-radius: 9999px; background: transparent; }
  .rm-search-toggle-label { display: none; }
  .rm-signal { display: none !important; }
  .rm-play-circle { width: 44px; height: 44px; box-shadow: 0 4px 12px rgba(37,99,235,.38); }

  .rm-live-banner {
    margin: .5rem .9rem 0;
    padding: .6rem .9rem;
    flex-direction: row;
    text-align: center;
  }
  .rm-live-banner-text { font-size: .92rem; }
  .rm-live-banner--featured .rm-live-banner-text { font-size: .88rem; }
  .rm-live-banner-yticon > svg { width: 22px; height: auto; }
  .rm-live-banner-prefix { padding: .15rem .55rem; font-size: .72rem; }

  .rm-drawer-logo .rm-logo { height: 52px !important; max-height: 52px; }
  .rm-drawer-head { padding: .8rem 1rem; gap: .5rem; }
  .rm-drawer-social { padding: .85rem 1rem .5rem; }
  .rm-drawer-whatsapp { margin: .75rem 1rem .4rem; padding: .8rem 1rem; font-size: .92rem; }
  .rm-drawer-promo { margin: 0 1rem .8rem; padding: .8rem 1rem; font-size: .9rem; }
  .rm-drawer-sections-wrap { padding: .25rem 1rem 1rem; }
  .rm-live-stage { border-radius: 14px; }
}

@media (max-width: 520px) {
  .rm-brand-center .rm-logo { height: 52px !important; max-height: 52px; }
  .rm-drawer-logo .rm-logo { height: 46px !important; max-height: 46px; }
  .rm-play-circle { width: 42px; height: 42px; font-size: 16px; }
  .rm-drawer-social-item { width: 40px; height: 40px; border-radius: 11px; }
  .rm-drawer-whatsapp { font-size: .88rem; }
  .rm-live-title { font-size: 1.35rem; }
}

/* ===== Fixes 28/09 user request ===== */
/* Fix5: Topbar logo + menu + TV + radio FIXED inamovible scroll (position fixed NO sticky) */
.rm-header-wrap.rm-header-rpp {
  position: fixed;
  top: 0;
  left: 0;
  width: 100% !important;
  max-width: none !important;
  z-index: 1300;
  background: #ffffff;
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  transition: box-shadow .2s ease;
}
#rm-fixed-topbar-spacer {
  display: block;
  width: 100%;
  height: 90px;
  background: transparent;
  pointer-events: none;
}
.rm-header-wrap.rm-header-rpp.rm-is-sticky-scrolled {
  box-shadow: 0 14px 32px -18px rgba(15,23,42,.4);
  border-bottom-color: rgba(15,23,42,.1) !important;
}
@media (prefers-reduced-motion: reduce) {
  .rm-header-wrap.rm-header-rpp { transition: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (min-width: 992px) {
  .rm-header-wrap.rm-header-rpp { z-index: 1300; }
}

/* Fix1: Menú desplegable desktop — quitar recorte overflow-y que corta absolute submenu */
@media (min-width: 992px) {
  .rm-nav-list {
    overflow: visible !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
  }
}

/* Fix4a: Dropdowns desktop hover (≥992px) — abrir con mouseover (además del click/focus existente) */
@media (min-width: 992px) {
  .rm-nav-item.rm-has-submenu:hover > .rm-nav-submenu,
  .rm-nav-item.rm-has-submenu:focus-within > .rm-nav-submenu {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    display: block !important;
  }
  .rm-nav-item.rm-has-submenu:hover > .rm-nav-link > .rm-nav-link__caret,
  .rm-nav-item.rm-has-submenu:focus-within > .rm-nav-link > .rm-nav-link__caret {
    transform: rotate(180deg) !important;
    color: var(--rm-navy, #0A2540) !important;
  }
  .rm-nav-item.rm-has-submenu:hover,
  .rm-nav-item.rm-has-submenu:focus-within {
    z-index: 2;
  }
}

/* Fix3: Banner negro EN VIVO FULL WIDTH (100% page), border-radius 0, sin margen con breaking */
.rm-live-banner--tight.rm-live-banner--black {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 10px 1.25rem !important;
  border-radius: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 14px;
  box-shadow: none !important;
  transform: none !important;
}
.rm-live-banner--tight.rm-live-banner--black:hover {
  transform: none !important;
  filter: brightness(1.05);
}

/* Fix3: Breaking bar PEGADO banner (sin espacios en blanco), full width */
.rm-breaking--tight {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-radius: 0 !important;
}
.rm-breaking--tight + *,
.rm-live-banner--tight + .rm-breaking,
.rm-live-banner--tight + .rm-breaking--tight {
  margin-top: 0 !important;
}

/* Fix2: Secciones destacadas HOME responsive (3 cols desktop → 1 col móvil, alturas uniformes) */
.rm-home-secs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.rm-home-sec-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.rm-home-sec-card > ul {
  flex: 1 1 auto;
}
@media (max-width: 991px) {
  .rm-home-secs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .rm-home-secs-grid { grid-template-columns: 1fr; gap: .85rem; }
  .rm-home-sec-card > ul > li { grid-template-columns: 112px 1fr !important; }
  .rm-home-sec-card > ul > li img { width: 112px !important; height: 78px !important; }
}

/* Fix4b: Botón / input BUSCAR más estético estilo RPP */
.rm-search-toggle {
  background: #ffffff !important;
  color: #0F172A !important;
  border: 1px solid rgba(15,23,42,.12) !important;
  box-shadow: 0 2px 8px rgba(15,23,42,.05), inset 0 0 0 1px rgba(255,255,255,.9);
  padding: .55rem 1rem !important;
  border-radius: 9999px !important;
  transition: all .18s ease !important;
}
.rm-search-toggle:hover {
  background: #F8FAFC !important;
  color: #0A2540 !important;
  border-color: rgba(37,99,235,.35) !important;
  box-shadow: 0 6px 18px rgba(15,23,42,.08) !important;
  transform: translateY(-1px);
}
.rm-search-toggle:focus-visible {
  outline: 3px solid rgba(37,99,235,.25) !important;
  outline-offset: 2px;
  border-color: rgba(37,99,235,.45) !important;
  background: #EFF6FF !important;
}
.rm-search-toggle-label {
  font-weight: 600 !important;
  letter-spacing: .01em;
  color: #334155 !important;
}
@media (max-width: 991px) {
  .rm-search-toggle {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    padding: .5rem !important;
  }
}

/* =========================================================
   FIX IMAGEN 1: Legibilidad página /en-vivo sobre fondo navy
   ========================================================= */
.rm-live-title {
  color: #FFFFFF !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45) !important;
  background: linear-gradient(90deg,
    rgba(15, 23, 42, 0.55) 0%,
    rgba(10, 37, 64, 0.30) 100%) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.55rem 1.05rem !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: inline-block;
  -webkit-text-stroke: 0.2px rgba(255,255,255,0.18);
}
.rm-live-dot-badge {
  background: linear-gradient(90deg, #BE123C 0%, #E11D48 100%) !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 8px 22px -8px rgba(190, 18, 60, 0.7) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-weight: 900 !important;
  letter-spacing: 0.14em !important;
}
.rm-live-dot-badge .dot {
  background: #FFF5F5 !important;
  box-shadow: 0 0 0 3px rgba(255, 139, 139, 0.38) !important;
  animation: rm-live-pulse 1.1s infinite !important;
}
.rm-live-muted { color: #CBD5E1 !important; font-weight: 600 !important; }
.rm-live-hero-head {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem;
  padding: 0.75rem 0 0.15rem;
}

/* =========================================================
   FIX IMAGEN 2: Botón BUSCAR pill profesional (Quitar círculo 38px roto)
   ========================================================= */
.rm-search-toggle {
  width: auto !important;
  height: auto !important;
  min-height: 44px !important;
  min-width: 112px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.45rem 1.15rem !important;
  cursor: pointer !important;
  background: #FFFFFF !important;
  color: #0A2540 !important;
  border: 1px solid rgba(10, 37, 64, 0.10) !important;
  border-radius: 9999px !important;
  box-shadow:
    0 2px 10px rgba(15, 23, 42, 0.08),
    0 1px 2px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255,255,255,0.95) !important;
  font-weight: 700 !important;
  transition: all 160ms cubic-bezier(0.4,0,0.2,1) !important;
}
.rm-search-toggle:hover {
  background: linear-gradient(180deg,#FFFFFF 0%, #F1F5F9 100%) !important;
  color: #0052A5 !important;
  border-color: rgba(0, 82, 165, 0.25) !important;
  box-shadow:
    0 12px 28px -10px rgba(15, 23, 42, 0.22),
    0 3px 8px rgba(15, 23, 42, 0.06) !important;
  transform: translateY(-1.5px);
}
.rm-search-toggle:active {
  transform: translateY(0) scale(0.985);
  box-shadow:
    0 1px 4px rgba(15, 23, 42, 0.08),
    inset 0 1px 2px rgba(15,23,42,0.04) !important;
  background: #E2E8F0 !important;
  border-color: rgba(0, 82, 165, 0.35) !important;
}
.rm-search-toggle:focus-visible {
  outline: 3px solid rgba(0, 82, 165, 0.35) !important;
  outline-offset: 3px;
  border-color: #0052A5 !important;
}
.rm-search-toggle-label {
  color: #0A2540 !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  line-height: 1 !important;
}
.rm-search-toggle > svg {
  color: #0052A5 !important;
  width: 20px !important; height: 20px !important;
  flex: 0 0 auto;
}
@media (max-width: 991px) {
  .rm-search-toggle {
    background: rgba(255,255,255,0.10) !important;
    border-color: rgba(255,255,255,0.20) !important;
    color: #FFFFFF !important;
    min-width: 44px !important;
    padding: 0.45rem !important;
    box-shadow: none !important;
  }
  .rm-search-toggle-label { display: none !important; }
  .rm-search-toggle > svg { color: #FFFFFF !important; }
  .rm-search-toggle:hover {
    background: rgba(255,255,255,0.22) !important;
    color: #FFFFFF !important;
    border-color: rgba(255,255,255,0.45) !important;
    box-shadow: none !important;
    transform: translateY(-1px);
  }
}

/* =========================================================
   FIX IMAGEN 3: Submenú En Vivo / Medios · UX Televisión
   ========================================================= */
.rm-nav-sublink {
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, padding 150ms ease, transform 150ms ease;
  border-radius: 10px;
}
.rm-nav-sublink:hover {
  background: linear-gradient(90deg, rgba(0, 82, 165, 0.08), rgba(0, 166, 81, 0.05)) !important;
  color: #0052A5 !important;
  padding-left: calc(0.9rem + 3px) !important;
  transform: translateX(2px);
}
.rm-nav-sublink:active { transform: scale(0.985); }
.rm-nav-sublink svg { transition: stroke 150ms ease, transform 150ms ease; }
.rm-nav-sublink:hover svg { stroke: #0052A5 !important; transform: scale(1.08); }
/* Variante link LIVE (Televisión → /en-vivo) */
.rm-nav-sublink--live {
  background: linear-gradient(90deg, rgba(190,18,60,0.07), rgba(225,29,72,0.02)) !important;
}
.rm-nav-sublink--live:hover {
  background: linear-gradient(90deg, rgba(190,18,60,0.12), rgba(225,29,72,0.06)) !important;
  color: #BE123C !important;
}
.rm-nav-sublink--live:hover svg { stroke: #BE123C !important; }

/* =========================================================
   FIX IMAGEN ACTUAL: Buscador sheet (modal) OCULTO / CORTADO
   =========================================================
   Causa #1 (GRAVE): .rm-search-sheet tenia contain:layout paint (L5337)
     -> El renderizador NO PINTABA lo que salia del padre rm-header-search-wrap (altura 44px del topbar)
     -> Boton submit azul 40px se veia solo mitad superior (semicirculo) + placeholder input cortado
   Causa #2 : z-index 90 MUY BAJO vs nav sticky z=1400 / topbar fixed z=1300
     -> La barra de nav breaking se superponia encima del sheet
   Fix: contener UNSET + z 2000 + padding + elevacion sombra + form strech + submit 48px hitbox WCAG
*/
.rm-search-sheet {
  z-index: 2000 !important;
  contain: unset !important;
  overflow: visible !important;
  padding: 18px 18px 20px !important;
  width: min(92vw, 460px) !important;
  border-radius: 14px !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow:
    0 36px 80px -18px rgba(15, 23, 42, 0.40),
    0 14px 30px -14px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.95) inset !important;
  top: calc(100% + 14px) !important;
  right: 0 !important;
}
/* Arrow (caret triangular sheet) */
.rm-search-sheet::before {
  z-index: 2001 !important;
  top: -6px !important;
  right: 28px !important;
  width: 12px !important;
  height: 12px !important;
}
.rm-search-sheet-head {
  margin-bottom: 12px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  gap: .5rem;
}
.rm-search-sheet-title {
  font-size: 1rem !important;
  color: #0A2540 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  font-weight: 800 !important;
}
.rm-search-sheet-close {
  width: 34px !important;
  height: 34px !important;
  border-radius: 9999px !important;
  transition: all 120ms ease !important;
  color: #475569 !important;
}
.rm-search-sheet-close:hover {
  background: #FEE2E2 !important;
  color: #BE123C !important;
  transform: rotate(90deg) scale(1.06);
}
.rm-search-sheet form {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  align-items: stretch !important;   /* submit y input MISMA altura 48px WCAG */
  justify-content: space-between !important;
  min-height: 48px !important;
}
.rm-search-sheet input[type="search"] {
  height: 48px !important;
  padding: 0 16px !important;
  font-size: 1rem !important;
  border-radius: 12px !important;
  border: 1.5px solid rgba(15, 23, 42, 0.10) !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%) !important;
  transition: all 140ms ease !important;
}
.rm-search-sheet input[type="search"]:focus {
  border-color: #0052A5 !important;
  box-shadow: 0 0 0 4px rgba(0, 82, 165, 0.18) !important;
  background: #FFFFFF !important;
}
.rm-search-sheet input[type="search"]::placeholder {
  color: #64748B !important;
  font-weight: 500 !important;
  letter-spacing: 0.005em;
}
.rm-search-sheet-submit {
  width: 56px !important;
  height: 48px !important;
  min-width: 56px !important;
  min-height: 48px !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #0052A5 0%, #003E7E 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(0, 62, 126, 0.55) !important;
  box-shadow:
    0 10px 20px -8px rgba(0, 82, 165, 0.55),
    0 2px 4px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 140ms cubic-bezier(.2,.8,.2,1) !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 56px !important;
  align-self: stretch !important;
}
.rm-search-sheet-submit:hover {
  transform: translateY(-1.5px) !important;
  background: linear-gradient(180deg, #0A66C2 0%, #0052A5 100%) !important;
  box-shadow:
    0 16px 32px -12px rgba(0, 82, 165, 0.70),
    0 4px 8px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
}
.rm-search-sheet-submit:active {
  transform: translateY(0) scale(0.96) !important;
  background: linear-gradient(180deg, #003E7E 0%, #002952 100%) !important;
  box-shadow:
    0 6px 10px -6px rgba(0, 0, 0, 0.35),
    inset 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}
.rm-search-sheet-submit:focus-visible {
  outline: 3px solid rgba(0, 82, 165, 0.45) !important;
  outline-offset: 3px;
  border-color: #0A66C2 !important;
}
.rm-search-sheet-submit > svg {
  width: 20px !important;
  height: 20px !important;
  color: #FFFFFF !important;
  flex: 0 0 auto !important;
  stroke-width: 2.3 !important;
}
.rm-search-backdrop {
  z-index: 1999 !important;
  background: rgba(15, 23, 42, 0.22) !important;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

/* =========================================================
   FIX ACTUAL: BANNERS HEROES (debajo menú) PEGADOS SIN ESPACIO
   =========================================================
   BUG: rm-main padding-block 32px + rm-section-head padding-top 56px + rm-radio-hero margin-top 20px
        + rm-page-head padding-top 40px = 3-4 franjas blancas entre nav y banner.
   También: border-radius top 0 (antes dejaba esquinas superiores blancas).
*/
/* 1) <main> PADDING ARRIBA = 0 solo páginas interiores (NO home). Home usa mt-4 en el 1er section.container por lo que no se afecta. */
.rm-main {
  padding-block: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
/* Salvedad: Home no usa banners hero pegados — volver padding-bottom 32px por consistencia */
body:has(.rm-home-secs-grid) .rm-main,
body:has(.rm-home-hero) .rm-main,
body:has(#rm-home-hero) .rm-main,
body.rm-home .rm-main {
  padding-top: 0 !important;
  padding-bottom: var(--rm-space-6) !important;
}

/* 2) Banner sección (Fútbol/Perú/Nacional etc) — PEGAR directamente bajo nav */
.rm-section-head,
.rm-radio-hero {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  padding-top: 1.25rem !important;
  padding-bottom: 1.75rem !important;
  box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.55);
}

/* 3) Banner página sencilla (Videos/Podcast/Noticias index) — padding-top menor, no borde superior blanco */
.rm-page-head {
  padding-top: 1.25rem !important;
  padding-bottom: 1.75rem !important;
  margin-top: 0 !important;
  border-top: 0 !important;
  background: linear-gradient(180deg, #F1F5F9 0%, #FFFFFF 100%) !important;
  border-bottom: 1px solid var(--rm-gray-200);
}
.rm-page-head .rm-breadcrumb {
  margin-bottom: .5rem !important;
}
.rm-page-head .rm-page-title {
  margin-top: .15rem !important;
}

/* 4) 1er section interior (después de cada hero) — padding-top adecuado (1.75rem) para no pegar el contenido al banner */
.rm-section:first-of-type,
section.rm-section:first-of-type {
  padding-top: 1.75rem !important;
}

/* Fix3b: Ticker breaking hover link azul marino y doble buffer clean */
.rm-breaking-item {
  color: #fff !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 0;
  transition: color .18s ease, opacity .18s ease;
}
.rm-breaking-caret {
  color: #fff;
  opacity: .85;
  font-weight: 800;
  font-size: 1.05em;
  flex-shrink: 0;
  display: inline-flex;
}
.rm-breaking-item:hover,
.rm-breaking-item:focus-visible {
  color: #FEE2E2 !important;
  opacity: .96;
  outline: none;
}
.rm-breaking-item > span:nth-of-type(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Fixes 28/09 (PARTE 2) · Overrides !important (última capa, gana cualquier conflicto) ===== */
/* D1: Barra roja ÚLTIMA HORA MÁS FINA (la mitad de grosor). Sobrescribe UIUX 40px/48px anterior */
.rm-breaking {
  min-height: 22px !important;
  height: 26px !important;
  line-height: 1.1 !important;
  overflow: hidden !important;
}
.rm-breaking-label {
  padding: 6px 14px !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
}
.rm-breaking-label::before {
  width: 7px !important;
  height: 7px !important;
}
.rm-breaking-item {
  font-size: 12.5px !important;
  font-weight: 500 !important;
  padding: 5px 0 !important;
  line-height: 1.1 !important;
}

/* A + B: Dropdown z-index alto 1500 + Nav sticky 90px (debajo header fixed) sin conflictos UIUX L5155/L5719 */
.rm-nav {
  z-index: 1400 !important;
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 90px !important;
  min-height: auto !important;
  height: auto !important;
  line-height: normal !important;
  contain: unset !important;
  overflow: visible !important;
}
.rm-nav > .container,
.rm-nav-list,
.rm-nav-item.rm-has-submenu {
  contain: unset !important;
  overflow: visible !important;
}
.rm-nav-submenu {
  z-index: 1500 !important;
  contain: unset !important;
  overflow: visible !important;
  box-shadow: 0 32px 64px -20px rgba(15, 23, 42, 0.38),
              0 10px 24px -12px rgba(15, 23, 42, 0.22) !important;
  border-radius: 14px !important;
}

/* C: Topbar grid 3 fondo azul logo 100% width VIEWPORT completo — sin max-width ni margin auto que dejaba franjas blancas left/right */
.rm-topbar-new.rm-grid-3 {
  max-width: none !important;
  margin: 0 !important;
  width: 100% !important;
  padding-left: clamp(1rem, 2.4vw, 2.75rem) !important;
  padding-right: clamp(1rem, 2.4vw, 2.75rem) !important;
}

/* C: Línea blanca divisoria — 100% asegurado 0 border/shadow entre topbar y banner negro */
.rm-header-wrap.rm-header-rpp {
  border-bottom: 0 !important;
  box-shadow: none !important;
}
.rm-live-banner--tight + .rm-breaking--tight,
.rm-live-banner--tight + * {
  margin-top: 0 !important;
}
.rm-live-banner--tight.rm-live-banner--black {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  min-height: 0 !important;
}

/* =========================================================
   FIX ACTUAL: BUSCADOR SHEET DESENFOCADO / NO EN FRENTE
   =========================================================
   BUG stacking context:
   1) rm-header-wrap z=1300 (crea stacking context) < nav sticky z=1400
      → sheet (absolute dentro header, z=2000 INTERNO) SE PINTABA ANTES QUE EL NAV
      → breaking bar / nav se superponian encima generando desenfoque visual
   2) rm-search-backdrop z=1999 en ROOT stacking context > header z=1300
      → BACKDROP se pintaba SOBRE el sheet aplicando blur(1px) = ilusion desenfoque
   Fix: header z → 1600 (> nav 1400), backdrop z → 1599 (< header 1600 pero > nav 1400)
   Extra: backdrop con transition opacity/visibility, sheet fondo #FFFFFF opaco 100%
*/
.rm-header-wrap.rm-header-rpp {
  z-index: 1600 !important;
}
@media (min-width: 992px) {
  .rm-header-wrap.rm-header-rpp {
    z-index: 1600 !important;
  }
}
/* Backdrop: entre nav (1400) y header (1600) — NUNCA por encima del sheet */
.rm-search-backdrop {
  z-index: 1599 !important;
  background: rgba(15, 23, 42, 0.32) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  position: fixed !important;
  inset: 0 !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 180ms ease, visibility 180ms ease !important;
}
.rm-search-backdrop.rm-is-open,
.rm-header-search-wrap.rm-is-open ~ .rm-search-backdrop {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
/* Sheet 100% nitido — NUNCA backdrop-filter al sheet, solo blanco opaco */
.rm-search-sheet {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  background: #FFFFFF !important;
  background-image: none !important;
  opacity: 1 !important;
}

/* =========================================================
   FIX ACTUAL: BANNERS SECCIÓN HERO · CORPORATE PROFESSIONAL REDESIGN
   =========================================================
   Objetivo: reemplazar estilo "infantil" (emojis gigantes, gradiente plano,
   bordes redondos XL) por estilo SaaS/Corporate tipo RPP / El Comercio / Vercel.
   Capas:
   · Gradiente 135° base c1→c2 (OSCURIZADO 12% con mix-blend darken overlay)
   · Radial mesh 2 círculos (light blobs opacos 14%)
   · Grid pattern sutil 32px (blanco 4% → textura fina)
   · Acento lateral 5px blanco 35% + glow (izq)
   · Línea inferior 1px blanco 14%
   · Sombra inferior difuminada sutil (no fuerte)
*/
.rm-section-head {
  /* RESET de reglas anteriores (L2726, L4538, L6767) para total override */
  padding-top: 32px !important;
  padding-bottom: 36px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: linear-gradient(135deg, var(--grad-c1, #0052A5) 0%, #0A4B88 42%, color-mix(in srgb, var(--grad-c2, #00A651) 88%, #000000 12%) 100%) !important;
  background-color: var(--grad-c1, #0052A5) !important;
  border-radius: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.14) !important;
  margin-top: 0 !important;
  position: relative;
  overflow: hidden;
  min-height: 210px;
  box-shadow:
    0 22px 42px -30px rgba(15, 23, 42, 0.55),
    0 10px 22px -18px rgba(15, 23, 42, 0.25) !important;
  color: #FFFFFF !important;
  isolation: isolate;   /* stacking interno propio; overlays no afectan contenido */
  backdrop-filter: none !important;
}
/* Acento lateral izquierdo profesional (5mm) */
.rm-section-head::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  top: 0;
  width: 5px;
  background: linear-gradient(180deg, rgba(255,255,255,0.44) 0%, rgba(255,255,255,0.12) 100%);
  box-shadow: 0 0 24px 0 rgba(255,255,255,0.10);
  z-index: 2;
  pointer-events: none;
}
/* Overlay A · Mesh radial superior (blob de luz top-left) */
.rm-section-head-overlayA {
  position: absolute;
  inset: -40% auto auto -10%;
  width: 720px; height: 560px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 56%);
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(2px);
}
/* Overlay B · Mesh radial inferior derecha (blob suave verde) */
.rm-section-head-overlayB {
  position: absolute;
  inset: auto -12% -50% auto;
  width: 680px; height: 520px;
  background: radial-gradient(circle at 60% 40%, rgba(0,0,0,0.22), transparent 62%);
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}
/* Overlay Grid · textura fina sutil (0.5px white strokes, opacity 5%) */
.rm-section-head-overlayGrid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px;
  background-position: 0 0, 0 0;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), transparent 95%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), transparent 95%);
  z-index: 1;
  pointer-events: none;
}
/* Wrapper contenido: z-index por encima de overlays + left padding compensación acento */
.rm-section-head-wrap {
  position: relative;
  z-index: 3;
  padding-left: 28px !important;
}
/* Top-row: Kicker (pill) + breadcrumb + count (derecha) */
.rm-section-head-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.rm-section-head-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.rm-section-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.82);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
/* Breadcrumb · compact · dark-on-light mode? → aquí white 70% con SVG home */
.rm-breadcrumb.rm-breadcrumb-pro {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
}
.rm-breadcrumb.rm-breadcrumb-pro ol {
  gap: 10px !important;
}
.rm-breadcrumb.rm-breadcrumb-pro li + li::before {
  content: "·";
  color: rgba(255,255,255,0.45) !important;
  margin-right: 10px !important;
  font-weight: 700;
}
.rm-breadcrumb.rm-breadcrumb-pro a {
  color: rgba(255,255,255,0.70) !important;
  font-weight: 500 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  letter-spacing: 0.01em;
  transition: color 140ms ease;
}
.rm-breadcrumb.rm-breadcrumb-pro a:hover {
  color: #FFFFFF !important;
}
.rm-breadcrumb.rm-breadcrumb-pro .rm-active {
  color: rgba(255,255,255,0.92) !important;
  font-weight: 600 !important;
}
.rm-bc-home svg { color: rgba(255,255,255,0.65); flex-shrink: 0; display: block; }
.rm-bc-home:hover svg { color: #FFFFFF; }

/* Badge Count Publicaciones · derecha */
.rm-section-head-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.rm-section-head-count svg {
  color: rgba(255,255,255,0.68);
  flex-shrink: 0;
  display: block;
}

/* Inner: Icon + copy */
.rm-section-head-inner {
  display: flex;
  align-items: center;
  gap: 22px !important;
  padding-top: 0 !important;
  position: relative;
  z-index: 3;
}
/* Icon · glass minimalista (sin emojis) · 56px · SVG stroke */
.rm-section-head .rm-section-icon {
  width: 56px !important;
  height: 56px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,0.08) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04)) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 8px 22px -10px rgba(0,0,0,0.30) !important;
  color: #FFFFFF !important;
  font-size: 0 !important;     /* suprime emoji antiguo si queda */
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.rm-section-head .rm-section-icon svg {
  display: block !important;
  color: #FFFFFF !important;
  width: 28px; height: 28px;
  flex-shrink: 0;
}
/* Título · display-style 800 · tracking negativo · max-width 780 */
.rm-section-head .rm-section-head-title {
  font-size: clamp(28px, 3.1vw, 44px) !important;
  line-height: 1.02 !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #FFFFFF !important;
  margin: 0 0 8px !important;
  text-wrap: pretty;
  max-width: 800px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.18);
}
.rm-section-head-copy { flex: 1 1 auto; min-width: 0; }
/* Descripción · white 88% · 16/26 · no negrita */
.rm-section-head .rm-section-head-desc {
  font-size: 16px !important;
  line-height: 1.58 !important;
  color: rgba(255,255,255,0.88) !important;
  font-weight: 400 !important;
  margin: 0 !important;
  max-width: 760px;
  letter-spacing: 0.005em;
}

/* Responsive móvil: icon 48px, reducir gaps y pad-left acento */
@media (max-width: 768px) {
  .rm-section-head {
    min-height: 180px;
    padding-top: 22px !important;
    padding-bottom: 26px !important;
  }
  .rm-section-head-wrap { padding-left: 18px !important; }
  .rm-section-head::after { width: 3.5px; }
  .rm-section-head-inner { gap: 14px !important; flex-direction: column; align-items: flex-start; }
  .rm-section-head .rm-section-icon { width: 46px !important; height: 46px !important; border-radius: 12px !important; }
  .rm-section-head .rm-section-icon svg { width: 22px; height: 22px; }
  .rm-section-head-toprow { margin-bottom: 14px; gap: 10px; }
  .rm-section-head-count { padding: 6px 10px; font-size: 12px; }
  .rm-section-pill { font-size: 10px; padding: 4px 10px; }
  .rm-section-head .rm-section-head-desc { font-size: 15px !important; line-height: 1.55 !important; }
}
@media (max-width: 480px) {
  .rm-section-head-overlayA { width: 120%; left: -20%; }
  .rm-section-head-overlayB { width: 120%; right: -25%; }
}

/* =========================================================
   REDESIGN COMPLEMENTARIO: RADIO HERO + PAGE HEAD
   =========================================================
   Mantener coherencia visual entre módulos (mismos patrones:
   overlay, pill, acento lateral, tipografía, grid texture)
*/
/* Radio hero (index Radio) */
.rm-radio-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 180px;
  background: linear-gradient(135deg, var(--grad-c1, #00A651) 0%, #058A45 45%, #026B35 100%) !important;
  border-radius: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.14) !important;
  box-shadow: 0 22px 42px -30px rgba(15, 23, 42, 0.55) !important;
  backdrop-filter: none !important;
}
.rm-radio-hero::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.12));
  z-index: 2; pointer-events: none;
}
.rm-radio-hero::before {
  content: "" !important;
  position: absolute !important; inset: 0 !important;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px) !important;
  background-size: 32px 32px !important;
  z-index: 1 !important; pointer-events: none !important;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.82), transparent 95%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.82), transparent 95%);
  box-shadow: none !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
  transform: none !important;
}
.rm-radio-hero .rm-radio-hero-icon {
  width: 56px !important;
  height: 56px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 8px 22px -10px rgba(0,0,0,0.30) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
  flex-shrink: 0;
}
.rm-radio-hero .rm-radio-hero-title {
  font-size: clamp(24px, 2.8vw, 36px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #FFFFFF !important;
}
.rm-radio-hero .rm-radio-hero-desc {
  color: rgba(255,255,255,0.90) !important;
  font-size: 16px !important;
  line-height: 1.58;
}

/* Page Head (Videos / Podcast / Noticias index) */
.rm-page-head {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #F6F8FC 0%, #FFFFFF 72%) !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(15,23,42,0.07) !important;
  border-radius: 0 !important;
  padding-top: 28px !important;
  padding-bottom: 30px !important;
  min-height: 130px;
  box-shadow: 0 14px 28px -22px rgba(15,23,42,0.15) !important;
  backdrop-filter: none !important;
}
.rm-page-head::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--rm-primary, #0052A5), var(--rm-secondary, #00A651));
  z-index: 1;
}
.rm-page-head .rm-breadcrumb { margin-bottom: 10px !important; }
.rm-page-head .rm-page-title {
  font-size: clamp(24px, 2.6vw, 34px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.05 !important;
  color: #0B1220 !important;
  margin: 0 0 6px !important;
}
.rm-page-head .rm-page-subtitle {
  color: #475569 !important;
  font-weight: 400 !important;
  font-size: 15px !important;
}

/* ---------------- RESPONSIVE / MOBILE CHECKS ---------------- */
@media (prefers-reduced-motion: reduce) {
  .rm-section-head, .rm-radio-hero, .rm-page-head { transition: none !important; }
  .rm-section-pill, .rm-section-head-count { transition: none !important; backdrop-filter: none !important; }
}
/* WCAG AA: Aumento foco focus-visible en elementos clickeables dentro de hero banners */
.rm-section-head a:focus-visible,
.rm-radio-hero a:focus-visible,
.rm-page-head a:focus-visible {
  outline: 3px solid rgba(255,255,255,0.90) !important;
  outline-offset: 3px !important;
  border-radius: 6px;
}

/* =========================================================
   FIX ACTUAL V6 #Buscador DEFAULT OCULTO + CERRABLE (bug: "se ve por defecto e inamovible")
   =========================================================
   Causa root: reglas .rm-search-sheet (L6611) sobrescribieron display/opacity/translate
   y no volvieron a imponer el DEFAULT CLOSED. Resultado: sheet SIEMPRE visible (incluso sin rm-is-open)
   y backdrop visible → user no puede cerrarlo ("inamovible").
   Fixes:
   (1) DEFAULT state CLOSED estricto (display:none + opacity 0 + visibility hidden + translateY negativo).
   (2) State rm-is-open explícito 100% VISIBLE (vence reglas anteriores).
   (3) Backdrop CLOSED estricto y rm-is-open visible.
   (4) rm-header-search-wrap overflow: visible para que sheet no se corte.
*/
@media (min-width: 992px) {
  .rm-header-search-wrap {
    overflow: visible !important;
    contain: layout style;
    position: relative;
  }
  /* === DEFAULT CLOSED (sin rm-is-open) === */
  .rm-header-search-wrap:not(.rm-is-open) > .rm-search-sheet {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-10px) scale(.985) !important;
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-width: 0 !important;
  }
  /* === OPEN (rm-is-open) === */
  .rm-header-search-wrap.rm-is-open > .rm-search-sheet {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
    max-height: 90vh !important;
    padding-top: 18px !important;
    padding-bottom: 20px !important;
    border-width: 1px !important;
  }
  /* === BACKDROP DEFAULT CLOSED === */
  .rm-search-backdrop:not(.rm-is-open) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  /* === BACKDROP OPEN === */
  .rm-search-backdrop.rm-is-open,
  .rm-header-search-wrap.rm-is-open ~ .rm-search-backdrop {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 1599 !important;
  }
}
@media (max-width: 991.98px) {
  .rm-search-sheet { display: none !important; }
  .rm-search-backdrop { display: none !important; }
}

/* ===== HOME TOP WRAPPER GRID + WIDGETS (ÁREA ROJA RELLENAR) ===== */
.rm-home-top-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  width: 100%;
  align-items: start;
}

@media (min-width: 992px) {
  .rm-home-top-wrap {
    grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
    gap: 24px;
  }
}

.rm-home-top-left { width: 100%; min-width: 0; }
.rm-home-top-right {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Hero side 1 columna vertical desktop (5 tarjetas apiladas llenar altura) */
@media (min-width: 992px) {
  .rm-hero-side { grid-template-columns: 1fr !important; grid-auto-rows: minmax(0, 1fr); }
}
.rm-hero-side-item { height: 100%; }

/* Widgets base */
.rm-top-widget {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 6px 20px -12px rgba(15, 23, 42, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rm-top-widget-head {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.rm-top-widget-title {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rm-top-widget-more {
  font-weight: 700;
  font-size: 11.5px;
  color: #0052A5;
  text-decoration: none;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.rm-top-widget-more:hover { color: #00A651; }

/* LIVE DOT */
.rm-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #E11D48;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.18), 0 0 12px rgba(225, 29, 72, 0.7);
  animation: rmPulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes rmPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

/* Widget TV */
.rm-top-widget-tv { border: 1px solid rgba(11, 18, 32, 0.12); overflow: hidden; }
.rm-top-widget-tv .rm-top-widget-head {
  background: linear-gradient(90deg, #0A2540 0%, #0F172A 100%);
  color: #fff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.rm-top-widget-tv .rm-top-widget-title { color: #fff; }
.rm-top-widget-tv .rm-top-widget-more {
  color: #0F172A;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 9999px;
}
.rm-top-widget-tv-frame {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.rm-top-widget-tv-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}
.rm-top-widget-tv-frame.rm-tv-off {
  background: linear-gradient(180deg, #0B1220 0%, #0A2540 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1.5rem;
  color: #fff;
  text-align: center;
}
.rm-tv-off-emoji {
  font-size: 2.4rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
.rm-tv-off-title {
  font-weight: 700;
  color: #CBD5E1;
  font-size: 15px;
}
.rm-top-widget-btn-primary {
  background: #0052A5;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  margin-top: 4px;
  transition: all .15s ease;
}
.rm-top-widget-btn-primary:hover {
  background: #00A651;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -6px rgba(0,166,81,0.55);
}
.rm-top-widget-links {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
  background: #F8FAFC;
  border-top: 1px solid rgba(15,23,42,0.06);
}
.rm-top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #0F172A;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  transition: all .15s ease;
}
.rm-top-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -8px rgba(15,23,42,0.3);
  border-color: rgba(0,82,165,0.3);
}
.rm-top-link-tv:hover { color: #fff; background: #0052A5; border-color: #0052A5; }
.rm-top-link-radio:hover { color: #fff; background: #00A651; border-color: #00A651; }
.rm-top-link-video:hover { color: #fff; background: #BE123C; border-color: #BE123C; }

/* Trending list (Lo más leído) */
.rm-top-trending {
  list-style: none;
  margin: 0;
  padding: 8px 6px 10px;
  display: flex;
  flex-direction: column;
  counter-reset: trending;
}
.rm-top-trending li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .15s ease;
  align-items: start;
}
.rm-top-trending li:hover { background: #F1F5F9; }
.rm-top-trending li + li { border-top: 1px dashed rgba(15, 23, 42, 0.06); }
.rm-trending-index {
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.rm-top-trending li:nth-child(1) .rm-trending-index {
  background: linear-gradient(135deg, #BE123C 0%, #E11D48 100%);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(190, 18, 60, 0.55);
}
.rm-top-trending li:nth-child(2) .rm-trending-index {
  background: linear-gradient(135deg, #00A651 0%, #10B981 100%);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(0, 166, 81, 0.55);
}
.rm-top-trending li:nth-child(3) .rm-trending-index {
  background: linear-gradient(135deg, #0052A5 0%, #2563EB 100%);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(0, 82, 165, 0.55);
}
.rm-top-trending a {
  text-decoration: none;
  color: #0F172A;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.rm-trending-tit {
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.4;
  color: #0F172A;
  transition: color .15s ease;
}
.rm-top-trending a:hover .rm-trending-tit { color: #0052A5; }
.rm-trending-meta {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Media list (Videos / Podcast) */
.rm-top-widget-media { }
.rm-top-media-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rm-top-media-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 6px;
  border-radius: 12px;
  text-decoration: none;
  color: #0F172A;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.rm-top-media-item:hover {
  background: #F8FAFC;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -10px rgba(15, 23, 42, 0.15);
}
.rm-top-media-thumb {
  position: relative;
  width: 110px;
  height: 62px;
  border-radius: 10px;
  overflow: hidden;
  background: #E2E8F0;
  aspect-ratio: 16/9;
}
.rm-top-media-thumb-pod {
  aspect-ratio: 1/1;
  width: 62px;
  height: 62px;
}
.rm-top-media-item.rm-top-media-pod { grid-template-columns: 72px 1fr; }
.rm-top-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rm-top-media-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: rgba(0,0,0,0.62);
  color: #fff;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(3px);
  border: 1.5px solid rgba(255,255,255,0.75);
  transition: all .15s ease;
}
.rm-top-media-item:hover .rm-top-media-play {
  background: #BE123C;
  transform: translate(-50%, -50%) scale(1.08);
}
.rm-top-media-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.rm-top-media-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 2px 0;
}
.rm-top-media-body h5 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #0F172A;
  transition: color .15s ease;
}
.rm-top-media-item:hover h5 { color: #0052A5; }
.rm-top-media-body span {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
}

.rm-widget-last { }

/* ============================================================
   HERO ROTATOR · 1 featured + 3 thumbs apiladas · RPP style
   ============================================================ */
.rm-hero-rotator {
  --hr-radius: 18px;
  --hr-accent: #0052A5;
  --hr-accent-2: #00A651;
  --hr-breaking: #BE123C;
  --hr-ink: #0F172A;
  --hr-muted: #475569;
  position: relative;
  display: block;
  border-radius: var(--hr-radius);
  outline: none;
}
.rm-hero-rotator:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 82, 165, 0.22);
}
.rm-hero-rotator-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.rm-hero-slot { min-width: 0; }
.rm-hero-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.rm-hero-card {
  position: relative;
  display: block;
  border-radius: var(--hr-radius);
  overflow: hidden;
  background: #0A2540;
  color: #fff;
  box-shadow: 0 18px 50px -24px rgba(10, 37, 64, 0.45);
  transition: transform .3s ease, box-shadow .3s ease, opacity .26s ease;
  will-change: transform, opacity;
}
.rm-hero-card a {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.rm-hero-card--featured {
  height: 100%;
  min-height: 475px;
}
.rm-hero-card--thumb {
  flex: 1 1 0;
  min-height: 155px;
}
.rm-hero-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.rm-hero-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.0);
  transition: transform .5s ease;
}
.rm-hero-card--featured:hover img { transform: scale(1.04); }
.rm-hero-card--thumb:hover img { transform: scale(1.05); }
.rm-hero-card-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0; top: 30%;
  background: linear-gradient(180deg,
    rgba(10, 37, 64, 0) 0%,
    rgba(10, 37, 64, 0.55) 38%,
    rgba(10, 37, 64, 0.92) 100%);
  pointer-events: none;
}
.rm-hero-card--thumb .rm-hero-card-overlay {
  top: 0;
  background: linear-gradient(180deg, rgba(10,37,64,0.1) 0%, rgba(10,37,64,0.82) 100%);
}
.rm-hero-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 22px 22px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.rm-hero-card--thumb .rm-hero-card-body {
  padding: 12px 14px 14px;
  gap: 6px;
}
.rm-hero-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.rm-hero-card-cat {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: rgba(0, 82, 165, 0.88);
  color: #fff;
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: .02em;
  border-radius: 9999px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 6px 18px -8px rgba(0, 82, 165, 0.7);
}
.rm-hero-card-cat--thumb {
  display: none;
}
.rm-hero-card-breaking {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  background: rgba(190, 18, 60, 0.94);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .04em;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 6px 18px -8px rgba(190, 18, 60, 0.7);
}
.rm-hero-card-title {
  margin: 0;
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -.012em;
  font-size: 36px;
  min-width: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.rm-hero-card-title span { display: block; overflow-wrap: anywhere; }
.rm-hero-card--featured .rm-hero-card-title a {
  color: inherit;
  text-decoration: none;
}
.rm-hero-card-title--thumb {
  font-size: 14px;
  line-height: 1.22;
  letter-spacing: -.008em;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.rm-hero-card-excerpt {
  margin: 0;
  color: #CBD5E1;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  max-width: 62ch;
  opacity: .96;
}
.rm-hero-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  color: #CBD5E1;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
}
.rm-hero-card-cta {
  justify-self: flex-end;
  margin-left: auto;
  padding: 11px 20px;
  border-radius: 9999px;
  background: #fff;
  color: var(--hr-ink);
  font-weight: 800;
  font-size: 13.5px;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rm-hero-card--featured:hover .rm-hero-card-cta {
  transform: translateY(-1px);
  background: linear-gradient(90deg, #fff 0%, #F8FAFC 100%);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.5);
}
.rm-hero-card-empty-ph {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,.25);
  font-weight: 800;
  letter-spacing: .2em;
}
.rm-hero-card--thumb .rm-hero-card-empty-ph { font-size: 22px; }
.rm-hero-card--empty .rm-hero-card-body {
  background: rgba(11, 18, 32, 0.4);
  backdrop-filter: blur(4px);
}

/* Transiciones cambio slot */
.rm-hero-rotator-grid.is-changing-out .rm-hero-card {
  opacity: 0;
  transform: translateY(8px) scale(.992);
  filter: blur(.5px);
}
.rm-hero-rotator-grid.is-changing-in .rm-hero-card {
  animation: hr-fadein .32s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes hr-fadein {
  0%   { opacity: 0; transform: translateY(10px) scale(.992); filter: blur(1px); }
  65%  { filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Progress bar + controles */
.rm-hero-rotator-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 0 4px;
}
.rm-hero-rotator-btn {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #0F172A;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 6px 16px -10px rgba(15,23,42,.4);
  transition: all .18s ease;
}
.rm-hero-rotator-btn:hover {
  background: #0052A5;
  color: #fff;
  transform: translateY(-1px);
  border-color: #0052A5;
}
.rm-hero-rotator-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 82, 165, 0.25);
}
.rm-hero-rotator-progress {
  flex: 1 1 auto;
  min-width: 0;
  height: 4px;
  border-radius: 9999px;
  background-color: #E2E8F0;
  background-image: linear-gradient(90deg, #0052A5 0%, #00A651 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  overflow: hidden;
  position: relative;
  transition: background-size .08s linear;
}
.rm-hero-rotator[aria-paused="true"] .rm-hero-rotator-progress {
  filter: saturate(.35);
  opacity: .6;
}

/* ===== Responsive hero rotator ===== */
@media (max-width: 1280px) {
  .rm-hero-rotator-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 12px;
  }
  .rm-hero-card-title { font-size: 30px; }
  .rm-hero-card--featured { min-height: 430px; }
  .rm-hero-card-excerpt { font-size: 14px; max-width: 52ch; }
}
@media (max-width: 1024px) {
  .rm-hero-rotator-grid {
    grid-template-columns: 1fr;
  }
  .rm-hero-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .rm-hero-card--thumb { min-height: 175px; }
  .rm-hero-card-title--thumb { font-size: 13px; line-height: 1.26; }
  .rm-hero-card--featured { min-height: 390px; }
  .rm-hero-card-title { font-size: 26px; }
  .rm-hero-card-body { padding: 18px; }
}
@media (max-width: 768px) {
  .rm-hero-thumbs {
    display: flex;
    flex-direction: column;
  }
  .rm-hero-card--featured { min-height: 350px; }
  .rm-hero-card-title { font-size: 22px; }
  .rm-hero-card-excerpt { display: none; }
  .rm-hero-card-body { padding: 16px 14px 16px; }
  .rm-hero-card-cta {
    padding: 9px 14px;
    font-size: 12.5px;
  }
  .rm-hero-card-foot {
    gap: 8px 10px;
    font-size: 11.5px;
  }
  .rm-hero-card--thumb { min-height: 130px; }
  .rm-hero-rotator-btn { width: 30px; height: 30px; font-size: 16px; }
}
@media (max-width: 480px) {
  .rm-hero-card-title { font-size: 19px; line-height: 1.15; }
  .rm-hero-card--featured { min-height: 310px; }
  .rm-hero-card-body { padding: 14px 12px 14px; gap: 8px; }
  .rm-hero-card-cta { display: none; }
}

/* Reduced motion: desactivar transiciones de entrada */
@media (prefers-reduced-motion: reduce) {
  .rm-hero-rotator-grid.is-changing-in .rm-hero-card { animation: none; opacity: 1; }
  .rm-hero-rotator-grid.is-changing-out .rm-hero-card { opacity: 1; transform: none; filter: none; }
  .rm-hero-card-media img { transition: none; }
  .rm-hero-rotator-progress::after { transition: none; }
}

/* Mobile tablet tweaks: 1 columna */
@media (max-width: 991.98px) {
  .rm-home-top-right { gap: 14px; }
  .rm-hero-side { grid-template-columns: repeat(2, 1fr) !important; }
  .rm-top-trending-tit { font-size: 14px; }
  .rm-top-media-item { grid-template-columns: 120px 1fr; }
  .rm-top-media-thumb { width: 120px; height: 68px; }
  .rm-top-media-item.rm-top-media-pod { grid-template-columns: 80px 1fr; }
  .rm-top-media-thumb-pod { width: 68px; height: 68px; }
}
@media (max-width: 575.98px) {
  .rm-hero-side { grid-template-columns: 1fr !important; }
  .rm-top-widget-links { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; }
  .rm-top-link { padding: 7px 6px; font-size: 11.5px; }
}

/* ============================================================
   NEWS CARD PROFESIONAL v2 (RIO MAR)
   - Cover real: preservado desde cover_image_url()
   - Categoría: pill esquina INFERIOR DERECHA sobre imagen (backdrop-blur)
   - Breaking: pill esquina SUPERIOR IZQUIERDA rojo breaking
   - Gradiente overlay inferior (WCAG contrast ratio ≥4.5 sobre fondo)
   ============================================================ */

.news-card {
  border: 1px solid var(--rm-border, #E2E8F0);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 4px 16px -12px rgba(15, 23, 42, 0.10);
  transition:
    transform 260ms cubic-bezier(.22,.61,.36,1),
    box-shadow 260ms cubic-bezier(.22,.61,.36,1),
    border-color 260ms ease;
  will-change: transform, box-shadow;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 82, 165, 0.35);
  box-shadow:
    0 6px 14px -8px rgba(15, 23, 42, 0.10),
    0 20px 42px -20px rgba(10, 37, 64, 0.35);
}

.news-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #0A2540 0%, #0052A5 55%, #00A651 100%);
}
@supports not (aspect-ratio: 16/9) {
  .news-card-media { padding-top: 56.25%; height: 0; }
  .news-card-media > * { position: absolute; inset: 0; width: 100%; }
  .news-card-media > .news-card-media-link,
  .news-card-media > .news-card-badges,
  .news-card-media > .news-card-media-footer { inset: auto auto auto auto; }
  .news-card-media > .news-card-media-link { inset: 0; }
}
.news-card-media-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
}
.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0) scale(1.0001);
  transition: transform 520ms cubic-bezier(.22,.61,.36,1),
              filter 300ms ease;
  will-change: transform;
  background: #0F172A;
}
.news-card:hover .news-card-img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.02);
}

/* Overlay degradado inferior para legibilidad de la categoría */
.news-card-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  background: linear-gradient(
    to top,
    rgba(10, 37, 64, 0.78) 0%,
    rgba(10, 37, 64, 0.36) 45%,
    rgba(10, 37, 64, 0.00) 100%
  );
  z-index: 2;
  pointer-events: none;
  transition: opacity 300ms ease;
  opacity: 0.95;
}
.news-card:hover .news-card-media::after {
  opacity: 1;
}

/* ===== BADGES (breaking top-left + categoría bottom-right) ===== */
.news-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 5;
  pointer-events: auto;
}
.news-card-media-footer {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 6px;
  z-index: 5;
  pointer-events: auto;
  max-width: 72%;
}

.news-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 11px 4px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
  -webkit-backdrop-filter: blur(8px) saturate(1.3);
  backdrop-filter: blur(8px) saturate(1.3);
  box-shadow:
    0 4px 10px -4px rgba(15, 23, 42, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    transform 180ms ease,
    background-color 200ms ease,
    box-shadow 200ms ease;
}
a.news-card-badge:hover,
a.news-card-badge:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 7px 14px -5px rgba(15, 23, 42, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  outline: none;
}

/* Pill BREAKING (esquina sup-izq) — rojo #BE123C flyer R4 */
.news-card-badge-breaking {
  color: #fff;
  background-color: rgba(190, 18, 60, 0.92);
  border-color: rgba(255, 255, 255, 0.18);
}
.news-card-badge-breaking::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 9999px;
  margin-right: 7px;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.22);
  animation: rmNewsCardPulse 1.4s ease-in-out infinite;
}
@keyframes rmNewsCardPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.22); }
}

/* Pill CATEGORÍA (esquina inf-der) — navy #0A2540 + acento verde borde R4 */
.news-card-badge-category {
  color: #fff;
  background-color: rgba(10, 37, 64, 0.80);
  border-color: rgba(0, 166, 81, 0.48);
  padding: 6px 12px 5px;
  font-size: 11.5px;
  letter-spacing: 0.3px;
}
a.news-card-badge-category:hover {
  background-color: rgba(0, 82, 165, 0.90);
  border-color: rgba(0, 166, 81, 0.80);
  color: #fff;
}

/* ===== BODY ===== */
.news-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.news-card-title {
  margin: 2px 0 0;
  line-height: 1.28;
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(17px * 1.28 * 2 + 2px);
}
.news-card-title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(transparent calc(100% - 2px), rgba(0,82,165,0.20) 2px);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color 200ms ease, background-size 260ms ease;
}
.news-card-title a:hover,
.news-card-title a:focus-visible {
  color: #0052A5;
  background-size: 100% 100%;
  outline: none;
}
.news-card-excerpt {
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(14px * 1.55 * 3);
}
.news-card-meta {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #64748B;
  border-top: 1px solid #F1F5F9;
}
.news-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  letter-spacing: 0.1px;
}
.news-card-meta .news-card-views {
  color: #0F766E;
  font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .news-card-body { padding: 14px 16px 16px; }
  .news-card-title { font-size: 16px; }
  .news-card-excerpt { font-size: 13.5px; -webkit-line-clamp: 2; min-height: calc(13.5px * 1.55 * 2); }
}
@media (max-width: 575.98px) {
  .news-card-media-footer { right: 10px; bottom: 10px; max-width: 80%; }
  .news-card-badges { top: 10px; left: 10px; }
  .news-card-badge { font-size: 10.5px; padding: 4.5px 9.5px 3.5px; }
  .news-card-badge-category { font-size: 11px; padding: 5px 10px 4px; }
  .news-card-body { padding: 13px 15px 15px; }
  .news-card-title { font-size: 15.5px; -webkit-line-clamp: 3; min-height: calc(15.5px * 1.28 * 3 + 2px); }
}

/* Legacy: mantener news-card-section visible si alguien la usa fuera del media (no superponer si no tiene parent media) */
.news-card-section {
  display: inline-block;
  color: #0052A5;
  font-weight: 800;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  padding: 4px 10px;
  background: rgba(0, 82, 165, 0.08);
  border-radius: 9999px;
  margin-bottom: 4px;
}
/* ============================================================
   FLYERS CARRUSEL v3 · RIO MAR (fix RC1-RC4 + UIUX profesional)
   - Override bloques L1152 y L4366 (legacy) con especificidad
   - overflow visible para botones colocados -22px fuera
   - hover/focus-visible/active estados navy (0052A5) + verde (00A651) R4
   - dots animación pill expand active verde, pulsante focus
   ============================================================ */

.flyers-carousel[aria-roledescription="carousel"],
.flyers-carousel[data-flyer-carousel] {
  position: relative;
  display: block;
  overflow: visible; /* ← FIX RC3: permitía overflow hidden y cortaba botones -22px */
  padding: 0 24px 52px;
  margin-top: 24px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  contain: layout style;
}

.flyers-carousel .flyers-track-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #0B1220;
  box-shadow:
    0 2px 8px -6px rgba(15, 23, 42, 0.15),
    0 20px 50px -28px rgba(10, 37, 64, 0.55);
  isolation: isolate;
  outline: 1px solid rgba(0, 82, 165, 0.10);
}

.flyers-carousel .flyers-track {
  display: flex;
  width: 100%;
  transition: transform 400ms cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.flyers-carousel .flyers-track.no-transition {
  transition: none !important;
}

.flyers-carousel .flyer-slide {
  flex: 0 0 100%;
  position: relative;
  min-width: 0;
  aspect-ratio: 21 / 9;
}
.flyers-carousel .flyer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  transition: transform 620ms cubic-bezier(.22,.61,.36,1), filter 300ms ease;
  will-change: transform;
  aspect-ratio: 21 / 9;
}
.flyers-carousel:hover .flyer-slide.active .flyer-img,
.flyers-carousel:focus-within .flyer-slide.active .flyer-img {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.02);
}

.flyers-carousel .flyer-link {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
  outline: none;
}
.flyers-carousel .flyer-link:focus-visible .flyer-img ~ .flyer-caption,
.flyers-carousel .flyer-link:focus-visible ~ .flyer-caption {
  outline: 3px solid #00A651;
  outline-offset: -3px;
  border-radius: 16px;
}

.flyers-carousel .flyer-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(16px, 2.4vw, 36px);
  background: linear-gradient(
    to top,
    rgba(10, 37, 64, 0.85) 0%,
    rgba(10, 37, 64, 0.55) 40%,
    rgba(10, 37, 64, 0) 100%
  );
  color: #fff;
  z-index: 2;
  pointer-events: none;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.flyers-carousel .flyer-caption-inner {
  max-width: 72ch;
  pointer-events: auto;
}
.flyers-carousel .flyer-title {
  margin: 0 0 .35rem;
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 3px 14px rgba(0,0,0,.45);
}
.flyers-carousel .flyer-subtitle {
  margin: 0;
  opacity: .94;
  font-size: clamp(13px, 1.5vw, 17px);
  line-height: 1.55;
  color: #E2E8F0;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* ===== CONTROLES ===== */
.flyers-carousel .flyer-controls-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 100; /* sobre caption, sobre img */
}

.flyers-carousel .flyer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 9999px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.92);
  color: #0052A5;
  box-shadow:
    0 10px 30px -12px rgba(15,23,42,.35),
    0 0 0 1px rgba(10,37,64,.08),
    inset 0 1px 0 rgba(255,255,255,.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  z-index: 120;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    transform 220ms cubic-bezier(.22,.61,.36,1),
    box-shadow 220ms ease,
    outline-color 120ms ease;
  -webkit-tap-highlight-color: transparent;
}
.flyers-carousel .flyer-nav::before {
  content: "";
  position: absolute;
  inset: -10px; /* área click ampliado mobile/tablet */
  z-index: -1;
}
.flyers-carousel .flyer-nav svg {
  display: block;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flyers-carousel .flyer-nav.flyer-prev { left: 2px; }
.flyers-carousel .flyer-nav.flyer-next { right: 2px; }

/* Hover desktop */
@media (hover: hover) and (pointer: fine) {
  .flyers-carousel:not(:hover) .flyer-nav {
    opacity: .88;
  }
  .flyers-carousel .flyer-nav:hover {
    background: #0052A5; /* azul navy corporativo R4 */
    color: #fff;
    transform: translateY(-50%) scale(1.08);
    box-shadow:
      0 14px 36px -14px rgba(0, 82, 165, 0.55),
      0 0 0 1px rgba(0, 82, 165, 0.20),
      inset 0 1px 0 rgba(255,255,255,.16);
  }
  .flyers-carousel .flyer-nav:active {
    background: #0A2540;
    transform: translateY(-50%) scale(0.97);
    box-shadow:
      0 6px 16px -8px rgba(10, 37, 64, 0.5),
      inset 0 1px 0 rgba(255,255,255,.08);
    transition-duration: 80ms;
  }
}
/* Focus accesible (teclado) */
.flyers-carousel .flyer-nav:focus-visible {
  background: #0052A5;
  color: #fff;
  transform: translateY(-50%) scale(1.08);
  outline: none;
  box-shadow:
    0 0 0 4px rgba(0, 166, 81, 0.22),
    0 0 0 1px #00A651,
    0 14px 36px -14px rgba(0, 82, 165, 0.55);
  border-radius: 9999px;
}
.flyers-carousel .flyer-nav:focus {
  outline: none;
}

/* ===== DOTS ===== */
.flyers-carousel .flyer-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  display: flex;
  gap: .55rem;
  justify-content: center;
  align-items: center;
  z-index: 130;
  padding: 8px 10px;
  border-radius: 9999px;
  width: fit-content;
  margin: 0 auto;
  background: rgba(10, 37, 64, 0.32);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: 0 8px 24px -18px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.10);
  pointer-events: auto;
}
.flyers-carousel .flyer-dots .flyer-dot,
.flyers-carousel .flyer-dots button {
  appearance: none;
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
  transition:
    background-color 240ms ease,
    width 260ms cubic-bezier(.22,.61,.36,1),
    transform 200ms ease,
    box-shadow 200ms ease;
  position: relative;
}
@media (hover: hover) and (pointer: fine) {
  .flyers-carousel .flyer-dots .flyer-dot:hover,
  .flyers-carousel .flyer-dots button:hover {
    background: rgba(255,255,255,.88);
    transform: scale(1.18);
  }
}
.flyers-carousel .flyer-dots .flyer-dot:active,
.flyers-carousel .flyer-dots button:active {
  transform: scale(0.94);
}
.flyers-carousel .flyer-dots .flyer-dot:focus,
.flyers-carousel .flyer-dots button:focus {
  outline: none;
}
.flyers-carousel .flyer-dots .flyer-dot:focus-visible,
.flyers-carousel .flyer-dots button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(0, 166, 81, 0.25),
    0 0 0 1px #00A651;
  background: #fff;
}
.flyers-carousel .flyer-dots .flyer-dot.active,
.flyers-carousel .flyer-dots button.active,
.flyers-carousel .flyer-dots .flyer-dot[aria-selected="true"],
.flyers-carousel .flyer-dots button[aria-selected="true"] {
  background: #00A651; /* verde corporativo R4 */
  width: 30px;
  border-radius: 9999px;
  box-shadow:
    0 4px 14px -6px rgba(0, 166, 81, 0.65),
    inset 0 1px 0 rgba(255,255,255,.24);
}
.flyers-carousel .flyer-dots .flyer-dot.active::after,
.flyers-carousel .flyer-dots button.active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,.00) 0%, rgba(255,255,255,.26) 100%);
  pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .flyers-carousel[aria-roledescription="carousel"],
  .flyers-carousel[data-flyer-carousel] {
    padding: 0 40px 56px;
  }
  .flyers-carousel .flyer-nav.flyer-prev { left: 10px; }
  .flyers-carousel .flyer-nav.flyer-next { right: 10px; }
  .flyers-carousel .flyer-nav { width: 52px; height: 52px; }
}
@media (min-width: 992px) {
  .flyers-carousel[aria-roledescription="carousel"],
  .flyers-carousel[data-flyer-carousel] {
    padding: 0 48px 60px;
  }
  .flyers-carousel .flyer-nav { width: 54px; height: 54px; }
  .flyers-carousel .flyer-nav.flyer-prev { left: 14px; }
  .flyers-carousel .flyer-nav.flyer-next { right: 14px; }
}

/* Mobile */
@media (max-width: 991.98px) {
  .flyers-carousel .flyer-slide { aspect-ratio: 16 / 9; }
  .flyers-carousel .flyer-img { aspect-ratio: 16 / 9; }
}
@media (max-width: 767.98px) {
  .flyers-carousel[aria-roledescription="carousel"],
  .flyers-carousel[data-flyer-carousel] {
    padding: 0 0 48px;
  }
  .flyers-carousel .flyers-track-wrap { border-radius: 14px; }
  .flyers-carousel .flyer-nav {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,.94);
    box-shadow:
      0 8px 22px -10px rgba(15,23,42,.35),
      0 0 0 1px rgba(10,37,64,.08);
  }
  .flyers-carousel .flyer-nav.flyer-prev { left: 10px; }
  .flyers-carousel .flyer-nav.flyer-next { right: 10px; }
  .flyers-carousel .flyer-nav svg { width: 18px; height: 18px; }
  .flyers-carousel .flyer-dots {
    bottom: 2px;
    padding: 7px 10px;
    gap: .45rem;
  }
}
@media (max-width: 575.98px) {
  .flyers-carousel .flyer-slide { aspect-ratio: 4 / 3; }
  .flyers-carousel .flyer-img { aspect-ratio: 4 / 3; }
  .flyers-carousel .flyer-nav {
    width: 38px; height: 38px;
    opacity: .96;
  }
  .flyers-carousel .flyer-nav.flyer-prev { left: 8px; }
  .flyers-carousel .flyer-nav.flyer-next { right: 8px; }
  .flyers-carousel .flyer-caption { padding: 14px 14px 16px; }
  .flyers-carousel .flyer-dots { padding: 6px 9px; }
  .flyers-carousel .flyer-dots .flyer-dot,
  .flyers-carousel .flyer-dots button {
    width: 9px; height: 9px; min-width: 9px; min-height: 9px;
  }
  .flyers-carousel .flyer-dots .flyer-dot.active,
  .flyers-carousel .flyer-dots button.active {
    width: 26px;
  }
}

/* Reduced Motion (WCAG 2.2 AAA) */
@media (prefers-reduced-motion: reduce) {
  .flyers-carousel .flyers-track,
  .flyers-carousel .flyer-img,
  .flyers-carousel .flyer-nav,
  .flyers-carousel .flyer-dots .flyer-dot,
  .flyers-carousel .flyer-dots button {
    transition: none !important;
    animation: none !important;
  }
}