@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --rf-primary: #ff5a3c;
  --rf-primary-strong: #e63e1f;
  --rf-dark: #0b1f33;
  --rf-ink: #1b2a3a;
  --rf-muted: #5f7288;
  --rf-surface: #ffffff;
  --rf-surface-soft: #f3f8fc;
  --rf-border: rgba(11, 31, 51, 0.14);
  --rf-shadow: 0 10px 28px rgba(11, 31, 51, 0.14);
  --rf-radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', 'gt_walsheim_proregular', sans-serif;
  color: var(--rf-ink);
  background-image:
    radial-gradient(circle at 8% 0%, rgba(0, 125, 167, 0.2), transparent 40%),
    radial-gradient(circle at 95% 12%, rgba(255, 90, 60, 0.18), transparent 35%),
    url('../images/brickwall.png');
  background-attachment: fixed, fixed, fixed;
}

h1,
h2,
h3,
.title,
.subtitle,
.nav > li.nivel_1 > a,
.nav-fixed > li.nivel_1 > a {
  font-family: 'Space Grotesk', 'Manrope', 'gt_walsheim_proregular', sans-serif;
}

a i,
button i,
.btn_social_top i,
.btn_share_dos i,
.btn_play_uno i,
.btn_play_cancion i,
#trigger-overlay i {
  display: inline-block;
  transition: transform 220ms ease, color 220ms ease, filter 220ms ease;
}

.btn_social_top:hover i,
.btn_share_dos:hover i,
#trigger-overlay:hover i {
  animation: rf-icon-bounce 620ms ease;
}

.btn_play_uno i,
.btn_play_cancion i {
  animation: rf-icon-pulse 2s ease-in-out infinite;
}

@keyframes rf-icon-bounce {
  0% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-2px) scale(1.15); }
  60% { transform: translateY(1px) scale(0.97); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes rf-icon-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.12); filter: brightness(1.12); }
}

#main-wrapper,
#main-wrapper-error {
  border-radius: 10px;
  box-shadow: var(--rf-shadow);
  border: 1px solid var(--rf-border);
  margin-top: 16px;
  margin-bottom: 20px;
}

.rf-promo-banner {
  position: relative;
  overflow: hidden;
  margin: -16px -16px 18px;
  background: var(--rf-dark);
}

.rf-promo-banner .responsive {
  display: block;
  width: 100%;
  min-height: 150px;
  object-fit: cover;
  transition: transform 500ms ease;
}

.rf-promo-banner:hover .responsive {
  transform: scale(1.02);
}

.rf-promo-banner__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(90deg, rgba(8, 37, 61, 0.98), rgba(15, 59, 95, 0.92));
}

.rf-promo-banner__footer strong,
.rf-promo-banner__eyebrow {
  display: block;
}

.rf-promo-banner__eyebrow {
  margin-bottom: 2px;
  color: #ffb09f;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.rf-promo-banner__footer strong {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: 1.05rem;
}

.rf-promo-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rf-promo-banner__action {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: background-color 180ms ease, transform 180ms ease;
}

.rf-promo-banner__action:hover {
  background-color: var(--rf-primary);
  color: #fff;
  transform: translateY(-1px);
}

.rf-promo-banner__action i {
  margin-left: 6px;
}

.rf-promo-banner__action--tv {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #ff3b2b, #c5161f);
  box-shadow: 0 0 0 rgba(255, 90, 60, 0.35);
  animation: rf-tv-pulse 2.2s ease-in-out infinite;
}

.rf-promo-banner__action--tv::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.22) 48%, transparent 100%);
  transform: translateX(-130%);
  animation: rf-tv-shine 2.8s ease-in-out infinite;
}

.rf-promo-banner__action--tv i,
.rf-promo-banner__action--tv span {
  position: relative;
  z-index: 1;
}

.rf-promo-banner__action--tv i {
  margin-left: 0;
  margin-right: 8px;
}

@keyframes rf-tv-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 90, 60, 0.4);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 90, 60, 0);
    transform: translateY(-1px);
  }
}

@keyframes rf-tv-shine {
  0% { transform: translateX(-130%); }
  55% { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}

/* Sidebar live CTA above sponsor block */
.rf-sidebar-live {
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 90, 60, 0.2);
  background: linear-gradient(135deg, rgba(8, 37, 61, 0.96), rgba(15, 59, 95, 0.9));
  box-shadow: 0 12px 24px rgba(11, 31, 51, 0.18);
}

.rf-sidebar-live__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 90, 60, 0.16);
  color: #ffb09f;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.rf-sidebar-live__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rf-sidebar-live__button {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 92px;
  padding: 14px 12px 12px;
  border-radius: 12px;
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.rf-sidebar-live__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.24);
  filter: brightness(1.03);
}

.rf-sidebar-live__button i {
  position: relative;
  z-index: 1;
  font-size: 1.9rem;
  line-height: 1;
}

.rf-sidebar-live__button span {
  position: relative;
  z-index: 1;
}

.rf-sidebar-live__button--radio {
  background: linear-gradient(135deg, #ff9f1a, #ff6f00);
}

.rf-sidebar-live__button--tv {
  background: linear-gradient(135deg, #ffb32c, #f08a00);
  animation: rf-tv-pulse 2.2s ease-in-out infinite;
}

.rf-sidebar-live__button--tv::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.22) 48%, transparent 100%);
  transform: translateX(-130%);
  animation: rf-tv-shine 2.8s ease-in-out infinite;
}

.rf-sidebar-live__button--tv i {
  animation: rf-icon-pulse 1.8s ease-in-out infinite;
}

.rf-sidebar-live__button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: rgba(255, 255, 255, 0.22);
}

.rf-sidebar-live__button--radio::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.28), rgba(255,255,255,0.08));
}

.rf-sidebar-live__button--tv::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.06));
}

.content-header,
.content-header-player {
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

#header-wrapper,
#menu-fixed {
  background: linear-gradient(100deg, #08253d 0%, #0f3b5f 55%, #15527f 100%);
}

#menu-fixed,
#wrapper-menu #menu-principal {
  box-shadow: 0 12px 30px rgba(12, 20, 30, 0.22);
}

.nav > li.nivel_1 > a,
.nav-fixed > li.nivel_1 > a {
  letter-spacing: 0.2px;
}

.title {
  letter-spacing: 0.4px;
  border-bottom: 2px solid rgba(255, 90, 60, 0.28);
  margin-bottom: 10px;
}

.subtitle,
.cancion_txt,
.titular_caption2 {
  color: var(--rf-dark);
}

.subtitle {
  letter-spacing: 0.3px;
  color: var(--rf-dark);
}

.title-sidebar {
  border-radius: 6px;
}

.bloque_noticias,
.bloque-cancion,
.block_cancion_descatada,
.block_foto_destacada,
.mini_block_foto,
.bloque-blanco,
.player_content,
.video-container {
  border-radius: var(--rf-radius);
  overflow: hidden;
  border: 1px solid var(--rf-border);
  background: var(--rf-surface);
  box-shadow: 0 6px 20px rgba(12, 20, 30, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.bloque_noticias:hover,
.bloque-cancion:hover,
.block_cancion_descatada:hover,
.block_foto_destacada:hover,
.mini_block_foto:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(12, 20, 30, 0.14);
}

.bloque_noticias .img_bloque_noticas img,
.bloque-cancion .img_bloque_cancion img,
.block_foto_destacada img,
.mini_block_foto img {
  transition: transform 280ms ease;
}

.bloque_noticias:hover .img_bloque_noticas img,
.bloque-cancion:hover .img_bloque_cancion img,
.block_foto_destacada:hover img,
.mini_block_foto:hover img {
  transform: scale(1.04);
}

.btn_share_dos,
.btn-radio-vivo,
.btn_go_home {
  border-radius: 7px;
  border: 1px solid rgba(255, 90, 60, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn-radio-vivo,
.btn_go_home {
  background: linear-gradient(135deg, var(--rf-primary), var(--rf-primary-strong));
  color: #fff !important;
}

.btn_share_dos:hover,
.btn-radio-vivo:hover,
.btn_go_home:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(20, 24, 34, 0.16);
}

.breadcrumbs {
  border-bottom-style: solid;
  border-bottom-color: rgba(26, 35, 43, 0.14);
}

#comentarios_facebook,
.buscador,
.social_like,
.compartir_album {
  border-radius: 7px;
}

#footer-wrapper {
  margin-top: 16px;
}

/* Layout safeguards for narrow screens and long content. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
iframe {
  max-width: 100%;
}

.contenido_principal_inner,
.sidebar_home,
#content_dos,
#sidebar-dos {
  min-width: 0;
}

.bloque-cancion .cancion_txt,
.bloque-cancion .artist_cancion_txt,
.bloque_noticias .descripcion_bloque_noticias,
.tv-programming__name {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media screen and (max-width: 980px) {
  #main-wrapper,
  #main-wrapper-error {
    width: 100%;
    margin-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    overflow: hidden;
  }

  .contenido_principal_inner,
  .sidebar_home,
  #content_dos,
  #sidebar-dos {
    width: 100% !important;
    max-width: 100%;
    float: none !important;
  }

  .sidebar_home {
    margin-top: 16px;
  }

  .rf-promo-banner {
    margin-left: -10px;
    margin-right: -10px;
  }

  .rf-promo-banner__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .rf-promo-banner__actions {
    justify-content: flex-start;
    width: 100%;
  }
}

@media screen and (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  #header-wrapper .content-header,
  #header-wrapper .content-header-player {
    width: 100%;
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .rf-promo-banner .responsive {
    min-height: 110px;
  }

  .rf-promo-banner__footer {
    padding: 10px 12px;
  }

  .rf-promo-banner__actions {
    gap: 7px;
  }

  .rf-promo-banner__action {
    padding: 8px 10px;
    font-size: 0.7rem;
  }

  .rf-sidebar-live {
    padding: 10px;
  }

  .rf-sidebar-live__buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rf-sidebar-live__button {
    min-height: 76px;
    padding: 10px 8px;
  }

  .tv-stream-container {
    max-width: 100%;
  }

  .tv-programming {
    padding: 12px;
  }
}

  @media screen and (max-width: 640px) {
    .artistas_busqueda_resultado .col-md-3 {
      width: 50%;
    }

    .artistas_busqueda_resultado .bloque_arti .circle_artista {
      width: min(145px, 100%);
      height: auto;
      aspect-ratio: 1;
      margin: 0 auto;
    }
  }

@media screen and (max-width: 380px) {
  .rf-sidebar-live__buttons {
    grid-template-columns: 1fr;
  }

  .rf-promo-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rf-promo-banner__action {
    text-align: center;
  }
}

#footer-wrapper .copyright {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #d7dee6;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(6, 9, 14, 0.28);
  padding: 16px;
}

a:hover,
.nav > li.nivel_1 > a:hover,
.nav-fixed > li.nivel_1 > a:hover,
.title-sidebar:hover {
  color: var(--rf-primary);
}

.nav-fixed li.nivel_1 a.active,
.nav li.nivel_1 a.active {
  background: linear-gradient(135deg, var(--rf-primary), var(--rf-primary-strong));
  color: #fff !important;
}

#footer-wrapper .copyright span,
#footer-wrapper .copyright a {
  color: #f1f6fb;
}

@media (max-width: 991px) {
  #main-wrapper,
  #main-wrapper-error {
    border-radius: 8px;
    margin-top: 10px;
  }

  .content-header,
  .content-header-player {
    border-radius: 0 0 6px 6px;
  }
}

@media (max-width: 640px) {
  .rf-promo-banner {
    margin: -16px -16px 14px;
  }

  .rf-promo-banner__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 12px 14px;
  }

  .rf-promo-banner__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .rf-promo-banner__action {
    width: 100%;
    text-align: center;
  }

  .rf-promo-banner__action--tv i {
    margin-right: 8px;
  }

  .rf-sidebar-live__buttons {
    grid-template-columns: 1fr;
  }

  .title,
  .subtitle {
    letter-spacing: 0;
  }

  .bloque_noticias,
  .bloque-cancion,
  .block_cancion_descatada,
  .block_foto_destacada,
  .mini_block_foto,
  .bloque-blanco,
  .player_content,
  .video-container {
    border-radius: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  a i,
  button i,
  .btn_social_top i,
  .btn_share_dos i,
  .btn_play_uno i,
  .btn_play_cancion i,
  #trigger-overlay i,
  .rf-promo-banner__action--tv {
    animation: none !important;
    transition: none !important;
  }

  .rf-promo-banner__action--tv::before {
    animation: none !important;
  }

  .rf-sidebar-live__button,
  .rf-sidebar-live__button--tv::before,
  .rf-sidebar-live__button--tv i {
    animation: none !important;
    transition: none !important;
  }
}
