:root {
  --black:   #080808;
  --dark:    #101010;
  --card:    #141414;
  --card2:   #1a1a1a;
  --border:  #252525;
  --border2: #2e2e2e;
  --gray:    #888;
  --lgray:   #ccc;
  --red:     #e8230a;
  --orange:  #ff6b00;
  --yellow:  #ffd600;
  --white:   #ffffff;
}

*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  animation: slideInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInRight {
  0%   { transform: translateX(80px); opacity: 0; }
  100% { transform: translateX(0);    opacity: 1; }
}

body.slide-back {
  animation: slideOutRight 0.46s cubic-bezier(0.55, 0, 1, 0.45) forwards;
  pointer-events: none;
}
@keyframes slideOutRight {
  0%   { transform: translateX(0);    opacity: 1; }
  100% { transform: translateX(80px); opacity: 0; }
}

a { text-decoration: none; }

.bg-image {
  position: fixed;
  inset: 0;
  background: url('fondo.jpg') center/cover no-repeat;
  filter: blur(12px) brightness(0.25);
  z-index: -1;
  transform: scale(1.05); 
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
}
.bg-glow-1 {
  width: 600px; height: 600px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, rgba(232,35,10,0.12), transparent 70%);
  animation: glowDrift1 12s ease-in-out infinite;
}
.bg-glow-2 {
  width: 500px; height: 500px;
  bottom: -150px; right: -150px;
  background: radial-gradient(circle, rgba(255,214,0,0.08), transparent 70%);
  animation: glowDrift2 15s ease-in-out infinite;
}

@keyframes glowDrift1 {
  0%, 100% { transform: translate(0,0); }
  50%       { transform: translate(60px, 40px); }
}
@keyframes glowDrift2 {
  0%, 100% { transform: translate(0,0); }
  50%       { transform: translate(-50px, -30px); }
}

.btn-volver {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20,20,20,0.85);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--lgray);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-volver svg { width: 16px; height: 16px; }
.btn-volver:hover {
  color: var(--white);
  border-color: var(--red);
  background: rgba(232,35,10,0.12);
  transform: translateX(-3px);
}

.envivo-main {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 32px 60px;
}

/* ── HEADER CON LOGO CENTRADO ── */
.ev-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.ev-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2; /* Para que quede por encima del centro si se tocan */
}
.ev-logo {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 0 16px rgba(232,35,10,0.45));
}
.ev-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.ev-fm {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}
.ev-name {
  font-family: 'Bebas Neue', cursive;
  font-size: 38px;
  letter-spacing: 0.06em;
  color: var(--white);
}
.ev-freq {
  font-family: 'Bebas Neue', cursive;
  font-size: 22px;
  color: var(--yellow);
  letter-spacing: 0.06em;
}

/* ── LOGO DE ROCK&POP ── */
.ev-header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 110px; /* <--- AUMENTADO (antes era 55px) */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.ev-center-logo {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.1));
}

.ev-live-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  padding: 10px 24px;
  border-radius: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  z-index: 2;
}
.ev-live-dot {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  display: block;
  animation: blink 1.2s ease-in-out infinite;
}

.ev-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.ev-col-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ev-video-card {
  background: rgba(20,20,20,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.ev-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ev-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.ev-video-loader {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #555;
  text-transform: uppercase;
}

.ev-video-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(10,10,10,0.6);
  border-top: 1px solid var(--border);
}
.ev-video-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.ev-on-dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 1.2s ease-in-out infinite;
}
.ev-on-label { color: var(--red); text-transform: uppercase; font-size: 11px; letter-spacing: 0.15em; }

.ev-video-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ev-signal {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}
.sig-bar {
  width: 3px;
  background: #555;
  border-radius: 1px;
  animation: sigPulse 1.8s ease-in-out infinite;
}
.s1 { height: 5px;  animation-delay: 0s; }
.s2 { height: 8px;  animation-delay: 0.15s; }
.s3 { height: 11px; animation-delay: 0.3s; }
.s4 { height: 15px; animation-delay: 0.45s; }

@keyframes sigPulse {
  0%, 100% { background: #555; }
  50%       { background: #00cc55; }
}

.ev-quality {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #888;
  background: rgba(20,20,20,0.6);
  border: 1px solid #333;
  padding: 2px 6px;
  border-radius: 3px;
}

.ev-col-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ev-audio-card, .ev-clima-card, .ev-social-card {
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.ev-audio-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ev-audio-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ev-audio-icon { font-size: 32px; }
.ev-audio-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
}
.ev-audio-sub { font-size: 12px; color: var(--gray); margin-top: 2px; }

.ev-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 40px;
  opacity: 0.2;
  transition: opacity 0.5s;
}
.ev-waveform.active { opacity: 1; }
.ev-waveform .bar {
  flex: 1;
  border-radius: 2px;
  animation: waveAnim 1s ease-in-out infinite;
}
@keyframes waveAnim {
  0%, 100% { transform: scaleY(0.4); }
  50%       { transform: scaleY(var(--h, 2)); }
}

.ev-play-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(30,30,30,0.7);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 14px 18px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  width: 100%;
  text-align: left;
}
.ev-play-btn:hover {
  border-color: #555;
  background: rgba(40,40,40,0.8);
  transform: translateY(-1px);
}
.ev-play-btn.playing {
  border-color: var(--red);
  background: rgba(232,35,10,0.1);
}

.ev-play-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 0 20px rgba(255,214,0,0.25);
}
.ev-play-btn.playing .ev-play-circle {
  background: var(--red);
  box-shadow: 0 0 20px rgba(232,35,10,0.35);
}
.ev-play-btn:hover .ev-play-circle { transform: scale(1.06); }
.play-icon { width: 22px; height: 22px; color: var(--black); }
.ev-play-btn.playing .play-icon { color: #fff; }

.ev-play-labels { display: flex; flex-direction: column; gap: 3px; }
.ev-play-main {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.ev-play-sub { font-size: 12px; color: var(--gray); }

.ev-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ev-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.3s;
}
.ev-status-dot.idle       { background: #555; }
.ev-status-dot.connecting { background: var(--yellow); animation: blink 0.6s ease-in-out infinite; }
.ev-status-dot.playing    { background: #00cc55;        animation: blink 2s ease-in-out infinite; }
.ev-status-dot.error      { background: var(--red); }

.ev-status-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gray);
}

.ev-clima-card {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ev-clima-icon { font-size: 32px; flex-shrink: 0; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.ev-clima-info { flex: 1; }
.ev-clima-temp {
  font-family: 'Bebas Neue', cursive;
  font-size: 28px;
  letter-spacing: 0.05em;
  color: var(--yellow);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.ev-clima-desc { font-size: 12px; color: #bbb; margin-top: 2px; }
.ev-clima-right { text-align: right; }
.ev-reloj {
  font-family: 'Bebas Neue', cursive;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--white);
  animation: clockPulse 1s ease-in-out infinite;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
@keyframes clockPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}
.ev-fecha {
  font-size: 10px;
  color: #bbb;
  text-transform: capitalize;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.ev-social-card {
  padding: 18px 20px;
}
.ev-social-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 12px;
}
.ev-social-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ev-soc-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(30,30,30,0.6);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}
.ev-soc-btn svg { width: 16px; height: 16px; }
.ev-soc-btn:hover              { transform: translateY(-3px); }
.ev-soc-btn.instagram:hover    { color: #e1306c; border-color: #e1306c; background: rgba(225,48,108,0.15); }
.ev-soc-btn.facebook:hover     { color: #1877f2; border-color: #1877f2; background: rgba(24,119,242,0.15); }
.ev-soc-btn.tiktok:hover       { color: #69c9d0; border-color: #69c9d0; background: rgba(105,201,208,0.15); }
.ev-soc-btn.youtube:hover      { color: #ff0000; border-color: #ff0000; background: rgba(255,0,0,0.15); }
.ev-soc-btn.whatsapp:hover     { color: #25d366; border-color: #25d366; background: rgba(37,211,102,0.15); }

@media (max-width: 1024px) {
  .ev-grid {
    grid-template-columns: 1fr;
  }
  .ev-col-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .ev-audio-card { grid-column: span 2; }
}

@media (max-width: 768px) {
  /* Si la pantalla es chica, apilamos el logo central para que no se choque con los botones */
  .ev-header {
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding-top: 20px;
  }
  .ev-header-center {
    position: relative;
    left: auto;
    transform: none;
    order: -1; /* Lo pone arriba de todo en móviles */
    margin-bottom: 10px;
    height: 90px; /* <--- AUMENTADO TAMBIÉN EN MÓVILES */
  }
}

@media (max-width: 680px) {
  .envivo-main { padding: 72px 16px 40px; }
  .ev-col-side { grid-template-columns: 1fr; }
  .ev-audio-card { grid-column: span 1; }
  .ev-name { font-size: 28px; }
  .ev-freq { font-size: 18px; }
}