/* Estilos exclusivos para la navbar */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--primario);
  color: white;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar .logo img {
  height: 32px;
}
.navbar .brand {
  font-weight: bold;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
}
.navbar .nav-links a {
  margin: 0 0.75rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
}
.navbar .nav-links a:hover {
  text-decoration: underline;
}
.navbar .cta {
  background-color: var(--acento);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}
.navbar .cta:hover { background-color: #029aa8; }

/* Mobile menu */
.navbar .burger {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.navbar .burger svg { width: 22px; height: 22px; }

@media (max-width: 768px) {
  .navbar .burger { display: inline-flex; }

  /* Base mobile panel (hidden state) */
  .navbar .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--primario);
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 0 1rem; /* actual padding when opened */
    flex-direction: column;
    z-index: 1200;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height .3s ease, opacity .25s ease, transform .3s ease;
  }
  .navbar .nav-links a {
    margin: 0.35rem 0;
    padding: 0.5rem 0.25rem;
  }

  /* CTA hidden by default on mobile, positioned under bar */
  .navbar .cta {
    position: absolute;
    right: 1rem;
    top: calc(100% + 0.5rem);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .25s ease, transform .3s ease;
  }

  /* Open state: reveal with slide/fade */
  .navbar.open .nav-links {
    padding: 0.75rem 1rem 1rem;
    max-height: 50vh;
    opacity: 1;
    transform: translateY(0);
  }
  .navbar.open .cta {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

