body {
  padding: 0;
  margin: 0;
  background: #000;
  font-family: Arial, sans-serif;
}

/* Animación de entrada del menú */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hex-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000;
  z-index: 9999;
  animation: fadeIn 2s ease;
  height: 170px;
}

.hex-nav {
  max-width: 1300px;
  margin: auto;
  padding: 0 1rem;
  width: 100%;
}

.nav-top {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
}

.logo-mobile {
  display: none;
}

.logo-img-mobile {
  height: 50px;
}

.hex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 1rem 0;
  margin: 0;
  width: 100%;
}

/* Animación caída de hexágonos */
@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hex {
  width: 110px;
  height: 120px;
  background: #1a0000;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  text-align: center;
  position: relative;
  border: none;
  opacity: 0;
  animation: dropIn 0.6s ease-out forwards;
}

/* Enlaces dentro del hexágono */
.hex a {
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.hex i {
  font-size: 1.4rem;
  margin-bottom: 5px;
  color: #ff0000;
  transition: transform 0.3s ease;
}

.hex:hover i {
  animation: pulse 0.4s ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

.hex span {
  font-size: 0.8rem;
  font-weight: bold;
}

.hex:hover {
  transform: scale(1.15);
  box-shadow: 0 0 10px #ff0000;
  z-index: 10;
}

/* Logo en el centro */
.logo-hex {
  background: none;
  padding-top: 10px;
  transform: translateY(5px);
  animation: dropIn 0.6s ease-out forwards;
}

.logo-img {
  height: 70px;
}

/* Submenú */
.has-submenu {
  position: relative;
}

.has-submenu .submenu {
  display: none;
  position: absolute;
  top: 105%;
  left: 0;
  background: #111;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
  z-index: 999;
  min-width: 150px;
}

.has-submenu:hover .submenu {
  display: block;
}

.submenu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: white;
}

.submenu li a:hover {
  background-color: #ff0000;
  color: #000;
}

/* Botón de menú móvil */
.mobile-menu-btn {
  display: none;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hex-header {
    height: 100px;
  }

  .hex-nav {
    width: 100%;
    padding: 0;
  }

  .nav-top {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
  }

  .logo-mobile {
    display: block;
  }

  .hex-grid {
    display: none;
    flex-direction: column;
    align-items: center;
    background: #000;
    width: 100%;
  }

  .hex-grid.active {
    display: flex;
  }

  .hex {
    width: 100%;
    height: auto;
    clip-path: none;
    border-bottom: 1px solid #222;
  }

  .submenu {
    position: static;
    box-shadow: none;
    width: 100%;
  }

  .logo-hex {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }
}
