/* ==========================================================================
   NAVIGATION - NOVO EVENTOS BY LAURA BASUALTO
   Estilos para el menú de navegación principal
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(212, 175, 55, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-base);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

/* ===== LOGO ===== */

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  transition: opacity var(--transition-fast);
  font-size: 0;
}

.navbar-logo:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.navbar-logo-image,
.navbar-logo img {
  height: 65px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

/* Si el logo tiene texto (span) */
.navbar-logo span {
  font-family: var(--font-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

/* ===== MENÚ DE NAVEGACIÓN ===== */

.navbar-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-xl);
}

.navbar-menu-item {
  display: inline-block;
}

.navbar-menu-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-800);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-menu-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width var(--transition-base);
  border-radius: 2px;
}

.navbar-menu-link:hover,
.navbar-menu-link.is-active {
  color: var(--color-primary);
  transform: translateY(-1px);
}

.navbar-menu-link:hover::after,
.navbar-menu-link.is-active::after {
  width: 100%;
}

/* Desktop: mostrar menú */
@media (min-width: 768px) {
  .navbar-menu {
    display: flex;
  }
}

/* ===== BOTÓN HAMBURGUESA (MOBILE) ===== */

.navbar-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 44px;
  height: 44px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: calc(var(--z-fixed) + 10);
}

.navbar-toggle-bar {
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  transform-origin: center;
}

.navbar-toggle.is-active .navbar-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.navbar-toggle.is-active .navbar-toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.is-active .navbar-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Desktop: ocultar botón hamburguesa */
@media (min-width: 768px) {
  .navbar-toggle {
    display: none;
  }
}

/* ===== MENÚ MÓVIL ===== */

.navbar-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--color-secondary);
  padding: var(--space-5xl) var(--space-xl) var(--space-xl);
  transition: right var(--transition-base);
  overflow-y: auto;
  z-index: calc(var(--z-fixed) + 5);
}

.navbar-mobile-menu.is-active {
  right: 0;
}

.navbar-mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-mobile-menu-item {
  margin-bottom: var(--space-md);
}

.navbar-mobile-menu-link {
  display: block;
  padding: var(--space-md);
  font-family: var(--font-secondary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all var(--transition-fast);
}

.navbar-mobile-menu-link:hover,
.navbar-mobile-menu-link.is-active {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  background-color: rgba(212, 175, 55, 0.1);
}

/* Overlay para cerrar menú móvil */
.navbar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  z-index: calc(var(--z-fixed) + 1);
}

.navbar-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* Desktop: ocultar menú móvil y overlay */
@media (min-width: 768px) {
  .navbar-mobile-menu,
  .navbar-overlay {
    display: none;
  }
}
