@media (max-width: 480px) {
  header .wrap > img.header-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }
}

header .wrap > img.header-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
}
/* Botón instalar PWA */
.pwa-install-btn {
  background: var(--brand);
  color: #fff;
  padding: 8px 22px;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  display: inline-block;
  transition: background .2s;
}
.pwa-install-btn:hover, .pwa-install-btn:focus {
  background: var(--brand);
}
body.dark .pwa-install-btn {
  background: var(--brand);
  color: #fff;
}
/* ====== Estilos principales extraídos de index.html ====== */
* { box-sizing: border-box; }
:root{
  --brand:#007bff;
  --bg:#f5f5f5; --fg:#333;
  --card:#fff; --card-border:#e6e6e6;
  --muted:#666;
  --ring:#93c5fd;
  /* Footer */
  --footer-bg:#ffffff;
  --footer-fg:#0f172a;
  --footer-sub:#334155;
  --footer-link:#0b5fff;
  --footer-divider:#e5e7eb;
  /* Social (estilo “original” redondo) */
  --social-bg:#ffffff;
  --social-fg:#111111;
  --social-border:#cbd5e1;
  --social-hover:#f3f4f6;
  --social-focus:#93c5fd;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background: #f8f9fa;
  background-attachment: fixed;
  color: var(--fg);
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  pointer-events: none;
  z-index: 0;
  animation: gradientShift 15s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}
header {
  position: sticky; 
  top: 0; 
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 2px solid rgba(139, 92, 246, 0.4);
  -webkit-backdrop-filter: saturate(200%) blur(25px);
  backdrop-filter: saturate(200%) blur(25px);
  padding: 24px 0;
  margin-bottom: 0;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2), 
              0 4px 16px rgba(139, 92, 246, 0.15),
              0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(99, 102, 241, 0.08));
  pointer-events: none;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px 14px 16px; position: relative; z-index: 1; }
.header-center { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  text-align: center; 
  gap: 16px;
  position: relative;
  z-index: 1;
}
header .wrap > img {
  filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.4));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
header .wrap > img:hover {
  transform: scale(1.08) rotate(5deg);
}
h1 { 
  margin: 0; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 10px; 
  font-size: 26px; 
  font-weight: 800; 
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
}
h1 img { 
  width: 34px; 
  height: 34px; 
  border-radius: 8px; 
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5),
              0 2px 8px rgba(99, 102, 241, 0.4);
}
.subtitle { 
  margin: -8px 0 0; 
  font-size: 15px; 
  font-weight: 700; 
  text-align: center; 
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  padding: 8px 24px;
  border-radius: 24px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3),
              0 2px 6px rgba(99, 102, 241, 0.2),
              0 0 0 1px rgba(139, 92, 246, 0.2) inset;
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.controls { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.controls .row{ 
  display:flex; 
  gap:12px; 
  flex-wrap:wrap; 
  justify-content:center;
  width: 100%;
}
.select, .search { 
  padding: 14px 20px; 
  border-radius: 16px; 
  border: 2px solid rgba(139, 92, 246, 0.4); 
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 15px; 
  font-weight: 600;
  min-width: 260px;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25),
              0 2px 8px rgba(99, 102, 241, 0.2),
              0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #7c3aed;
}
.select:hover, .search:hover {
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4),
              0 4px 12px rgba(99, 102, 241, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.95));
}
.select:focus, .search:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5),
              0 4px 12px rgba(99, 102, 241, 0.35),
              0 0 0 4px rgba(139, 92, 246, 0.2);
}
select.select{ 
  text-align: center; 
  -moz-text-align-last: center; 
  text-align-last: center; 
  appearance: none; 
  cursor: pointer;
}
.search{ text-align:center; }
.search::placeholder{ text-align:center; opacity:.85; }
.player { 
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 24px; 
  padding: 24px; 
  margin: 28px auto 20px; 
  max-width: 680px; 
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15),
              0 8px 24px rgba(139, 92, 246, 0.1),
              0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.player::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(99, 102, 241, 0.05));
  pointer-events: none;
  z-index: 0;
}
.player:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(99, 102, 241, 0.2),
              0 12px 32px rgba(139, 92, 246, 0.15),
              0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  border-color: rgba(139, 92, 246, 0.5);
}
.player-inner { 
  display: grid; 
  grid-template-columns: 100px 1fr; 
  gap: 20px; 
  align-items: center;
  position: relative;
  z-index: 1;
}
.radio-logo {
  position: relative;
}
.radio-logo::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1, #a78bfa);
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.player:hover .radio-logo::before {
  opacity: 0.6;
  animation: rotateBorder 3s linear infinite;
}
@keyframes rotateBorder {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.radio-logo img { 
  width: 100px; 
  height: 100px; 
  border-radius: 14px; 
  object-fit: cover; 
  border: 3px solid rgba(255, 255, 255, 0.8);
  background: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25),
              0 4px 12px rgba(139, 92, 246, 0.2);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.player:hover .radio-logo img {
  transform: scale(1.05) rotate(2deg);
}
.now { 
  margin: 0 0 10px; 
  font-weight: 800; 
  font-size: 18px;
  text-align: center;
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}
.help { 
  margin: 0 0 14px; 
  color: rgba(124, 58, 237, 0.7);
  font-size: 13px; 
  text-align: center;
  font-weight: 500;
}
audio { 
  width: 100%; 
  border-radius: 12px;
  outline: none;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
  transition: box-shadow 0.3s ease;
}
audio:focus {
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3),
              0 0 0 3px rgba(139, 92, 246, 0.2);
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin: 18px 0 0; }
@media (max-width: 768px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; text-align: center; padding: 10px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; outline: none; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.08); }
.card:focus { box-shadow: 0 0 0 4px var(--ring); }
.card.active{ box-shadow: 0 0 0 2px var(--brand), 0 10px 20px rgba(0,123,255,.16); }
.card img{ width: 130px; height: 130px; margin: 6px auto 8px; display:block; border-radius: 12px; object-fit: cover; border: none; background: transparent; box-shadow: none; }
.card p{ margin:6px 4px 4px; font-weight:bold; font-size:14px; line-height:1.25; }
.wave{ display:block; width:100%; height:70px; margin-top:10px; background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.02)); }
.wave svg{ display:block; width:100%; height:70px; }
footer { 
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: var(--footer-fg); 
  margin: 40px 0 0; 
  padding: 32px 20px 20px;
  border-top: 2px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 -8px 32px rgba(99, 102, 241, 0.1);
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.03), rgba(99, 102, 241, 0.03));
  pointer-events: none;
}

/* Toast notifications (moved from inline styles in main.js) */
.toast-notification-main{
  position: fixed;
  color: white;
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 6px 20px rgba(0,0,0,0.08);
  min-width: 320px; max-width: 420px; z-index: 999999;
  font-family: Arial, sans-serif; overflow: hidden; transition: transform 0.2s ease;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.toast-inner{ padding: 20px 24px; display:flex; align-items:flex-start; gap:16px; }
.toast-icon{ font-size:36px; line-height:1; animation: pulseNotif 2s ease-in-out infinite; }
.toast-body{ flex:1 }
.toast-title{ font-weight:800; font-size:17px; margin-bottom:6px; text-shadow:0 2px 4px rgba(0,0,0,0.1); }
.toast-message{ font-size:14px; opacity:.95; line-height:1.5 }
.toast-close-btn-main{ background: rgba(255,255,255,0.1); border:none; color:white; font-size:24px; cursor:pointer; padding:4px 8px; line-height:1; border-radius:8px; transition: all .3s ease; font-weight:300; width:32px; height:32px; display:flex; align-items:center; justify-content:center; }
.toast-close-btn-main:hover{ transform: rotate(90deg) scale(1.2); background: rgba(255,255,255,0.2); }
.toast-progress{ height:4px; background: rgba(255,255,255,0.2); margin-top:4px }
.toast-progress-bar{ height:100%; background: white; border-radius: 0 4px 4px 0; box-shadow: 0 0 10px rgba(255,255,255,0.5); }

/* Position helpers */
.pos-top-right{ top:20px; right:20px; }
.pos-top-center{ top:20px; left:50%; transform:translateX(-50%); }
.pos-top-left{ top:20px; left:20px; }
.pos-bottom-right{ bottom:20px; right:20px; }
.pos-bottom-center{ bottom:20px; left:50%; transform:translateX(-50%); }
.pos-bottom-left{ bottom:20px; left:20px; }

/* Type colors (mirrors gradients from main.js colors object) */
.toast-info{ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); box-shadow: 0 10px 40px rgba(102,126,234,0.25); }
.toast-success{ background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); box-shadow: 0 10px 40px rgba(56,239,125,0.2); }
.toast-warning{ background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); box-shadow: 0 10px 40px rgba(245,87,108,0.18); }
.toast-error{ background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); box-shadow: 0 10px 40px rgba(250,112,154,0.18); }

/* Animations */
@keyframes slideInBounceNotif { 0% { opacity:0; transform: translateY(-30px) scale(.9); } 50% { transform: translateY(5px) scale(1.02); } 100% { opacity:1; transform: translateY(0) scale(1); } }
@keyframes slideOutBounceNotif { 0% { opacity:1; transform: scale(1); } 100% { opacity:0; transform: scale(.9) translateY(-20px); } }
@keyframes progressBarNotif { from { width:100%; } to { width:0%; } }
@keyframes pulseNotif { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.toast-notification-main.show { animation: slideInBounceNotif .5s cubic-bezier(.68,-.55,.265,1.55); }
.toast-notification-main.exit { animation: slideOutBounceNotif .4s cubic-bezier(.68,-.55,.265,1.55); }

/* Admin / preview banners and helper classes */
.admin-banner{ position:fixed; top:0; left:0; right:0; background:linear-gradient(135deg,#667eea,#764ba2); color:#fff; padding:10px 15px; text-align:center; z-index:99998; font-size:13px; box-shadow:0 2px 12px rgba(0,0,0,0.3); font-weight:500; }
.admin-banner a.admin-link{ color: #fff; font-weight:700; text-decoration:underline; margin-left:10px; }
.preview-banner{ position:fixed; top:0; left:0; right:0; background:#ff9800; color:#fff; padding:10px; text-align:center; z-index:99999; font-weight:bold; box-shadow:0 2px 8px rgba(0,0,0,0.3); }
.with-banner{ margin-top:50px !important; }
.preview-img{ max-width:100px; max-height:100px; border-radius:8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); display:inline-block; }


.footer-grid{ 
  max-width: 1200px; 
  margin: 0 auto; 
  display: grid; 
  gap: 24px; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  position: relative;
  z-index: 1;
}
.footer-brand{ 
  display: flex; 
  align-items: center; 
  gap: 12px;
}
.footer-brand img{ 
  width: 48px; 
  height: 48px; 
  border-radius: 12px; 
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2),
              0 2px 6px rgba(139, 92, 246, 0.15);
  border: 2px solid rgba(139, 92, 246, 0.3);
  transition: transform 0.3s ease;
}
.footer-brand img:hover {
  transform: scale(1.1) rotate(5deg);
}
.footer-title{ 
  font-weight: 800; 
  font-size: 18px;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}
.footer-text{ 
  margin: 8px 0; 
  color: rgba(124, 58, 237, 0.8);
  font-size: 14px;
  line-height: 1.6;
}
.footer-links a{ 
  display: inline-block;
  color: var(--footer-fg); 
  font-size: 14px; 
  text-decoration: none; 
  padding: 8px 0;
  position: relative;
  transition: all 0.3s ease;
  font-weight: 500;
}
.footer-links a::before {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  transition: width 0.3s ease;
}
.footer-links a:hover{ 
  color: #7c3aed;
  padding-left: 8px;
}
.footer-links a:hover::before {
  width: calc(100% - 8px);
}
#f-whats{ display:none; }
#footer-provinces{ 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 4px 8px; 
  margin-top: 8px;
}
#footer-provinces a{ 
  display: block; 
  color: var(--footer-fg); 
  font-size: 14px; 
  text-decoration: none; 
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
#footer-provinces a:hover{ 
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(167, 139, 250, 0.9));
  color: #fff;
  transform: translateX(6px) scale(1.05);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  border-color: rgba(139, 92, 246, 0.6);
}
.social{ 
  display: flex; 
  gap: 14px; 
  flex-wrap: wrap; 
  margin-top: 16px;
}
.sbtn{ 
  width: 48px; 
  height: 48px; 
  border-radius: 50%; 
  display: none !important; 
  align-items: center; 
  justify-content: center; 
  background: rgba(255, 255, 255, 0.9);
  color: var(--social-fg); 
  border: 2px solid rgba(139, 92, 246, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none; 
  text-decoration: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
  position: relative;
  overflow: hidden;
}
.sbtn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(167, 139, 250, 0.3));
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}
.sbtn:hover::before {
  width: 100px;
  height: 100px;
}
.sbtn[data-active="true"]{ display: inline-flex !important; }
.sbtn:hover{ 
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3),
              0 4px 12px rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.6);
}
.sbtn:focus{ 
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.3);
}
.sbtn svg{ 
  width: 22px; 
  height: 22px; 
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}
.sbtn:hover svg {
  transform: scale(1.1) rotate(5deg);
}
.legal{ 
  max-width: 1200px; 
  margin: 0 auto; 
  border-top: 2px solid rgba(139, 92, 246, 0.2);
  padding-top: 24px; 
  font-size: 13px; 
  color: rgba(124, 58, 237, 0.7);
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  gap: 8px; 
  text-align: center;
  position: relative;
  z-index: 1;
}
.legal a{ 
  color: #7c3aed;
  text-decoration: none; 
  font-weight: 700;
  position: relative;
  transition: color 0.3s ease;
}
.legal a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.legal a:hover{ 
  color: #8b5cf6;
}
.legal a:hover::after {
  transform: scaleX(1);
}
body.dark { 
  --bg:#0f0f14; 
  --fg:#ededf0; 
  --card:#1a1a22; 
  --card-border:#34344a; 
  --muted:#a8a8b8; 
  --footer-bg:#16161e; 
  --footer-fg:#ededf0; 
  --footer-sub:#dadadd; 
  --footer-link:#8b8dfe; 
  --footer-divider:#2a2a3a; 
  --social-bg:#1a1a22; 
  --social-fg:#ededf0; 
  --social-border:#34344a; 
  --social-hover:#2a2a3a; 
  --social-focus:#8b8dfe;
  background: linear-gradient(135deg, #0b0b12 0%, #16161e 50%, #0f0f17 100%);
}
body.dark::before {
  background: radial-gradient(circle at 20% 50%, rgba(139, 141, 254, 0.08), transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1), transparent 50%),
              radial-gradient(circle at 50% 90%, rgba(129, 140, 248, 0.06), transparent 50%);
}
body.dark header { 
  background: rgba(22, 22, 30, 0.95); 
  border-bottom-color: rgba(139, 141, 254, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.9), 
              0 4px 16px rgba(99, 102, 241, 0.15),
              0 0 0 1px rgba(139, 141, 254, 0.08) inset;
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  backdrop-filter: saturate(140%) blur(20px);
}
body.dark header::before {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 141, 254, 0.04));
}
body.dark h1 { 
  background: linear-gradient(135deg, #ddd6fe 0%, #c7d2fe 50%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 3px 10px rgba(139, 141, 254, 0.5));
}
body.dark .subtitle{ 
  color: #ddd6fe; 
  background: rgba(26, 26, 34, 0.85);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5),
              0 2px 8px rgba(99, 102, 241, 0.2),
              0 0 0 1px rgba(139, 141, 254, 0.18) inset;
  border-color: rgba(139, 141, 254, 0.25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
body.dark .select, body.dark .search { 
  background: rgba(26, 26, 34, 0.92); 
  border-color: rgba(139, 141, 254, 0.28); 
  color: #ededf0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4),
              0 2px 8px rgba(99, 102, 241, 0.12),
              0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
body.dark .select:hover, body.dark .search:hover {
  border-color: rgba(139, 141, 254, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5),
              0 4px 12px rgba(99, 102, 241, 0.2),
              0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  background: rgba(30, 30, 40, 0.95);
}
body.dark .select:focus, body.dark .search:focus {
  border-color: rgba(139, 141, 254, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5),
              0 4px 12px rgba(99, 102, 241, 0.25),
              0 0 0 4px rgba(139, 141, 254, 0.18);
}

body.dark select.select option {
  background: #18181b;
  color: #e4e4e7;
}
body.dark .player { 
  background: rgba(26, 26, 34, 0.96);
  border-color: rgba(139, 141, 254, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9),
              0 8px 24px rgba(99, 102, 241, 0.15),
              0 0 0 1px rgba(139, 141, 254, 0.08) inset;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
body.dark .player::before {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 141, 254, 0.04));
}
body.dark .player:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 1),
              0 12px 32px rgba(99, 102, 241, 0.2),
              0 0 0 1px rgba(139, 141, 254, 0.12) inset;
  border-color: rgba(139, 141, 254, 0.4);
}
body.dark .radio-logo img {
  border-color: rgba(139, 141, 254, 0.3);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25),
              0 4px 12px rgba(139, 141, 254, 0.2);
}
body.dark .now,
body.dark .footer-title {
  background: linear-gradient(135deg, #e0e7ff, #ddd6fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 10px rgba(139, 141, 254, 0.4));
}
body.dark .help {
  color: rgba(221, 214, 254, 0.8);
}
body.dark audio {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  filter: brightness(0.92) contrast(1.08);
}
body.dark audio:focus {
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35),
              0 0 0 3px rgba(139, 141, 254, 0.25);
}
body.dark footer {
  background: rgba(22, 22, 30, 0.96);
  border-top-color: rgba(139, 141, 254, 0.18);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
body.dark footer::before {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(139, 141, 254, 0.04));
}
body.dark .footer-text {
  color: rgba(218, 218, 221, 0.85);
}
body.dark .footer-links a {
  color: rgba(237, 237, 240, 0.88);
}
body.dark .footer-links a:hover {
  color: #ddd6fe;
}
body.dark .footer-links a::before {
  background: linear-gradient(90deg, #6366f1, #8b8dfe);
}
body.dark #footer-provinces a {
  background: rgba(26, 26, 34, 0.85);
  border-color: rgba(139, 141, 254, 0.22);
  color: rgba(237, 237, 240, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
body.dark #footer-provinces a:hover {
  background: rgba(99, 102, 241, 0.18);
  color: #e0e7ff;
  border-color: rgba(139, 141, 254, 0.4);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}
body.dark .sbtn {
  background: rgba(26, 26, 34, 0.92);
  border-color: rgba(139, 141, 254, 0.28);
  color: rgba(237, 237, 240, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
body.dark .sbtn:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(139, 141, 254, 0.45);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35),
              0 4px 12px rgba(139, 141, 254, 0.25);
}
body.dark .legal {
  color: rgba(218, 218, 221, 0.75);
  border-top-color: rgba(139, 141, 254, 0.18);
}
body.dark .legal a {
  color: #b5bcfe;
}
body.dark .legal a:hover {
  color: #ddd6fe;
}
body.dark .legal a::after {
  background: linear-gradient(90deg, #6366f1, #8b8dfe);
}
body.dark .card { 
  background: rgba(26, 26, 34, 0.85);
  border-color: rgba(139, 141, 254, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
body.dark .card:hover { 
  background: rgba(30, 30, 40, 0.95);
  border-color: rgba(139, 141, 254, 0.3);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}
body.dark .card.active { 
  background: rgba(99, 102, 241, 0.15);
  border-color: #8b8dfe;
  box-shadow: 0 0 0 2px #8b8dfe, 0 12px 24px rgba(99, 102, 241, 0.3);
}
body.dark .card p {
  color: rgba(237, 237, 240, 0.96);
}

.toggle-btn {
  position: fixed;
  right: 16px;
  bottom: 48px;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,123,255,.25);
  z-index: 1000;
  transition: background .2s, box-shadow .2s;
}
@media (min-width:1024px){ .player{ max-width: 560px; } .player-inner{ grid-template-columns: 84px 1fr; } .radio-logo img{ width:84px; height:84px; } }
@media (max-width:480px){ .player-inner{ grid-template-columns: 72px 1fr; } .radio-logo img{ width:72px; height:72px; } .card img{ width:120px; height:120px; } }

/* Media Queries para Footer Responsive */
@media (max-width: 768px) {
  footer {
    padding: 20px 14px 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .footer-brand {
    justify-content: center;
  }
  .footer-title {
    text-align: center;
    font-size: 16px;
  }
  .footer-text {
    text-align: center;
    font-size: 13px;
  }
  .footer-links {
    text-align: center;
  }
  .footer-links a {
    display: block;
    padding: 10px 0;
  }
  #footer-provinces {
    grid-template-columns: repeat(2, 1fr);
    gap: 3px 6px;
  }
  #footer-provinces a {
    padding: 8px 6px;
    font-size: 13px;
    text-align: center;
  }
  .social {
    justify-content: center;
  }
  .legal {
    font-size: 12px;
    padding-top: 20px;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 16px 10px 12px;
  }
  .footer-grid {
    gap: 16px;
  }
  .footer-brand img {
    width: 40px;
    height: 40px;
  }
  .footer-title {
    font-size: 15px;
  }
  .footer-text {
    font-size: 12px;
  }
  #footer-provinces {
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
  }
  #footer-provinces a {
    padding: 6px 4px;
    font-size: 12px;
  }
  .sbtn {
    width: 44px;
    height: 44px;
  }
  .sbtn svg {
    width: 20px;
    height: 20px;
  }
  .legal {
    font-size: 11px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  #footer-provinces {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Corregir visibilidad del texto del banner PWA en modo oscuro */
body.dark #pwaMsg { color: #fff !important; text-shadow: 0 1px 2px #0003; }
