:root {
  --spotify-green: #1DB954;
  --spotify-dark: #191414;
  --youtube-red: #FF0000;
}

body {
  background: #f8f9fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero section styles */
.hero-section {
  background: linear-gradient(135deg, var(--spotify-dark) 0%, #2d2d2d 100%);
  color: white;
  padding: 5rem 0;
  margin-bottom: 3rem;
  border-radius: 0 0 25px 25px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hero-title {
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Form card styles */
.form-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 3rem;
  padding: 2rem;
  border: none;
  position: relative;
}

.form-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* Input and button styles */
.custom-input {
  border: 2px solid #e9ecef;
  padding: 1rem;
  font-size: 1.1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.custom-input:focus {
  border-color: var(--spotify-green);
  box-shadow: 0 0 0 0.2rem rgba(29, 185, 84, 0.25);
}

.btn-spotify {
  background-color: var(--spotify-green);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-spotify:hover {
  background-color: #169c45;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(29, 185, 84, 0.4);
}

/* Features section */
.features-section {
  padding: 3rem 0;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-card {
  padding: 1.5rem;
  border-radius: 12px;
  background: #f8f9fa;
  height: 100%;
  transition: all 0.3s ease;
  border: none;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(29, 185, 84, 0.1);
  color: var(--spotify-green);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.how-it-works-step {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--spotify-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Footer styles */
footer {
  background: var(--spotify-dark);
  color: white;
  padding: 2rem 0;
  margin-top: auto;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--spotify-green);
  transform: translateY(-3px);
}

/* Animated elements */
.youtube-icon {
  color: var(--youtube-red);
  font-size: 2rem;
  animation: pulse 2s infinite;
}

.spotify-icon {
  color: var(--spotify-green);
  font-size: 2rem;
  animation: pulse 2s infinite;
  animation-delay: 1s;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.arrow-icon {
  font-size: 2rem;
  animation: slide 2s infinite;
}

@keyframes slide {
  0% { transform: translateX(0); }
  50% { transform: translateX(10px); }
  100% { transform: translateX(0); }
}

/* Songs table responsiveness */
.song-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.custom-table {
  min-width: 800px; /* Mínimo ancho para desktop */
}

.custom-table th {
  position: sticky;
  top: 0;
  background-color: #343a40;
  z-index: 10;
}

.custom-table .truncate-text {
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mejoras para tablas en móvil */
@media (max-width: 768px) {
  .song-card {
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
  
  .song-card-title {
    font-weight: bold;
    font-size: 1.1rem;
  }
  
  .song-card-subtitle {
    color: #666;
    font-size: 0.9rem;
  }
  
  .song-card-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    color: #999;
    font-size: 0.8rem;
  }
  
  .mobile-songs-list {
    max-height: 450px;
    overflow-y: auto;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
  
  .how-it-works-step {
    padding-left: 2.5rem;
  }
}

/* Estilos para el selector de idiomas */
.language-selector {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}

.language-selector .language-dropdown {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
  width: auto;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.language-selector .dropdown-toggle {
  color: #333;
  background: white;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  font-weight: 500;
  transition: all 0.3s ease;
}

.language-selector .dropdown-toggle:hover,
.language-selector .dropdown-toggle:focus {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.language-selector .dropdown-toggle img {
  width: 20px;
  height: 15px;
  margin-right: 0.5rem;
  object-fit: cover;
  border-radius: 2px;
}

.language-selector .dropdown-menu {
  min-width: 200px;
  padding: 0.5rem;
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.language-selector .dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.language-selector .dropdown-item:hover {
  background-color: #f8f9fa;
}

.language-selector .dropdown-item.active {
  background-color: rgba(29, 185, 84, 0.1);
  color: #1DB954;
  font-weight: 500;
}

.language-selector .dropdown-item img {
  width: 20px;
  height: 15px;
  margin-right: 0.8rem;
  object-fit: cover;
  border-radius: 2px;
}

.language-selector .lang-native {
  font-weight: 500;
}

.language-selector .lang-name {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-left: auto;
}

@media (max-width: 576px) {
  .language-selector {
    top: 0.5rem;
    right: 0.5rem;
  }
  
  .language-selector .dropdown-toggle span {
    display: none;
  }
  
  .language-selector .dropdown-toggle {
    padding: 0.5rem;
  }
  
  .language-selector .dropdown-toggle img {
    margin-right: 0;
  }
}

/* Header styles */
.header-card {
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background-image: linear-gradient(120deg, #1DB954 0%, #169c45 100%);
  color: white;
  margin-bottom: 2rem;
}

.badge-count {
  background-color: white;
  color: #1DB954;
  font-size: 1.1rem;
  padding: 5px 10px;
  border-radius: 12px;
  font-weight: bold;
}

.info-alert {
  border-radius: 15px;
  border-left: 5px solid #1DB954;
}

.content-card {
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background-color: white;
  margin-bottom: 2rem;
  padding: 2rem;
}