/* ===== FOOTER GENSHIN IMPACT - EDICIÓN PREMIUM ===== */
#footer-principal {
  background: linear-gradient(135deg, #0a0a1a 0%, #141432 100%);
  color: #f0f0f0;
  border-top: 1px solid rgba(100, 200, 255, 0.4);
  padding: 1rem 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
}

/* Efecto de constelación */
#footer-principal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(100, 200, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

.footer-container {
  max-width: 600px;
  margin: auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-section {
  margin: 0.5rem 0;
  width: 100%;
  transition: transform 0.3s ease;
}

.footer-section:hover {
  transform: translateY(-3px);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.0rem;
}

#footer-principal h4 {
  background: linear-gradient(to right, #ffd700, #8bc8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.3rem;
  margin: 0.3rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  display: inline-block;
}

#footer-principal h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 25%;
  width: 50%;
  height: 2px;
  background: linear-gradient(to right, transparent, #64b5f6, transparent);
  border-radius: 2px;
}

#footer-principal p,
#footer-principal small {
  margin: 0.3rem 0;
  color: #d0d0d0;
  font-size: 0.95rem;
}

#footer-principal a {
  color: #8bc8ff;
  margin: 0 0.8rem;
  text-decoration: none;
  display: inline-block;
  position: relative;
  padding: 0.2rem 0;
  transition: all 0.3s ease;
}

#footer-principal a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, #ffd700, #64b5f6);
  transition: width 0.3s ease;
}

#footer-principal a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(140, 200, 255, 0.6);
}

#footer-principal a:hover::before {
  width: 100%;
}

/* ===== CONTADOR DE VISITAS MEJORADO ===== */
.visitor-counter {
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
  border-radius: 12px;
  background: rgba(30, 60, 90, 0.3);
  border: 1px solid rgba(100, 200, 255, 0.3);
  transition: all 0.4s ease;
  max-width: 420px;
  margin: 0.5rem auto;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.visitor-counter:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(100, 200, 255, 0.25);
  border-color: rgba(100, 200, 255, 0.5);
}

.counter-text {
  font-size: 1.1rem;
  margin: 0;
  color: #fff;
  text-shadow: 0 0 8px rgba(100, 200, 255, 0.4);
}

.counter-number {
  font-weight: bold;
  color: #ffd700;
  font-size: 1.4rem;
  display: inline-block;
  transition: all 0.3s ease;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
  position: relative;
}

.counter-number::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, #64b5f6, transparent);
}

.counter-subtext {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #8bc8ff;
  opacity: 0.9;
  font-style: italic;
}

/* ===== EFECTO ESTRELLAS MEJORADO ===== */
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: #8bc8ff;
  border-radius: 50%;
  animation: fall linear infinite;
  opacity: 0;
  filter: drop-shadow(0 0 3px #64b5f6);
}

@keyframes fall {
  to {
    transform: translateY(100px);
    opacity: 0;
  }
  10%, 90% {
    opacity: 0.8;
  }
}

/* Efecto de constelación giratoria */
.visitor-counter.counter-effects {
  position: relative;
  z-index: 0; /* asegura que esté sobre el fondo del footer pero debajo del contenido */
  overflow: hidden;
}

.counter-effects::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle, rgba(100, 200, 255, 0.03) 0%, transparent 70%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 5px,
      rgba(100, 200, 255, 0.02) 5px,
      rgba(100, 200, 255, 0.02) 10px
    );
  animation: rotate 20s linear infinite;
  z-index: -1; /* este fondo va detrás del texto */
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .footer-links {
    gap: 1rem;
  }
  
  #footer-principal a {
    margin: 0 0.5rem;
  }
  
  .visitor-counter {
    padding: 1rem;
    max-width: 350px;
  }
}

@media (max-width: 576px) {
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  #footer-principal h4 {
    font-size: 1.2rem;
  }
  
  .counter-text {
    font-size: 1rem;
  }
  
  .counter-number {
    font-size: 1.2rem;
  }
}