/* NAVBAR */
.navbar {
  background: linear-gradient(90deg, rgba(13, 13, 13, 0.8), rgba(30, 0, 40, 0.6));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  animation: slideDown 0.6s ease-out;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #9333ea, #ec4899, #facc15, #10b981, #3b82f6);
  background-size: 400% 100%;
  animation: neonScroll 5s linear infinite;
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: #c084fc;
  animation: pulseLogo 3s ease-in-out infinite;
}
.menu-button {
  font-size: 1.75rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 60;
}
.nav-links {
  flex-direction: column;
  gap: 1rem;
  background-color: #111;
  position: absolute;
  top: 100%;
  right: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
  display: none;
}
@media (min-width: 768px) {
  .nav-links {
    position: static;
    flex-direction: row;
    background: transparent;
    padding: 0;
    box-shadow: none;
    display: flex !important;
  }
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}
.nav-links a:hover {
  color: #facc15;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  flex-direction: column;
}

.mobile-menu.hidden {
  display: none;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.mobile-menu-content a {
  font-size: 1.5rem;
  color: white;
  font-weight: bold;
}

/* HERO ANIMACIONES */
.fade-slide {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideIn 1s ease-out forwards;
}
.fade-slide-delay {
  animation-delay: 0.4s;
}
.image-box img {
  position: relative;
  border-radius: 1rem;
  border: 2px solid;
  border-image-slice: 1;
  border-width: 2px;
  border-image-source: linear-gradient(90deg, #9333ea, #ec4899, #facc15, #10b981, #3b82f6);
  transition: border-image-source 3s ease-in-out;
  animation: borderGradientShift 6s linear infinite;
}

@keyframes borderGradientShift {
  0% {
    border-image-source: linear-gradient(90deg, #9333ea, #ec4899, #facc15, #10b981, #3b82f6);
  }
  50% {
    border-image-source: linear-gradient(270deg, #9333ea, #ec4899, #facc15, #10b981, #3b82f6);
  }
  100% {
    border-image-source: linear-gradient(90deg, #9333ea, #ec4899, #facc15, #10b981, #3b82f6);
  }
}


.cta-button {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* SECCIÓN SOBRE NOSOTROS */
#sobre-nosotros p {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#sobre-nosotros .image-box::before {
  animation-duration: 8s; /* animación más lenta que en hero */
}

@media (max-width: 767px) {
  #sobre-nosotros {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  #sobre-nosotros .flex.justify-center.gap-6 {
    flex-direction: column;
    gap: 1.5rem;
  }
  #sobre-nosotros .image-box {
    max-width: 100% !important;
  }
}

.cta-button {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* CUENTAS DE PAGO */
#cuentas-pago h3 {
  text-shadow: 0 0 6px #9333ea, 0 0 12px #9333ea;
}
#cuentas-pago .shadow-lg {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#cuentas-pago .shadow-lg:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.3);
}
#cuentas-pago h4 {
  color: #facc15;
}
#cuentas-pago span.font-semibold {
  color: #d1d5db;
}

/* Fade-up animación */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out forwards;
}

/* ====== MOBILE MENU PERSONALIZADO ====== */
#mobileMenu {
  background-color: rgba(0, 0, 0, 0.75); /* fondo negro semitransparente */
  backdrop-filter: blur(10px);           /* efecto blur suave */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 100;
}

#mobileMenu .mobile-link {
  font-size: 1.75rem;
  font-weight: bold;
  color: white;
  animation: glowText 2s ease-in-out infinite;
  text-align: center;
}

#mobileMenu {
  display: none; /* oculto por defecto */
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Mostrar cuando tiene clase active */
#mobileMenu.active {
  display: flex;
}

/* Estilo links */
.mobile-link {
  font-size: 1.75rem;
  font-weight: bold;
  color: white;
  text-align: center;
  animation: glowText 2s ease-in-out infinite;
}

/* Animación alumbrar */
@keyframes glowText {
  0%, 100% {
    color: #ffffff;
    text-shadow: 0 0 6px #facc15, 0 0 10px #facc15;
  }
  50% {
    color: #facc15;
    text-shadow: 0 0 14px #facc15, 0 0 22px #facc15;
  }
}

/* Para que no se muestre en desktop */
@media (min-width: 1024px) {
  #mobileMenu {
    display: none !important;
  }
}


/* Animación de alumbrar cada 2 segundos */
@keyframes glowText {
  0%, 100% {
    color: #ffffff;
    text-shadow: 0 0 6px #facc15, 0 0 10px #facc15;
  }
  50% {
    color: #facc15;
    text-shadow: 0 0 14px #facc15, 0 0 22px #facc15;
  }
}


@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ANIMACIONES */
@keyframes slideDown {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes neonScroll {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}
@keyframes pulseLogo {
  0%, 100% { text-shadow: 0 0 6px #c084fc, 0 0 12px #c084fc; }
  50% { text-shadow: 0 0 16px #facc15, 0 0 24px #facc15; }
}
@keyframes fadeSlideIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes floatShadow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px #9333ea, 0 0 20px #9333ea; }
  50% { box-shadow: 0 0 20px #facc15, 0 0 30px #facc15; }
}
