@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
   background: linear-gradient(120deg, #0f2027, #203a43, #1E90FF);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  background: rgba(10, 148, 228, 0.35);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 157, 255, 0.3);
  z-index: 1000;
}
.logo {
  background: #ffffff;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.logo img {
  height: 55px;
  border-radius: 50%;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.logo img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px #1E90FF);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  color: #f5f5f5;
  transition: 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(90deg, #6edf6e, #1E90FF, #FF69B4);
  transition: width 0.3s ease-in-out;
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}


/* Hero section */
.hero-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  text-align: center;
}

.download-container {
  max-width: 500px;
  background: rgba(255, 255, 255, 0.05);
  padding: 40px 50px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  animation: fadeIn 1s ease;
}

.download-container h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #1af412, #00ffe5, #a8ff00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px #1af412, 0 0 20px #00ffe5, 0 0 30px #a8ff00;
  animation: brilloColores 4s linear infinite;
}

/* Animación de cambio suave de brillo */
@keyframes brilloColores {
  0% {
    text-shadow: 0 0 10px #3343f9, 0 0 20px #14f304, 0 0 30px #fa0707;
  }
  50% {
    text-shadow: 0 0 15px #e30a0a, 0 0 25px #3702f8, 0 0 35px #24f803;
  }
  100% {
    text-shadow: 0 0 10px #3bf873da, 0 0 20px #2c63ed, 0 0 30px #ea2727;
  }
}

.download-container p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #ddd;
}

/* Contenedor QR */
.qr-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px 40px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  max-width: 400px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
}

/* Botones */
.btn-qr {
  background: linear-gradient(135deg, #f50e0e, #4447fa, #32CD32);
  background-size: 300% 300%;
  animation: gradientMove 5s ease infinite;
  box-shadow: 0 15px 40px rgba(50, 205, 50, 0.4);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-qr:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(50, 205, 50, 0.6);
}

/* 🔹 Animación del movimiento de colores */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


.btn-qr:hover {
  background: linear-gradient(135deg, #135ced, #32CD32);
  transform: scale(1.05);
}

/* Botones secundarios */
.hover-opciones button {
  background: linear-gradient(135deg, #f50e0e, #4447fa, #32CD32);
  background-size: 300% 300%;
  animation: gradientMove 5s ease infinite;
  box-shadow: 0 15px 40px rgba(50, 205, 50, 0.4);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-qr:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(50, 205, 50, 0.6);
}

/* 🔹 Animación del movimiento de colores */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hover-opciones button:hover {
  background: linear-gradient(135deg, #2c5364, #32CD32);
  transform: scale(1.05);
}

/* Contenedor del botón y opciones */
.hover-btn-container {
  display: flex;
  flex-direction: column-reverse; /* Opciones arriba del botón */
  align-items: center;
  position: relative;
}

.hover-opciones {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hover-btn-container:hover .hover-opciones {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Resultado QR o Link */
.qr-output {
  margin-top: 30px;
  text-align: center;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.6);
  text-align: center;
  padding: 5px;
  font-size: 0.9rem;
  color: #ccc;
}

.footer span {
  font-weight: 700;
  background: linear-gradient(90deg, #6edf6e, #1E90FF, #e4514a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* Contenedor de beneficios animado */
/* Contenedor de beneficios animado */
.beneficios-container {
  margin-top: 40px;
  position: relative;
  background: rgba(50, 205, 50, 0.1);
  border-radius: 15px;
  padding: 20px 25px;
  text-align: left;
  animation: aparecer 1.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* 🔹 Borde animado en movimiento */
.beneficios-container {
  margin-top: 40px;
  background: rgba(50, 205, 50, 0.1);
  border-radius: 15px;
  padding: 20px 25px;
  text-align: left;
  animation: aparecer 1.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

/* 🔹 Borde animado real */
.beneficios-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 15px;
  padding: 2px; /* grosor del borde */
  background: linear-gradient(90deg, #32CD32, #4447fa, #e4514a, #32CD32);
  background-size: 300% 300%;
  animation: borderFlow 6s linear infinite;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: -1;
}

/* 🔹 Animación del borde */
@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.beneficios-container h3 {
  color: #32CD32;
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.beneficios-container ul {
  list-style: none;
  padding-left: 0;
}

.beneficios-container li {
  margin-bottom: 8px;
  color: #fff;
  font-size: 1rem;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .download-container {
    padding: 30px 25px;
  }
}
