/* Header siempre visible arriba */
.header-area {
  position: sticky;      /* si querés que esté siempre fijo usá: position: fixed; */
  top: 0;
  z-index: 999;
  background: #ffffff;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

/* Transición suave del logo */
.header-area .logo-area img {
  transition: max-height 0.3s ease;
}

/* Estado "chico" cuando se hace scroll */
.header-area.header-small {
  padding-top: 5px;
  padding-bottom: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Logo más chico en el header reducido */
.header-area.header-small .logo-area img {
  max-height: 80px !important;   /* sobreescribe el inline de 140px */
}

/* ====== NUEVOS ESTILOS DEL HEADER (RECREADOS DESDE EL DISEÑO) ====== */

/* Ajustes estructurales de contenedor */
.header-area .container-fluid {
    padding: 10px 25px;
    max-width: 1400px;
    margin: 0 auto;
}
.header-content-wraper {
    align-items: center;
}

/* Parte Superior Derecha: Banderas y Cliente */
.header-content-right-top {
    margin-bottom: 2px;
    gap: 15px; /* Separación entre botón Cliente y Banderas */
}

.profile-area a {
    display: inline-flex;
    align-items: center;
    padding: 2px 14px;
    border: 2px solid #333;
    border-radius: 4px;
    color: #558641; /* Verde texto */
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.profile-area a span {
    margin-right: 8px;
    color: #555;
}

.profile-area a:hover {
    background: #f8f8f8;
}

.location-flag ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 10px;
    align-items: center;
}

.location-flag img {
    width: 25px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 2px;
    display: block;
}

/* Menú Principal */
.header-content-menua-area {
    justify-content: flex-end;
}

.menu-area ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    align-items: center;
}

.menu-area ul li {
    margin: 0;
    padding: 0;
}

.menu-area .nav-link {
    color: #558641;
    font-weight: 500;
    font-size: 1.15rem;
    text-decoration: none;
    padding: 6px 0;
    position: relative;
    transition: color 0.3s;
}

.menu-area .nav-link:hover,
.menu-area .nav-item.is-active .nav-link {
    color: #3b612d;
}

/* Animación original del subrayado verde */
.menu-area .nav-link::after,
.menu-area .nav-item.is-active .nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    bottom: -6px;
    height: 2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #558641;
    transition: all 0.5s;
}

/* Desplegar la barra en hover o si está activo, excepto en el CTA */
.menu-area .nav-item:not(:last-child) .nav-link:hover::after,
.menu-area .nav-item.is-active:not(:last-child) .nav-link::after {
    width: 90%;
}

/* Botón de Contacto (Último ítem del menú) */
.menu-area ul li:last-child {
    margin-left: 10px;
}

.menu-area ul li:last-child .nav-link {
    background: #558641;
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 700;
}

.menu-area ul li:last-child .nav-link:hover {
    background: #446d33;
    color: white;
}
