/* =========================================================
   RPO – Header presentation polish
   ========================================================= */

/* Contenedor del header: altura uniforme logo + noticias + menú */
#sp-header.header-default > .container > .container-inner > .row {
  align-items: stretch;
}

#sp-header.header-default #sp-logo {
  padding-right: 8px;
  display: flex;
  overflow: visible !important;
}

#sp-header.header-default #sp-logo .sp-column {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: auto !important;
  min-height: 100%;
  line-height: normal !important;
  padding: 12px 8px !important;
  box-sizing: border-box;
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* Logo limpio, sin tarjeta ni borde, sin recorte */
#sp-header.header-default #sp-logo .logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

#sp-header.header-default #sp-logo .logo > a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

#sp-header.header-default #sp-logo .logo > a:hover {
  box-shadow: none !important;
  transform: none;
  opacity: 0.9;
}

/* Logo completo visible dentro de la columna */
#sp-header.header-default #sp-logo .logo-image,
#sp-header.header-default #sp-logo .logo-image-phone {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 84px !important;
  margin: 0 !important;
  object-fit: contain;
  object-position: center center;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Respetar Bootstrap: un solo logo visible (desktop vs móvil) */
#sp-header.header-default #sp-logo .logo-image.d-none {
  display: none !important;
}
#sp-header.header-default #sp-logo .logo-image.d-lg-inline-block {
  display: none !important;
}
@media (min-width: 992px) {
  #sp-header.header-default #sp-logo .logo-image.d-lg-inline-block {
    display: inline-block !important;
  }
  #sp-header.header-default #sp-logo .logo-image-phone.d-lg-none {
    display: none !important;
  }
}
@media (max-width: 991.98px) {
  #sp-header.header-default #sp-logo .logo-image-phone.d-inline-block {
    display: inline-block !important;
  }
}

/* Columna menú: sin huecos raros */
#sp-header.header-default #sp-menu {
  padding-left: 0 !important;
  display: flex;
  flex-direction: column;
}

#sp-header.header-default #sp-menu > .sp-column {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

/* Breaking news alineado al borde */
#sp-header.header-default .breaking-news {
  margin-bottom: 0 !important;
  height: 44px !important;
  padding: 0 12px !important;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e8eaf0;
  box-sizing: border-box;
}

#sp-header.header-default .breaking-news .mod-sppagebuilder,
#sp-header.header-default .breaking-news .page-content,
#sp-header.header-default .breaking-news .sppb-section,
#sp-header.header-default .breaking-news .sppb-row,
#sp-header.header-default .breaking-news .sppb-column,
#sp-header.header-default .breaking-news .sppb-addon-wrapper,
#sp-header.header-default .breaking-news .sppb-addon-articles-ticker {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

#sp-header.header-default .breaking-news .sppb-articles-ticker-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
}

/* Nav: menú a la izquierda, búsqueda a la derecha, sin huecos */
#sp-header.header-default .ts-header-nav {
  display: flex !important;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  min-height: 48px;
  border: 0;
  box-shadow: none;
}

#sp-header.header-default .sp-megamenu-wrapper {
  float: none !important;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

#sp-header.header-default .sp-megamenu-parent {
  display: none !important;
  flex-wrap: nowrap;
  align-items: stretch;
  float: none !important;
  margin: 0 !important;
  padding: 0;
  width: auto;
}

@media (min-width: 992px) {
  #sp-header.header-default .sp-megamenu-parent {
    display: flex !important;
  }
}

#sp-header.header-default .sp-megamenu-parent > li > a,
#sp-header.header-default .sp-megamenu-parent > li > span,
#sp-header.header-default .sp-megamenu-parent > li > .sp-menu-heading {
  display: flex;
  align-items: center;
  padding: 0 16px !important;
  min-height: 48px;
  line-height: 1.2 !important;
  letter-spacing: 0.02em;
}

#sp-header.header-default .sp-megamenu-parent > li.active > a {
  box-shadow: none;
}

/* Buscador pegado a la derecha, misma altura */
#sp-header.header-default .ts-search {
  float: none !important;
  margin-left: auto;
  display: flex;
  align-items: stretch;
}

#sp-header.header-default .ts-search .nav-search-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 48px;
  margin: 0;
}

/* Sticky: mantener proporción */
#sp-header.header-sticky #sp-logo .sp-column,
#sp-header.header-sticky.header-default #sp-logo .sp-column {
  min-height: 0;
  padding: 6px 10px !important;
}

#sp-header.header-sticky #sp-logo .logo > a {
  padding: 0 !important;
  max-width: none;
  background: transparent !important;
  box-shadow: none !important;
}

#sp-header.header-sticky #sp-logo .logo-image {
  max-height: 52px !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Móvil (logo en fila con botones; detalle fino en bloque 991.98px) */
@media (max-width: 991px) {
  #sp-header.header-default #sp-logo .sp-column {
    min-height: 0 !important;
    padding: 4px 4px 4px 0 !important;
    background: transparent !important;
    justify-content: flex-start !important;
  }

  #sp-header.header-default #sp-logo .logo > a {
    max-width: none;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    justify-content: flex-start !important;
  }

  #sp-header.header-default #sp-logo .logo-image,
  #sp-header.header-default #sp-logo .logo-image-phone {
    max-height: 36px !important;
    max-width: 150px !important;
    width: auto !important;
    margin: 0 !important;
  }
}

/* =========================================================
   RPO – Paleta institucional
   Oro #C9a751 | Navy #242732 | Carbón #363534 | Rojo #b91817 | Teal #5fbbb9
   ========================================================= */

:root {
  --rpo-gold: #C9a751;
  --rpo-navy: #242732;
  --rpo-charcoal: #363534;
  --rpo-red: #b91817;
  --rpo-teal: #5fbbb9;
}

/* Texto y enlaces */
body {
  color: var(--rpo-charcoal);
}
a {
  color: var(--rpo-red);
}
a:hover,
a:focus,
a:active {
  color: var(--rpo-gold);
}

/* Top bar */
#sp-top-bar {
  background: var(--rpo-navy) !important;
  color: #d0d0d0 !important;
}
#sp-top-bar a {
  color: #d0d0d0 !important;
}
#sp-top-bar a:hover {
  color: var(--rpo-gold) !important;
}

/* Bloque logo: sin caja navy (el logo ya trae su propia marca) */
.ts_date_area,
.ts-search .nav-search-icon {
  background: var(--rpo-navy) !important;
  color: #fff !important;
}
#sp-header.header-default #sp-logo .sp-column {
  background: #fff !important;
}

/* Menú activo / hover */
.sp-megamenu-parent > li:hover > a,
.sp-megamenu-parent > li:hover > .sp-menu-heading {
  color: var(--rpo-red) !important;
}
.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li.active:hover > a,
.sp-megamenu-parent > li.current-item > a {
  background: var(--rpo-red) !important;
  color: #fff !important;
}
.sp-megamenu-parent .sp-dropdown li.sp-menu-item:hover > a,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > a {
  color: var(--rpo-red) !important;
}

/* Breaking news */
.sppb-articles-ticker-heading,
.ts-top-bar-classic#sp-top-bar.bg-dark-item #sp-breaking .sppb-articles-ticker-wrap .sppb-articles-ticker-heading {
  color: var(--rpo-red) !important;
}
.sppb-articles-ticker-heading:before {
  color: var(--rpo-red) !important;
}
.sppb-articles-ticker-left-control a:hover,
.sppb-articles-ticker-right-control a:hover {
  background: var(--rpo-red) !important;
  color: #fff !important;
}

/* Preloader / botones / tags */
.sp-preloader > div {
  background: var(--rpo-red) !important;
}
.tags > li a {
  background: rgba(185, 24, 23, 0.1) !important;
  color: var(--rpo-red) !important;
}
.tags > li a:hover {
  background: var(--rpo-red) !important;
  color: #fff !important;
}
.btn-primary,
.sppb-btn-primary,
button.btn-primary {
  background-color: var(--rpo-red) !important;
  border-color: var(--rpo-red) !important;
}
.btn-primary:hover,
.sppb-btn-primary:hover {
  background-color: var(--rpo-navy) !important;
  border-color: var(--rpo-navy) !important;
}

/* Títulos / acentos SP Page Builder habituales en rojo del sitio */
.sppb-addon-title::before,
.ts-title .sppb-addon-title::before {
  background: var(--rpo-red) !important;
}

/* Footer */
#sp-footer,
#sp-bottom,
.sp-footer {
  background: var(--rpo-navy) !important;
  color: #fff !important;
  border: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
  margin-top: 0 !important;
  padding: 20px 0 !important;
}
#sp-footer a,
#sp-bottom a {
  color: var(--rpo-teal) !important;
}
#sp-footer a:hover,
#sp-bottom a:hover {
  color: var(--rpo-gold) !important;
}

/* Copyright institucional */
#sp-footer .sp-copyright,
.ts-footer .sp-copyright {
  display: block;
  width: 100%;
  text-align: center;
  opacity: 1 !important;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #f2f2f2 !important;
}

/* Quitar ola roja + franja azul/blanca del page builder al final */
#dummy,
#section-id-1664229757016,
#column-id-1664229757016,
#section-id-1664209577355,
#section-id-1664195799830,
#section-id-1664209577363 {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: none !important;
  background-image: none !important;
  border: 0 !important;
}
#section-id-1664195799830 .sppb-shape-container,
#section-id-1664209577363 .sppb-shape-container {
  display: none !important;
}

/* Scroll up / detalles */
.sp-scroll-up {
  background: var(--rpo-red) !important;
}
.sp-scroll-up:hover {
  background: var(--rpo-navy) !important;
}

/* Offcanvas */
.offcanvas-menu {
  background: var(--rpo-navy) !important;
}
.offcanvas-menu a {
  color: #fff !important;
}
.offcanvas-menu a:hover,
.offcanvas-menu .active > a {
  color: var(--rpo-gold) !important;
}

/* Acento dorado sutil en bordes de header */
#sp-header.header-default .ts-header-nav {
  border-bottom: 2px solid var(--rpo-gold);
}

/* Buscador hover */
.ts-search .nav-search-icon:hover {
  background: var(--rpo-red) !important;
}

/* Separación sutil logo / menú (sin marco) */
#sp-header.header-default #sp-logo {
  border-right: 0;
  padding-right: 4px;
}

/* =========================================================
   RPO – Modo claro / oscuro
   ========================================================= */

.rpo-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--rpo-navy);
  color: #fff;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.rpo-theme-toggle:hover {
  background: var(--rpo-red);
  color: #fff;
  transform: scale(1.05);
}
.rpo-theme-toggle__icon {
  display: none;
  line-height: 1;
  font-size: 16px;
}
html[data-theme="light"] .rpo-theme-toggle__icon--moon,
html[data-theme="dark"] .rpo-theme-toggle__icon--sun {
  display: inline-block;
}

#sp-header.header-default .ts-header-nav {
  display: flex;
  align-items: center;
}
#sp-header.header-default .ts-header-nav .ts-search {
  margin-left: auto;
}

/* Variables dark */
html[data-theme="dark"] {
  color-scheme: dark;
  --rpo-surface: #12151c;
  --rpo-surface-2: #1c212c;
  --rpo-surface-3: #262c3a;
  --rpo-text: #f4f5f7;
  --rpo-muted: #c5c8d0;
  --rpo-border: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] body,
html[data-theme="dark"] body.site {
  background-color: var(--rpo-surface) !important;
  background-image: none !important;
  color: var(--rpo-text) !important;
}

html[data-theme="dark"] #sp-header.header-default,
html[data-theme="dark"] #sp-header.header-sticky,
html[data-theme="dark"] #sp-header.header-default #sp-logo .sp-column,
html[data-theme="dark"] #sp-header.header-default .ts-header-nav,
html[data-theme="dark"] #sp-header.header-default .breaking-news {
  background: var(--rpo-surface-2) !important;
  background-color: var(--rpo-surface-2) !important;
  color: var(--rpo-text) !important;
  border-color: var(--rpo-border) !important;
}

/* Evitar el rojo del preset en la columna del logo */
html[data-theme="dark"] #sp-header.header-default #sp-logo .sp-column {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

html[data-theme="dark"] #sp-header.header-default .breaking-news {
  border-bottom-color: var(--rpo-border) !important;
}

html[data-theme="dark"] .sp-megamenu-parent > li > a,
html[data-theme="dark"] .sp-megamenu-parent > li > .sp-menu-heading {
  color: var(--rpo-text) !important;
}
html[data-theme="dark"] .sp-megamenu-parent > li:hover > a,
html[data-theme="dark"] .sp-megamenu-parent > li:hover > .sp-menu-heading {
  color: var(--rpo-gold) !important;
}
html[data-theme="dark"] .sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
  background: var(--rpo-surface-3) !important;
  border-color: var(--rpo-border);
}
html[data-theme="dark"] .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
  color: var(--rpo-text) !important;
}

html[data-theme="dark"] .sppb-articles-ticker-wrap,
html[data-theme="dark"] .sppb-articles-ticker,
html[data-theme="dark"] .sppb-articles-ticker a {
  color: var(--rpo-muted) !important;
  background: transparent !important;
}
html[data-theme="dark"] .sppb-articles-ticker a:hover {
  color: var(--rpo-gold) !important;
}

html[data-theme="dark"] #sp-main-body,
html[data-theme="dark"] .body-innerwrapper,
html[data-theme="dark"] .sp-page-builder,
html[data-theme="dark"] section.sppb-section,
html[data-theme="dark"] .sppb-row-container {
  background-color: transparent !important;
}

/* Cajas de contenido que el template deja en blanco */
html[data-theme="dark"] .ts-content-box,
html[data-theme="dark"] .blog-details-content,
html[data-theme="dark"] .article-details,
html[data-theme="dark"] .article-list .article,
html[data-theme="dark"] .blog .article-list .article,
html[data-theme="dark"] #sp-component,
html[data-theme="dark"] #sp-component .sp-column,
html[data-theme="dark"] #sp-main-body .container-inner,
html[data-theme="dark"] .layout-boxed .body-innerwrapper,
html[data-theme="dark"] .breadcrumb,
html[data-theme="dark"] .sp-module.widgets-box {
  background: var(--rpo-surface-2) !important;
  background-color: var(--rpo-surface-2) !important;
  color: var(--rpo-text) !important;
  box-shadow: none !important;
  border-color: var(--rpo-border) !important;
}

html[data-theme="dark"] .article-details .article-header h1,
html[data-theme="dark"] .blog-details-content .article-header h1,
html[data-theme="dark"] .blog-details-content .article-header h2 {
  color: #ffffff !important;
}

html[data-theme="dark"] .blog-details-content p,
html[data-theme="dark"] .article-details p,
html[data-theme="dark"] .ts-content-box p,
html[data-theme="dark"] .ts-content-box li {
  color: #d8dbe3 !important;
}

html[data-theme="dark"] .article-info > span,
html[data-theme="dark"] .blog-details-content .article-info > span {
  color: #b0b5c0 !important;
}

html[data-theme="dark"] .article-details .article-ratings-social-share,
html[data-theme="dark"] .article-details .article-author-information,
html[data-theme="dark"] .pager,
html[data-theme="dark"] #article-comments {
  border-color: var(--rpo-border) !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .sppb-addon-title,
html[data-theme="dark"] .entry-header h2 a,
html[data-theme="dark"] .article-list .article h2 a,
html[data-theme="dark"] .item-page .page-header h1,
html[data-theme="dark"] .item-page h1,
html[data-theme="dark"] .item-page h2 {
  color: #ffffff !important;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .sppb-addon,
html[data-theme="dark"] .sppb-addon-article,
html[data-theme="dark"] .article,
html[data-theme="dark"] .item-page,
html[data-theme="dark"] .blog .items-leading,
html[data-theme="dark"] .blog .items-row .item,
html[data-theme="dark"] .sp-module,
html[data-theme="dark"] .well,
html[data-theme="dark"] .panel {
  background-color: var(--rpo-surface-2);
  color: var(--rpo-text);
}

html[data-theme="dark"] .sp-module .sp-module-title,
html[data-theme="dark"] .module-title {
  color: var(--rpo-text) !important;
  border-color: rgba(201, 167, 81, 0.35);
}

/* Cuerpo de artículo más legible */
html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] .sppb-addon-content,
html[data-theme="dark"] .item-page,
html[data-theme="dark"] .item-page p,
html[data-theme="dark"] .com-content-article__body,
html[data-theme="dark"] .com-content-article__body p {
  color: #d8dbe3 !important;
  line-height: 1.65;
}

html[data-theme="dark"] .article-info,
html[data-theme="dark"] .article-info dd,
html[data-theme="dark"] .article-info time,
html[data-theme="dark"] time,
html[data-theme="dark"] .published,
html[data-theme="dark"] .create,
html[data-theme="dark"] .modified {
  color: #b8bcc6 !important;
}

html[data-theme="dark"] .article-info .icon-calendar,
html[data-theme="dark"] .article-info [class*="icon-"] {
  color: var(--rpo-gold) !important;
  opacity: 1 !important;
}

/* Redes / compartir más visibles */
html[data-theme="dark"] .article-social-share a,
html[data-theme="dark"] .social-share-icon a,
html[data-theme="dark"] .article-social-share .social-share-icon ul li a,
html[data-theme="dark"] .helixa-social-share a,
html[data-theme="dark"] .sp-social-share a {
  color: #e8eaef !important;
  background: var(--rpo-surface-3) !important;
  border: 1px solid var(--rpo-border) !important;
  opacity: 1 !important;
}

html[data-theme="dark"] .article-social-share a:hover,
html[data-theme="dark"] .social-share-icon a:hover {
  color: #fff !important;
  background: var(--rpo-red) !important;
  border-color: var(--rpo-red) !important;
}

html[data-theme="dark"] a {
  color: #7fd4d2;
}
html[data-theme="dark"] a:hover {
  color: var(--rpo-gold);
}

html[data-theme="dark"] #sp-footer,
html[data-theme="dark"] #sp-bottom {
  background: #0e1117 !important;
  border-top: 1px solid var(--rpo-border) !important;
  color: var(--rpo-muted) !important;
}

html[data-theme="dark"] .rpo-theme-toggle {
  background: var(--rpo-red);
}
html[data-theme="dark"] .rpo-theme-toggle:hover {
  background: var(--rpo-gold);
  color: #1a1d26;
}

/* Buscador en dark */
html[data-theme="dark"] .ts-search .nav-search-icon,
html[data-theme="dark"] .ts-search .nav-search-icon i,
html[data-theme="dark"] .ts-search .fa-search {
  color: #f0f1f4 !important;
  opacity: 1 !important;
}

html[data-theme="dark"] .ts-search .nav-search-icon {
  background: var(--rpo-surface-3) !important;
}

/* Imagen de artículo con borde suave */
html[data-theme="dark"] .item-page .item-image img,
html[data-theme="dark"] .item-page img.img-fluid,
html[data-theme="dark"] .article img {
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* Logo: mantener legible sobre fondo oscuro */
html[data-theme="dark"] #sp-header.header-default #sp-logo .logo-image,
html[data-theme="dark"] #sp-header.header-default #sp-logo .logo-image-phone {
  background: #fff;
  border-radius: 4px;
  padding: 2px 4px;
  box-sizing: border-box;
}

#sp-header.header-default,
#sp-header.header-default > .container,
#sp-header.header-default > .container > .container-inner,
#sp-header.header-default > .container > .container-inner > .row{
  overflow: visible !important;
}

/* =========================================================
   RPO – Radio en vivo (bloque destacado + dinamismo)
   ========================================================= */

#column-id-1541936955367,
#sppb-addon-1666364526106 {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}
#column-wrap-id-1541936955367 {
  margin-bottom: 16px !important;
}
#sppb-addon-1666364526106 .sppb-addon-content,
#sppb-addon-1666364526106 .custom {
  margin: 0 !important;
  padding: 0 !important;
}

.rpo-live {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 30px 18px 26px;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(145deg, #7a0f12 0%, #b91817 48%, #5c0c0e 100%);
  background-size: 100% 100%, 200% 200%;
  animation: rpo-live-bg 10s ease-in-out infinite;
  box-shadow: 0 10px 28px rgba(185, 24, 23, 0.35);
  isolation: isolate;
  transform: translateZ(0);
}

@keyframes rpo-live-bg {
  0%, 100% { background-position: 0% 0%, 0% 40%; }
  50% { background-position: 0% 0%, 100% 60%; }
}

.rpo-live__aurora {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 20% 30%, rgba(201, 167, 81, 0.35), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(95, 187, 185, 0.28), transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.12), transparent 45%);
  animation: rpo-live-aurora 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: soft-light;
}
@keyframes rpo-live-aurora {
  from { transform: translate(-4%, -2%) rotate(0deg) scale(1); opacity: 0.7; }
  to { transform: translate(5%, 3%) rotate(8deg) scale(1.08); opacity: 1; }
}

.rpo-live__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.18) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: rpo-live-shimmer 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes rpo-live-shimmer {
  0%, 35% { transform: translateX(-120%); }
  55% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

.rpo-live__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 55%, rgba(201, 167, 81, 0.35), transparent 46%);
  opacity: 0.25;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
  animation: rpo-live-idle-glow 3.2s ease-in-out infinite;
}
@keyframes rpo-live-idle-glow {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.06); }
}

.rpo-live__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.rpo-live__particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 10px rgba(201, 167, 81, 0.8);
  bottom: -10px;
  animation: rpo-live-float 7s linear infinite;
  opacity: 0;
}
.rpo-live__particles span:nth-child(1) { left: 12%; animation-delay: 0s; animation-duration: 6.5s; }
.rpo-live__particles span:nth-child(2) { left: 28%; animation-delay: 1.2s; animation-duration: 8s; width: 4px; height: 4px; }
.rpo-live__particles span:nth-child(3) { left: 46%; animation-delay: 0.6s; animation-duration: 7.2s; }
.rpo-live__particles span:nth-child(4) { left: 62%; animation-delay: 2s; animation-duration: 9s; width: 5px; height: 5px; }
.rpo-live__particles span:nth-child(5) { left: 78%; animation-delay: 0.3s; animation-duration: 6.8s; }
.rpo-live__particles span:nth-child(6) { left: 88%; animation-delay: 1.7s; animation-duration: 7.6s; width: 3px; height: 3px; }
@keyframes rpo-live-float {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: translateY(-320px) scale(1.1); opacity: 0; }
}

.rpo-live__rings {
  position: absolute;
  left: 50%;
  top: 62%;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}
.rpo-live__rings span {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
}
.rpo-live:not(.is-playing) .rpo-live__rings span:nth-child(1) {
  animation: rpo-live-ring-idle 3.5s ease-out infinite;
  opacity: 0.25;
}
.rpo-live.is-playing .rpo-live__rings span {
  animation: rpo-live-ring 1.8s ease-out infinite;
  border-color: rgba(201, 167, 81, 0.85);
}
.rpo-live.is-playing .rpo-live__rings span:nth-child(2) { animation-delay: 0.35s; }
.rpo-live.is-playing .rpo-live__rings span:nth-child(3) { animation-delay: 0.7s; }
.rpo-live.is-playing .rpo-live__rings span:nth-child(4) { animation-delay: 1.05s; }

@keyframes rpo-live-ring-idle {
  0% { opacity: 0.35; transform: scale(0.7); }
  100% { opacity: 0; transform: scale(2.2); }
}
@keyframes rpo-live-ring {
  0% { opacity: 0.85; transform: scale(0.5); }
  100% { opacity: 0; transform: scale(3.8); }
}

.rpo-live__badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  animation: rpo-live-badge 2.4s ease-in-out infinite;
}
@keyframes rpo-live-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.rpo-live__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
  animation: rpo-live-pulse 1.2s ease-out infinite;
}
.rpo-live.is-playing .rpo-live__dot {
  background: #5dff8a;
  animation: rpo-live-pulse-green 1s ease-out infinite;
}
@keyframes rpo-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(255, 77, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}
@keyframes rpo-live-pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(93, 255, 138, 0.75); }
  70% { box-shadow: 0 0 0 16px rgba(93, 255, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(93, 255, 138, 0); }
}

.rpo-live__brand {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  animation: rpo-live-brand 3s ease-in-out infinite;
}
@keyframes rpo-live-brand {
  0%, 100% { letter-spacing: 0.02em; text-shadow: 0 2px 10px rgba(0,0,0,0.25); }
  50% { letter-spacing: 0.05em; text-shadow: 0 2px 18px rgba(201,167,81,0.45); }
}
.rpo-live__tag {
  position: relative;
  z-index: 2;
  margin: 6px 0 0;
  max-width: 220px;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.92;
  color: rgba(255, 255, 255, 0.92);
}

.rpo-live__eq {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 48px;
  margin: 18px 0 16px;
  width: min(220px, 90%);
}
.rpo-live__eq i {
  display: block;
  flex: 1;
  max-width: 7px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(180deg, #C9a751, #fff 70%);
  opacity: 0.55;
  transform-origin: bottom center;
  animation: rpo-live-eq-idle 1.6s ease-in-out infinite;
}
.rpo-live__eq i:nth-child(odd) { animation-delay: 0.2s; }
.rpo-live__eq i:nth-child(3n) { animation-delay: 0.45s; }
@keyframes rpo-live-eq-idle {
  0%, 100% { height: 10px; opacity: 0.4; }
  50% { height: 22px; opacity: 0.75; }
}
.rpo-live.is-playing .rpo-live__eq i {
  opacity: 1;
  animation: rpo-live-eq 0.7s ease-in-out infinite;
}
.rpo-live.is-playing .rpo-live__eq i:nth-child(1) { animation-delay: 0.02s; }
.rpo-live.is-playing .rpo-live__eq i:nth-child(2) { animation-delay: 0.11s; }
.rpo-live.is-playing .rpo-live__eq i:nth-child(3) { animation-delay: 0.04s; }
.rpo-live.is-playing .rpo-live__eq i:nth-child(4) { animation-delay: 0.19s; }
.rpo-live.is-playing .rpo-live__eq i:nth-child(5) { animation-delay: 0.08s; }
.rpo-live.is-playing .rpo-live__eq i:nth-child(6) { animation-delay: 0.24s; }
.rpo-live.is-playing .rpo-live__eq i:nth-child(7) { animation-delay: 0.06s; }
.rpo-live.is-playing .rpo-live__eq i:nth-child(8) { animation-delay: 0.16s; }
.rpo-live.is-playing .rpo-live__eq i:nth-child(9) { animation-delay: 0.1s; }
.rpo-live.is-playing .rpo-live__eq i:nth-child(10) { animation-delay: 0.22s; }
.rpo-live.is-playing .rpo-live__eq i:nth-child(11) { animation-delay: 0.05s; }
.rpo-live.is-playing .rpo-live__eq i:nth-child(12) { animation-delay: 0.18s; }
.rpo-live.is-playing .rpo-live__eq i:nth-child(13) { animation-delay: 0.09s; }
.rpo-live.is-playing .rpo-live__eq i:nth-child(14) { animation-delay: 0.27s; }
.rpo-live.is-playing .rpo-live__eq i:nth-child(15) { animation-delay: 0.13s; }
.rpo-live.is-playing .rpo-live__eq i:nth-child(16) { animation-delay: 0.21s; }
@keyframes rpo-live-eq {
  0%, 100% { height: 12px; filter: brightness(1); }
  50% { height: 46px; filter: brightness(1.25); }
}

.rpo-live__btn {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  justify-content: center;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #b91817;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  animation: rpo-live-btn-idle 2.2s ease-in-out infinite;
}
@keyframes rpo-live-btn-idle {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 18px rgba(0,0,0,0.22); }
  50% { transform: scale(1.03); box-shadow: 0 12px 26px rgba(0,0,0,0.3); }
}
.rpo-live__btn-wave {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(185,24,23,0.18), transparent 60%);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}
.rpo-live__btn:hover {
  animation: none;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}
.rpo-live.is-connecting .rpo-live__btn {
  animation: rpo-live-btn-spin 1s linear infinite;
}
@keyframes rpo-live-btn-spin {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}
.rpo-live.is-playing .rpo-live__btn {
  background: #C9a751;
  color: #1a1d26;
  animation: rpo-live-btn-on 1.6s ease-in-out infinite;
}
@keyframes rpo-live-btn-on {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,167,81,0.55), 0 8px 18px rgba(0,0,0,0.25); }
  50% { box-shadow: 0 0 0 12px rgba(201,167,81,0), 0 12px 24px rgba(0,0,0,0.3); }
}
.rpo-live.is-playing .rpo-live__btn-wave {
  animation: rpo-live-btn-wave 1.4s ease-out infinite;
}
@keyframes rpo-live-btn-wave {
  0% { transform: scale(0.4); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}
.rpo-live__btn-icon--pause,
.rpo-live.is-playing .rpo-live__btn-icon--play {
  display: none;
}
.rpo-live.is-playing .rpo-live__btn-icon--pause {
  display: inline-block;
}
.rpo-live__btn-icon--play .fa {
  margin-left: 2px;
}

.rpo-live__status {
  position: relative;
  z-index: 2;
  margin: 12px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.9;
  min-height: 1.2em;
  transition: opacity 0.25s ease;
}
.rpo-live.is-playing .rpo-live__status {
  animation: rpo-live-status 1.8s ease-in-out infinite;
}
@keyframes rpo-live-status {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

.rpo-live.is-playing {
  box-shadow:
    0 12px 34px rgba(185, 24, 23, 0.55),
    0 0 0 2px rgba(201, 167, 81, 0.5),
    0 0 40px rgba(201, 167, 81, 0.25);
  animation: rpo-live-bg 6s ease-in-out infinite, rpo-live-card-pulse 2.4s ease-in-out infinite;
}
@keyframes rpo-live-card-pulse {
  0%, 100% { filter: saturate(1) brightness(1); }
  50% { filter: saturate(1.15) brightness(1.05); }
}
.rpo-live.is-playing .rpo-live__glow {
  opacity: 1;
  animation: rpo-live-glow 2.2s ease-in-out infinite;
}
.rpo-live.is-playing .rpo-live__particles span {
  animation-duration: 4.5s;
  background: #C9a751;
}
.rpo-live.is-playing .rpo-live__shimmer {
  animation-duration: 2.8s;
}
@keyframes rpo-live-glow {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.18); opacity: 1; }
}

html[data-theme="dark"] .rpo-live {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* Sombra blanca del podcast / addons SPPB en dark */
html[data-theme="dark"] #sppb-addon-1666366106984,
html[data-theme="dark"] #sppb-addon-wrapper-1666366106984,
html[data-theme="dark"] #column-id-1541936955367,
html[data-theme="dark"] #column-id-1541936955367 .sppb-addon,
html[data-theme="dark"] #column-id-1541936955367 .sppb-addon-module,
html[data-theme="dark"] #column-id-1541936955367 .banneritem,
html[data-theme="dark"] #column-id-1541936955367 img {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  filter: none !important;
}

html[data-theme="dark"] #sppb-addon-1666366106984 {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] #sppb-addon-1666364526106,
html[data-theme="dark"] #sppb-addon-1787359000001,
html[data-theme="dark"] #sppb-addon-1787358311496 {
  box-shadow: none !important;
}

html[data-theme="dark"] .rpo-fb {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .rpo-more-news__link {
  box-shadow: none !important;
}

html[data-theme="dark"] .rpo-more-news__link:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35) !important;
}

@media (prefers-reduced-motion: reduce) {
  .rpo-live,
  .rpo-live * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 991px) {
  .rpo-live {
    min-height: 250px;
    padding: 24px 16px;
  }
  .rpo-live__brand { font-size: 22px; }
}

/* Dinamismo extra: parallax suave + burst al play */
.rpo-live__aurora {
  transform: translate(calc(var(--rpo-mx, 0px) * 1.4), calc(var(--rpo-my, 0px) * 1.4));
  transition: transform 0.15s ease-out;
}
.rpo-live__eq {
  transform: translate(calc(var(--rpo-mx, 0px) * 0.4), calc(var(--rpo-my, 0px) * 0.3));
  transition: transform 0.2s ease-out;
}
.rpo-live--burst::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 62%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%) scale(0.2);
  animation: rpo-live-burst 0.85s ease-out forwards;
  pointer-events: none;
  z-index: 4;
}
@keyframes rpo-live-burst {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.2); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(18); }
}

/* =========================================================
   RPO – Más noticias (relleno bajo slider)
   ========================================================= */

.rpo-mas-noticias-addon .sp-module-title,
.rpo-mas-noticias .rpo-mas-noticias__title,
.moduletable.rpo-mas-noticias > h3,
.sp-module.rpo-mas-noticias .sp-module-title {
  margin: 0 0 12px;
  padding: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rpo-navy);
  border-bottom: 2px solid var(--rpo-red);
}

.rpo-more-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rpo-more-news__item {
  margin: 0;
}

.rpo-more-news__link {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(54, 53, 52, 0.08);
  color: inherit !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.rpo-more-news__link:hover {
  transform: translateY(-1px);
  border-color: rgba(185, 24, 23, 0.35);
  box-shadow: 0 8px 18px rgba(36, 39, 50, 0.08);
}

.rpo-more-news__thumb {
  display: block;
  width: 96px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  background: #ececec;
}
.rpo-more-news__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rpo-more-news__thumb--empty {
  background: linear-gradient(135deg, #b91817, #C9a751);
}

.rpo-more-news__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.rpo-more-news__date {
  font-size: 11px;
  color: var(--rpo-red);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.rpo-more-news__headline {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--rpo-charcoal);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rpo-more-news__link:hover .rpo-more-news__headline {
  color: var(--rpo-red);
}

.rpo-more-news__more {
  margin: 12px 0 0;
  text-align: right;
}
.rpo-more-news__more a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--rpo-red) !important;
}
.rpo-more-news__more a:hover {
  color: var(--rpo-gold) !important;
}

html[data-theme="dark"] .rpo-mas-noticias-addon .sp-module-title,
html[data-theme="dark"] .moduletable.rpo-mas-noticias > h3,
html[data-theme="dark"] .sp-module.rpo-mas-noticias .sp-module-title {
  color: var(--rpo-text);
}
html[data-theme="dark"] .rpo-more-news__link {
  background: var(--rpo-surface-2);
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .rpo-more-news__headline {
  color: var(--rpo-text);
}

.rpo-more-news__heading {
  margin: 0 0 12px;
  padding: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rpo-navy);
  border-bottom: 2px solid var(--rpo-red);
}
html[data-theme="dark"] .rpo-more-news__heading {
  color: var(--rpo-text);
}

/* Barra superior de fecha: oculta (aportaba poco) */
#sp-top-bar {
  display: none !important;
}

/* =========================================================
   RPO – Banner Rutas (foto completa, sin recorte)
   ========================================================= */

#column-wrap-id-1541936955371 {
  align-self: flex-start !important;
  margin-top: 0 !important;
}

#column-id-1541936955371 {
  background-color: transparent !important;
  background-image: none !important;
  background-size: auto !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
}

#column-id-1541936955371 .sppb-column-overlay {
  display: none !important;
}

/* Mostrar la pieza completa al ancho de la columna */
#column-id-1541936955371 .sppb-column-addons {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

#column-id-1541936955371 .sppb-column-addons::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 823 / 1911;
  background-image: url("/images/2026/07/29/rutas.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  border-radius: 10px;
}

@media (max-width: 991px) {
  #column-wrap-id-1541936955371 {
    margin-top: 16px !important;
  }
  #column-id-1541936955371 .sppb-column-addons::before {
    max-width: 420px;
    margin: 0 auto;
  }
}

/* =========================================================
   RPO – Facebook sidebar (bajo banner Rutas)
   ========================================================= */

#column-id-1541936955371 .rpo-fb-addon,
#column-id-1541936955371 .sppb-addon-wrapper:has(.rpo-fb) {
  margin-top: 10px !important;
}

.rpo-fb {
  --rpo-fb-blue: #1877f2;
  --rpo-fb-ink: #1a1a1a;
  --rpo-fb-muted: #5c6570;
  --rpo-fb-line: rgba(0, 0, 0, 0.08);
  background: #fff;
  border: 1px solid var(--rpo-fb-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

html[data-rpo-theme="dark"] .rpo-fb,
body.rpo-theme-dark .rpo-fb {
  --rpo-fb-ink: #f2f4f7;
  --rpo-fb-muted: #a8b0ba;
  --rpo-fb-line: rgba(255, 255, 255, 0.12);
  background: #161a20;
}

.rpo-fb__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--rpo-fb-line);
  background: linear-gradient(180deg, rgba(24, 119, 242, 0.06), transparent);
}

.rpo-fb__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  background: var(--rpo-fb-blue);
  flex: 0 0 auto;
}

.rpo-fb__titles {
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.15;
}

.rpo-fb__eyebrow {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rpo-fb-muted);
  font-weight: 600;
}

.rpo-fb__name {
  display: block;
  margin: 1px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--rpo-fb-ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rpo-fb__name:hover,
.rpo-fb__name:focus {
  color: var(--rpo-fb-blue);
  text-decoration: none;
}

.rpo-fb__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--rpo-fb-blue);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  line-height: 1;
}

.rpo-fb__cta:hover,
.rpo-fb__cta:focus {
  filter: brightness(1.06);
  color: #fff !important;
}

.rpo-fb__frame-wrap {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: #f0f2f5;
}

html[data-rpo-theme="dark"] .rpo-fb__frame-wrap,
body.rpo-theme-dark .rpo-fb__frame-wrap {
  background: #0f1217;
}

.rpo-fb__frame {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 280px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .rpo-fb {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .rpo-fb__frame {
    height: 260px;
  }
}

/* Captcha matemático login */
.rpo-math-captcha {
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.rpo-math-captcha label {
  font-weight: 600;
  margin: 0;
}
.rpo-math-captcha input[type="number"] {
  width: 88px;
  max-width: 100%;
  padding: 6px 8px;
}

/* =========================================================
   RPO – Vista móvil limpia (escritorio intacto)
   Solo: hamburguesa, slider noticias, radio, YouTube, footer
   ========================================================= */

@media (max-width: 991.98px) {
  /* Header compacto: logo + hamburguesa + botones en UNA fila */
  #sp-header.header-default .breaking-news {
    display: none !important;
  }

  #sp-header.header-default {
    min-height: 56px !important;
  }

  #sp-header.header-default > .container,
  #sp-header.header-default > .container > .container-inner {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  #sp-header.header-default > .container > .container-inner > .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #sp-header.header-default #sp-logo {
    flex: 1 1 auto !important;
    max-width: none !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
  }

  #sp-header.header-default #sp-logo.col-md-4,
  #sp-header.header-default #sp-logo.col-lg-3 {
    flex: 1 1 auto !important;
    max-width: 46% !important;
    width: 46% !important;
  }

  #sp-header.header-default #sp-logo .sp-column {
    min-height: 0 !important;
    height: auto !important;
    padding: 4px 4px 4px 0 !important;
    justify-content: flex-start !important;
    background: transparent !important;
  }

  #sp-header.header-default #sp-logo .logo > a {
    justify-content: flex-start !important;
    width: auto !important;
  }

  #sp-header.header-default #sp-logo .logo-image,
  #sp-header.header-default #sp-logo .logo-image-phone {
    max-height: 36px !important;
    max-width: 150px !important;
    width: auto !important;
    margin: 0 !important;
  }

  #sp-header.header-default #sp-menu {
    flex: 0 0 auto !important;
    max-width: none !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
  }

  #sp-header.header-default #sp-menu.col-md-8,
  #sp-header.header-default #sp-menu.col-lg-9 {
    flex: 0 0 auto !important;
    max-width: none !important;
    width: auto !important;
  }

  #sp-header.header-default #sp-menu > .sp-column {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 0 !important;
  }

  /* Fila limpia: hamburguesa + FB + Aplicación + tema */
  #sp-header.header-default .ts-header-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    min-height: 44px !important;
    padding: 0 !important;
    overflow: visible !important;
    width: auto !important;
  }

  #sp-header.header-default .ts-header-nav.clearfix::before,
  #sp-header.header-default .ts-header-nav.clearfix::after {
    display: none !important;
    content: none !important;
  }

  /* Matar menú desktop por completo en móvil */
  #sp-header.header-default .sp-megamenu-parent,
  #sp-header.header-default ul.sp-megamenu-parent,
  #sp-header.header-default .sp-megamenu-parent.d-none,
  #sp-header.header-default .sp-megamenu-parent.d-lg-block,
  #sp-header .sp-megamenu-parent {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
  }

  #sp-header.header-default .ts-search {
    display: none !important;
  }

  #sp-header.header-default .sp-megamenu-wrapper {
    float: none !important;
    display: contents !important;
    width: auto !important;
    flex: 0 0 auto !important;
  }

  #sp-header.header-default #offcanvas-toggler,
  #sp-header #offcanvas-toggler {
    position: static !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    order: 1 !important;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 9px !important;
    background: #f3f4f6 !important;
    color: #1a1a1a !important;
    font-size: 18px !important;
    line-height: 1 !important;
    z-index: 2 !important;
  }

  html[data-theme="dark"] #sp-header.header-default #offcanvas-toggler {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #f3f4f6 !important;
  }

  #sp-header.header-default #offcanvas-toggler > .fa {
    color: inherit !important;
  }

  /* Botones FB + Aplicación */
  #sp-header .rpo-header-actions,
  .rpo-header-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    order: 2 !important;
    position: static !important;
    float: none !important;
    z-index: 2 !important;
  }

  #sp-header .rpo-header-actions__btn,
  .rpo-header-actions__btn {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 9px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    text-decoration: none !important;
    line-height: 1 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    position: static !important;
    float: none !important;
  }

  #sp-header .rpo-header-actions__btn svg {
    display: block !important;
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
  }

  #sp-header .rpo-header-actions__btn--fb {
    background: #1877f2 !important;
    color: #fff !important;
    width: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
  }

  #sp-header .rpo-header-actions__btn--app {
    background: linear-gradient(135deg, #b91817, #7a0f12) !important;
    color: #fff !important;
  }

  #sp-header .rpo-header-actions__btn--app span {
    color: #fff !important;
  }

  /* En pantallas muy angostas: solo icono en Aplicación */
  @media (max-width: 380px) {
    #sp-header .rpo-header-actions__btn--app span {
      display: none !important;
    }
    #sp-header .rpo-header-actions__btn--app {
      width: 38px !important;
      min-width: 38px !important;
      padding: 0 !important;
    }
    #sp-header.header-default #sp-logo .logo-image-phone {
      max-width: 120px !important;
    }
  }

  /* Theme toggle a la derecha */
  #sp-header.header-default .rpo-theme-toggle {
    margin-left: 0 !important;
    order: 3 !important;
    flex: 0 0 auto !important;
    width: 38px !important;
    height: 38px !important;
  }

  /* Sticky también en una sola fila */
  #sp-header.header-sticky.header-default > .container > .container-inner > .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  #sp-header.header-sticky #sp-logo .logo-image,
  #sp-header.header-sticky #sp-logo .logo-image-phone {
    max-height: 32px !important;
  }

  /* Primera columna: solo el slider (ocultar Más noticias) */
  #column-id-1541936955365 .rpo-mas-noticias-addon,
  #column-id-1541936955365 .rpo-more-news,
  #column-id-1541936955365 .custom.rpo-mas-noticias,
  .rpo-mas-noticias-addon {
    display: none !important;
  }

  /* Medio: solo radio en vivo (ocultar podcast) */
  #sppb-addon-wrapper-1666366106984,
  #column-id-1541936955367 .sppb-addon-module.podcast {
    display: none !important;
  }

  #column-wrap-id-1541936955367 {
    margin-bottom: 12px !important;
  }

  /* Derecha: rutas + Facebook fuera en móvil */
  #column-wrap-id-1541936955371,
  #column-id-1541936955371 {
    display: none !important;
  }

  /* Banners / bloques que saturan */
  #section-id-1712590247145,
  #section-id-1661981677657,
  #section-id-1677693738729,
  #section-id-1661981677659,
  #section-id-1664195799830,
  #section-id-1664209577355,
  #section-id-1664209577363,
  #sp-bottom-top,
  .sp-scroll-up {
    display: none !important;
  }

  /* Sección YouTube original: la sustituye el slider móvil */
  #section-id-1687968908637.rpo-yt-desktop-only {
    display: none !important;
  }

  /* Orden: slider → radio */
  #section-id-1541936955358 > .sppb-row-container > .sppb-row {
    display: flex !important;
    flex-direction: column !important;
  }

  #column-wrap-id-1541936955365 {
    order: 1;
  }

  #column-wrap-id-1541936955367 {
    order: 2;
  }

  .rpo-live {
    min-height: 260px;
    border-radius: 14px;
    margin: 8px 0 4px;
  }

  /* Footer simple */
  #sp-footer {
    padding: 18px 0 24px !important;
    text-align: center;
  }

  #sp-footer .sp-copyright {
    font-size: 12px;
    line-height: 1.4;
  }
}

/* Slider YouTube móvil */
.rpo-yt-mobile {
  display: none;
}

@media (max-width: 991.98px) {
  .rpo-yt-mobile {
    display: block;
    margin: 8px 0 20px;
    padding: 0 12px;
  }

  .rpo-yt-mobile__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 10px;
  }

  .rpo-yt-mobile__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--rpo-navy, #1a2744);
  }

  .rpo-yt-mobile__hint {
    margin: 0;
    font-size: 11px;
    color: #6b7280;
  }

  .rpo-yt-mobile__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 12px;
    scrollbar-width: thin;
  }

  .rpo-yt-mobile__slide {
    flex: 0 0 86%;
    max-width: 86%;
    scroll-snap-align: center;
  }

  .rpo-yt-mobile__card,
  .rpo-yt-mobile .rpo-yt-lazy {
    position: relative !important;
    display: block;
    width: 100%;
    padding-bottom: 56.25% !important;
    height: 0 !important;
    background: #111 !important;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
  }

  .rpo-yt-mobile__card img,
  .rpo-yt-mobile .rpo-yt-lazy img {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .rpo-yt-mobile__card button,
  .rpo-yt-mobile .rpo-yt-lazy button {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #c00 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 8px !important;
    width: 64px !important;
    height: 44px !important;
    font-size: 16px !important;
  }
}

html[data-theme="dark"] .rpo-yt-mobile__title {
  color: var(--rpo-text, #f3f4f6);
}

/* Slider promociones móvil (debajo de videos) */
.rpo-promo-mobile {
  display: none;
}

@media (max-width: 991.98px) {
  .rpo-promo-mobile {
    display: block;
    margin: 4px 0 24px;
    padding: 0 12px;
  }

  .rpo-promo-mobile__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 10px;
  }

  .rpo-promo-mobile__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--rpo-navy, #1a2744);
  }

  .rpo-promo-mobile__hint {
    margin: 0;
    font-size: 11px;
    color: #6b7280;
  }

  .rpo-promo-mobile__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 12px;
    scrollbar-width: thin;
  }

  .rpo-promo-mobile__slide {
    flex: 0 0 78%;
    max-width: 78%;
    scroll-snap-align: center;
  }

  .rpo-promo-mobile__card {
    display: block;
    width: 100%;
    height: 220px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #eceff3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    position: relative;
  }

  .rpo-promo-mobile__card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  .rpo-promo-mobile__card::after {
    content: "";
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z'/%3E%3C/svg%3E") center/16px no-repeat;
    pointer-events: none;
  }
}

html[data-theme="dark"] .rpo-promo-mobile__title {
  color: var(--rpo-text, #f3f4f6);
}

html[data-theme="dark"] .rpo-promo-mobile__card {
  background: #161a20;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Lightbox promociones */
.rpo-promo-lightbox[hidden] {
  display: none !important;
}

.rpo-promo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.rpo-promo-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.82);
}

.rpo-promo-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rpo-promo-lightbox__close {
  position: absolute;
  top: -6px;
  right: -2px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.rpo-promo-lightbox__body {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  background: #111;
  max-height: min(78vh, 820px);
}

.rpo-promo-lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.rpo-promo-lightbox__link {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #b91817;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}

.rpo-promo-lightbox__link[hidden] {
  display: none !important;
}

body.rpo-promo-lightbox-open {
  overflow: hidden;
}

/* Lightbox videos YouTube */
.rpo-yt-lightbox[hidden] {
  display: none !important;
}

.rpo-yt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.rpo-yt-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.88);
}

.rpo-yt-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
}

.rpo-yt-lightbox__close {
  position: absolute;
  top: -10px;
  right: -2px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.rpo-yt-lightbox__frame-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.rpo-yt-lightbox__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

body.rpo-yt-lightbox-open {
  overflow: hidden;
}

/* Botones header: ocultos en escritorio */
.rpo-header-actions {
  display: none;
}

@media (min-width: 992px) {
  .rpo-yt-mobile,
  .rpo-promo-mobile,
  .rpo-header-actions {
    display: none !important;
  }
}
