/* ============================================================
   NAVBAR — OrigenPasto
   Archivo: web/css/navbar.css
   ============================================================ */

/* ---------- Contenedor principal ---------- */
.op-navbar {
  width: 100%;
  padding: 15px 10% 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  background: #ffffff;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Sombra más pronunciada al hacer scroll */
.op-navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
}

/* ---------- Header (logo + toggle) ---------- */
.op-navbar-header {
  width: 33%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------- Botón hamburguesa (móvil) ---------- */
.op-navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #0A411A;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
  margin-left: auto !important;  /* ← agrega esto */
}

.op-navbar-toggle:hover {
  background: #f1f8f1;
}

/* ---------- Menú de navegación ---------- */
.op-navbar-menu {
  display: flex;
  flex-wrap: wrap;   /* ← agregado: permite que .op-navbar-social baje de línea */
  gap: 0px;
  align-items: center;
}

/* ---------- LINKS — estado normal ---------- */
.op-navbar-menu a {
  text-decoration: none;
  color: #0e2301;
  font-size: 18px;
  font-weight: 500;
  padding: 7px 16px 1px 10px;
  border-radius: 25px;
  position: relative;
  transition: color 0.25s ease, background 0.25s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ---------- LINKS — hover: fondo verde suave ---------- */
.op-navbar-menu a:hover {
  color: #ffffff;
  background: #0A411A;
  text-decoration: none;
  padding: 12px 16px 10px 10px;
}

/* ---------- LINKS — activo (página actual) ---------- */
.op-navbar-menu a.active,
.op-navbar-menu a[aria-current="page"] {
  color: #0A411A;
  font-weight: 600;
  background: #f0f8f0;
}

.op-navbar-menu a.active:hover {
  color: #ffffff;
  background: #0A411A;
}

/* ---------- Botón Login / CTA destacado ---------- */
.op-navbar-menu a[href*="login"] {
  color: #0A411A;
  border: 2px solid #0A411A;
  padding: 7px 18px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.op-navbar-menu a[href*="login"]:hover {
  background: #0A411A;
  color: #ffffff !important;
}

/* ---------- Botón Logout ---------- */
.op-navbar-logout {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 20px;
  transition: color 0.2s, background 0.2s;
}

.op-navbar-logout:hover {
  color: #c0392b;
  background: #fdf0ef;
}

.op-navbar-logo{
  max-height: 100px;
}

/* ============================================================
   RESPONSIVE — móvil
   ============================================================ */

@media (max-width: 768px) {

  .op-navbar {
    flex-wrap: wrap;
    padding: 12px 20px;
  }

  .op-navbar-toggle {
    display: block;
  }

  .op-navbar-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 12px;
    gap: 4px;
    padding-bottom: 8px;
    border-top: 1px solid #e8f5e9;
  }
  .op-navbar-header {
    width: 100%;
  }

  .op-navbar-menu.active {
    display: flex;
  }

  /* En móvil los links ocupan todo el ancho */
  .op-navbar-menu a {
    border-radius: 10px;
    padding: 10px 14px;
    text-align: left;
  }

  .op-navbar-logo img{
    max-height: 80px;
    margin-left: -20px;
    margin-right: 23px;
  }

}

.op-navbar-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;  /* ← esto los alinea a la derecha */
  gap: 1px;
  margin-top: 11px;
  margin-right: 70px;
  flex-basis: 100%;   /* fuerza el salto de línea dentro del flex */
  width: 100%;
}

.op-navbar-social a {
  display: inline-flex;
  color: #41250a;      /* verde de tu marca, visible sobre fondo blanco */
  transition: color 0.2s ease, transform 0.2s ease;
}

.op-navbar-social a:hover {
  color: #283d21;
  transform: scale(1.1);
  text-align: center;
  padding-left: 15px;
}

.op-navbar-social svg {
  width: 20px;          /* pequeño, como pediste */
  height: 20px;
  fill: rgb(10 65 26);
}

.op-navbar-social svg:hover {
  fill: rgb(255, 255, 255);
}


@media (max-width: 768px) {
  .op-navbar-social {
    margin-top: 20px;
    gap: 18px;
  }
  .op-navbar-social svg {
    width: 22px;
    height: 22px;
  }
}


.btn-rouge{
  background-color: #c0392b;
  border: 2px solid orangered;
  color: #f1f8f1 !important;
  height: 39px;
  font-size: 13px!important;
  font-weight: bold !important;

}