:root {
  --primary-color: #d946ef;
  --secondary-color: #8b5cf6;
  --accent-color: #22c55e;
  --bg-gradient: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(88, 28, 135, 0.85));
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --bg-image: url('https://images.unsplash.com/photo-1516450360452-9312f5e86fc7?q=80&w=1600&auto=format&fit=crop');
}

/* Temas Dinámicos */
body.theme-neon {
  --primary-color: #ec4899;
  --secondary-color: #a855f7;
  --bg-image: url('https://images.unsplash.com/photo-1516450360452-9312f5e86fc7?q=80&w=1600&auto=format&fit=crop');
}

body.theme-gold {
  --primary-color: #eab308;
  --secondary-color: #f97316;
  --bg-image: url('https://images.unsplash.com/photo-1514525253161-7a46d19cd819?q=80&w=1600&auto=format&fit=crop');
}

body.theme-cyber {
  --primary-color: #06b6d4;
  --secondary-color: #3b82f6;
  --bg-image: url('https://images.unsplash.com/photo-1508700115892-45ecd05ae2ad?q=80&w=1600&auto=format&fit=crop');
}

body.theme-dark {
  --primary-color: #64748b;
  --secondary-color: #334155;
  --bg-image: url('https://images.unsplash.com/photo-1470225620780-dba8ba36b745?q=80&w=1600&auto=format&fit=crop');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #0f172a;
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Imagen de Fondo */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: brightness(0.4) blur(4px);
  z-index: -1;
  transition: all 0.5s ease;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--glass-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
}

.brand-info h1 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.badge-live {
  font-size: 0.7rem;
  color: #ef4444;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.badge-live i {
  font-size: 0.5rem;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.theme-dropdown {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 1px solid var(--glass-border);
  padding: 8px 12px;
  border-radius: 20px;
  outline: none;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-install {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-color);
}

/* Main Layout */
.main-container {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 15px;
}

/* Player Card */
.player-card {
  padding: 25px;
  text-align: center;
  margin-bottom: 25px;
}

.album-art-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
}

.album-art {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: 0 0 25px var(--primary-color);
}

.album-art.playing {
  animation: rotateLogo 20s linear infinite;
}

@keyframes rotateLogo {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Equalizer */
.equalizer {
  display: flex;
  justify-content: center;
  gap: 4px;
  height: 25px;
  margin-top: 10px;
}

.equalizer span {
  width: 5px;
  background: var(--primary-color);
  border-radius: 3px;
  animation: bounce 1s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.playing + .equalizer span, body.is-playing .equalizer span {
  animation-play-state: running;
}

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

@keyframes bounce {
  0% { height: 5px; }
  100% { height: 25px; }
}

.track-info h2 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: #fff;
}

.track-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-play-main {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 0 20px var(--primary-color);
  transition: transform 0.2s ease;
}

.btn-play-main:hover {
  transform: scale(1.08);
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.3);
  padding: 8px 15px;
  border-radius: 20px;
}

.volume-container input {
  accent-color: var(--primary-color);
  cursor: pointer;
}

.btn-like {
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-like.liked i {
  color: #ef4444;
}

/* Tabs */
.nav-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 20px;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: var(--primary-color);
  box-shadow: 0 0 12px var(--primary-color);
  border-color: transparent;
}

/* Tab Panels */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-title {
  font-size: 1.1rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Grid Cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
}

.card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.wa-bg { background: #22c55e; color: white; }

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  color: white;
  transition: background 0.2s;
}

.wa-btn { background: #25d366; }
.yt-btn { background: #ff0000; }
.ig-btn { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.btn-action:hover {
  filter: brightness(1.15);
}

/* YouTube Video */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 15px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.center-btn {
  text-align: center;
}

/* Noticias */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.news-card {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-card h4 {
  font-size: 0.95rem;
  color: #fff;
}

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

.news-date {
  font-size: 0.7rem;
  color: var(--primary-color);
}

/* Mapa */
.map-stats {
  display: flex;
  justify-content: space-around;
  padding: 15px;
  margin-bottom: 15px;
}

.stat-box {
  text-align: center;
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  display: block;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.map-container {
  height: 320px;
  border-radius: 15px;
  z-index: 1;
}

/* Social Card */
.social-card {
  text-align: center;
  align-items: center;
}

.social-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 30px;
}