@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

*,
::before,
::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

* {
  margin: 0;
}

fieldset,
legend {
  padding: 0;
}

iframe,
fieldset {
  border-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
  overflow-wrap: break-word;
}

address {
  font-style: normal;
  line-height: inherit;
}

abbr[title] {
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

button,
input,
optgroup,
select,
textarea {
  padding: 0;
  border-width: 0;
  font-size: 100%;
  font-family: inherit;
  line-height: inherit;
  color: inherit;
}

textarea:focus,
input:focus {
  outline: none;
}

textarea {
  resize: vertical;
}

button,
select {
  text-transform: none;
}

button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
  background-color: rgba(62, 69, 89, 0.25);
  display: inline-block;
  vertical-align: middle;
}
button:not(:disabled),
[type=button]:not(:disabled),
[type=reset]:not(:disabled),
[type=submit]:not(:disabled) {
  cursor: pointer;
}

progress {
  vertical-align: baseline;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

summary {
  display: list-item;
}

[hidden] {
  display: none;
}

ol,
ul,
dl,
dd {
  list-style: none;
  padding: 0;
}

table {
  border-collapse: collapse;
  max-width: 100%;
}

tbody,
td,
th,
thead,
tr {
  border-width: 0;
  text-align: inherit;
}

tr > * {
  padding: 0.75rem;
  word-break: normal;
}

img,
svg,
video,
canvas {
  height: auto;
}

source {
  display: none;
}

img,
svg,
video,
canvas,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

audio,
video {
  width: 100%;
}

body {
  font-family: var(--secondary-font);
  overflow-x: hidden;
  line-height: 1.5;
  background-color: var(--body-bg);
  color: var(--color-text);
  position: relative;
}

/* Fondo dinámico con carátula de canción */
.dynamic-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  transition: all 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(20px) brightness(0.89);
  transform: scale(1.05);
  animation: subtleFloat 20s ease-in-out infinite;
}

.dynamic-background.active {
  opacity: 1;
}

/* Animación sutil de flotación */
@keyframes subtleFloat {
  0%, 100% {
    transform: scale(1.05) translateY(0px) translateX(0px);
  }
  25% {
    transform: scale(1.06) translateY(-2px) translateX(1px);
  }
  50% {
    transform: scale(1.05) translateY(-1px) translateX(-1px);
  }
  75% {
    transform: scale(1.06) translateY(1px) translateX(0px);
  }
}

/* Overlay para mejorar legibilidad */
.dynamic-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.28) 50%,
    rgba(0, 0, 0, 0.53) 100%
  );
  backdrop-filter: blur(2px);
}

/* Responsividad para dispositivos móviles */
@media (max-width: 768px) {
  .dynamic-background {
    filter: blur(25px) brightness(0.61);
  }
  
  .dynamic-background::after {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.54) 0%,
        rgba(0, 0, 0, 0.34) 50%,
        rgba(0, 0, 0, 0.63) 100%
      );
  }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
  .dynamic-background {
    filter: blur(30px) brightness(0.44);
  }
}

/* Modo reducido de movimiento para accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .dynamic-background {
    transition: opacity 0.5s ease-in-out;
  }
}

html.light .brand-white {
  display: none;
}

html.dark .brand-dark {
  display: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--primary-font);
}

:root {
  --primary-font: "Montserrat", sans-serif;
  --secondary-font: "Onest", sans-serif;
  --player-primary: #072c49;
  --swiper-navigation-size: 14px;
  --stations-cols-min: 12rem;
  --container-width: 1200px;
  --container-padding: 1rem;
  --player-duration: 0.3s;
  --player-long-duration: 1s;
  --player-volume-width: 100px;
  --box-shadow-low: 0px 1px 3px 0px rgba(0,0,0,0.1) , 0px 1px 2px 0px rgba(0,0,0,0.06);
  --box-shadow-medium: 0px 4px 6px -1px rgba(0,0,0,0.1) , 0px 2px 4px -1px rgba(0,0,0,0.06);
  --box-shadow-high: 0px 10px 15px -3px rgba(0,0,0,0.1) , 0px 4px 6px -2px rgba(0,0,0,0.05);
  --drop-shadow-low: drop-shadow(0px 1px 2px rgba(0,0,0,0.05));
  --drop-shadow-medium: drop-shadow(0px 3px 5px rgba(0,0,0,0.1));
  --drop-shadow-high: drop-shadow(0px 8px 12px rgba(0,0,0,0.1));
}

/* Color Theme Variables */
:root[data-color-theme="blue"] {
  --player-primary: #3E4559;
  --player-headings-bg: #3E4559;
  --player-footer-bg: #3E4559;
  --color-title: #3E4559;
  --color-primary: #3E4559;
  --color-primary-rgb: 62, 69, 89;
}

:root[data-color-theme="red"] {
  --player-primary: #C20000;
  --player-headings-bg: #C20000;
  --player-footer-bg: #C20000;
  --color-title: #C20000;
  --color-primary: #C20000;
  --color-primary-rgb: 194, 0, 0;
}

:root[data-color-theme="orange"] {
  --player-primary: #ea580c;
  --player-headings-bg: #ea580c;
  --player-footer-bg: #ea580c;
  --color-title: #ea580c;
  --color-primary: #ea580c;
  --color-primary-rgb: 234, 88, 12;
}

:root[data-color-theme="fuchsia"] {
  --player-primary: #5C168C;
  --player-headings-bg: #5C168C;
  --player-footer-bg: #5C168C;
  --color-title: #5C168C;
  --color-primary: #5C168C;
  --color-primary-rgb: 92, 22, 140;
}

:root[data-color-theme="cyan"] {
  --player-primary: #27D8E8;
  --player-headings-bg: #27D8E8;
  --player-footer-bg: #27D8E8;
  --color-title: #27D8E8;
  --color-primary: #27D8E8;
  --color-primary-rgb: 39, 216, 232;
}
@media (min-width: 992px) {
  :root {
    --container-padding: 1.5rem;
  }
}

:root {
  --body-bg: #F1F1F1;
  --main-body-bg: #f8fafc;
  --color-title: #3E4559;
  --color-text: #334155;
  --color-primary: #3E4559;
  --color-primary-rgb: 62, 69, 89;
  --player-border: #cbd5e1;
  --player-channel-bg: #f1f5f9;
  --player-channel-bg-hover: #ffffff;
  --player-headings-bg: #3E4559;
  --player-footer-bg: #3E4559;
  --player-footer-color: #f8fafc;
  --player-channel-bg: #fff;
  --player-range-wrapper-bg: rgb(0 0 0 / 25%);
  --history-bg-item: #cbd5e1;
  --btn-bg: oklch(96.8% 0.007 247.896);
  --btn-bg-hover: oklch(94.3% 0.029 294.588);
  --btn-color: oklch(37.2% 0.044 257.287);
  --btn-color-hover: var(--player-primary);
  --ytlist-bg-video: #fff;
  --ytlist-bg-item: #cbd5e1;
  --ytlist-bg-item-active: #fff;
  --ytlist-bg-iframe: #cbd5e1;
  --ytlist-bg-number: #0f172a;
  --program-header-bg: #fff;
  --promo-bg: rgb(255 255 255 / 20%);
  --slider-button-bg: #fff;
  --slider-button-color: #000;
}

html.dark {
  --body-bg: #00020a;
  --main-body-bg: #020617;
  --color-title: #f8fafc;
  --color-text: #cbd5e1;
  --player-border: #334155;
  --player-channel-bg: #0f172a;
  --player-channel-bg-hover: #1e293b;
  --player-headings-bg: #3E4559;
  --player-footer-bg: #3E4559;
  --player-footer-color: #f8fafc;
  --player-channel-bg: #0f172a;
  --player-range-wrapper-bg: rgb(255 255 255 / 25%);
  --history-bg-item: #0f172a;
  --btn-bg: #1e293b;
  --btn-bg-hover: #334155;
  --btn-color: #f8fafc;
  --btn-color-hover: var(--player-primary);
  --ytlist-bg-video: #0f172a;
  --ytlist-bg-item: #0f172a;
  --ytlist-bg-item-active: #1e293b;
  --ytlist-bg-iframe: #0f172a;
  --ytlist-bg-number: #0f172a;
  --program-header-bg: #0f172a;
  --slider-button-bg: #0f172a;
  --slider-button-color: #f8fafc;
}

/* ===== TEMA OSCURO PARA SECCIÓN DE NOTICIAS ===== */
html.dark .news-section {
  background: #0f172a;
}

html.dark .news-main-container {
  background: #1e293b;
  border: 1px solid #334155;
}

html.dark .news-main-content {
  background: #1e293b;
}

html.dark #main-news-title {
  color: #f8fafc;
  background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
}

html.dark #main-news-title:hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateY(-1px);
}

html.dark #main-news-description {
  color: #cbd5e1;
}

html.dark #main-news-date {
  color: #94a3b8;
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.1) 0%, rgba(100, 116, 139, 0.05) 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

html.dark #main-news-date:hover {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.15) 0%, rgba(100, 116, 139, 0.1) 100%);
  box-shadow: 0 2px 8px rgba(148, 163, 184, 0.2);
}

html.dark .news-thumbs-container {
  background: #1e293b;
  border: 1px solid #334155;
  scrollbar-color: rgba(100, 116, 139, 0.8) rgba(30, 41, 59, 0.5);
}

html.dark .news-thumbs-container::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.5);
}

html.dark .news-thumbs-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(100, 116, 139, 0.8) 0%, rgba(71, 85, 105, 0.8) 100%);
  border: 1px solid rgba(51, 65, 85, 0.2);
}

html.dark .news-thumbs-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(71, 85, 105, 0.9) 0%, rgba(51, 65, 85, 0.9) 100%);
}

html.dark .news-thumb-item {
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
}

html.dark .news-thumb-item:hover {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.6) 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

html.dark .news-thumb-item.active {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.15) 0%, rgba(var(--color-primary-rgb), 0.08) 100%);
  box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.2);
}

html.dark .news-thumb-title {
  color: #f8fafc;
}

html.dark .news-thumb-item:hover .news-thumb-title {
  color: var(--color-primary);
}

html.dark .news-thumb-date {
  color: #94a3b8;
}

html.dark .news-thumb-item:hover .news-thumb-date {
  color: #cbd5e1;
}

.btn {
  background-color: var(--btn-bg);
  color: var(--btn-color);
  padding: var(--btn-padding, 0.5rem);
  font-size: var(--btn-fs, 0.875rem);
  transition-property: background-color, color, box-shadow;
  transition-duration: var(--player-duration);
  display: inline-flex;
  align-items: center;
  column-gap: var(--icon-gap, 0.5rem);
  line-height: 1.5;
  border-radius: 2px;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.btn-full {
  width: 100%;
  justify-content: center;
}
.btn-primary {
  background-color: var(--player-primary);
  color: #fff;
}
.btn-contrast {
  --btn-bg: rgb(255 255 255 / 8%);
  --btn-bg-hover: rgb(255 255 255 / 15%);
  --btn-color: #fff;
  --btn-color-hover: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.icon {
  width: 24px;
  height: 24px;
}

.image {
  flex: none;
  width: var(--image-size, 10rem);
  aspect-ratio: 1;
  position: relative;
}
.image-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
}
.image img {
  width: 100%;
  height: auto;
  position: absolute;
  aspect-ratio: 1;
  inset: 0;
  object-fit: cover;
  background-color: black;
  transition: top 1s ease-in-out;
}

.main-body {
  padding: var(--container-padding);
  background-color: var(--main-body-bg);
  border-radius: 1rem;
}

.main {
  padding-top: 2rem;
  padding-bottom: 4rem;
}
@media (min-width: 768px) {
  .main {
    padding-top: 7rem;
  }
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--container-padding);
  padding-left: var(--container-padding);
}

.header {
  background-color: rgba(0, 0, 0, 0.3);
  width: 100%;
  transition: background-color var(--player-duration), padding var(--player-duration);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .header {
    z-index: 999;
    position: absolute;
    inset: 0 0 auto;
  }
  .header-fixed {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: none;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .header-fixed .header-brand {
    height: 32px;
  }
}
.header-brand {
  height: 32px;
  transition: height var(--player-duration);
}

/* Ocultar logo inicialmente para evitar parpadeo */
#header-logo {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* Mostrar logo cuando esté listo */
#header-logo.loaded {
  opacity: 1;
}
@media (min-width: 968px) {
  .header-brand {
    height: 62px;
  }
}
.header-wrapper {
  align-items: center;
  justify-content: space-between;
  display: flex;
  gap: 1rem;
}
.header-hero {
  background: #212121;
  position: relative;
  overflow: hidden;
  z-index: 1;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
@media (min-width: 992px) {
  .header-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}
.header-background {
  --cover-blurred: 1rem;
  position: absolute;
  pointer-events: none;
  z-index: -2;
  max-width: initial;
  top: calc(var(--cover-blurred) * -2);
  left: calc(var(--cover-blurred) * -2);
  width: calc(100% + var(--cover-blurred) * 4);
  height: calc(100% + var(--cover-blurred) * 4);
  filter: blur(var(--cover-blurred));
  opacity: 0.5;
}
.header-background img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: top var(--player-long-duration) ease;
}
.header-songnow {
  color: #fff;
}
.header-title {
  font-size: 1.125rem;
  font-weight: 600;
}
@media (min-width: 768px) {
  .header-title {
    font-size: 1.25rem;
  }
}
@media (min-width: 992px) {
  .header-title {
    font-size: 1.5rem;
  }
}
.header-desc {
  font-size: 0.875rem;
  --line-clamp: 1;
}
@media (min-width: 992px) {
  .header-desc {
    font-size: 1rem;
  }
}
/* Color Theme Selector */
.color-theme-selector {
  position: relative;
  margin-right: 1rem;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}

.color-theme-current {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-theme-current:hover {
  background: rgba(255, 255, 255, 0.1);
}

.color-preview {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.color-dropdown-icon {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease;
}

.color-theme-current.active .color-dropdown-icon {
  transform: rotate(180deg);
}

.color-theme-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  min-width: 200px;
}

.color-theme-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.color-theme-options {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.color-theme-option {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.color-theme-option:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.color-theme-option.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
  transform: scale(1.15);
}

.color-theme-option.active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 767px) {
  .header-right .btn {
    font-size: 0;
    gap: 0;
  }
  .header-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .header-right {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
  }
  
  .color-theme-selector {
    margin-right: 0.5rem;
  }
  
  .color-theme-current {
    padding: 0.4rem;
    gap: 0.3rem;
  }
  
  .color-preview {
    width: 18px;
    height: 18px;
  }
  
  .color-dropdown-icon {
    width: 14px;
    height: 14px;
  }
  
  .color-theme-dropdown {
    min-width: 180px;
  }
  
  .color-theme-option {
    width: 24px;
    height: 24px;
  }
}

.section {
  margin-bottom: 2rem;
}
@media (min-width: 992px) {
  .section {
    margin-bottom: 3rem;
  }
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  background-color: var(--player-headings-bg);
}
.section-name {
  background-color: var(--main-body-bg);
  padding-right: 1.25rem;
  color: var(--color-title);
  font-size: 1rem;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.truncate-line {
  display: -webkit-box;
  -webkit-line-clamp: var(--line-clamp, 2);
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.footer {
  background-color: rgba(from var(--player-footer-bg) r g b / 0.5);
  color: var(--player-footer-color);
}

/* PWA Install Popup */
.pwa-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.pwa-popup-modal {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease-out;
  overflow: hidden;
}

.pwa-popup-header {
  background: linear-gradient(135deg, #007bff, #0056b3);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pwa-popup-header h3 {
  color: white;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.pwa-popup-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.pwa-popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pwa-popup-content {
  padding: 25px;
  color: #fff;
}

.pwa-popup-content p {
  margin: 0 0 15px 0;
  font-size: 16px;
  line-height: 1.5;
}

.pwa-popup-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pwa-popup-content li {
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.4;
  color: #e0e0e0;
}

.pwa-popup-buttons {
  padding: 0 25px 25px 25px;
  display: flex;
  gap: 12px;
}

.pwa-popup-install-btn {
  flex: 1;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pwa-popup-install-btn:hover {
  background: linear-gradient(135deg, #20c997, #17a2b8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.pwa-popup-cancel-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pwa-popup-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .pwa-popup-modal {
    width: 95%;
    max-width: none;
  }
  
  .pwa-popup-header {
    padding: 15px;
  }
  
  .pwa-popup-header h3 {
    font-size: 16px;
  }
  
  .pwa-popup-content {
    padding: 20px;
  }
  
  .pwa-popup-content p {
    font-size: 15px;
  }
  
  .pwa-popup-content li {
    font-size: 13px;
  }
  
  .pwa-popup-buttons {
    padding: 0 20px 20px 20px;
    flex-direction: column;
  }
  
  .pwa-popup-install-btn,
  .pwa-popup-cancel-btn {
    padding: 12px 16px;
    font-size: 15px;
  }
}
.footer-wrapper {
  display: flex;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (max-width: 991px) {
  .footer-wrapper {
    flex-direction: column;
    text-align: center;
  }
}
.footer-text {
  font-size: 0.875rem;
}
.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-item {
  transition: color var(--player-duration);
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}
.social-item svg {
  width: 1.25rem;
  height: 1.25rem;
}
.social-item:hover {
  color: var(--player-primary);
}

.scrollbar {
  overflow-x: auto;
  --scrollbar-color: var(--player-primary);
}
@supports not (selector(::-webkit-scrollbar-thumb)) {
  .scrollbar {
    scrollbar-color: var(--scrollbar-color) transparent;
    scrollbar-width: thin;
  }
}
.scrollbar::-webkit-scrollbar {
  width: var(--scrollbar-color-width, 8px);
  height: var(--scrollbar-color-width, 8px);
  background-color: transparent;
}
.scrollbar::-webkit-scrollbar-track {
  background-color: transparent;
  border-radius: 5px;
}
.scrollbar::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-color, black);
  border-radius: 10px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.loading-icon {
  animation: spin 1s linear infinite;
}



/* Player Integrado */
.player-integrated {
  position: relative;
  z-index: 10;
  margin-bottom: 2rem;
}
.player-integrated:not(.is-playing) {
  --player-equalizer-opacity: ;
}
.player-integrated-wrapper {
  position: relative;
  padding: 0.75rem;
  z-index: 1;
  backdrop-filter: blur(1rem);
  border-radius: 1.0rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(62, 69, 89, 0.1), 0 1px 2px rgba(62, 69, 89, 0.06);
  background-color: rgba(0, 0, 0, 0.7); /* negro con 70% opacidad */
}


@media (min-width: 768px) {
  .player-integrated-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 767px) {
  .player-integrated-wrapper {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
  }
  
  .player-left {
    max-width: 100%;
    width: 100%;
    justify-content: flex-start;
    gap: 0.75rem;
  }
  
  .player-right {
    width: 100%;
    justify-content: center;
    gap: 1rem;
  }
  
  .player-picture {
    flex-shrink: 0;
  }
  
  .player-meta {
    width: 100%;
    min-width: 0;
  }
  
  .player-content {
    overflow: hidden;
  }
  
  .player-title {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  
  .player-desc {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 480px) {
  .player-integrated {
    margin-bottom: 1rem;
  }
  
  .player-integrated-wrapper {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .player-left {
    gap: 0.5rem;
  }
  
  .player-right {
    gap: 0.75rem;
  }
  
  .player {
    --image-size: 3rem;
  }
  
  .player-button-play {
    --icon-size: 2.5rem;
  }
  
  .player-button svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .player-title {
    font-size: 0.85rem;
  }
  
  .player-desc {
    font-size: 0.75rem;
  }
  
  .badge {
     font-size: 0.7rem;
     padding: 0.125rem 0.375rem;
   }
   
   .player-volume {
     position: relative;
   }
   
   .volume-dropdown {
     position: absolute;
     bottom: 100%;
     left: 50%;
     transform: translateX(-50%);
     margin-bottom: 0.5rem;
   }
 }
 
 @media (max-width: 360px) {
   .player-integrated-wrapper {
     padding: 0.375rem;
     gap: 0.375rem;
   }
   
   .player {
     --image-size: 2.5rem;
   }
   
   .player-button-play {
     --icon-size: 2rem;
   }
   
   .player-title {
     font-size: 0.8rem;
   }
   
   .player-desc {
     font-size: 0.7rem;
   }
 }

.player-equalizer {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--player-primary);
  opacity: 1.75;
  border-radius: 0.75rem;
  display: flex;
  gap: 1px;
  align-items: flex-end;
}
.player-right, .player-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.player-left {
  width: 100%;
  max-width: calc(100% - 4rem);
}
@media (min-width: 992px) {
  .player-left {
    max-width: 40%;
  }
}
.player-picture-wrapper {
  border-radius: 0.75rem;
  border: 2px solid rgba(62, 69, 89, 0.3);
  box-shadow: 0 2px 4px rgba(62, 69, 89, 0.1);
}
.player-cover {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
  filter: blur(1rem);
}
.player-cover img {
  max-width: initial;
  transition: top 1s ease-in-out;
  width: 100%;
  height: 100%;
  inset: 0;
  position: absolute;
  object-fit: cover;
}

@keyframes equalizer1 {
  0%, 100% {
    height: 0;
  }
  50% {
    height: 4rem;
  }
}
@keyframes equalizer2 {
  0%, 100% {
    height: 0.5rem;
  }
  50% {
    height: 5rem;
  }
}
@keyframes equalizer3 {
  0%, 100% {
    height: 1rem;
  }
  50% {
    height: 3rem;
  }
}
.equalizer-bar {
  background: #fff;
  width: 100%;
  opacity: var(--player-equalizer-opacity, 0.15);
  transition: opacity var(--player-duration);
  height: 0;
  animation-iteration-count: infinite;
}

.equalizer-bar:nth-child(1) {
  animation-name: equalizer1;
  animation-duration: 1.8s;
  animation-delay: 1s;
}

.equalizer-bar:nth-child(2) {
  animation-name: equalizer2;
  animation-duration: 1s;
  animation-delay: 0.1s;
}

.equalizer-bar:nth-child(3) {
  animation-name: equalizer3;
  animation-duration: 1.4s;
  animation-delay: 0.5s;
}

.equalizer-bar:nth-child(4) {
  animation-name: equalizer3;
  animation-duration: 1s;
  animation-delay: 0.6s;
}

.equalizer-bar:nth-child(5) {
  animation-name: equalizer1;
  animation-duration: 1.7s;
  animation-delay: 0.7s;
}

.equalizer-bar:nth-child(6) {
  animation-name: equalizer2;
  animation-duration: 0.6s;
  animation-delay: 0.5s;
}

.equalizer-bar:nth-child(7) {
  animation-name: equalizer2;
  animation-duration: 0.7s;
  animation-delay: 0.4s;
}

.equalizer-bar:nth-child(8) {
  animation-name: equalizer2;
  animation-duration: 1.1s;
  animation-delay: 0.3s;
}

.equalizer-bar:nth-child(9) {
  animation-name: equalizer3;
  animation-duration: 1.2s;
  animation-delay: 0.9s;
}

.equalizer-bar:nth-child(10) {
  animation-name: equalizer3;
  animation-duration: 1.2s;
  animation-delay: 0.3s;
}

.equalizer-bar:nth-child(11) {
  animation-name: equalizer1;
  animation-duration: 1.5s;
  animation-delay: 0.6s;
}

.equalizer-bar:nth-child(12) {
  animation-name: equalizer1;
  animation-duration: 2s;
  animation-delay: 0.5s;
}

.equalizer-bar:nth-child(13) {
  animation-name: equalizer1;
  animation-duration: 1.8s;
  animation-delay: 1s;
}

.equalizer-bar:nth-child(14) {
  animation-name: equalizer3;
  animation-duration: 0.9s;
  animation-delay: 0.2s;
}

.equalizer-bar:nth-child(15) {
  animation-name: equalizer1;
  animation-duration: 1.8s;
  animation-delay: 0.4s;
}

.equalizer-bar:nth-child(16) {
  animation-name: equalizer3;
  animation-duration: 0.6s;
  animation-delay: 0.2s;
}

.equalizer-bar:nth-child(17) {
  animation-name: equalizer1;
  animation-duration: 0.8s;
  animation-delay: 0.1s;
}

.equalizer-bar:nth-child(18) {
  animation-name: equalizer1;
  animation-duration: 1.2s;
  animation-delay: 0.9s;
}

.equalizer-bar:nth-child(19) {
  animation-name: equalizer3;
  animation-duration: 1.3s;
  animation-delay: 0.6s;
}

.equalizer-bar:nth-child(20) {
  animation-name: equalizer2;
  animation-duration: 1.1s;
  animation-delay: 0.9s;
}

.equalizer-bar:nth-child(21) {
  animation-name: equalizer1;
  animation-duration: 0.6s;
  animation-delay: 0.7s;
}

.equalizer-bar:nth-child(22) {
  animation-name: equalizer1;
  animation-duration: 1.7s;
  animation-delay: 0.4s;
}

.equalizer-bar:nth-child(23) {
  animation-name: equalizer2;
  animation-duration: 1.9s;
  animation-delay: 0.7s;
}

.equalizer-bar:nth-child(24) {
  animation-name: equalizer3;
  animation-duration: 1.7s;
  animation-delay: 0.8s;
}

.equalizer-bar:nth-child(25) {
  animation-name: equalizer2;
  animation-duration: 1.2s;
  animation-delay: 0.7s;
}

.equalizer-bar:nth-child(26) {
  animation-name: equalizer1;
  animation-duration: 0.8s;
  animation-delay: 0.2s;
}

.equalizer-bar:nth-child(27) {
  animation-name: equalizer1;
  animation-duration: 1.7s;
  animation-delay: 0.5s;
}

.equalizer-bar:nth-child(28) {
  animation-name: equalizer1;
  animation-duration: 1.4s;
  animation-delay: 1s;
}

.equalizer-bar:nth-child(29) {
  animation-name: equalizer3;
  animation-duration: 0.6s;
  animation-delay: 0.6s;
}

.equalizer-bar:nth-child(30) {
  animation-name: equalizer3;
  animation-duration: 1.4s;
  animation-delay: 0.1s;
}

.equalizer-bar:nth-child(31) {
  animation-name: equalizer3;
  animation-duration: 0.6s;
  animation-delay: 0.7s;
}

.equalizer-bar:nth-child(32) {
  animation-name: equalizer3;
  animation-duration: 0.7s;
  animation-delay: 0.3s;
}

.equalizer-bar:nth-child(33) {
  animation-name: equalizer1;
  animation-duration: 1.1s;
  animation-delay: 0.1s;
}

.equalizer-bar:nth-child(34) {
  animation-name: equalizer2;
  animation-duration: 2s;
  animation-delay: 0.9s;
}

.equalizer-bar:nth-child(35) {
  animation-name: equalizer3;
  animation-duration: 0.7s;
  animation-delay: 0.5s;
}

.equalizer-bar:nth-child(36) {
  animation-name: equalizer3;
  animation-duration: 1.5s;
  animation-delay: 0.2s;
}

.equalizer-bar:nth-child(37) {
  animation-name: equalizer3;
  animation-duration: 0.6s;
  animation-delay: 0.3s;
}

.equalizer-bar:nth-child(38) {
  animation-name: equalizer1;
  animation-duration: 1.8s;
  animation-delay: 0.8s;
}

.equalizer-bar:nth-child(39) {
  animation-name: equalizer1;
  animation-duration: 1.6s;
  animation-delay: 0.1s;
}

.equalizer-bar:nth-child(40) {
  animation-name: equalizer1;
  animation-duration: 1.3s;
  animation-delay: 0.5s;
}

.equalizer-bar:nth-child(41) {
  animation-name: equalizer3;
  animation-duration: 1.3s;
  animation-delay: 0.9s;
}

.equalizer-bar:nth-child(42) {
  animation-name: equalizer3;
  animation-duration: 1.4s;
  animation-delay: 0.8s;
}

.equalizer-bar:nth-child(43) {
  animation-name: equalizer1;
  animation-duration: 1.1s;
  animation-delay: 0.6s;
}

.equalizer-bar:nth-child(44) {
  animation-name: equalizer3;
  animation-duration: 0.9s;
  animation-delay: 0.3s;
}

.equalizer-bar:nth-child(45) {
  animation-name: equalizer1;
  animation-duration: 0.8s;
  animation-delay: 0.8s;
}

.equalizer-bar:nth-child(46) {
  animation-name: equalizer3;
  animation-duration: 1.7s;
  animation-delay: 0.9s;
}

.equalizer-bar:nth-child(47) {
  animation-name: equalizer3;
  animation-duration: 1s;
  animation-delay: 0.1s;
}

.equalizer-bar:nth-child(48) {
  animation-name: equalizer3;
  animation-duration: 1s;
  animation-delay: 0.8s;
}

.equalizer-bar:nth-child(49) {
  animation-name: equalizer2;
  animation-duration: 1.1s;
  animation-delay: 0.2s;
}

.equalizer-bar:nth-child(50) {
  animation-name: equalizer1;
  animation-duration: 1.6s;
  animation-delay: 0.3s;
}

.song-progress-container {
  position: absolute;
  inset: 0 1rem auto;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  overflow: hidden;
}

.song-progress-container::before {
  content: "";
  display: block;
  width: var(--song-progress, 0%);
  position: absolute;
  background-color: #fff;
  height: 100%;
  transition: width var(--player-long-duration);
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1rem;
  position: relative;
  --player-btn-hover: transparent;
}
.volume-container-toggle {
  display: flex;
  z-index: 1;
}
.volume-container.is-vertical {
  --player-range-height: 115px;
  --player-range-width: 6px;
  --player-fill-width: 100%;
  --player-fill-height: auto;
  --player-fill-top: auto;
  --player-fill-bottom: 0;
  --player-thumb-left: 50%;
  --player-thumb-top: auto;
  --player-thumb-ty: translateX(-50%);
  --player-input-width: var(--player-range-height);
}
.volume-range-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: var(--player-input-width, 100%);
}
.volume-range-fill {
  position: absolute;
  top: var(--player-fill-top, 0);
  left: var(--player-fill-left, 0);
  bottom: var(--player-fill-bottom, auto);
  width: var(--player-fill-width, auto);
  height: var(--player-fill-height, 100%);
  transition: background-color var(--player-duration);
  background-color: var(--player-primary);
  transition: background-color var(--player-duration-long);
  border-radius: 1rem;
}
.volume-range-wrapper {
  position: relative;
  height: var(--player-range-height, 4px);
  width: var(--player-range-width, 100%);
  background-color: var(--player-range-wrapper-bg);
  border-radius: 1rem;
  cursor: pointer;
}
.volume-range-thumb {
  width: var(--player-thumb-width, 12px);
  height: var(--player-thumb-width, 12px);
  transition: background-color var(--player-duration);
  background-color: var(--player-primary);
  border-radius: 5rem;
  left: var(--player-thumb-left, auto);
  top: var(--player-thumb-top, 50%);
  position: absolute;
  transform: var(--player-thumb-ty, translateY(-50%));
  cursor: pointer;
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
}
.volume-dropdown {
  position: absolute;
  left: 50%;
  bottom: 100%;
  padding: 0.75rem;
  border-radius: 9999px;
  background-color: var(--body-bg);
  transform: translate(-50%, 0);
  box-shadow: var(--box-shadow-high);
  transition: opacity var(--player-duration), transform var(--player-duration);
}

.player-volume {
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.player-volume .volume-dropdown {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  pointer-events: all;
  position: static;
  padding: 0;
  background-color: transparent;
  box-shadow: none;
}
.player-volume .volume-range-wrapper {
  width: 80px;
  height: 4px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - var(--marquee-gap, 1.5rem) / 2));
  }
}
.station-name {
  font-weight: 700;
}

.player {
  --image-size: 4rem;
}
.player-content {
  overflow: hidden;
  color: #fff;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}
.player-button {
  display: flex;
}
.player-button svg {
  width: var(--icon-size, 24px);
  height: var(--icon-size, 24px);
  color: #fff;
}
.player-button-play {
  --icon-size: 3rem;
  padding: 0;
  background-color: transparent;
  color: #042243;
  width: var(--icon-size);
  height: var(--icon-size);
}
@media (min-width: 992px) {
  .player-button-play {
    position: absolute;
    inset: 80% 0 0 50%;
    transform: translate(-50%, -50%);
  }
}
.player-fix {
  overflow: hidden;
  display: inline-flex;
  width: 100%;
}
.player-title {
  font-family: var(--primary-font);
  white-space: nowrap;
  flex: 1 0 auto;
}
.player-title.is-infinite-scrolling {
  --marquee-gap: 1rem;
  gap: var(--marquee-gap);
  display: flex;
  animation: marquee var(--text-scroll-duration, 5s) linear infinite;
}
.player-title.is-backwards {
  animation-direction: reverse;
}
.player-desc {
  font-size: 0.875rem;
  display: inline-flex;
  gap: 0.5rem;
  white-space: nowrap;
  align-items: center;
}

.player-meta {
  width: calc(100% - 1rem - var(--image-size));
}

@media (max-width: 767px) {
  .player-meta {
    width: 100%;
  }
}

.player-channels {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--stations-cols-min, 16rem)), 1fr));
}

.channel-picture {
  position: relative;
}
.channel-item {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background-color: var(--player-channel-bg);
  transition-property: transform, background-color, box-shadow;
  transition-duration: var(--player-duration);
  box-shadow: 0 0 0 transparent;
  border-radius: 0.5rem;
  will-change: transform, background-color, box-shadow;
}
.channel-item:hover {
  transform: translateY(-0.25rem);
  background-color: var(--player-channel-bg-hover);
  box-shadow: var(--box-shadow-medium);
}
.channel-image {
  border-radius: 0.5rem;
  box-shadow: var(--player-box-shadow-high);
  background-color: var(--player-headings-bg);
  transition: opacity var(--player-duration);
}
.channel-info {
  position: absolute;
  inset: auto 0 0;
  padding: 2rem 4rem 1rem 1rem;
  text-align: left;
  color: #fff;
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
}
.channel-play {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  color: var(--color-title);
  background-color: var(--player-channel-bg);
  padding: 0.75rem 12px;
  border-radius: 999px;
  box-shadow: var(--box-shadow-medium);
}
.channel-play svg {
  width: 1rem;
  aspect-ratio: 1;
}
.channel-title {
  font-size: 1rem;
  font-weight: 700;
  --line-clamp: 1;
}
.channel-description {
  font-size: 0.75rem;
}
.channel-secondary-image {
  inset: 0;
  position: absolute;
  z-index: -1;
}
.channel-item:hover .channel-image {
  opacity: 0;
}
.channel-item:hover .channel-description span:first-child {
  display: none;
}
.channel-item:not(:hover) .channel-description span:last-child {
  display: none;
}

.player-history {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}

.history {
  background-color: var(--history-bg-item);
  border-radius: 0.5rem;
  position: relative;
  overflow: hidden;
  transition-property: transform, background-color, box-shadow;
  transition-duration: var(--player-duration);
}
.history:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--box-shadow-medium);
}
.history-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  position: relative;
  z-index: 1;
  width: 100%;
}
@media (min-width: 768px) {
  .history-wrapper {
    padding: 1rem;
  }
}
.history-art {
  width: 80px;
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow-high);
}
.history-title {
  font-weight: 800;
  color: var(--color-title);
}
.history-artist {
  opacity: 0.75;
  --line-clamp: 1;
}
.history-bg {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  transition: opacity var(--player-duration);
  background-size: cover;
  filter: blur(1.5rem);
}
.history:not(:hover) .history-bg {
  opacity: 0;
}
.history-button {
  inset: 0;
  position: absolute;
  z-index: 10;
}

.videoTops {
  --vtops-item-height: 80px;
  position: relative;
  filter: var(--drop-shadow-medium);
}
.videoTops-element {
  display: flex;
  align-items: center;
  position: relative;
}
.videoTops-element img {
  height: var(--vtops-item-height);
  width: 100px;
  object-fit: cover;
}
.videoTops-load-iframe {
  position: absolute;
  inset: 0;
}
.videoTops-info {
  padding: 0 1rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  flex: 1;
  background-color: var(--ytlist-bg-item, #f6f6f6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--vtops-item-height);
}
.videoTops-item {
  counter-increment: ytlist-item;
  display: flex;
  transition: background-color 0.3s ease;
  border-radius: 0.5rem;
  overflow: hidden;
  min-height: var(--vtops-item-height);
}
.videoTops-item.is-active {
  --ytlist-bg-item: var(--ytlist-bg-item-active);
}
.videoTops-item.is-active::before {
  background-color: var(--player-primary);
}
.videoTops-item::before {
  content: counter(ytlist-item);
  width: 2rem;
  text-align: center;
  background-color: var(--ytlist-bg-number);
  transition: background-color 0.3s ease;
  color: white;
  line-height: var(--vtops-item-height);
  font-weight: 800;
  flex: none;
  min-height: var(--vtops-item-height);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 901px) {
  .videoTops-item:not(.is-active) {
    margin-right: 0.5rem;
  }
}
.videoTops-item + .videoTops-item {
  margin-top: 0.5rem;
}
.videoTops-item:not(.is-active) .videoTops-iframe {
  display: none;
}
.videoTops-content {
  overflow: hidden;
}
@media (max-width: 900px) {
  .videoTops-content {
    flex: 1;
  }
}
.videoTops-list {
  overflow: hidden;
  width: 100%;
}
@media (min-width: 901px) {
  .videoTops-list {
    width: 40%;
  }
}
.videoTops-video {
  padding: 1rem;
  background-color: var(--ytlist-bg-video, white);
  position: relative;
  aspect-ratio: 16/9;
  flex: 1 0 auto;
}
.videoTops-video iframe {
  width: 100%;
  height: 100%;
}
@media (max-width: 900px) {
  .videoTops-video {
    display: none;
  }
}
.videoTops-info h3 {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  flex: 1;
}
.videoTops-info p {
  font-size: 0.875rem;
  opacity: 0.5;
  margin: 0;
  margin-top: 0.5rem;
  line-height: 1;
}
.videoTops-iframe {
  padding: 1rem;
  background-color: var(--ytlist-bg-iframe, #f6f6f6);
  aspect-ratio: 16/9;
  border-radius: 0 0.5rem 0.5rem 0;
}
@media (min-width: 901px) {
  .videoTops-iframe {
    position: absolute;
    inset: 0 0 0 auto;
    background-color: var(--ytlist-bg-item-active);
    width: 60%;
  }
}
.videoTops-iframe iframe {
  width: 100%;
  height: 100%;
}

.slider {
  position: relative;
}
.slider-wrapper {
  display: flex;
  transition: transform var(--transition);
  border-radius: 1rem;
}
.slider-slide {
  flex: 1 0 100%;
}
.slider-image {
  height: 100%;
}

.swiper-button-next,
.swiper-button-prev {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  background-color: var(--slider-button-bg, #fff);
  color: var(--slider-button-color, #000);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 55rem;
  transition: opacity var(--duration);
  transform: translateY(-50%);
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
  opacity: 0;
}

.swiper-button-next {
  right: -1rem;
}

.swiper-button-prev {
  left: -1rem;
}

.team-wrapper {
  position: relative;
}
.team-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 5;
  color: #fff;
  padding: 1.5rem;
  transition: padding var(--duration);
  background-image: linear-gradient(180deg, transparent, #000);
  text-align: center;
}
.team-item {
  aspect-ratio: 5/6;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}
.team-image {
  height: 100%;
  width: 100%;
  background-color: var(--player-primary, black);
}
.team-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transform: scale(1);
  filter: blur(0);
  opacity: 1;
  transition-property: transform, filter, opacity;
  transition-duration: var(--player-duration);
}
.team-item:hover .team-image img {
  transform: scale(1.1);
  filter: blur(5px);
  opacity: 0.8;
}
.team-title {
  font-weight: 700;
}
.team-description {
  font-size: 0.75rem;
}
.team-item:hover .team-content {
  padding-bottom: 2rem;
}

.swiper-news:not(.swiper-initialized) .news {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--news-cols-min, 14rem)), 1fr));
  display: grid;
  gap: 12px;
}

.news-wrapper {
  position: relative;
}

.news-item {
  cursor: pointer;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.news-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, transparent, #000);
  transition: background-color var(--player-duration);
  pointer-events: none;
  z-index: 1;
}
@media (min-width: 992px) {
  .news-item {
    aspect-ratio: 21/9;
  }
}

.news-image {
  width: 100%;
  height: 100%;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--player-duration);
}

.news-content {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  color: #fff;
  transition: padding var(--player-duration);
  padding: 1.5rem;
}
@media (min-width: 992px) {
  .news-content {
    transform: translateY(-50%);
    inset: 50% 0 0;
    max-width: 50%;
    padding: 2rem;
  }
}
@media (max-width: 991px) {
  .news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}

.news-title {
  margin-bottom: 0.5rem;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 992px) {
  .news-title {
    font-size: 1.875rem;
  }
}

.news-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  font-size: 0.75rem;
}

.news-item:hover .news-image img {
  transform: scale(1.1);
}

.news-item:hover .news-content {
  padding-bottom: 2rem;
}

.swiper-news-thumbs {
  position: absolute;
  inset: 0 0 0 auto;
  width: 100%;
  max-width: 40%;
  padding: 1.5rem;
}
@media (min-width: 992px) {
  .swiper-news-thumbs {
    padding: 3rem 2rem;
  }
}
@media (max-width: 991px) {
  .swiper-news-thumbs {
    display: none;
  }
}

.swiper-pagination {
  --swiper-pagination-bullet-inactive-color: rgba(255, 255, 255, 0.75);
  --swiper-pagination-color: #fff;
  --swiper-pagination-bullet-size: 10px;
}
@media (min-width: 992px) {
  .swiper-pagination {
    display: none;
  }
}

.news-thumbs {
  display: flex;
  flex-direction: column;
}

.news-thumb-item {
  padding: 0.5rem;
  border-radius: 1rem;
  transition: background-color var(--player-duration);
  cursor: pointer;
}
.news-thumb-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.news-thumb-item.swiper-slide-thumb-active span {
  opacity: 0.5;
}

.news-thumbs .swiper-slide {
  height: auto;
}

.news-thumb-image {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.news-thumb-image img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 999px;
}

.news-thumb-title {
  color: #fff;
}

.program-header {
  box-shadow: var(--box-shadow-medium);
  margin-bottom: 1rem;
  display: flex;
  overflow: hidden;
  background-color: var(--program-header-bg);
  justify-content: space-evenly;
  border-radius: 40px;
}
.program-button {
  padding: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-title);
  flex: 1 0 auto;
}
.program-button.is-active {
  background-color: var(--player-primary, #000);
  color: var(--program-active-color, #fff);
  position: relative;
}

.program-button.is-active::before {
  content: '✓';
  position: absolute;
  top: 0.2rem;
  right: 0.3rem;
  font-size: 0.6rem;
  color: var(--program-active-color, #fff);
  font-weight: bold;
}
@media (max-width: 575.98px) {
  .program-button:not(.is-active) {
    font-size: 0;
    padding: 1rem 0.75rem;
  }
  .program-button:first-letter {
    font-size: 0.75rem;
  }
}

.program-carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.swiper-program {
  overflow: visible;
}

.schedule-list {
  display: flex;
  gap: 1rem;
  transition: transform 0.3s ease;
}
.schedule-list:not(.is-active) {
  display: none;
}
.schedule-list.is-active {
  display: flex;
}

.swiper-prev-program,
.swiper-next-program {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
}

.swiper-prev-program {
  left: 10px;
}

.swiper-next-program {
  right: 10px;
}

.swiper-prev-program:hover,
.swiper-next-program:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.swiper-prev-program::after {
  content: '‹';
  color: white;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.swiper-next-program::after {
  content: '›';
  color: white;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive arrows for mobile */
@media (max-width: 768px) {
  .swiper-prev-program,
  .swiper-next-program {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .swiper-prev-program {
    left: 8px;
  }
  
  .swiper-next-program {
    right: 8px;
  }
  
  .swiper-prev-program::after,
  .swiper-next-program::after {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .swiper-prev-program,
  .swiper-next-program {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .swiper-prev-program {
    left: 5px;
  }
  
  .swiper-next-program {
    right: 5px;
  }
  
  .swiper-prev-program::after,
  .swiper-next-program::after {
    font-size: 14px;
  }
}

.schedule-item {
  aspect-ratio: 16/9;
  position: relative;
  box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border-radius: 4px;
  border-bottom: 6px solid var(--program-accent, #000);
  background-color: #000;
  min-width: calc(25% - 0.75rem);
  flex: 0 0 calc(25% - 0.75rem);
  transition: all 0.3s ease;
}

@media (max-width: 1200px) {
  .schedule-item {
    min-width: calc(33.333% - 0.67rem);
    flex: 0 0 calc(33.333% - 0.67rem);
  }
}

@media (max-width: 768px) {
  .schedule-item {
    min-width: calc(50% - 0.5rem);
    flex: 0 0 calc(50% - 0.5rem);
  }
}

@media (max-width: 480px) {
  .schedule-item {
    min-width: calc(100% - 0rem);
    flex: 0 0 calc(100% - 0rem);
  }
}
.schedule-item:hover {
  --program-mask-hover: .5;
  --title-program-bar-width: 100%;
}
.schedule-item::after, .schedule-item::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
  pointer-events: none;
}
.schedule-item::after {
  background-color: var(--filter-one, #6b06cf);
  mix-blend-mode: screen;
}
.schedule-item::before {
  background-color: var(--filter-two, #47f9d5);
  mix-blend-mode: multiply;
}
.schedule-item:hover::after {
  opacity: 0.5;
}
.schedule-item:hover::before {
  opacity: 1;
}
.schedule-item.is-current .nexo-schedule-item-content::before {
  content: "Al aire";
  background-color: var(--program-accent);
  font-size: 10px;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 25rem;
  margin-bottom: 0.5rem;
  display: inline-flex;
  font-weight: 500;
  font-family: Montserrat, sans-serif;
  line-height: 1.5;
}
.schedule-item-picture {
  position: absolute;
  inset: 0;
}
.schedule-item-picture img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}
.schedule-item-content {
  position: absolute;
  inset: auto 0 0;
  padding: 2rem 1rem 1rem;
  color: #fff;
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.schedule-item-description {
  font-size: 13px;
  margin: 0;
  margin-top: 0.25rem;
  font-family: Montserrat, sans-serif;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  width: 100%;
  line-height: 1.5;
  font-weight: 500;
}
.schedule-item-title {
  font-weight: 800;
  font-size: 1.125rem;
  margin: 0;
  line-height: 0.7;
  font-family: Montserrat, sans-serif;
  letter-spacing: normal;
}
.schedule-item-title::after {
  height: 5px;
  width: var(--title-program-bar-width, 0%);
  content: "";
  display: block;
  background-image: linear-gradient(to right, #ff0f59 50%, #7f07e8 100%, #fff 100%);
  transition: width 0.5s;
}
.schedule-item.is-current {
  --program-accent: var(--player-primary, #fff);
  animation: liveProgram 2s ease-in-out infinite alternate;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: scale(1.02);
}
.schedule-item.is-current .nexo-schedule-item-content {
  background-image: linear-gradient(180deg, transparent, var(--player-primary));
}

@keyframes liveProgram {
  0% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0px 6px 12px -1px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
  }
}

/* Indicador EN VIVO */
.live-indicator {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background: linear-gradient(45deg, #ff0000, #ff4444);
  color: white;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.live-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: liveShine 3s ease-in-out infinite;
}

.live-badge::after {
  content: '●';
  margin-right: 4px;
  color: #fff;
  animation: liveBlink 1.5s ease-in-out infinite;
}



@keyframes liveShine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes liveBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* Responsive para el indicador EN VIVO */
@media (max-width: 768px) {
  .live-badge {
    font-size: 9px;
    padding: 3px 6px;
  }
}

@media (max-width: 480px) {
  .live-badge {
    font-size: 8px;
    padding: 2px 5px;
  }
  
  .live-indicator {
    top: 6px;
    left: 6px;
  }
}

.prm {
  position: fixed;
  z-index: 99999;
  background-color: var(--promo-bg);
  inset: 0 auto 0 0;
  transition: transform var(--player-duration);
  backdrop-filter: blur(1rem);
  box-shadow: var(--box-shadow-high);
}
.prm:not(.is-active) {
  transform: translateX(-100%);
}
.prm-content {
  padding: 1rem;
}
.prm-image {
  width: 120px;
  border-radius: 1rem;
  cursor: pointer;
  border: 5px solid rgba(255, 255, 255, 0);
  box-shadow: 0px 8px 17px 2px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12), 0px 5px 5px -3px rgba(0, 0, 0, 0.2);
}

.station-prm:not(.is-loaded) {
  display: none;
}

@keyframes modalOpen {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1rem;
  padding-right: 1rem;
  backdrop-filter: blur(1rem);
}
.modal:not(.is-open) {
  display: none;
}
.modal-content {
  background-color: rgba(255, 255, 255, 0.25);
  width: 100%;
  max-width: 900px;
  border-radius: 0.5rem;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: modalOpen var(--player-duration) ease;
}
.modal-header {
  padding: 1rem;
  display: flex;
  border-bottom: 1px solid var(--color-border);
}
.modal-close {
  margin-left: auto;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.25);
  right: -0.75rem;
  top: -0.75rem;
  border-radius: 50rem;
  display: flex;
  padding: 0.25rem;
  color: #fff;
  z-index: 1;
}
.modal-body {
  padding: 0.75rem;
}
.modal-form :where(input, textarea) {
  background-color: var(--player-channel-bg);
  padding: 1rem;
  border-radius: 0.5rem;
  field-sizing: content;
  max-height: 8rem;
}
.modal-message::after {
  content: var(--modal-message, "Sin mensaje");
  position: fixed;
  display: block;
  right: 1rem;
  bottom: 1rem;
  z-index: 99999;
  background-color: var(--modal-message-bg, #000);
  color: var(--modal-message-color, #fff);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}
.modal-success {
  --modal-message: "Enviado correctamente";
  --modal-message-bg: #14b8a6;
}
.modal-error {
  --modal-message: "Error al enviar";
  --modal-message-bg: #ef4444;
}

.modal-form .modal-content {
  background-color: var(--body-bg);
  max-width: 600px;
}

.modal-form .modal-close {
  background-color: rgba(0, 0, 0, 0.75);
}

.modal-share .modal-content {
  background-color: #1c1c1c;
  text-align: center;
  padding: 1rem;
  color: #fff;
  max-width: 520px;
  box-shadow: 0px 8px 17px 2px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12), 0px 5px 5px -3px rgba(0, 0, 0, 0.2);
}

.modal-social.player-socials {
  margin-top: 1rem;
  --btn-padding: .75rem;
  --icon-size: 18px;
}

.player-modal-image {
  margin: auto;
  margin-bottom: 1rem;
}

.modal-lyrics .modal-content {
  background: #000;
  color: #fff;
  font-size: 1.125rem;
  padding: 2.5rem;
}

.modal-lyrics .modal-content pre {
  white-space: pre-wrap;
}

.modal-lyrics-title {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

body.modal-article {
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.modal-article {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: block;
  padding: clamp(1rem, 3vw, 2rem);
  overflow-y: auto;
  min-height: 100vh;
}

.modal-article .modal-content {
  background: #ffffff;
  max-width: min(800px, 90vw);
  margin: clamp(1rem, 5vh, 3rem) auto;
  border-radius: 16px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
}

.modal-article .modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  z-index: 1;
}

.modal-article-title {
  margin-bottom: 2rem;
  padding: clamp(2rem, 5vw, 3rem) clamp(2rem, 5vw, 3rem) 1.5rem;
  border-bottom: 2px solid #e9ecef;
  padding-right: 4rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
}

.modal-article-title h2 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.3;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.modal-article-title span {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #6c757d;
  font-weight: 500;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-article .modal-body {
  overflow: initial;
  padding: 0;
}

.modal-article .modal-close {
  color: #495057;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 1rem;
  top: 1rem;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-article .modal-close:hover {
  background: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.modal-article-content {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.2rem);
  line-height: 1.8;
  padding: 0 clamp(2rem, 5vw, 3rem) clamp(2rem, 5vh, 3rem);
  color: #2c3e50;
  word-break: break-word;
  hyphens: auto;
  text-align: justify;
}

.modal-article-content p {
  margin-bottom: 1.5rem;
  text-indent: 1.5em;
}

.modal-article-content p:first-child {
  text-indent: 0;
  font-size: 1.1em;
  font-weight: 500;
  color: #495057;
}

.modal-article-content h3,
.modal-article-content h4 {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #2c3e50;
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}

.modal-article-content blockquote {
  border-left: 4px solid #667eea;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #495057;
  background: rgba(102, 126, 234, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
}

.modal-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Efectos de scroll suave */
.modal-article {
  scroll-behavior: smooth;
}

/* Animación de entrada */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-article .modal-content {
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-article-title {
    padding: 1.5rem 1.5rem 1rem;
    padding-right: 3rem;
  }
  
  .modal-article-content {
    padding: 0 1.5rem 2rem;
    text-align: left;
  }
  
  .modal-article-content p {
    text-indent: 0;
  }
  
  .modal-article .modal-close {
    right: 0.5rem;
    top: 0.5rem;
    width: 36px;
    height: 36px;
  }
}

.modal-song .modal-content {
  max-width: 600px;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 1rem;
}

.modal-song-content {
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-song-image {
  margin-bottom: 1rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-js.video-js-stream {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  --video-font-size: 16px;
}
.video-js.video-js-stream .vjs-menu-button-inline.vjs-slider-active,
.video-js.video-js-stream .vjs-menu-button-inline:focus,
.video-js.video-js-stream .vjs-menu-button-inline:hover,
.video-js.video-js-stream .video-js.vjs-no-flex .vjs-menu-button-inline {
  width: 10em;
}
.video-js.video-js-stream .vjs-controls-disabled .vjs-big-play-button {
  display: none !important;
}
.video-js.video-js-stream .vjs-control {
  width: 3em;
}
.video-js.video-js-stream .vjs-menu-button-inline:before {
  width: 1.5em;
}
.video-js.video-js-stream .vjs-menu-button-inline .vjs-menu {
  left: 3em;
}
.video-js.video-js-stream .video-js.vjs-paused .vjs-big-play-button,
.video-js.video-js-stream .vjs-paused.vjs-has-started.vjs-big-play-button {
  display: block;
}
.video-js.video-js-stream .vjs-load-progress div,
.video-js.video-js-stream .vjs-seeking .vjs-big-play-button,
.video-js.video-js-stream .vjs-waiting .vjs-big-play-button {
  display: none !important;
}
.video-js.video-js-stream .vjs-mouse-display:after,
.video-js.video-js-stream .vjs-play-progress:after {
  padding: 0 0.4em 0.3em;
}
.video-js.video-js-stream .video-js.vjs-ended .vjs-loading-spinner {
  display: none;
}
.video-js.video-js-stream .video-js.vjs-ended .vjs-big-play-button {
  display: block !important;
}
.video-js.video-js-stream .video-js *,
.video-js.video-js-stream .video-js:after,
.video-js.video-js-stream .video-js:before {
  box-sizing: inherit;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
}
.video-js.video-js-stream .video-js.vjs-fullscreen,
.video-js.video-js-stream .video-js.vjs-fullscreen .vjs-tech {
  width: 100% !important;
  height: 100% !important;
}
.video-js.video-js-stream .video-js {
  font-size: 14px;
  overflow: hidden;
}
.video-js.video-js-stream .vjs-control {
  color: inherit;
}
.video-js.video-js-stream .vjs-menu-button-inline:hover,
.video-js.video-js-stream .video-js.vjs-no-flex .vjs-menu-button-inline {
  width: 8.35em;
}
.video-js.video-js-stream .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu .vjs-menu-content {
  height: 3em;
  width: 6.35em;
}
.video-js.video-js-stream .vjs-control:focus:before,
.video-js.video-js-stream .vjs-control:hover:before {
  text-shadow: 0 0 1em #fff, 0 0 1em #fff, 0 0 1em #fff;
}
.video-js.video-js-stream .vjs-spacer,
.video-js.video-js-stream .vjs-time-control {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-flex: 1 1 auto;
  -moz-box-flex: 1 1 auto;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
}
.video-js.video-js-stream .vjs-time-control {
  -webkit-box-flex: 0 1 auto;
  -moz-box-flex: 0 1 auto;
  -webkit-flex: 0 1 auto;
  -ms-flex: 0 1 auto;
  flex: 0 1 auto;
  width: auto;
}
.video-js.video-js-stream .vjs-time-control.vjs-time-divider {
  width: 14px;
}
.video-js.video-js-stream .vjs-time-control.vjs-time-divider div {
  width: 100%;
  text-align: center;
}
.video-js.video-js-stream .vjs-time-control.vjs-current-time {
  margin-left: 1em;
}
.video-js.video-js-stream .vjs-time-control .vjs-current-time-display,
.video-js.video-js-stream .vjs-time-control .vjs-duration-display {
  width: 100%;
}
.video-js.video-js-stream .vjs-time-control .vjs-current-time-display {
  text-align: right;
}
.video-js.video-js-stream .vjs-time-control .vjs-duration-display {
  text-align: left;
}
.video-js.video-js-stream .vjs-play-progress:before,
.video-js.video-js-stream .vjs-progress-control .vjs-play-progress:before,
.video-js.video-js-stream .vjs-remaining-time,
.video-js.video-js-stream .vjs-volume-level:after,
.video-js.video-js-stream .vjs-volume-level:before,
.video-js.video-js-stream .video-js.vjs-live .vjs-time-control.vjs-current-time,
.video-js.video-js-stream .video-js.vjs-live .vjs-time-control.vjs-duration,
.video-js.video-js-stream .video-js.vjs-live .vjs-time-control.vjs-time-divider,
.video-js.video-js-stream .video-js.vjs-no-flex .vjs-time-control.vjs-remaining-time {
  display: none;
}
.video-js.video-js-stream .video-js.vjs-no-flex .vjs-time-control {
  display: table-cell;
  width: 4em;
}
.video-js.video-js-stream .vjs-progress-control {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 0.5em;
  top: -0.5em;
}
.video-js.video-js-stream .vjs-progress-control .vjs-load-progress,
.video-js.video-js-stream .vjs-progress-control .vjs-play-progress,
.video-js.video-js-stream .vjs-progress-control .vjs-progress-holder {
  height: 100%;
}
.video-js.video-js-stream .vjs-progress-control .vjs-progress-holder {
  margin: 0;
}
.video-js.video-js-stream .vjs-progress-control:hover {
  height: 1.5em;
  top: -1.5em;
}
.video-js.video-js-stream .vjs-control-bar {
  -webkit-transition: -webkit-transform 0.1s ease 0s;
  -moz-transition: -moz-transform 0.1s ease 0s;
  -ms-transition: -ms-transform 0.1s ease 0s;
  -o-transition: -o-transform 0.1s ease 0s;
  transition: transform 0.1s ease 0s;
}
.video-js.video-js-stream .video-js.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-control-bar,
.video-js.video-js-stream .video-js.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-control-bar,
.video-js.video-js-stream .video-js.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-control-bar,
.video-js.video-js-stream .video-js.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar,
.video-js.video-js-stream .video-js.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar {
  visibility: visible;
  opacity: 1;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateY(3em);
  -moz-transform: translateY(3em);
  -ms-transform: translateY(3em);
  -o-transform: translateY(3em);
  transform: translateY(3em);
  -webkit-transition: -webkit-transform 1s ease 0s;
  -moz-transition: -moz-transform 1s ease 0s;
  -ms-transition: -ms-transform 1s ease 0s;
  -o-transition: -o-transform 1s ease 0s;
  transition: transform 1s ease 0s;
}
.video-js.video-js-stream .video-js.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-progress-control,
.video-js.video-js-stream .video-js.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-progress-control,
.video-js.video-js-stream .video-js.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-progress-control,
.video-js.video-js-stream .video-js.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-progress-control,
.video-js.video-js-stream .video-js.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-progress-control {
  height: 0.25em;
  top: -0.25em;
  pointer-events: none;
  -webkit-transition: height 1s, top 1s;
  -moz-transition: height 1s, top 1s;
  -ms-transition: height 1s, top 1s;
  -o-transition: height 1s, top 1s;
  transition: height 1s, top 1s;
}
.video-js.video-js-stream .video-js.not-hover.vjs-has-started.vjs-paused.vjs-user-active.vjs-fullscreen .vjs-progress-control,
.video-js.video-js-stream .video-js.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive.vjs-fullscreen .vjs-progress-control,
.video-js.video-js-stream .video-js.not-hover.vjs-has-started.vjs-playing.vjs-user-active.vjs-fullscreen .vjs-progress-control,
.video-js.video-js-stream .video-js.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive.vjs-fullscreen .vjs-progress-control,
.video-js.video-js-stream .video-js.vjs-has-started.vjs-playing.vjs-user-inactive.vjs-fullscreen .vjs-progress-control {
  opacity: 0;
  -webkit-transition: opacity 1s ease 1s;
  -moz-transition: opacity 1s ease 1s;
  -ms-transition: opacity 1s ease 1s;
  -o-transition: opacity 1s ease 1s;
  transition: opacity 1s ease 1s;
}
.video-js.video-js-stream .video-js.vjs-live .vjs-live-control {
  margin-left: 1em;
}
.video-js.video-js-stream .vjs-big-play-button {
  top: 50%;
  left: 50%;
  margin-left: -1em;
  width: 2em;
  border: none;
  background-color: #fff;
  color: #262626;
  transition: border-color 0.4s, outline 0.4s, background-color 0.4s;
  font-size: 3.5em;
  border-radius: 50%;
  height: 2em !important;
  line-height: 2em !important;
  margin-top: -1em !important;
}
.video-js.video-js-stream .vjs-menu-button-popup .vjs-menu {
  left: -3em;
}
.video-js.video-js-stream .vjs-menu-button-popup .vjs-menu .vjs-menu-content {
  background-color: transparent;
  width: 12em;
  left: -1.5em;
  padding-bottom: 0.5em;
}
.video-js.video-js-stream .vjs-menu-button-popup .vjs-menu .vjs-menu-item,
.video-js.video-js-stream .vjs-menu-button-popup .vjs-menu .vjs-menu-title {
  background-color: #151b17;
  margin: 0.3em 0;
  padding: 0.5em;
  border-radius: 0.3em;
}
.video-js.video-js-stream .vjs-menu-button-popup .vjs-menu .vjs-menu-item.vjs-selected {
  background-color: var(--primary);
}
.video-js.video-js-stream .vjs-big-play-button:active,
.video-js.video-js-stream .vjs-big-play-button:focus,
.video-js.video-js-stream .video-js:hover .vjs-big-play-button {
  background-color: var(--primary);
}
.video-js.video-js-stream .vjs-loading-spinner {
  border-color: var(--primary);
}
.video-js.video-js-stream .vjs-control-bar2 {
  background-color: #000;
}
.video-js.video-js-stream .vjs-control-bar {
  background-color: rgba(0, 0, 0, 0.3) !important;
  color: #fff;
  font-size: var(--video-font-size, 14px);
}
.video-js.video-js-stream .vjs-play-progress,
.video-js.video-js-stream .vjs-volume-level {
  background-color: var(--primary);
}

.video-is-ready .player-wrapper {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.video-is-ready .video-js-stream {
  opacity: 1;
  pointer-events: all;
}

@keyframes zoomInBounce {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.install-buttons {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1rem;
  padding-right: 1rem;
}
.install-buttons:not(.is-active) {
  display: none;
}
.install-buttons-wrapper {
  animation: 0.5s zoomInBounce;
  position: relative;
  border-radius: 1rem;
  max-width: 600px;
  text-align: center;
  padding: 2rem;
  color: #fff;
  background-color: var(--bg-modal, rgba(255, 255, 255, 0.2));
  backdrop-filter: blur(1rem);
  box-shadow: 0 8px 17px 2px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.2);
}
.install-buttons-wrapper h4 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.install-buttons-wrapper p {
  margin-bottom: 1rem;
}

.install-botton {
  align-items: flex-end;
}
.install-botton > * {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 700px;
  --bg-modal: rgb(255 255 255 / 5%);
}
@media (max-width: 767px) {
  .install-botton > * {
    flex-direction: column;
  }
}
.install-botton .close-install {
  position: absolute;
  background-color: transparent;
  right: 0;
  top: 0;
}
.install-botton .install-buttons-wrapper p {
  margin: 0;
  text-align: left;
}

/* NOTIFICATIONS STYLES */
.notifications-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 350px;
  pointer-events: none;
}

.notification {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification:hover {
  transform: translateX(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
}

.notification-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.notification-image {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-message {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.notification-close:hover {
  opacity: 1;
  background: var(--bg-secondary);
}

.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--accent-color);
  border-radius: 0 0 12px 12px;
  animation: notificationProgress 5s linear forwards;
}

@keyframes notificationProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .notifications-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .notification {
    padding: 14px;
    margin-bottom: 8px;
  }
  
  .notification-image {
    width: 42px;
    height: 42px;
  }
  
  .notification-title {
    font-size: 13px;
  }
  
  .notification-message {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .notifications-container {
    top: 8px;
    right: 8px;
    left: 8px;
  }
  
  .notification {
    padding: 12px;
    margin-bottom: 6px;
  }
  
  .notification-header {
    gap: 10px;
  }
  
  .notification-image {
    width: 38px;
    height: 38px;
  }
  
  .notification-title {
    font-size: 12px;
    -webkit-line-clamp: 1;
  }
  
  .notification-message {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }
}
.install-botton .install-button {
  text-transform: capitalize;
  --btn-bg: #ffffff;
  --btn-color: #000;
}
.install-botton .install-button svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.badge {
  padding: 2px 5px;
  line-height: 1;
  background-color: #f20a0a;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 0 transparent;
  font-size: 0.75rem;
  border-radius: 4px;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 999px;
}

#toggle-scheme {
  box-shadow: none !important;
  background-color: transparent !important;
  border-radius: 50% !important;
  padding: 0.25rem !important;
}

.light #toggle-scheme .toggle-moon {
  display: none;
}

.dark #toggle-scheme .toggle-sun {
  display: none;
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: var(--fade-opacity-end, 0.5);
  }
}
.skeleton-text {
  --fade-opacity-end: 0.5;
  color: transparent;
  background-color: var(--skeleton-bg, rgba(255, 255, 255, 0.1));
  border-radius: 1rem;
  animation: fadeInOut 2s infinite linear;
  display: inline-flex;
  line-height: 1;
  text-shadow: 0 0 transparent;
}
.skeleton-img {
  background-color: var(--skeleton-bg, rgba(0, 0, 0, 0.1));
  animation: fadeInOut 2s infinite linear;
  border-radius: 0.5rem;
  aspect-ratio: 1/1;
}
.skeleton-img-small {
  width: 80px;
}
.skeleton-img-medium {
  width: 120px;
}
.skeleton-img-large {
  width: 100%;
}

.news-section {
  padding: clamp(1rem, 3vw, 2rem) 0;
  background: #ffffff;
  position: relative;
}

.news-wrapper {
  max-width: min(1400px, 95vw);
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 2.5vw, 2rem);
  display: grid;
  grid-template-columns: 1fr min(35%, 400px);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

/* Layout fluido para pantallas pequeñas */
@container (max-width: 768px) {
  .news-wrapper {
    grid-template-columns: 1fr;
    gap: clamp(0.75rem, 2vw, 1.5rem);
  }
}

/* Fallback para navegadores sin container queries */
@media (max-width: 768px) {
  .news-wrapper {
    grid-template-columns: 1fr;
    gap: clamp(0.75rem, 2vw, 1.5rem);
  }
}

.news-main-container {
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: clamp(20rem, 50vh, 30rem);
  container-type: inline-size;
  position: relative;
}

.news-main-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), #ff6b6b, #4ecdc4, var(--color-primary));
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

.news-main-container:hover {
  /* Sin efectos de hover para mantener uniformidad */
}

.news-main-image {
  width: 100%;
  height: clamp(12rem, 30vh, 20rem);
  position: relative;
  overflow: hidden;
  border-radius: 0;
  cursor: default;
  pointer-events: none;
}

.news-main-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.news-main-image:hover::after {
  opacity: 0.7;
}

.news-main-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(45deg, #f8fafc, #e2e8f0);
  /* Optimización para lazy loading */
  content-visibility: auto;
  contain-intrinsic-size: 300px 200px;
  filter: brightness(1.05) contrast(1.1);
  border-radius: 0;
}

.news-main-image:hover img {
  transform: scale(1.08) rotate(0.5deg);
  filter: brightness(1.1) contrast(1.15) saturate(1.1);
}

.news-main-content {
  padding: clamp(0.8rem, 2.5vw, 1.5rem);
}

#main-news-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(1.02rem, 3.8vw, 1.7rem);
  font-weight: 600;
  margin-bottom: clamp(0.4rem, 1.8vw, 0.8rem);
  color: #0f172a;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  hyphens: auto;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
  cursor: pointer;
}

#main-news-title:hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateY(-1px);
}

#main-news-description {
  font-size: clamp(0.9rem, 2.8vw, 1.2rem);
  line-height: 1.7;
  color: #475569;
  margin-bottom: clamp(0.5rem, 1.5vw, 0.8rem);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  hyphens: auto;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

#main-news-date {
  font-size: clamp(0.8rem, 2.2vw, 1rem);
  color: #64748b;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: clamp(0.3rem, 1vw, 0.5rem) clamp(0.6rem, 1.5vw, 1rem);
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.1) 0%, rgba(148, 163, 184, 0.05) 100%);
  border-radius: clamp(0.3rem, 0.8vw, 0.5rem);
  border: 1px solid rgba(100, 116, 139, 0.2);
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

#main-news-date::before {
  content: 'Publicado';
  font-size: 0.9em;
}

#main-news-date:hover {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.15) 0%, rgba(148, 163, 184, 0.1) 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(100, 116, 139, 0.2);
}

.news-date-container {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1rem);
  margin-top: clamp(0.5rem, 1.5vw, 0.8rem);
}

.calendar-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--color-primary) 0%, rgba(var(--color-primary-rgb), 0.8) 100%);
  color: white;
  border-radius: clamp(0.4rem, 1vw, 0.6rem);
  padding: clamp(0.3rem, 0.8vw, 0.5rem) clamp(0.4rem, 1vw, 0.6rem);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  min-width: clamp(2.5rem, 6vw, 3.5rem);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.calendar-widget::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.calendar-widget:hover::before {
  opacity: 1;
  animation: shine 0.6s ease-in-out;
}

.calendar-day {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1px;
}

.calendar-month {
  font-size: clamp(0.6rem, 1.5vw, 0.8rem);
  font-weight: 600;
  line-height: 1;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

/* Responsive adjustments */
@container (max-width: 480px) {
  .news-date-container {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
  }
  
  .calendar-widget {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .news-date-container {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
  }
  
  .calendar-widget {
    align-self: flex-start;
  }
}

.news-thumbs-container {
  background: #ffffff;
  border-radius: clamp(0.75rem, 2vw, 1.25rem);
  border: none;
  height: clamp(21.8rem, 26.8rem, 26.8rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(203, 213, 225, 0.8) rgba(248, 250, 252, 0.5);
  container-type: inline-size;
  position: relative;
}

.news-thumbs-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), #ff6b6b, #4ecdc4, var(--color-primary));
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  border-radius: clamp(0.75rem, 2vw, 1.25rem) clamp(0.75rem, 2vw, 1.25rem) 0 0;
}

.news-thumbs-container::-webkit-scrollbar {
  width: 8px;
}

.news-thumbs-container::-webkit-scrollbar-track {
  background: rgba(248, 250, 252, 0.5);
  border-radius: 4px;
  margin: 4px;
}

.news-thumbs-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(203, 213, 225, 0.8) 0%, rgba(148, 163, 184, 0.8) 100%);
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-thumbs-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.9) 0%, rgba(100, 116, 139, 0.9) 100%);
  transform: scaleY(1.1);
}

.news-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: clamp(0.25rem, 1vw, 0.5rem) 0;
}

.news-thumb-item {
  display: flex;
  align-items: center;
  padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 2.5vw, 1.5rem);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(241, 245, 249, 0.6);
  position: relative;
  margin: 0 clamp(0.25rem, 0.5vw, 0.5rem);
  border-radius: clamp(0.5rem, 1vw, 0.75rem);
}

.news-thumb-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: all 0.3s ease;
  border-radius: 0 2px 2px 0;
}

.news-thumb-item:hover {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.6) 100%);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-thumb-item:hover::before {
  background: linear-gradient(180deg, var(--color-primary) 0%, rgba(255, 107, 107, 0.8) 100%);
}

.news-thumb-item.active {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.15) 0%, rgba(var(--color-primary-rgb), 0.08) 100%);
  transform: translateX(6px);
  box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.2);
}

.news-thumb-item.active::before {
  background: linear-gradient(180deg, var(--color-primary) 0%, rgba(var(--color-primary-rgb), 0.8) 100%);
  width: 4px;
}

.news-thumb-item:last-child {
  border-bottom: none;
}

.news-thumb-number {
  flex: 0 0 clamp(1.5rem, 4vw, 2rem);
  width: clamp(1.5rem, 4vw, 2rem);
  height: clamp(1.5rem, 4vw, 2rem);
  background: linear-gradient(135deg, var(--color-primary) 0%, rgba(var(--color-primary-rgb), 0.8) 100%);
  color: white;
  border-radius: clamp(0.3rem, 0.8vw, 0.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  margin-right: clamp(0.5rem, 1.5vw, 1rem);
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb), 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.news-thumb-number::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.news-thumb-item:hover .news-thumb-number::before {
  opacity: 1;
  animation: shine 0.6s ease-in-out;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.news-thumb-image {
  flex: 0 0 clamp(3rem, 8vw, 4rem);
  width: clamp(3rem, 8vw, 4rem);
  height: clamp(2.25rem, 6vw, 3rem);
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  border-radius: clamp(0.4rem, 0.8vw, 0.6rem);
  margin-right: clamp(0.5rem, 1.5vw, 1rem);
  background: linear-gradient(45deg, #f8fafc, #e2e8f0);
  /* Optimización para lazy loading */
  content-visibility: auto;
  contain-intrinsic-size: 60px 45px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.news-thumb-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-thumb-item:hover .news-thumb-image::after {
  opacity: 1;
}

.news-thumb-content {
  flex: 1;
  min-width: 0;
}

.news-thumb-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(0.75rem, 2.2vw, 0.9rem);
  font-weight: 500;
  color: #1e293b;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  hyphens: auto;
  transition: color 0.3s ease;
  letter-spacing: -0.01em;
}

.news-thumb-item:hover .news-thumb-title {
  color: var(--color-primary);
}

.news-thumb-date {
  font-size: clamp(0.65rem, 1.8vw, 0.8rem);
  color: #64748b;
  margin-top: clamp(0.2rem, 0.5vw, 0.3rem);
  font-weight: 500;
  transition: color 0.3s ease;
  letter-spacing: 0.01em;
}

.news-thumb-item:hover .news-thumb-date {
  color: #475569;
}

/* Diseño completamente fluido - sin media queries específicos */

/* Todos los estilos ahora son completamente fluidos y responsive */

/* Soporte para viewport units modernos y pantallas con notch */
:root {
  --safe-area-inset-top: env(safe-area-inset-top, 0px);
  --safe-area-inset-right: env(safe-area-inset-right, 0px);
  --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-inset-left: env(safe-area-inset-left, 0px);
  
  /* Viewport units dinámicos para mejor soporte móvil */
  --vh: 1vh;
  --vw: 1vw;
  --vmin: 1vmin;
  --vmax: 1vmax;
}

/* Soporte para viewport units dinámicos en navegadores modernos */
@supports (height: 100dvh) {
  :root {
    --vh: 1dvh;
  }
}

@supports (width: 100dvw) {
  :root {
    --vw: 1dvw;
  }
}

/* Ajustes para pantallas con notch */
body {
  padding-left: var(--safe-area-inset-left);
  padding-right: var(--safe-area-inset-right);
}

.news-section {
  padding-left: max(var(--safe-area-inset-left), clamp(0.75rem, 2.5vw, 2rem));
  padding-right: max(var(--safe-area-inset-right), clamp(0.75rem, 2.5vw, 2rem));
}

/* Estilos específicos para PWA en modo standalone */
@media (display-mode: standalone) {
  /* Asegurar que el player se mantenga en la parte superior */
  .player-integrated {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--body-bg);
    padding-top: env(safe-area-inset-top, 0);
    margin-bottom: 1rem;
  }
  
  /* Ajustar el contenido principal para que no se superponga */
  .main {
    padding-top: 1rem;
  }
  
  /* Asegurar que el header no interfiera con el player */
  .header {
    position: relative;
    z-index: 999;
  }
  
  /* Ajustes específicos para móviles en PWA */
  @media (max-width: 767px) {
    .player-integrated {
      position: sticky;
      top: 0;
      margin-bottom: 0.5rem;
      padding-top: max(env(safe-area-inset-top, 0), 0.5rem);
      padding-bottom: 0.5rem;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .main {
      padding-top: 0.5rem;
    }
  }
}
