
.anc-header,.anc-header *{box-sizing:border-box}
.anc-header{position:relative;width:100%;z-index:999;--anc-header-top-start:#0E7139;--anc-header-top-end:#1F62AE}

.anc-header-top{min-height:45px;background:linear-gradient(90deg,var(--anc-header-top-start),var(--anc-header-top-end));color:#fff;display:flex;align-items:center}
.anc-header-top-inner{width:100%;max-width:1660px;margin:0 auto;padding:0 18px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.anc-header-top-link{display:inline-flex;align-items:center;gap:9px;color:#fff;text-decoration:none!important;font-size:16px;line-height:1.2}
.anc-header-top-link:hover{color:#fff}
.anc-header-top-link i,.anc-header-top-link svg{width:1em;height:1em;color:inherit;fill:currentColor;flex:0 0 auto}
.anc-header-main{min-height:98px;background:#fff;display:flex;align-items:center;box-shadow:0 3px 10px rgba(0,0,0,.04)}
.anc-header-inner{width:100%;max-width:1660px;margin:0 auto;padding:0 18px;display:flex;align-items:center;justify-content:space-between;gap:28px;position:relative}
.anc-header-logo{display:inline-flex;align-items:center;text-decoration:none!important;flex:0 0 auto}
.anc-header-logo img{width:175px;max-width:100%;height:auto;display:block}
.anc-header-nav{flex:1 1 auto;display:flex;justify-content:center;--anc-mobile-panel-bg:#fff}
.anc-header-menu{display:flex;align-items:center;justify-content:center;list-style:none;margin:0;padding:0}
.anc-header-menu>li{position:relative;margin-left:32px}
.anc-header-menu>li:first-child{margin-left:0}
.anc-header-menu a{position:relative;display:inline-flex;align-items:center;padding:40px 0 18px;color:#111;text-decoration:none!important;font-size:16px;font-weight:600;line-height:1.2;white-space:nowrap;transition:color .25s ease}
.anc-header-menu a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:#0E7139;transform:scaleX(0);transform-origin:left center;transition:transform .25s ease}
.anc-header-menu a:hover,.anc-header-menu .current-menu-item>a,.anc-header-menu .current_page_item>a{color:#0E7139}
.anc-header-menu a:hover::after,.anc-header-menu .current-menu-item>a::after,.anc-header-menu .current_page_item>a::after{transform:scaleX(1)}
.anc-header-menu .sub-menu{position:absolute;top:100%;left:0;min-width:220px;margin:0;padding:12px;list-style:none;background:#fff;border-radius:14px;box-shadow:0 18px 45px rgba(0,0,0,.12);opacity:0;visibility:hidden;transform:translateY(12px);transition:.25s ease;z-index:50}
.anc-header-menu li:hover>.sub-menu{opacity:1;visibility:visible;transform:translateY(0)}
.anc-header-menu .sub-menu li{margin:0}
.anc-header-menu .sub-menu a{width:100%;padding:10px 12px;font-size:14px}
.anc-header-menu .sub-menu a::after{display:none}
.anc-header-actions{display:flex;align-items:center;gap:18px;flex:0 0 auto}
.anc-header-language{display:inline-flex;align-items:center;gap:8px;color:#111;text-decoration:none!important;font-size:16px;font-weight:600;white-space:nowrap}
.anc-header-language i,.anc-header-language svg{width:.85em;height:.85em;color:inherit;fill:currentColor}
.anc-header-toggle{width:42px;height:42px;border:0;background:transparent;padding:7px;display:none;flex-direction:column;justify-content:center;gap:5px;cursor:pointer}
.anc-header-toggle span{display:block;width:100%;height:3px;border-radius:20px;background:#0E7139;transition:.25s ease}
.anc-header.anc-header-open .anc-header-toggle span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.anc-header.anc-header-open .anc-header-toggle span:nth-child(2){opacity:0}
.anc-header.anc-header-open .anc-header-toggle span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
@media(max-width:1180px){
.anc-header-bp-1180 .anc-header-toggle{display:flex}.anc-header-bp-1180 .anc-header-nav{position:absolute;left:0;right:0;top:100%;display:none;padding:18px;background:var(--anc-mobile-panel-bg,#fff);box-shadow:0 18px 40px rgba(0,0,0,.12);z-index:60}.anc-header-bp-1180.anc-header-open .anc-header-nav{display:block}.anc-header-bp-1180 .anc-header-menu{align-items:stretch;flex-direction:column}.anc-header-bp-1180 .anc-header-menu>li{margin-left:0!important;border-bottom:1px solid rgba(0,0,0,.08)}.anc-header-bp-1180 .anc-header-menu a{width:100%;padding:15px 4px}.anc-header-bp-1180 .anc-header-menu a::after{display:none}.anc-header-bp-1180 .anc-header-menu .sub-menu{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border-radius:0;padding:0 0 10px 15px}
}
@media(max-width:1024px){
.anc-header-bp-1024 .anc-header-toggle{display:flex}.anc-header-bp-1024 .anc-header-nav{position:absolute;left:0;right:0;top:100%;display:none;padding:18px;background:var(--anc-mobile-panel-bg,#fff);box-shadow:0 18px 40px rgba(0,0,0,.12);z-index:60}.anc-header-bp-1024.anc-header-open .anc-header-nav{display:block}.anc-header-bp-1024 .anc-header-menu{align-items:stretch;flex-direction:column}.anc-header-bp-1024 .anc-header-menu>li{margin-left:0!important;border-bottom:1px solid rgba(0,0,0,.08)}.anc-header-bp-1024 .anc-header-menu a{width:100%;padding:15px 4px}.anc-header-bp-1024 .anc-header-menu a::after{display:none}.anc-header-bp-1024 .anc-header-menu .sub-menu{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border-radius:0;padding:0 0 10px 15px}
}
@media(max-width:767px){
.anc-header-bp-767 .anc-header-toggle{display:flex}.anc-header-bp-767 .anc-header-nav{position:absolute;left:0;right:0;top:100%;display:none;padding:18px;background:var(--anc-mobile-panel-bg,#fff);box-shadow:0 18px 40px rgba(0,0,0,.12);z-index:60}.anc-header-bp-767.anc-header-open .anc-header-nav{display:block}.anc-header-bp-767 .anc-header-menu{align-items:stretch;flex-direction:column}.anc-header-bp-767 .anc-header-menu>li{margin-left:0!important;border-bottom:1px solid rgba(0,0,0,.08)}.anc-header-bp-767 .anc-header-menu a{width:100%;padding:15px 4px}.anc-header-bp-767 .anc-header-menu a::after{display:none}.anc-header-bp-767 .anc-header-menu .sub-menu{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border-radius:0;padding:0 0 10px 15px}
.anc-header-top-inner{justify-content:center;flex-wrap:wrap;gap:8px 18px;padding-top:8px;padding-bottom:8px}.anc-header-email{display:none}.anc-header-inner{gap:14px}.anc-header-language{font-size:14px}
}
@media(max-width:460px){.anc-header-language span:not(.anc-header-language-flag){display:none}}


/* v1.0.5 - header no language */
.anc-header-language{display:none !important;}


/* v1.0.6 - Sticky real solo para barra logo + menú */
.anc-header-sticky-yes .anc-header{
  position:relative;
}

.anc-header-spacer{
  display:none;
  height:0;
}

.anc-header.anc-header-sticky-enabled.anc-header-fixed .anc-header-main{
  position:fixed !important;
  top:var(--anc-header-sticky-top,0px) !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  z-index:9999 !important;
}

.anc-header.anc-header-sticky-enabled.anc-header-fixed .anc-header-spacer{
  display:block;
}


/* v1.0.7 - Sticky interno real, sin usar sticky del contenedor Elementor */
.anc-header.anc-header-sticky-enabled{
  position:relative;
}

.anc-header.anc-header-sticky-enabled.anc-header-fixed .anc-header-main{
  position:fixed !important;
  top:var(--anc-header-sticky-top,0px) !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  z-index:9999 !important;
}

.anc-header.anc-header-sticky-enabled.anc-header-fixed .anc-header-spacer{
  display:block !important;
}


/* v1.0.8 - menú opcional dentro del top bar después del correo */
.anc-header-top-inner{
  justify-content:flex-start;
}

.anc-header-email{
  margin-right:auto;
}

.anc-header-top-nav{
  margin-left:18px;
  flex:0 0 auto;
}

.anc-header-top-menu{
  display:flex;
  align-items:center;
  gap:20px;
  list-style:none;
  margin:0;
  padding:0;
}

.anc-header-top-menu li{
  margin:0;
  padding:0;
}

.anc-header-top-menu a{
  color:#fff;
  text-decoration:none !important;
  font-size:14px;
  font-weight:600;
  line-height:1.2;
  white-space:nowrap;
  transition:color .25s ease;
}

.anc-header-top-menu a:hover{
  color:#dfffe9;
}

@media(max-width:767px){
  .anc-header-top-nav{
    width:100%;
    margin-left:0;
  }

  .anc-header-top-menu{
    justify-content:center;
    flex-wrap:wrap;
    gap:10px 16px;
  }

  .anc-header-email{
    margin-right:0;
  }
}


/* v1.0.9 - alineación fina del menú del top bar con teléfono y correo */
.anc-header-top{
  align-items:center;
}

.anc-header-top-inner{
  align-items:center !important;
  justify-content:flex-start !important;
  line-height:1;
}

.anc-header-top-link{
  min-height:45px;
  display:inline-flex;
  align-items:center;
  line-height:1.2;
}

.anc-header-email{
  margin-right:auto;
}

.anc-header-top-nav{
  display:flex;
  align-items:center;
  min-height:45px;
  margin-left:22px;
  line-height:1.2;
}

.anc-header-top-menu{
  display:flex;
  align-items:center !important;
  justify-content:flex-end;
  height:100%;
  line-height:1.2;
}

.anc-header-top-menu li{
  display:flex;
  align-items:center;
  line-height:1.2;
}

.anc-header-top-menu a{
  display:inline-flex;
  align-items:center;
  min-height:45px;
  padding:0;
  line-height:1.2;
}

@media(max-width:767px){
  .anc-header-top-link{
    min-height:auto;
  }

  .anc-header-email{
    margin-right:0;
  }

  .anc-header-top-nav{
    min-height:auto;
    margin-left:0;
  }

  .anc-header-top-menu a{
    min-height:auto;
    padding:4px 0;
  }
}


/* v1.1.0 - visibilidad independiente del top bar por PC / tablet / móvil */
.anc-header-top-inner{
  display:flex;
  align-items:center !important;
  justify-content:flex-start !important;
  flex-wrap:nowrap;
  gap:18px 22px;
}

.anc-header-top-link{
  flex:0 0 auto;
}

.anc-header-email{
  margin-right:0 !important;
}

.anc-header-top-nav{
  margin-left:auto !important;
  flex:0 1 auto;
  min-width:0;
}

.anc-header-top-menu{
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px 20px;
}

@media(min-width:1025px){
  .anc-header-top.anc-hide-phone-desktop .anc-header-phone{display:none !important;}
  .anc-header-top.anc-hide-email-desktop .anc-header-email{display:none !important;}
  .anc-header-top.anc-hide-top-menu-desktop .anc-header-top-nav{display:none !important;}
}

@media(min-width:768px) and (max-width:1024px){
  .anc-header-top.anc-hide-phone-tablet .anc-header-phone{display:none !important;}
  .anc-header-top.anc-hide-email-tablet .anc-header-email{display:none !important;}
  .anc-header-top.anc-hide-top-menu-tablet .anc-header-top-nav{display:none !important;}

  .anc-header-top-inner{
    flex-wrap:wrap;
  }

  .anc-header-top-nav{
    margin-left:auto !important;
  }
}

@media(max-width:767px){
  .anc-header-top.anc-hide-phone-mobile .anc-header-phone{display:none !important;}
  .anc-header-top.anc-hide-email-mobile .anc-header-email{display:none !important;}
  .anc-header-top.anc-hide-top-menu-mobile .anc-header-top-nav{display:none !important;}

  .anc-header-top-inner{
    justify-content:center !important;
    flex-wrap:wrap;
    gap:8px 16px;
  }

  .anc-header-top-link{
    display:inline-flex;
  }

  .anc-header-top-nav{
    width:auto;
    margin-left:0 !important;
    flex:0 1 auto;
  }

  .anc-header-top-menu{
    justify-content:center;
    flex-wrap:wrap;
    gap:8px 14px;
  }
}

@media(max-width:420px){
  .anc-header-top-inner{
    gap:7px 12px;
  }

  .anc-header-top-link span{
    white-space:nowrap;
  }
}
