/* ===== Fondo de ondas animadas ===== */
.background-waves {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
}

.wave {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  border-radius: 40%;
  animation: waveAnimation 8s ease-in-out infinite;
}

.wave:nth-child(1) {
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation-delay: 0s;
}

.wave:nth-child(2) {
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  animation-delay: -2s;
}

.wave:nth-child(3) {
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  animation-delay: -4s;
}

@keyframes waveAnimation {
  0%, 100% { 
    transform: scale(1) rotate(0deg); 
  }
  50% { 
    transform: scale(1.2) rotate(180deg); 
  }
}

/* ===== Contenedor principal ===== */
.radio-main-section {
  width: 100%;
  max-width: 100%;
  padding: 60px 20px;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  box-sizing: border-box;
}

.radio-player-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  box-sizing: border-box;
}

/* ===== Columna del reproductor ===== */
.player-column {
  display: flex;
  justify-content: center;
  align-items: start;
}

.player-container {
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 40px 30px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.player-container:hover {
  transform: translateY(-5px);
}

/* ===== Logo con ondas circulares ===== */
.logo-container {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sound-wave-circle {
  position: absolute;
  width: 180px;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wave-ring {
  position: absolute;
  border: 2px solid #667eea;
  border-radius: 50%;
  opacity: 0;
}

.wave-ring:nth-child(1) {
  width: 100%;
  height: 100%;
  animation: ripple 2s ease-out infinite;
}

.wave-ring:nth-child(2) {
  width: 100%;
  height: 100%;
  animation: ripple 2s ease-out 0.5s infinite;
}

.wave-ring:nth-child(3) {
  width: 100%;
  height: 100%;
  animation: ripple 2s ease-out 1s infinite;
}

@keyframes ripple {
  0% {
    width: 100%;
    height: 100%;
    opacity: 1;
  }
  100% {
    width: 200%;
    height: 200%;
    opacity: 0;
  }
}

.logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #667eea;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.logo.playing {
  animation: rotate 20s linear infinite;
  border-color: #7e22ce;
  box-shadow: 0 10px 40px rgba(126, 34, 206, 0.6);
}

@keyframes rotate {
  from { 
    transform: rotate(0deg); 
  }
  to { 
    transform: rotate(360deg); 
  }
}

/* ===== Información del reproductor ===== */
.player-info {
  text-align: center;
  margin-bottom: 25px;
}

.player-info h2 {
  color: #2d3748;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
  animation: liveGlow 2s ease-in-out infinite;
}

@keyframes liveGlow {
  0%, 100% { 
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4); 
  }
  50% { 
    box-shadow: 0 6px 25px rgba(245, 87, 108, 0.7); 
  }
}

.live-dot {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { 
    opacity: 1; 
  }
  50% { 
    opacity: 0.3; 
  }
}

/* ===== Canvas de ondas sonoras ===== */
.canvas-container {
  width: 100%;
  height: 120px;
  margin: 20px 0;
  background: linear-gradient(to bottom, rgba(102, 126, 234, 0.05), rgba(126, 34, 206, 0.05));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
}

#waveCanvas {
  width: 100%;
  height: 100%;
}

/* ===== Controles ===== */
.controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.play-button-container {
  display: flex;
  justify-content: center;
}

.play-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.play-button::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: -1;
  transition: all 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.7);
}

.play-button:hover::before {
  transform: scale(1.2);
  opacity: 0.5;
}

.play-button:active {
  transform: scale(0.95);
}

.play-button.loading {
  pointer-events: none;
  opacity: 0.8;
}

/* ===== Control de volumen ===== */
.volume-control {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(126, 34, 206, 0.05));
  border-radius: 15px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.volume-icon {
  color: #667eea;
  font-size: 22px;
  min-width: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.volume-icon:hover {
  color: #764ba2;
  transform: scale(1.1);
}

.volume-slider {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, 
    #667eea 0%, 
    #667eea var(--volume-percent), 
    #e2e8f0 var(--volume-percent), 
    #e2e8f0 100%);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.5);
  transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.7);
}

.volume-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  cursor: pointer;
  border: none;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.5);
}

.volume-percentage {
  min-width: 40px;
  text-align: right;
  color: #667eea;
  font-weight: 700;
  font-size: 14px;
}

/* ===== Mensaje de estado ===== */
.status-message {
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.status-message.show {
  opacity: 1;
}

.status-message.error {
  background: linear-gradient(135deg, #fed7d7, #fecaca);
  color: #c53030;
}

.status-message.info {
  background: linear-gradient(135deg, #bee3f8, #90cdf4);
  color: #2c5282;
}

/* ===== Columna Nosotros ===== */
.about-column {
  display: flex;
  align-items: start;
  justify-content: center;
}

.about-container {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 40px 35px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 550px;
  box-sizing: border-box;
}

.about-container:hover {
  transform: translateY(-5px);
}

.about-logo {
  text-align: center;
  margin-bottom: 30px;
}

.about-logo img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #667eea;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

.about-logo img:hover {
  transform: scale(1.05);
  border-color: #764ba2;
  box-shadow: 0 15px 40px rgba(126, 34, 206, 0.6);
}

.about-content h2 {
  color: #2d3748;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-content h3 {
  color: #4a5568;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

.location {
  text-align: center;
  color: #667eea;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.location i {
  font-size: 18px;
}

.about-text {
  margin-bottom: 30px;
  line-height: 1.8;
}

.about-text p {
  color: #4a5568;
  font-size: 15px;
  margin-bottom: 15px;
  text-align: justify;
}

.about-text strong {
  color: #667eea;
  font-weight: 700;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.feature-item {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(126, 34, 206, 0.05));
  padding: 15px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.feature-item i {
  color: #667eea;
  font-size: 20px;
  min-width: 24px;
}

.feature-item span {
  color: #4a5568;
  font-size: 14px;
  font-weight: 600;
}

/* ===== Responsive Design ===== */

/* Tablets grandes y pantallas medianas */
@media (max-width: 1024px) {
  .radio-player-wrapper {
    max-width: 900px;
    gap: 35px;
  }
  
  .player-container,
  .about-container {
    max-width: 450px;
    padding: 35px 25px;
  }
  
  .logo {
    width: 150px;
    height: 150px;
  }
  
  .sound-wave-circle {
    width: 170px;
    height: 170px;
  }
  
  .about-logo img {
    width: 130px;
    height: 130px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .radio-main-section {
    padding: 50px 20px;
  }
  
  .radio-player-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 600px;
  }
  
  .player-column,
  .about-column {
    justify-content: center;
  }
  
  .player-container,
  .about-container {
    max-width: 100%;
  }
  
  .canvas-container {
    height: 110px;
  }
  
  .about-content h2 {
    font-size: 28px;
  }
  
  .about-content h3 {
    font-size: 20px;
  }
}

/* Móviles grandes */
@media (max-width: 576px) {
  .radio-main-section {
    padding: 40px 10px;
  }
  
  .radio-player-wrapper {
    gap: 30px;
  }
  
  .player-container,
  .about-container {
    padding: 25px 15px;
    border-radius: 25px;
    margin: 0;
    width: 100%;
  }
  
  .logo {
    width: 130px;
    height: 130px;
    border-width: 4px;
  }
  
  .sound-wave-circle {
    width: 150px;
    height: 150px;
  }
  
  .player-info h2 {
    font-size: 20px;
  }
  
  .live-indicator {
    padding: 7px 14px;
    font-size: 11px;
  }
  
  .live-dot {
    width: 8px;
    height: 8px;
  }
  
  .play-button {
    width: 68px;
    height: 68px;
    font-size: 25px;
  }
  
  .canvas-container {
    height: 100px;
    margin: 15px 0;
  }
  
  .volume-control {
    padding: 14px 12px;
    gap: 10px;
  }
  
  .volume-icon {
    font-size: 20px;
  }
  
  .volume-percentage {
    font-size: 13px;
    min-width: 35px;
  }
  
  .about-logo img {
    width: 110px;
    height: 110px;
  }
  
  .about-content h2 {
    font-size: 24px;
  }
  
  .about-content h3 {
    font-size: 18px;
  }
  
  .location {
    font-size: 14px;
  }
  
  .about-text p {
    font-size: 14px;
  }
  
  .about-features {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .feature-item {
    padding: 12px;
  }
  
  .feature-item i {
    font-size: 18px;
  }
  
  .feature-item span {
    font-size: 13px;
  }
}

/* Móviles pequeños */
@media (max-width: 400px) {
  .radio-main-section {
    padding: 30px 8px;
  }
  
  .radio-player-wrapper {
    gap: 25px;
  }
  
  .player-container,
  .about-container {
    padding: 20px 12px;
    border-radius: 20px;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .logo {
    width: 110px;
    height: 110px;
  }
  
  .sound-wave-circle {
    width: 130px;
    height: 130px;
  }
  
  .player-info h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .live-indicator {
    padding: 6px 10px;
    font-size: 10px;
    letter-spacing: 0.5px;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
    font-size: 22px;
  }
  
  .canvas-container {
    height: 85px;
    margin: 12px 0;
  }
  
  .volume-control {
    padding: 10px 8px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  
  .volume-icon {
    font-size: 18px;
    min-width: 18px;
  }
  
  .volume-slider {
    height: 6px;
    min-width: 0;
    flex: 1;
  }
  
  .volume-slider::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
  }
  
  .volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
  }
  
  .volume-percentage {
    font-size: 11px;
    min-width: 30px;
  }
  
  .status-message {
    font-size: 11px;
    padding: 8px 6px;
  }
  
  .about-logo {
    margin-bottom: 18px;
  }
  
  .about-logo img {
    width: 95px;
    height: 95px;
    border-width: 3px;
  }
  
  .about-content h2 {
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  .about-content h3 {
    font-size: 15px;
    margin-bottom: 10px;
  }
  
  .location {
    font-size: 12px;
    margin-bottom: 18px;
  }
  
  .location i {
    font-size: 13px;
  }
  
  .about-text {
    margin-bottom: 18px;
  }
  
  .about-text p {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 10px;
  }
  
  .about-features {
    gap: 10px;
  }
  
  .feature-item {
    padding: 10px;
  }
  
  .feature-item i {
    font-size: 15px;
    min-width: 18px;
  }
  
  .feature-item span {
    font-size: 11px;
  }
}