/* ══════════════════════════════════════════════
   RADIO DELFOS — STYLES
   ══════════════════════════════════════════════ */

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

:root {
  --bg-main: #000000;
  --bg-surface: #121212;
  --bg-surface-hover: #1e1e1e;
  --accent: #a78bfa; /* Morado más luminoso para mejor contraste */
  --accent-hover: #c4b5fd;
  --accent-dim: rgba(167, 139, 250, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ── HEADER ── */
header {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-container {
  max-width: 1300px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo como imagen */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  width: 113px;
  height: auto;
  display: block;
}

nav {
  display: flex;
  gap: 32px;
}
nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}
nav a:hover {
  color: var(--accent);
}

/* ── WRAPPER GENERAL ── */
.wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ── TRES COLUMNAS SIMÉTRICAS ── */
.hero {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
  align-items: stretch;
}

/* CARDS DEL HERO */
.hero-card {
  background: var(--bg-surface);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* SECCIÓN ADS */
.ad-col {
  position: relative;
}
.ad-slide {
  display: none;
  width: 100%;
}
.ad-slide.active {
  display: block;
}
.ad-slide a {
  display: block;
  width: 100%;
}
.ad-col img {
  width: 100%;
  height: auto;
  display: block;
}

.ad-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.ad-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
}
.ad-dot.active {
  background: var(--accent);
  width: 16px;
  border-radius: 3px;
}

/* REPRODUCTOR CENTRAL */
.hero-mid {
  background: linear-gradient(135deg, #1a1a1a 0%, #050505 100%);
  padding: 30px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.4);
    opacity: 1;
  }
}

.hero-name {
  font-size: 2rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.03em;
}
.hero-name em {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

/* CONTENEDOR PORTADA DINÁMICA */
.hero-cover-wrapper {
  width: 160px;
  height: 160px;
  background: #1e1e1e;
  border-radius: 6px;
  margin: 20px 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2.5rem;
}
.hero-cover-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* BOTÓN DE PLAY CENTRAL */
.hbtn-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.hero-orbit {
  position: absolute;
  inset: 0;
  border: 5px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 3s linear infinite;
}
.hbtn-wrap.playing .hero-orbit {
  border-top-color: #0df4a7;
  animation-duration: 1.5s;
}

.hero-play-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  color: #ffffff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition:
    transform 0.2s,
    background 0.3s;
}
.hero-play-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}
.hero-play-btn i {
  margin-left: 4px;
}
.hero-play-btn.stop-mode i {
  margin-left: 0;
}

.hero-np {
  text-align: center;
  width: 100%;
  min-height: 50px;
}
.hero-np-song {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-np-artist {
  font-size: 0.9rem;
  color: var(--accent);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── MOTIVO ANDINO SUAVE ── */
.andean-motif {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 50px 0 20px 0;
  opacity: 0.3;
}
.andean-motif span {
  display: block;
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--text-muted), transparent);
}
.andean-motif i {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ══════════════════════════════════════════════
   SECCIÓN PROGRAMAS — SIN HOVER
   ══════════════════════════════════════════════ */
.programs {
  padding: 20px 0 60px 0;
}
.section-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 24px;
  text-align: center;
}

.prog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.prog-card {
  background: var(--bg-surface);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 280px;
  margin: 0 auto;
  width: 100%;
}
/* Sin efecto hover en tarjetas */

/* Miniaturas cuadradas más compactas */
.prog-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #1e1e1e;
  overflow: hidden;
}
.prog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prog-info {
  padding: 12px 14px;
}
.prog-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}
.prog-sched {
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 4px;
  font-weight: 600;
}

/* ══════════════════════════════════════════════
   SECCIÓN GRUPO FENCIL (sobre el footer)
   ══════════════════════════════════════════════ */
.grupo-fencil {
  padding: 40px 0;
 background: var(--bg-surface);
}
.grupo-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}
.grupo-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  flex-wrap: wrap;
}
.grupo-logos a{
  text-decoration: none;
}
.grupo-logos img {
  width: auto;
  height: 66px;
  opacity: 0.8;
  border-radius: 7px;
}
.grupo-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
footer {
  background: var(--bg-surface);
  padding: 30px 0 160px 0;
  width: 100%;
  margin-top: auto;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo-img {
  width: 113px;
  height: auto;
  display: block;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  background: #1e1e1e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.3s;
}
.footer-social a:hover {
  background: var(--accent);
}
.footer-bottom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════
   REPRODUCTOR FLOTANTE INFERIOR
   ══════════════════════════════════════════════ */
#player {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 1270px;
  margin: 0 auto;
  height: 84px;
  background: rgba(18, 18, 18, 0.50);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 24px;
  z-index: 200;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.viz {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  flex-shrink: 0;
}
.vb {
  width: 3px;
  background: var(--accent);
  min-height: 2px;
  height: 2px;
  border-radius: 10px;
}
.vb.on {
  animation: vb var(--s, 0.8s) ease-in-out infinite alternate;
}
@keyframes vb {
  from {
    height: var(--a, 2px);
  }
  to {
    height: var(--b, 22px);
  }
}

.p-info {
  flex: 1;
  min-width: 0;
}
.p-song {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-art {
  font-size: 0.88rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pbtn-wrap {
  position: relative;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-orbit {
  position: absolute;
  inset: 0;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 3s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.pbtn {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  cursor: pointer;
  color: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.2s;
}
.pbtn:hover {
  transform: scale(1.05);
}
.pbtn i {
  margin-left: 2px;
}
.pbtn.loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid #e4e4e7;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.vol {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
input[type="range"] {
  -webkit-appearance: none;
  width: 80px;
  height: 4px;
  background: #3f3f46;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.15);
  padding: 6px 12px;
  color: #ffa3a3;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ══════════════════════════════════════════════
   MEDIA QUERIES
   ══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .prog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .prog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  header nav {
    display: none;
  }
  .vol,
  .live-badge {
    display: none !important;
  }
  #player {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 0 16px;
    gap: 16px;
  }
  .grupo-logos {
    gap: 13px;
  }
  .grupo-logos img {
    height: 50px;
  }
}

@media (max-width: 380px) {
  .prog-grid {
    grid-template-columns: 1fr;
  }
}
