/* Reset general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  background-color: #000000;
}

.background {
  background: url('/assets/voxel.webp') no-repeat center center/cover;
  height: 750px; /* Ajusta según necesidad */
  mask-image: linear-gradient(to bottom, rgb(0, 0, 0), rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0)); /* Compatibilidad con navegadores */
}

.learn-more:hover {
  text-decoration: underline;
}

/* Navbar */
.navbar {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 25px 0;
  height: 50px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 10px;
  transition: padding 0.010s ease-in-out;
}

/* Enlaces de Navegación */
.nav-links {
  display: flex;
  gap: 20px;
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #03d7fc;
}

.bar {
  width: 30px;
  height: 4px;
  background-color: white !important;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* Logo y texto */
.logo {
  max-width: 2000px;
  display: flex;
  align-items: center;
  justify-content: center; /* Centra horizontalmente */
  gap: 10px;
  text-decoration: none;
  margin: 0 auto; /* Centra el contenedor si tiene un ancho definido */
  transition: color 0.3s;
}


.logo h1 {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  transition: color 0.3s;
}

.logo:hover h1 {
  color: #b3b3b3;
}

.background-logo {
  width: 50px;
  height: auto;
  transform: translateY(-4px);
  transition: opacity 0.3s;
}

.logo:hover .background-logo {
  opacity: 0.6;
}

@media (max-width: 434px) {
  .logo {
    flex-wrap: nowrap; /* 🔹 Evita que los elementos se apilen */
    justify-content: center; /* 🔹 Centra el logo y el texto */
    margin-left: 0; /* 🔹 Elimina el margen para que no se vea raro */
    gap: 5px; /* 🔹 Reduce el espacio entre el logo y el texto */
  }

  .logo h1 {
    text-align: center; /* 🔹 Asegura que esté bien alineado */
  }
}

@media (max-width: 335px) {
  .logo {
    flex-wrap: nowrap; /* 🔹 Evita que los elementos se apilen */
    justify-content: center; /* 🔹 Centra el logo y el texto */
    margin-left: 0; /* 🔹 Elimina el margen para que no se vea raro */
    gap: 5px; /* 🔹 Reduce el espacio entre el logo y el texto */
  }

  .logo h1 {
    font-size: 1.5rem; /* 🔹 Reduce el tamaño del texto */
    text-align: center; /* 🔹 Asegura que esté bien alineado */
  }

  .background-logo {
    width: 40px; /* 🔹 Reduce el tamaño del logo */
  }
}

/* Acciones en Navbar */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: 20px;
}

/* Botón de descarga */
.download-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 50, 0, 0.8);
  color: #00ff80;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  opacity: 0;
  font-size: 14px;
  transition: background 0.3s;
}

.download-button:hover {
  background: rgba(0, 100, 0, 0.9);
}

/* Iconos de redes sociales */
.nav-actions .icons a:hover img,
.nav-actions .icons,
.language-switch {
  display: flex;
  gap: 8px;
}

.nav-actions .icons a:hover img,
.nav-actions .icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  transition: transform 0.3s, filter 0.3s;
}

/* Iconos */
.nav-actions .icons a:hover img,
.nav-actions .icons i {
  font-size: 24px;
  color: white;
  transition: transform 0.3s, filter 0.3s;
}

/* Efecto hover en iconos */
.nav-actions .icons a:hover img,
.nav-actions .icons a:hover i {
  transform: scale(1.2);
  filter: brightness(0.7);
}

/* Tooltip */
.nav-actions .icons a::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.2s;
  pointer-events: none;
}

.nav-actions .icons a:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* Selector de idioma */
.language-switch {
  position: relative;
}

#language-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.language-icon {
  width: 24px;
  height: 24px;
}

.arrow-icon {
  margin-left: -5px;
  margin-top: 3px;
  font-size: 14px;
  color: white;
  transition: transform 0.3s;
  }

.language-switch.open .arrow-icon {
  transform: rotate(180deg);
}

/* Menú desplegable de idioma */
#language-menu {
  position: absolute;
  top: 35px;
  left: -60px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 10px;
  border-radius: 15px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

#language-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  cursor: pointer;
}

#language-menu li:hover {
  background: rgba(255, 255, 255, 0.1);
}

.flag-icon {
  width: 20px;
  height: 20px;
}

.language-switch.open #language-menu {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  left: -100%;
  top: 0;
  width: 280px;
  height: 100vh;
  background: rgba(20, 20, 20, 0.95);
  padding: 20px;
  transition: left 0.3s ease-in-out;
  z-index: 1050;
}

/* 🔹 Links en el menú lateral */
.mobile-nav-links {
  list-style: none;
  padding: 50px 0;
}

.mobile-nav-links li {
  padding: 10px 0;
}

.mobile-nav-links a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  display: block;
}

.mobile-nav-links a:hover {
  color: #28a745;
}

/* 🔹 Redes en menú */
.mobile-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.mobile-icons a {
  font-size: 24px;
  color: white;
  transition: opacity 0.2s;
}

.mobile-icons a:hover {
  opacity: 0.8;
}

/* 🔹 Selector de idioma */
.mobile-language {
  margin-top: 20px;
}

#mobile-language-button {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 18px;
}

#mobile-language-menu {
  display: none;
  list-style: none;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
}

#mobile-language-menu.visible {
  display: block;
}

#mobile-language-menu li {
  padding: 5px;
  cursor: pointer;
}

#mobile-language-menu li:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Ajuste progresivo del padding lateral según el ancho de la pantalla */
@media (max-width: 1880px) {
  .navbar-container {
    padding: 0 80px;
  }
}

@media (max-width: 1830px) {
  .navbar-container {
    padding: 0 70px;
  }
}

@media (max-width: 1780px) {
  .navbar-container {
    padding: 0 60px;
  }
}

@media (max-width: 1730px) {
  .navbar-container {
    padding: 0 50px;
  }
}

@media (max-width: 1680px) {
  .navbar-container {
    padding: 0 40px;
  }
}

@media (max-width: 1630px) {
  .navbar-container {
    padding: 0 30px;
  }
}

@media (max-width: 1580px) {
  .navbar-container {
    padding: 0 20px;
  }
}

.menu-button {
  display: none;
}

@media (max-width: 1330px) {
  .download-button{
    display: none;
  }
}

/* Ajustes responsivos */
@media (max-width: 1140px) {
  .nav-actions .icons,
  .language-switch {
    display: none;
  }

  .logo {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
  }
}

  /* ✅ Ocultar el botón del menú por defecto */
  .menu-button {
    display: none;
  }

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-button {
    display: flex;
    position: absolute;
    left: 15px;
    top: 15px;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 3000; /* Por encima de todo */
  }

  /* ✅ Animación del botón (de "≡" a "✖") */
  .menu-button .bar {
    width: 30px;
    height: 4px;
    background-color: white !important;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
  }

  .menu-button.open .bar:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-button.open .bar:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }
  
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20, 20, 20, 0.95);
    display: none; /* ✅ Oculto por defecto */
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    transform: translateY(-100%); /* ✅ Empieza fuera de la pantalla */
    transition: transform 0.3s ease-in-out; /* ✅ Animación suave */
    z-index: 500;
  }
  
  /* ✅ Cuando el menú está abierto */
  .mobile-menu.open {
    display: flex; /* ✅ Se muestra */
    transform: translateY(0); /* ✅ Se desliza hacia abajo */
  }

  /* ✅ Redes sociales al final y centradas */
  .mobile-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
    padding-bottom: 20px;
    margin-top: auto; /* Empuja las redes sociales al final */
  }

  .mobile-icons a {
    font-size: 24px;
    color: white;
    position: relative; /* Necesario para el tooltip */
    transition: opacity 0.2s;
    text-decoration: none;
  }

    /* ✅ Tooltip */
  .mobile-icons a::after {
    content: attr(data-tooltip); /* Muestra el contenido del atributo */
    position: absolute;
    bottom: 120%; /* Lo sube encima del icono */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.2s;
  }

  /* ✅ Mostrar el tooltip al pasar el mouse */
  .mobile-icons a:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
  }

  .mobile-icons a:hover {
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
    opacity: 0.8;
    transform: scale(1.2);  
  }

  .mobile-language {
    width: 100%;
    padding: 40px;
    display: flex;
    justify-content: center;
    position: relative;
  }

  #mobile-language-button {
    width: 90%;
    height: 50px;
    background: transparent;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
  }

  /* ✅ Efecto hover */
  #mobile-language-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
  }
  
  /* ✅ Flecha animada */
  .arrow-icon {
    margin-left: -5px;
    margin-top: 3px;
    font-size: 14px;
    color: white;
    transition: transform 0.3s;
  }

  /* ✅ Icono del botón */
  .language-icon {
    width: 24px;
    height: 24px;
  }

/* ✅ Flecha gira cuando el menú está abierto */
  .mobile-language-menu.visible ~ #mobile-language-button .arrow-icon {
    transform: rotate(180deg);
  }

  /* ✅ Efecto de onda (ripple effect) solo dentro del botón */
  .ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: scale(0);
  opacity: 1;
  animation: ripple-animation 0.5s linear;
  pointer-events: none; /* Evita que interfiera con otros clics */
}

  @keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

  #mobile-language-menu {
    display: none;
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    border-radius: 20px;
    padding: 10px;
    width: 50%;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  }

  #mobile-language-menu.visible {
    display: block;
  }

  #mobile-language-menu li {
    padding: 12px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  #mobile-language-menu li:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .flag-icon {
    width: 24px;
    height: 24px;
  }
}

  /* ✅ Enlaces de navegación alineados a la izquierda */
  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 20px;
  }

  .mobile-nav-links a {
    color: white;
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
    padding: 10px 0;
  }

  .mobile-nav-links a:hover {
    color: #28a745;
  }

/* Reset y variables */
:root {
  --color-background: #0d1117;
  --color-text: #ffffff;
  --color-link: #287b8a;
  --color-link-hover: #287b8a;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-text-muted: rgba(255, 255, 255, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif; /* Usa la fuente por defecto del navegador */
}

/* Estilos del footer */
.footer {
  background-color: var(--color-background);
  color: var(--color-text);
  padding: 2rem 1rem;
  width: 100%;
}

/* Contenedor del footer */
.footer-container {
  max-width: 1300px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  width: 100%;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Corrección de 'right' */
  margin-top: -30px; /* Ajusta según necesites */
}

.footer-brand-name {
  position: relative;
  top: -60px; /* Sube el texto */
  font-size: 30px; /* Aumenta el tamaño del texto */
  margin-right: 20px;
}

.footer-S.A {
  display: flex;
  align-items: center;
  gap: 5px; /* Espaciado entre elementos */
  white-space: nowrap; /* Evita saltos de línea */
}

.footer-S.A span,
.footer-S.A a {
  margin: 0;
  padding: 0;
}

.footer-voxel {
  color: var(--color-link);
  text-decoration: none;
}

.footer-voxel:hover {
  text-decoration: underline; /* Agrega subrayado al pasar el mouse */
}

.copyright {
  font-size: 18px; /* Ajusta el tamaño del símbolo © */
  position: relative;
  top: -15px; /* Sube el texto */
  left: -8px;
}

.footer-logo {
  width: 50px;
  height: 50px;
  position: relative;
  margin-right: 5px;
  top: -65px;
}

.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 40px;
  flex-grow: 1; /* Hace que este bloque ocupe todo el espacio disponible */
  align-items: flex-start;
}

.footer-nav-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-nav-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.footer-link {
  color: var(--color-link);
  text-decoration: none;
  margin: 5px 0;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap; /* Evita que se haga en lista */
  width: 100%;
  margin-top: 20px;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.footer-copyright {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  text-align: right;
}

.footer-social {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  width: auto;
}

/* Estilos de los enlaces de redes sociales */
.social-link {
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--color-text);
}

.footer-social img {
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.footer-social img:hover {
  opacity: 0.7; /* Efecto de opacidad */
  transform: scale(1.2); /* Aumenta un 20% el tamaño */
}

@media (max-width: 768px) {
  .footer {
    padding: 100px 1rem; /* Aumentamos el padding para hacerlo más alto */
  }

  .footer-brand {
    transform: translateY(-100px); /* Subimos el logo y el título */
  }

  .footer-logo {
    width: 60px;
    height: 60px;
  }

  .footer-brand-name {
    font-size: 32px;
  } 
}

@media (max-width: 340px) {
  .footer-brand {
    justify-content: center; /* 🔹 Centra el contenido en pantallas pequeñas */
    margin-top: -30px; /* 🔹 Reduce el margen superior */
  }

  .footer-brand-name {
    font-size: 23px; /* 🔹 Reduce el tamaño del texto */
    top: -60px; /* 🔹 Ajusta la posición */
    margin-right: 10px; /* 🔹 Reduce el espacio entre el texto y otros elementos */
  }
}