/* css/menu.css */

/* Fuente personalizada */
@font-face {
  font-family: 'Adobe Clean Bold';
  src: url('../fonts/AdobeCleanBold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

/* Estructura base */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
 
  font-family: 'Adobe Clean Bold', sans-serif;
}

/* Logo */
.nav-logo img {
  height: 40px;
}

/* Ocultar toggle por defecto */
.nav-toggle {
  display: none;
}
.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
}
.nav-toggle-label span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #333;
  transition: background 0.2s;
}

/* Menú visible en desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Enlaces centrales */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #319d70;
}

/* Acciones a la derecha */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.search-btn svg {
  width: 20px;
  height: 20px;
  fill: #333;
}
.search-btn:hover svg {
  fill: #319d70;
}
.login-link {
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.login-link:hover {
  color: #319d70;
}
.cta-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: #319d70;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s;
}
.cta-btn:hover {
  background: #278a5d;
}

/* Responsive: convierte a hamburguesa */
@media (max-width: 768px) {
  .nav-toggle-label {
    display: flex;
  }
  /* Oculta menú por defecto */
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  /* Muestra menú cuando está toggled */
  .nav-toggle:checked + .nav-toggle-label + .nav-menu {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .nav-actions {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    margin-top: 1rem;
  }
}
