@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300&family=Poppins:wght@300;400;600;700&display=swap');

:root {
  --background-color: rgb(255, 255, 255);
  --color-principal: rgb(79, 40, 207);
  --color-texto: rgb(0, 0, 0);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--background-color);
}

/* ENCABEZADO */
header {
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: fixed;
  z-index: 100;
  top: 0;
  width: 100%;
  height: 80px;
  border-bottom: 1px solid rgba(79, 40, 207, 0.2);
}

header .contenedor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 30px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.logo img {
  height: 140px;
  object-fit: contain;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05) rotate(3deg);
}

.menu-opciones ul {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.menu-opciones li {
  list-style: none;
  padding: 10px;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: border 0.2s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-opciones li:hover {
  border: 2px solid var(--color-principal);
  box-shadow: 0 4px 8px rgba(79, 40, 207, 0.2);
  transform: translateY(-3px);
}

.menu-opciones a {
  color: var(--color-texto);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.menu-opciones a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-principal);
  transition: width 0.3s ease;
}

.menu-opciones a:hover::after {
  width: 100%;
}

.controles-usuario {
  display: flex;
  align-items: center;
  gap: 20px;
}

.controles-usuario ion-icon {
  font-size: 25px;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.controles-usuario ion-icon:hover {
  color: var(--color-principal);
  transform: scale(1.2);
}

#btn-unirme {
  border: none;
  cursor: pointer;
  width: 110px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--color-principal);
  color: white;
  transition: transform 0.2s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}

#btn-unirme:hover {
  box-shadow: 0 0 12px var(--color-principal);
  transform: scale(1.1);
}

/* BOTÓN HAMBURGUESA */
#btn-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 200;
}

#btn-menu .barra {
  height: 3px;
  width: 100%;
  background-color: var(--color-texto);
  border-radius: 2px;
  transition: transform 0.4s ease, opacity 0.3s ease;
  transform-origin: center;
}

#btn-menu.activo .barra:nth-child(1) {
  transform: rotate(45deg);
}

#btn-menu.activo .barra:nth-child(2) {
  opacity: 0;
}

#btn-menu.activo .barra:nth-child(3) {
  transform: rotate(-45deg);
}

/* OVERLAY */
#overlay {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 130;
}

#overlay.activo {
  opacity: 1;
  visibility: visible;
}

/* RESPONSIVE: MENÚ MÓVIL */
@media (max-width: 865px) {
  .menu-opciones {
    position: fixed;
    top: 80px;
    right: 0;
    width: 250px;
    height: calc(100vh - 80px);
    background-color: var(--background-color);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    flex-direction: column;
    padding-top: 30px;
    z-index: 150;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
  }

  .menu-opciones.activo {
    transform: translateX(0);
  }

  .menu-opciones ul {
    flex-direction: column;
    gap: 20px;
    padding-left: 20px;
  }

  .controles-usuario {
    display: none;
  }

  #btn-menu {
    display: flex;
  }
}


/* HERO */
.hero {
  height: 100vh;
  background: linear-gradient(120deg, #4f28cf, #764ba2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 300%;
  height: 300%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: backgroundMove 30s linear infinite;
  top: -100%;
  left: -100%;
  z-index: 0;
}

@keyframes backgroundMove {
  from { transform: translate(0, 0); }
  to { transform: translate(50px, 50px); }
}

.hero-contenido {
  z-index: 1;
  position: relative;
  padding: 0 20px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-explorar {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  background-color: white;
  color: #4f28cf;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-explorar:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}

/* BENEFICIOS */
.beneficios {
  display: flex;
  justify-content: space-around;
  padding: 50px 20px;
  background: #f9f9f9;
  text-align: center;
}

.beneficio {
  max-width: 200px;
}

.beneficio ion-icon {
  font-size: 40px;
  color: var(--color-principal);
  margin-bottom: 10px;
}

/* CARRUSEL */
.carrusel {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}

.carrusel .productos {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-top: 20px;
  scroll-snap-type: x mandatory;
}

.carrusel .producto {
  flex: 0 0 auto;
  background: #eee;
  width: 200px;
  height: 250px;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border-radius: 10px;
}

/* EXPERIENCIA */
.experiencia {
  padding: 60px 20px;
  background: #f1f1f1;
  text-align: center;
}

.experiencia h2 {
  margin-bottom: 30px;
}

.opciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.opcion {
  padding: 15px 25px;
  background-color: white;
  border: 2px solid var(--color-principal);
  color: var(--color-principal);
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.opcion:hover {
  background-color: var(--color-principal);
  color: white;
}

/* GAMIFICACIÓN */
.puntos {
  background: linear-gradient(to right, #a18cd1, #fbc2eb);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.puntos h2 {
  margin-bottom: 15px;
}


.beneficios {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
  gap: 30px;
}

.beneficio {
  max-width: 250px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beneficio:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.beneficio ion-icon {
  font-size: 50px;
  color: var(--color-principal);
  margin-bottom: 15px;
}

.beneficio h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.beneficio p {
  font-size: 0.95rem;
  color: #444;
}

