/* ===== MENÚ MODERNO UNAGENCY ===== */

.main-navbar {
  position: fixed;
  top: 0; left: 0; width: 100vw;
  background: #111;
  z-index: 10000;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.08);
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
}

.navbar-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.navbar-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.navbar-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  transition: color 0.2s, border-bottom 0.4s cubic-bezier(.77,0,.18,1);
  position: relative;
  border: none;
  background: none;
  z-index: 1;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUpMenu 0.7s cubic-bezier(.77,0,.18,1) forwards;
}

.navbar-links a:not(:last-child)::before {
  content: '';
  position: absolute;
  right: -1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 1.5rem;
  background: #222;
  border-radius: 1px;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #00d4ff, #fbbf24, #8b5cf6, #10b981, #00d4ff);
  background-size: 200% 100%;
  background-position: 0 0;
  opacity: 0;
  transition: opacity 0.3s, background-position 1.2s linear;
  pointer-events: none;
  z-index: 2;
}

.navbar-links a:hover {
  color: #fff;
}

.navbar-links a:hover::after {
  opacity: 1;
  background-position: 100% 0;
}

.navbar-social {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.navbar-social a {
  color: #fff;
  font-size: 1.3rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.navbar-social a:hover {
  color: #fbbf24;
}

.navbar-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 11001;
  margin-left: 1.5rem;
}

.navbar-burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Animación burger */
.navbar-burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-burger.active span:nth-child(2) {
  opacity: 0;
}
.navbar-burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar-underline {
  width: 100vw;
  height: 3px;
  background: linear-gradient(90deg, #00d4ff, #fbbf24, #8b5cf6, #10b981);
  border: none;
  margin: 0;
  padding: 0;
}

/* ===== FULLSCREEN MENU ===== */
.navbar-fullscreen {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.98);
  z-index: 11000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-40px);
  transition: opacity 0.4s cubic-bezier(.77,0,.18,1), transform 0.5s cubic-bezier(.77,0,.18,1);
}

.navbar-fullscreen.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@keyframes menuFadeIn {
  from { opacity: 0; transform: scale(1.05); }
  to   { opacity: 1; transform: scale(1); }
}

.fullscreen-links {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.fullscreen-links a {
  color: #fff;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  border: none;
  background: none;
  border-radius: 10px;
  padding: 0.5rem 1.5rem;
}

.fullscreen-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #00d4ff, #fbbf24, #8b5cf6, #10b981, #00d4ff);
  background-size: 200% 100%;
  background-position: 0 0;
  opacity: 0;
  transition: opacity 0.3s, background-position 1.2s linear;
  pointer-events: none;
}

.fullscreen-links a:hover {
  color: #fff;
}

.fullscreen-links a:hover::after {
  opacity: 1;
  background-position: 100% 0;
}

.fullscreen-social {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.fullscreen-social a {
  color: #fff;
  font-size: 2rem;
  transition: color 0.2s;
}

.fullscreen-social a:hover {
  color: #fbbf24;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .navbar-inner {
    padding: 0.5rem 1rem;
  }
  .navbar-links {
    gap: 1.2rem;
  }
}

@media (max-width: 900px) {
  .navbar-links,
  .navbar-social {
    display: none !important;
  }
  .navbar-burger {
    display: flex !important;
  }
  .navbar-links a {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Mostrar burger en desktop al hacer scroll */
.main-navbar.scrolled .navbar-links,
.main-navbar.scrolled .navbar-social {
  display: none !important;
}
.main-navbar.scrolled .navbar-burger {
  display: flex !important;
}

/* Ajuste para que el contenido no quede debajo del menú */
body {
  padding-top: 70px !important;
}

/* Animación de entrada para los links del menú en desktop */
@keyframes fadeInUpMenu {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar-links a:nth-child(1) { animation-delay: 0.1s; }
.navbar-links a:nth-child(2) { animation-delay: 0.22s; }
.navbar-links a:nth-child(3) { animation-delay: 0.34s; }
.navbar-links a:nth-child(4) { animation-delay: 0.46s; }
.navbar-links a:nth-child(5) { animation-delay: 0.58s; }

/* Asegurar que los enlaces del menú sean siempre visibles */
.navbar-links a {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
} 