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

:root {
  --bg-main: #010510;
  --bg-secondary: radial-gradient(circle at top, rgba(75,159,255,0.2), transparent 50%), #010510;
  --panel: rgba(11,20,39,0.75);
  --card: rgba(13,25,46,0.85);
  --border: rgba(255,255,255,0.08);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #4b9fff;
  --accent-2: #8b5cf6;
  --success: #34d399;
  --danger: #f87171;
  --blur: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-secondary);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-2);
}

.page-shell {
  width: 100%;
  padding: clamp(1rem, 2vw, 2rem) 0 4rem;
}

.content-area {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-bottom: 12rem;
  transition: opacity 0.3s ease;
}

.content-area.is-loading {
  opacity: 0.4;
  pointer-events: none;
}

#main-content {
  visibility: visible;
}

.glass-card {
  background: var(--card);
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  padding: clamp(1.5rem, 2vw, 2.5rem);
  backdrop-filter: blur(var(--blur));
}

.section-block {
  position: relative;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 600;
  color: #fff;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--accent);
}

.btn-gradient,
.btn-ghost,
.header-btn,
.app-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  transition: all 0.25s ease;
}

.btn-gradient {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 20px rgba(75,159,255,0.35);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(75,159,255,0.45);
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ======= HEADER ======= */
.main-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 1400;
  background: rgba(4,7,18,0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.header-cluster {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.brand-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.menu-wrapper {
  position: relative;
}

.menu-toggle {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.menu-dropdown {
  position: absolute;
  top: 120%;
  left: 0;
  background: rgba(5,10,25,0.95);
  border-radius: 18px;
  border: 1px solid var(--border);
  min-width: 260px;
  padding: 1.2rem;
  box-shadow: 0 25px 45px rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 980;
}

.menu-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.menu-links a {
  color: #fff;
  font-weight: 500;
  padding: 0.45rem 0.35rem;
  border-radius: 10px;
}

.menu-links a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--accent);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-search {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 240px;
}

.header-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  width: 100%;
  font-size: 0.9rem;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.header-btn {
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  background: transparent;
}

.header-btn.secondary {
  background: rgba(255,255,255,0.1);
}

.header-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.floating-apps {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 940;
}

.floating-app {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, rgba(75,159,255,0.85), rgba(11,20,39,0.95));
  box-shadow: 0 12px 25px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-app.android {
  background: linear-gradient(145deg, rgba(59,185,93,0.85), rgba(11,20,39,0.95));
}

.floating-app.ios {
  background: linear-gradient(145deg, rgba(255,255,255,0.25), rgba(11,20,39,0.95));
}

.floating-app:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.45);
}

.floating-countries {
  position: fixed;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  background: rgba(3,6,20,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 1rem;
  width: 150px;
  box-shadow: 0 20px 35px rgba(0,0,0,0.45);
  z-index: 900;
}

.floating-countries-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.floating-countries-header h4 {
  margin: 0;
  font-size: 0.9rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.floating-countries-header button {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.floating-country-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 55vh;
  overflow-y: auto;
}

.floating-country-list::-webkit-scrollbar {
  width: 4px;
}

.floating-country-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
}

.floating-countries .country-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 0.45rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.floating-countries .country-card:hover,
.floating-countries .country-card.active {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.floating-countries .country-card img {
  width: 36px;
  border-radius: 50%;
}

.country-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
}

.floating-countries .country-card p {
  margin: 0;
  font-size: 0.75rem;
  text-align: center;
}

.floating-countries.is-collapsed {
  width: 60px;
  padding: 0.75rem;
}

.floating-countries.is-collapsed .floating-countries-header h4 {
  display: none;
}

.floating-countries.is-collapsed .floating-country-list {
  display: none;
}

.floating-countries.is-collapsed {
  transform: translateY(-50%);
}

.country-grid {
  display: none;
}

.search-results {
  position: fixed;
  top: 80px;
  right: clamp(1rem, 4vw, 3rem);
  width: min(420px, calc(100% - 2rem));
  background: rgba(5,10,25,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  box-shadow: 0 20px 35px rgba(0,0,0,0.45);
  display: none;
  flex-direction: column;
  z-index: 905;
  max-height: 340px;
  overflow-y: auto;
}

.search-results.is-visible {
  display: flex;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(255,255,255,0.05);
}

.search-result-item img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
}

.search-result-item strong {
  color: #fff;
  display: block;
}

.search-result-item span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ======= HERO ======= */
.hero-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  overflow: hidden;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.hero-content p {
  color: var(--text-muted);
  max-width: 520px;
}

.hero-actions {
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-metrics {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-metrics div {
  min-width: 120px;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.hero-metrics span {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
}

.hero-metrics small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.hero-visual {
  position: relative;
  min-height: 260px;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle, rgba(75,159,255,0.25), rgba(10,16,40,0.9));
}

.hero-slider {
  position: relative;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  min-height: 320px;
  box-shadow: 0 25px 45px rgba(0,0,0,0.45);
}

.hero-slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #fff;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3,6,20,0.9), rgba(3,6,20,0.2));
}

.hero-slide-content {
  position: relative;
  max-width: 420px;
  z-index: 2;
}

.hero-slide-content h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.hero-slide-location {
  margin: 0 0 1rem;
  color: rgba(255,255,255,0.85);
}

.hero-slide-btn {
  margin-top: 0.5rem;
}

.hero-slider-pagination {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.hero-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-slider-dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.75;
}

.orb-one {
  width: 160px;
  height: 160px;
  background: rgba(75,159,255,0.6);
  top: 20%;
  left: 10%;
}

.orb-two {
  width: 120px;
  height: 120px;
  background: rgba(139,92,246,0.6);
  bottom: 15%;
  right: 15%;
}

.orb-three {
  width: 90px;
  height: 90px;
  background: rgba(52,211,153,0.6);
  top: 10%;
  right: 30%;
}

.signal-wave {
  position: absolute;
  inset: 20%;
  border: 1px dashed rgba(255,255,255,0.25);
  border-radius: 50%;
  animation: pulse 6s linear infinite;
}

@keyframes pulse {
  0% { transform: scale(0.7); opacity: 0.4; }
  70% { transform: scale(1.2); opacity: 0; }
  100% { opacity: 0; }
}

/* ======= GRID ELEMENTS ======= */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.country-card {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.country-card.active,
.country-card:hover {
  border-color: var(--accent);
  box-shadow: 0 15px 30px rgba(75,159,255,0.15);
}

.country-card img {
  width: 64px;
  margin: 0 auto 0.6rem;
  border-radius: 12px;
}

.country-card p {
  font-weight: 600;
}

.ranking-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.carousel-track {
  flex: 1;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 220px;
}

.carousel-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  width: 42px;
  height: 60px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.ranking-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.ranking-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.02);
  pointer-events: none;
}

.ranking-logo img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
  padding: 0.4rem;
}

.ranking-logo {
  position: relative;
  width: 90px;
  margin: 0 auto 0.75rem;
}

.ranking-play-overlay {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(11,20,39,0.75);
  border-radius: 18px;
  color: #fff;
  opacity: 0;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ranking-logo:hover .ranking-play-overlay {
  opacity: 1;
}

.ranking-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: #fff;
}

.ranking-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.section-actions {
  margin-bottom: 1.5rem;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.radio-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  box-shadow: 0 20px 35px rgba(0,0,0,0.35);
}

.card-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  filter: blur(6px);
}

.card-content {
  position: relative;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.logo-container {
  position: relative;
  width: 100%;
  padding-top: 65%;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.logo-container img {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logo-container:hover .play-icon {
  opacity: 0.95;
}

.radio-info h3 {
  margin: 0;
  font-size: 1.05rem;
}

.radio-info h3 a {
  color: #fff;
}

.radio-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

/* ======= SPINNERS & STATES ======= */
.initial-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: radial-gradient(circle at top, rgba(75,159,255,0.2), rgba(1,5,16,0.95));
  z-index: 1400;
  backdrop-filter: blur(18px);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.initial-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.loader-shell p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.loader-orbit {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  animation: orbit-spin 8s linear infinite;
}

.loader-orbit span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 15px rgba(75,159,255,0.6);
  animation: orbit-dot 2.8s linear infinite;
}

.loader-orbit span:nth-child(2) {
  animation-delay: 0.2s;
  background: linear-gradient(120deg, var(--accent-2), var(--success));
}

.loader-orbit span:nth-child(3) {
  animation-delay: 0.4s;
  background: linear-gradient(120deg, var(--success), var(--accent));
}

.loader-equalizer,
.spinner {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
}

.loader-equalizer span,
.spinner span {
  width: 7px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  animation: equalizer-pulse 1s ease-in-out infinite;
}

.loader-equalizer span:nth-child(2),
.spinner span:nth-child(2) { animation-delay: 0.1s; }
.loader-equalizer span:nth-child(3),
.spinner span:nth-child(3) { animation-delay: 0.2s; }
.loader-equalizer span:nth-child(4),
.spinner span:nth-child(4) { animation-delay: 0.3s; }
.loader-equalizer span:nth-child(5),
.spinner span:nth-child(5) { animation-delay: 0.4s; }

.spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--text-muted);
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes orbit-dot {
  0%   { transform: rotate(0deg) translateX(60px); opacity: 0.25; }
  40%  { opacity: 1; }
  100% { transform: rotate(360deg) translateX(60px); opacity: 0.25; }
}

@keyframes equalizer-pulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.3; }
  50%      { transform: scaleY(1); opacity: 1; }
}

.no-more {
  text-align: center;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ======= DEPARTAMENTOS ======= */
.section-title {
  margin-bottom: 1rem;
}

.section-title h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.region-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.region-block {
  background: rgba(255,255,255,0.03);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.region-block h3 {
  margin-bottom: 1rem;
}

.department-selector {
  margin-bottom: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.department-selector label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.department-selector select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  min-width: 220px;
}

.departamento-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.departamento-list li {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.departamento-list li:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.dep-name {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dep-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
}

#radios-por-departamento {
  margin-top: 2rem;
}

/* ======= RADIO DETAIL ======= */
.radio-detail {
  text-align: center;
  padding: 3rem 1rem;
}

.detail-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin: 0 auto 1rem;
}

/* ======= PLAYER ======= */
.global-player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(3,6,20,0.95);
  border-radius: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -20px 40px rgba(0,0,0,0.45);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  backdrop-filter: blur(18px);
  z-index: 950;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.player-art {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(75,159,255,0.4), rgba(3,6,20,0.2));
  border: 1px solid rgba(255,255,255,0.08);
}

.player-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  padding: 10px;
}

.player-art-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(75,159,255,0.35), transparent 60%);
  animation: orb-glow 6s linear infinite;
}

.player-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
  background: rgba(3,6,20,0.65);
}

.player-loading span {
  width: 6px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  animation: equalizer-pulse 0.9s ease-in-out infinite;
}

.player-loading span:nth-child(2) { animation-delay: 0.15s; }
.player-loading span:nth-child(3) { animation-delay: 0.3s; }

.player-loading.is-active {
  opacity: 1;
}

.player-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.player-label {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin: 0;
}

.player-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.player-meta h4 {
  margin: 0;
  font-size: 1.15rem;
  color: #fff;
  flex: 1;
}

.player-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.player-social-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.player-social-group.is-empty {
  display: none;
}

.player-social-group.is-empty .meta-sep {
  display: none;
}

.live-pill {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  color: #ff5470;
}

.meta-sep {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.2);
}

.player-location {
  margin: 0;
  color: var(--text-muted);
}

.player-social {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.player-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: grid;
  place-items: center;
  color: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.player-social a:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.player-btn {
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.15);
}

.player-btn-secondary {
  background: rgba(255,255,255,0.05);
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-left: 0.5rem;
  border-left: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
}

#volume-slider {
  width: 140px;
}

@keyframes orb-glow {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(360deg) scale(1.1); }
}

/* ======= MAPA INTERACTIVO ======= */
#map {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 15px 35px rgba(0,0,0,0.35);
  min-height: 520px;
}

.map-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.map-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.map-filter label {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
}

.map-filter select,
.map-search input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  min-width: 220px;
}

.map-search input::placeholder {
  color: var(--text-muted);
}

.map-popup {
  background: rgba(3,7,18,0.9);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.9rem;
  width: 220px;
  color: #fff;
}

.map-popup-head {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.map-popup-head img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255,255,255,0.05);
  padding: 4px;
}

.map-popup-head strong {
  display: block;
  font-size: 0.95rem;
}

.map-popup-head small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.map-popup-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 0.55rem;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* ======= SHARE MODAL ======= */
.share-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.share-modal-content {
  background: rgba(3,7,18,0.95);
  padding: 2rem;
  border-radius: 20px;
  width: min(420px, 90%);
  border: 1px solid rgba(255,255,255,0.08);
}

.share-modal-content input,
.share-modal-content textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #fff;
  padding: 0.6rem;
  margin-bottom: 0.8rem;
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.share-buttons a {
  color: #fff;
}

.close-share {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  cursor: pointer;
}

/* ======= FOOTER ======= */
.footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
}

/* ======= RESPONSIVE ======= */
@media (max-width: 900px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-tools {
    width: 100%;
    justify-content: space-between;
  }
  .global-player {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .floating-countries {
    display: none;
  }
  .player-controls {
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
  }
  .player-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .player-volume {
    border-left: 0;
    padding-left: 0;
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  .header-search {
    width: 100%;
    min-width: 0;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .floating-apps {
    display: none;
  }
  .carousel-btn {
    display: none;
  }
  .carousel-track {
    gap: 0.75rem;
  }
}
