/*
Theme Name: Radioconectividad
Theme URI: https://radioconectividad.com.ar
Author: Radioconectividad
Description: Tema en construcción con reproductor de radio en vivo.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: radioconectividad
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --verde: #4caf50;
  --verde-dark: #388e3c;
  --gris-logo: #888;
  --negro: #0e0e0e;
  --negro-medio: #141414;
  --negro-panel: #1a1a1a;
  --texto: #fff;
  --texto-suave: #aaa;
  --borde: rgba(76,175,80,0.2);
}

html, body {
  height: 100%;
  background: var(--negro);
  color: var(--texto);
  font-family: 'Barlow', sans-serif;
  overflow-x: hidden;
}

/* ── LAYOUT ── */
.rc-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
.rc-header {
  width: 100%;
  padding: 28px 40px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.rc-header img {
  height: 36px;
  width: auto;
  display: block;
}

/* ── HERO ── */
.rc-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 120px;
  position: relative;
  overflow: hidden;
}

/* barras de fondo */
#rch-bars {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 90px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  opacity: 0.12;
  pointer-events: none;
  transition: opacity 0.8s;
}
#rch-bars span {
  flex: 1;
  background: var(--verde);
  border-radius: 2px 2px 0 0;
  transition: height 0.3s ease;
}

.rc-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
  max-width: 680px;
  width: 100%;
}

/* badge EN VIVO */
.rc-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(76,175,80,0.08);
  border: 1px solid rgba(76,175,80,0.3);
  padding: 5px 16px;
  border-radius: 20px;
}
.rc-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #444;
  display: block;
  transition: background 0.3s;
  flex-shrink: 0;
}
.rc-badge-dot.live {
  background: var(--verde);
  animation: rc-pulse 1.4s infinite;
}
@keyframes rc-pulse { 0%,100%{opacity:1} 50%{opacity:0.25} }
.rc-badge-txt {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--verde);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* subtítulo estación */
.rc-station {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--verde);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  text-align: center;
}

/* título canción */
.rc-song {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: #fff;
  text-align: center;
  letter-spacing: 0.5px;
  line-height: 1.1;
  min-height: 44px;
}

/* botón play */
.rc-play-outer {
  width: 82px; height: 82px;
  border-radius: 50%;
  border: 2px solid rgba(76,175,80,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  transition: border-color 0.2s;
  cursor: pointer;
}
.rc-play-outer:hover { border-color: var(--verde); }

#rch-play-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--verde);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
  flex-shrink: 0;
}
#rch-play-btn:hover { transform: scale(1.07); background: var(--verde-dark); }
#rch-play-btn svg { width: 26px; height: 26px; fill: #111; display: block; pointer-events: none; }

#rch-loader {
  width: 22px; height: 22px;
  border: 2px solid #333;
  border-top-color: var(--verde);
  border-radius: 50%;
  animation: rc-spin 0.7s linear infinite;
  display: none;
}
@keyframes rc-spin { to { transform: rotate(360deg); } }

.rc-hint {
  font-size: 11px;
  color: #444;
  letter-spacing: 0.5px;
  font-family: 'Barlow', sans-serif;
}

/* en construcción */
.rc-construccion {
  text-align: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
  width: 100%;
}
.rc-construccion p {
  font-size: 13px;
  color: #333;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Barlow Condensed', sans-serif;
}
.rc-construccion span {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  color: #2a2a2a;
}

/* ── PROGRAMACIÓN (slider) ── */
.rc-programacion {
  width: 100%;
  padding: 24px 0 60px;
}
.rc-programacion .rc-station {
  margin: 0 0 48px;
  padding: 0 24px;
}

.rc-programacion-grid {
  width: 100%;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 24px;
  -webkit-overflow-scrolling: touch;
  padding: 4px 24px 16px;
  justify-content: safe center;
}
.rc-programacion-grid::-webkit-scrollbar { height: 6px; }
.rc-programacion-grid::-webkit-scrollbar-track { background: transparent; }
.rc-programacion-grid::-webkit-scrollbar-thumb { background: var(--borde); border-radius: 3px; }

.rc-programa-card {
  scroll-snap-align: center;
  flex: 0 0 260px;
  background: var(--negro-panel);
  border: 1px solid var(--borde);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.rc-programa-card:hover {
  border-color: var(--verde);
  transform: translateY(-3px);
}

.rc-programa-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--negro-medio);
}
.rc-programa-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rc-programa-info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rc-programa-nombre {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

.rc-programa-horario {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--verde);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.rc-programa-link {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #111;
  background: var(--verde);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 7px 14px;
  border-radius: 20px;
  width: fit-content;
  transition: background 0.15s, transform 0.15s;
}
.rc-programa-link:hover {
  background: var(--verde-dark);
  transform: scale(1.04);
}

@media (max-width: 600px) {
  .rc-programacion-grid { padding: 4px 16px 16px; gap: 14px; }
  .rc-programa-card { flex-basis: 200px; }
  .rc-programa-nombre { font-size: 16px; }
}

@media (max-width: 600px) {
  .rc-header { padding: 20px 24px; }
  .rc-header img { height: 28px; }
  .rc-song { font-size: 24px; }
  .rc-hero { padding: 40px 20px 100px; }
}