/* ========== MODERN BASE STYLES ========== */
/* Variables y componentes compartidos entre index, noticia, categoria */

:root {
  --primary: #d9534f;
  --primary-dark: #c9302c;
  --dark: #1a1a2e;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-400: #ced4da;
  --gray-600: #868e96;
  --gray-800: #343a40;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

/* Sidebar Modern (shared) */
.sidebar-modern .widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.sidebar-modern .side-title {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary);
  letter-spacing: 0.5px;
}
.sidebar-modern .search-box {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.sidebar-modern .search-box input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  outline: none;
  background: var(--gray-50);
}
.sidebar-modern .search-box button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}
.sidebar-modern .search-box button:hover {
  background: var(--primary-dark);
}
.sidebar-modern .radio-widget {
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  border: none;
}
.sidebar-modern .radio-widget .radio-label,
.sidebar-modern .radio-label {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.sidebar-modern .radio-widget .radio-label .live-dot,
.sidebar-modern .live-dot {
  width: 8px;
  height: 8px;
  background: #e74c3c;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
.sidebar-modern .radio-widget audio {
  width: 100%;
  height: 36px;
  margin-top: 6px;
}

.sidebar-modern .small-post-modern {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.sidebar-modern .small-post-modern:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sidebar-modern .small-post-modern:hover {
  background: var(--gray-50);
  margin: 0 -10px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 6px;
}
.sidebar-modern .small-post-modern .spm-img {
  width: 80px;
  min-width: 80px;
  height: 65px;
  border-radius: 6px;
  overflow: hidden;
}
.sidebar-modern .small-post-modern .spm-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-modern .small-post-modern .spm-content {
  flex: 1;
}
.sidebar-modern .small-post-modern .spm-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 4px;
  color: var(--dark);
}
.sidebar-modern .small-post-modern .spm-title a {
  color: inherit;
  text-decoration: none;
}
.sidebar-modern .small-post-modern .spm-title a:hover {
  color: var(--primary);
}
.sidebar-modern .small-post-modern .spm-meta {
  font-size: 11px;
  color: var(--gray-600);
}
.sidebar-modern .cat-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-100);
}
.sidebar-modern .cat-list-item:last-child {
  border-bottom: none;
}
.sidebar-modern .cat-list-item a {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
}
.sidebar-modern .cat-list-item a:hover {
  color: var(--primary);
  padding-left: 4px;
}
.sidebar-modern .cat-list-item .cat-badge {
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* Header Menu Override */
.cp-logo-row .logo img {
  max-width: 100%;
  height: auto;
}
.cp-logo-row .cp-advertisement {
  float: right;
  width: 780px;
  max-width: 100%;
  text-align: right;
}
.cp-logo-row .cp-advertisement img {
  display: block;
  width: 780px;
  max-width: 100%;
  height: auto;
}
.cp-megamenu {
  background: #fff !important;
}
.cp-mega-menu > ul > li > a {
  color: #333 !important;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 13px;
}
.cp-mega-menu > ul > li > a:hover,
.cp-mega-menu > ul > li:hover > a {
  color: #fff !important;
}
.sticky .cp-megamenu {
  background: #fff !important;
}

@media (max-width: 767px) {
  body {
    padding-bottom: 92px;
  }

  .sidebar-modern .mobile-radio-player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    margin: 0;
    padding: 10px 14px;
    border-radius: 0;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.22);
  }

  .sidebar-modern .mobile-radio-player .radio-label {
    margin-bottom: 6px;
    font-size: 12px;
  }

  .sidebar-modern .mobile-radio-player audio {
    height: 34px;
    margin-top: 0;
  }
}
