/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Audiowide&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
@import url("contact.css");

:root {
  --neon-blue: #4a024c;
  --neon-purple: #6236ff;
  --dark-bg: #0a0a0a;
  --white-color: #ffffff;
}

body {
  font-family: sans-serif;
  background-image: url("../assets/img/backgroundAdivinia.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: rgba(
    255,
    255,
    255,
    0.3
  ); /* Ajusta el valor alfa (0.3 en este caso) */
  background-blend-mode: overlay;
  color: #000000; /* DEFAULT TEXT COLOR: BLACK */
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  display: flex;
  justify-content: space-evenly; /* Distribuye los elementos de manera uniforme */
  align-items: center;
  padding: 0.5rem 1rem; /* Ajustado para mayor espacio */
  background: rgba(153, 151, 151, 0.97);
  backdrop-filter: blur(10px);
  flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
}

header img {
  height: 4rem; /* Tamaño del logo ajustado */
  width: auto; /* Mantiene la proporción del logo */
}

nav {
  display: flex;
  justify-content: space-evenly; /* Asegura que los enlaces estén distribuidos uniformemente */
  flex-wrap: wrap; /* Permite que los enlaces se envuelvan en pantallas pequeñas */
}

nav a {
  color: #343541;
  text-decoration: none;
  margin: 0.5rem; /* Espaciado uniforme entre enlaces */
  font-weight: bold;
  font-size: 1rem; /* Ajustado para mejor legibilidad en pantallas pequeñas */
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--neon-purple);
  text-shadow: 0 0 5px var(--neon-purple);
}

h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-top: 2rem;
  color: inherit; /* Eliminamos el color base */
  background: none; /* Eliminamos el background que podría estar interfiriendo */
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  animation: none;
}

p {
  text-align: center;
  max-width: 600px;
  margin: 1rem auto;
  font-size: 1.6rem;
  font-weight: bold;
  color: #343541;
}

.container-big {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0rem;
}

.container-small-left,
.container-small-right {
  padding: 1rem;
}

.container-small-left img {
  max-width: 300px;
  max-height: 550px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(148, 4, 174, 0.5);
}

.container-small-right {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container-small-right a {
  margin-bottom: 1rem;
}

.container-small-right img {
  max-width: 200px;
  transition: transform 0.3s ease;
}

.container-small-right img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  header {
    flex-direction: row; /* Mantener en fila para logo y hamburguesa */
    justify-content: space-between; /* Logo a la izquierda, hamburguesa a la derecha */
    padding: 0.8rem 1rem;
    position: relative;
  }

  header img {
    margin-bottom: 0; /* Quitar margen inferior */
    height: 3.5rem;
  }

  nav {
    display: none; /* Ocultar navegación desktop en móvil */
  }

  .hamburger-menu {
    display: flex; /* Mostrar hamburguesa en móvil */
  }

  /* Ocultar language switcher de la posición fija */
  .language-switcher {
    display: none;
  }

  .container-big {
    flex-direction: column;
  }

  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 1rem;
  }
}

.hero-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.app-title {
  margin-bottom: 2rem;
}

.app-title h1 {
  font-family: "Audiowide", cursive;
  font-size: 5.5rem;
  margin: 0;
  display: inline-block;
}

.app-title .title-regular {
  color: #8b8b8b;
  display: inline-block;
}

.app-title .title-highlight {
  color: #480554;
  display: inline-block;
}

.hero-tagline {
  font-family: "Poppins", sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--white-color); /* WHITE TEXT */
  margin: 1rem 0;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-description {
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9); /* LIGHT TEXT */
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  padding: 0 1rem;
}

.feature-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  color: var(--neon-purple);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white-color); /* WHITE TEXT */
  margin: 0.5rem 0;
}

.feature-text {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85); /* LIGHT TEXT */
  line-height: 1.5;
}

.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 3rem auto;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(98, 54, 255, 0.1),
    rgba(74, 2, 76, 0.1)
  );
  border-radius: 20px;
  border: 1px solid rgba(98, 54, 255, 0.2);
  width: 100%;
  max-width: 500px;
}

.cta-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white-color); /* WHITE TEXT */
  margin-bottom: 0.5rem;
}

.cta-text {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9); /* LIGHT TEXT */
  margin-bottom: 1.5rem;
}

.cta-text .highlight {
  color: var(--neon-purple);
  font-weight: bold;
}

@media (max-width: 768px) {
  .hero-section {
    margin: 0rem;
  }

  .app-title h1 {
    font-size: 3.5rem;
  }

  .hero-tagline {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 1.2rem;
  }

  .feature-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .cta-section {
    margin: 0;
  }
  .cta-title {
    font-size: 1.6rem;
  }

  .cta-text {
    font-size: 1.1rem;
  }
}

@keyframes glowIA {
  from {
    filter: none;
  }
  to {
    filter: none;
  }
}

.download-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 232px;
  margin: 0 auto;
}

.store-button {
  width: 232px;
  margin-bottom: 2rem;
}

.store-button img {
  width: 232px;
  height: auto;
}

.qr-container {
  width: 232px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-container img {
  max-width: 120px; /* Ajustado para mejor proporción */
  max-height: 120px; /* Ajustado para mejor proporción */
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(128, 0, 128, 0.5);
  margin-bottom: 0.5rem; /* Espacio antes del texto */
}

.qr-text {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8); /* LIGHT TEXT */
  margin-top: 0.5rem;
}

/* Estilos modernos para el selector de idiomas */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 9999;
    background: rgba(98, 54, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(98, 54, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.language-switcher:hover {
    background: rgba(98, 54, 255, 0.6);
    transform: translateY(-2px);
}

.lang-button {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--white-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.lang-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-button.active {
    background: var(--neon-purple);
    color: white;
}

.lang-button.active:before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--neon-purple);
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 6px;
        border-radius: 10px;
    }

    .lang-button {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Estilos para el menú hamburguesa (solo visible en móvil) */
.hamburger-menu {
  display: none; /* Oculto en desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  cursor: pointer;
  z-index: 1001;
  margin-left: auto; /* Empuja el botón a la derecha */
}

.hamburger-menu .bar {
  width: 100%;
  height: 3px;
  background-color: #343541;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

/* Animaciones para el botón hamburguesa */
.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Contenedor del menú móvil */
.mobile-menu-container {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 350px;
  height: 100vh;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  padding: 60px 0 0 0;
  overflow-y: auto;
}

.mobile-menu-container.active {
  right: 0;
}

/* Navegación móvil */
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  padding: 15px 25px;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.mobile-nav a:hover {
  background-color: rgba(98, 54, 255, 0.2);
  padding-left: 30px;
}

/* Overlay para cuando el menú está abierto */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Contenedor para el selector de idiomas dentro del menú móvil */
.mobile-lang-container {
  padding: 20px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-lang-container p {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  color: var(--white-color); /* WHITE TEXT */
  margin-bottom: 0.5rem;
  font-weight: normal;
  text-align: left;
}

.mobile-lang-switcher {
  display: flex;
  gap: 10px;
}

.mobile-lang-switcher .lang-button {
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-lang-switcher .lang-button.active {
  background: var(--neon-purple);
}

/* Adaptar el header y menú para móvil */
@media (max-width: 768px) {
  header {
    flex-direction: row; /* Mantener en fila para logo y hamburguesa */
    justify-content: space-between; /* Logo a la izquierda, hamburguesa a la derecha */
    padding: 0.8rem 1rem;
    position: relative;
  }

  header img {
    margin-bottom: 0; /* Quitar margen inferior */
    height: 3.5rem;
  }

  nav {
    display: none; /* Ocultar navegación desktop en móvil */
  }

  .hamburger-menu {
    display: flex; /* Mostrar hamburguesa en móvil */
  }

  /* Ocultar language switcher de la posición fija */
  .language-switcher {
    display: none;
  }
}
