/* The fixed shell is separate from the homepage hero's own navigation. */
:root { --eiatec-header-height: 57px; }
html { scroll-padding-top: calc(var(--eiatec-header-height) + 12px); }
body { padding-top: var(--eiatec-header-height); }
.site-header.eiatec-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: block;
  height: var(--eiatec-header-height);
  padding: 0;
  background: rgba(1, 48, 54, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: background .45s cubic-bezier(.25, 1, .5, 1), border-color .45s cubic-bezier(.25, 1, .5, 1), backdrop-filter .45s, box-shadow .45s;
}
/* Inner pages: the public header component shows its page background, this gradient, through the bar;
   hover and focus darken it with the same translucent layer the public bar fades in. */
body:not(.home) .site-header.eiatec-header { background: linear-gradient(135deg, #013036 0%, #0a4a3a 50%, #012a30 100%); }
body:not(.home) .site-header.eiatec-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(1, 30, 36, .93);
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s cubic-bezier(.25, 1, .5, 1);
}
body:not(.home) .eiatec-header:hover::before,
body:not(.home) .eiatec-header:focus-within::before { opacity: 1; }
.eiatec-header:hover,
.eiatec-header:focus-within {
  background: rgba(1, 30, 36, .93);
  border-bottom-color: rgba(98, 180, 85, .4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 32px rgba(0, 0, 0, .55);
}
.eiatec-header-inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 clamp(12px, 3vw, 44px);
}
.eiatec-header .site-brand {
  flex: 0 0 auto;
  width: 90px;
  margin-right: auto;
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
.eiatec-header .site-brand img { width: 100%; max-height: 26px; object-fit: contain; filter: brightness(0) invert(1); }
.eiatec-header:hover .site-brand,
.eiatec-header:focus-within .site-brand { opacity: 1; transform: translateY(0); pointer-events: auto; }
.eiatec-header .site-brand:focus-visible { outline: 2px solid #62b455; outline-offset: 4px; }
.eiatec-header .primary-navigation { display: block; position: static; inset: auto; margin-left: auto; padding: 0; background: transparent; box-shadow: none; }
.eiatec-header .eiatec-header-menu {
  display: flex;
  align-items: center;
  gap: clamp(2px, .8vw, 8px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.eiatec-header .eiatec-header-menu > li { display: flex; align-items: center; }
.eiatec-header .eiatec-header-menu > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 40px;
  padding: clamp(6px, 1vh, 10px) clamp(9px, 1.3vw, 15px);
  border: 1px solid transparent;
  border-radius: 99px;
  background: transparent;
  color: rgba(255, 255, 255, .5);
  font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
  font-size: 0;
  font-weight: 500;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all .35s cubic-bezier(.25, 1, .5, 1);
}
.eiatec-header .eiatec-nav-label { opacity: 0; transition: opacity .35s cubic-bezier(.25, 1, .5, 1); }
.eiatec-header .eiatec-nav-icon { display: inline-grid; flex: 0 0 auto; width: 22px; height: 22px; place-items: center; }
.eiatec-header .eiatec-nav-icon::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask: var(--eiatec-menu-icon) center / contain no-repeat;
  mask: var(--eiatec-menu-icon) center / contain no-repeat;
  transition: color .3s ease, width .35s, height .35s;
}
.eiatec-header:hover .eiatec-header-menu > li > a,
.eiatec-header:focus-within .eiatec-header-menu > li > a {
  gap: 7px;
  min-width: 0;
  padding: clamp(6px, 1vh, 10px) clamp(13px, 1.9vw, 21px);
  color: rgba(255, 255, 255, .75);
  font-size: clamp(11px, 1.15vw, 13px);
}
.eiatec-header:hover .eiatec-nav-label,
.eiatec-header:focus-within .eiatec-nav-label { opacity: 1; }
.eiatec-header:hover .eiatec-nav-icon,
.eiatec-header:focus-within .eiatec-nav-icon { width: 17px; height: 17px; }
.eiatec-header .eiatec-header-menu > li > a:hover,
.eiatec-header .eiatec-header-menu > li > a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .16);
  transform: translateY(-1px);
}
.eiatec-header .eiatec-header-menu > li > a:focus-visible { outline: 2px solid #eaae27; outline-offset: 2px; }
.eiatec-header .eiatec-nav-cta { margin-left: 6px; padding-left: 6px; border-left: 1px solid transparent; transition: border-color .4s ease; }
.eiatec-header:hover .eiatec-nav-cta,
.eiatec-header:focus-within .eiatec-nav-cta { border-left-color: rgba(255, 255, 255, .16); }
.eiatec-header .eiatec-header-menu > li.eiatec-nav-cta > a { color: #62b455; font-weight: 700; }
.eiatec-header:hover .eiatec-header-menu > li.eiatec-nav-cta > a,
.eiatec-header:focus-within .eiatec-header-menu > li.eiatec-nav-cta > a { background: #62b455; border-color: #62b455; color: #013036; }
.eiatec-header .eiatec-header-menu > li.eiatec-nav-cta > a:hover,
.eiatec-header .eiatec-header-menu > li.eiatec-nav-cta > a:focus-visible {
  background: #eaad26;
  border-color: #eaad26;
  color: #013036;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 173, 38, .4);
}
.eiatec-header .menu-toggle { display: none; }

/* Menu item CSS Classes in Appearance > Menus select these local line icons. */
.eiatec-header-menu > li { --eiatec-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3C/svg%3E"); }
.eiatec-header-menu > li.eiatec-icon-home { --eiatec-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V21h-6v-7H9v7H3z'/%3E%3C/svg%3E"); }
.eiatec-header-menu > li.eiatec-icon-team { --eiatec-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M2.5 20v-2c0-3 2.8-5 6.5-5s6.5 2 6.5 5v2M16 5.5a3 3 0 0 1 0 5.8M18 13.5c2.2.7 3.5 2.3 3.5 4.5v2'/%3E%3C/svg%3E"); }
.eiatec-header-menu > li.eiatec-icon-leaf { --eiatec-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 4C9 4 4 9 4 16a4 4 0 0 0 4 4c7 0 12-5 12-16ZM4 20c3-5 7-8 12-10'/%3E%3C/svg%3E"); }
.eiatec-header-menu > li.eiatec-icon-projects { --eiatec-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6h7l2 2h10v12h-19zM2.5 6V4h7M7 16l3-3 2 2 4-4 2 2'/%3E%3C/svg%3E"); }
.eiatec-header-menu > li.eiatec-icon-article { --eiatec-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E"); }
.eiatec-header-menu > li.eiatec-icon-briefcase { --eiatec-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='14' rx='2'/%3E%3Cpath d='M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2M3 13c5 3 13 3 18 0'/%3E%3C/svg%3E"); }
.eiatec-header-menu > li.eiatec-icon-mail { --eiatec-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2'/%3E%3Cpath d='m3.5 7 8.5 6 8.5-6M15.5 17l4-4'/%3E%3C/svg%3E"); }

/*
 * Phones: Wix renders the public mobile site at a 320px layout width and scales it to the screen,
 * so the phone rules below take the public 320px values times --eiatec-m (1.22 at 390px).
 */
:root { --eiatec-m: 1px; }

/* Compact icon row (U0-15). The public inner header keeps an invisible logo in the flow, which pushes
   the row past the screen and cuts off the contact icon; here the logo leaves the row and the seven
   icons share the width, so every one stays visible. No menu button on inner pages. */
@media (max-width: 1100px) {
  :root { --eiatec-header-height: 52px; }
  .eiatec-header-inner { justify-content: flex-end; padding: 0 8px; }
  .eiatec-header .site-brand { display: none; }
  .eiatec-header .primary-navigation { margin: 0; }
  .eiatec-header .eiatec-header-menu { gap: 0; }
  .eiatec-header .eiatec-header-menu > li > a,
  .eiatec-header:hover .eiatec-header-menu > li > a,
  .eiatec-header:focus-within .eiatec-header-menu > li > a { gap: 0; min-width: 40px; padding: 7px 9px; font-size: 0; }
  .eiatec-header .eiatec-nav-icon,
  .eiatec-header:hover .eiatec-nav-icon,
  .eiatec-header:focus-within .eiatec-nav-icon { width: 18px; height: 18px; }
  .eiatec-header .eiatec-nav-label,
  .eiatec-header:hover .eiatec-nav-label,
  .eiatec-header:focus-within .eiatec-nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; clip-path: inset(50%); }
  .eiatec-header .eiatec-nav-cta { margin-left: 0; padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  .eiatec-header .primary-navigation { flex: 1 1 auto; }
  .eiatec-header .eiatec-header-menu { justify-content: space-between; }
  .eiatec-header .eiatec-header-menu > li { flex: 1 1 0; justify-content: center; }
  .eiatec-header .eiatec-header-menu > li > a,
  .eiatec-header:hover .eiatec-header-menu > li > a,
  .eiatec-header:focus-within .eiatec-header-menu > li > a { min-width: 0; padding-inline: 0; width: 100%; }
}
@media (max-width: 480px) {
  :root { --eiatec-m: calc(clamp(320px, 100vw, 430px) / 320); --eiatec-header-height: calc(52 * var(--eiatec-m)); }
  .eiatec-header-inner { padding: 0 calc(12 * var(--eiatec-m)); }
  .eiatec-header .eiatec-header-menu > li > a,
  .eiatec-header:hover .eiatec-header-menu > li > a,
  .eiatec-header:focus-within .eiatec-header-menu > li > a { padding-block: calc(6 * var(--eiatec-m)); }
  .eiatec-header .eiatec-nav-icon,
  .eiatec-header:hover .eiatec-nav-icon,
  .eiatec-header:focus-within .eiatec-nav-icon { width: calc(18 * var(--eiatec-m)); height: calc(18 * var(--eiatec-m)); }
}

/* Homepage drawer (public home menu, M01): logo at the left, menu button at the right, and a
   right-side panel of icons, labels and the CONTÁCTANOS pill that slides in over a dimmed page.
   It needs JavaScript (the eiatec-js class set in header.php); without it the icon row stays. */
.eiatec-menu-overlay { position: fixed; inset: 0; z-index: 999; background: rgba(0, 0, 0, .4); }
.eiatec-menu-overlay[hidden] { display: none; }
@media (max-width: 850px), (hover: none), (pointer: coarse) {
  html.eiatec-js body.home .eiatec-header-inner { justify-content: space-between; padding: 0 clamp(12px, 3vw, 40px); }
  html.eiatec-js body.home .eiatec-header.menu-open {
    background: rgba(1, 30, 36, .92);
    border-bottom-color: rgba(98, 180, 85, .4);
    box-shadow: 0 4px 28px rgba(0, 0, 0, .5);
  }
  html.eiatec-js body.home .eiatec-header .site-brand,
  html.eiatec-js body.home .eiatec-header:hover .site-brand,
  html.eiatec-js body.home .eiatec-header:focus-within .site-brand { display: block; width: auto; margin-right: auto; opacity: .9; transform: none; pointer-events: auto; }
  html.eiatec-js body.home .eiatec-header .site-brand img { width: auto; height: 26px; max-height: none; }
  html.eiatec-js body.home .eiatec-header .menu-toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 8px;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, .9);
    cursor: pointer;
    transition: color .3s ease;
  }
  html.eiatec-js body.home .eiatec-header .menu-toggle:hover { color: #62b455; }
  html.eiatec-js body.home .eiatec-header .menu-toggle:focus-visible { outline: 2px solid #eaae27; outline-offset: 2px; }
  html.eiatec-js body.home .eiatec-header .eiatec-menu-icon { display: block; width: 24px; height: 24px; }
  html.eiatec-js body.home .eiatec-header .menu-toggle[aria-expanded="true"] .eiatec-menu-icon-open,
  html.eiatec-js body.home .eiatec-header .menu-toggle:not([aria-expanded="true"]) .eiatec-menu-icon-close { display: none; }
  html.eiatec-js body.home .eiatec-header .primary-navigation {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1;
    width: 72vw;
    max-width: 300px;
    height: 100vh;
    margin: 0;
    padding: calc(var(--eiatec-header-height) + 18px) 22px 36px;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, .1);
    background: rgba(1, 30, 36, .98);
    -webkit-backdrop-filter: blur(28px);
    backdrop-filter: blur(28px);
    box-shadow: -10px 0 38px rgba(0, 0, 0, .5);
    transform: translateX(calc(100% + 40px));
    visibility: hidden;
    transition: transform .4s cubic-bezier(.25, 1, .5, 1), visibility 0s linear .4s;
  }
  html.eiatec-js body.home .eiatec-header .primary-navigation.is-open { transform: none; visibility: visible; transition: transform .4s cubic-bezier(.25, 1, .5, 1), visibility 0s; }
  html.eiatec-js body.home .eiatec-header .eiatec-header-menu { flex-direction: column; align-items: stretch; gap: 5px; }
  html.eiatec-js body.home .eiatec-header .eiatec-header-menu > li { display: block; flex: none; width: 100%; }
  html.eiatec-js body.home .eiatec-header .eiatec-header-menu > li > a,
  html.eiatec-js body.home .eiatec-header:hover .eiatec-header-menu > li > a,
  html.eiatec-js body.home .eiatec-header:focus-within .eiatec-header-menu > li > a {
    justify-content: flex-start;
    gap: 11px;
    width: 100%;
    min-width: 0;
    padding: 11px 14px;
    border-radius: 11px;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(14px, 3.5vw, 17px);
    line-height: normal;
    transform: none;
    /* Not "all": an inherited visibility change would keep a link unfocusable for one frame. */
    transition: background-color .3s ease, border-color .3s ease, color .3s ease;
  }
  html.eiatec-js body.home .eiatec-header .eiatec-header-menu > li > a:hover { background: rgba(255, 255, 255, .06); border-color: transparent; color: #fff; }
  html.eiatec-js body.home .eiatec-header .eiatec-nav-icon,
  html.eiatec-js body.home .eiatec-header:hover .eiatec-nav-icon,
  html.eiatec-js body.home .eiatec-header:focus-within .eiatec-nav-icon { width: 18px; height: 18px; color: #62b455; }
  html.eiatec-js body.home .eiatec-header .eiatec-nav-label,
  html.eiatec-js body.home .eiatec-header:hover .eiatec-nav-label,
  html.eiatec-js body.home .eiatec-header:focus-within .eiatec-nav-label { position: static; width: auto; height: auto; overflow: visible; opacity: 1; clip-path: none; }
  html.eiatec-js body.home .eiatec-header .eiatec-nav-cta,
  html.eiatec-js body.home .eiatec-header:hover .eiatec-nav-cta,
  html.eiatec-js body.home .eiatec-header:focus-within .eiatec-nav-cta { margin: 10px 0 0; padding: 0; border: 0; }
  html.eiatec-js body.home .eiatec-header .eiatec-header-menu > li.eiatec-nav-cta > a,
  html.eiatec-js body.home .eiatec-header:hover .eiatec-header-menu > li.eiatec-nav-cta > a,
  html.eiatec-js body.home .eiatec-header:focus-within .eiatec-header-menu > li.eiatec-nav-cta > a,
  html.eiatec-js body.home .eiatec-header .eiatec-header-menu > li.eiatec-nav-cta > a:hover {
    justify-content: center;
    border-color: #62b455;
    background: #62b455;
    color: #013036;
    font-weight: 700;
    transform: none;
    box-shadow: none;
  }
  /* As on the public menu, the pill's icon takes the pill's own green, so only the label shows. */
  html.eiatec-js body.home .eiatec-header .eiatec-nav-cta .eiatec-nav-icon { color: #62b455; }
}
@media (max-width: 480px) {
  html.eiatec-js body.home { --eiatec-header-height: calc(48 * var(--eiatec-m)); }
  html.eiatec-js body.home .eiatec-header-inner { padding: 0 calc(12 * var(--eiatec-m)); }
  html.eiatec-js body.home .eiatec-header .site-brand img { height: calc(26 * var(--eiatec-m)); }
  html.eiatec-js body.home .eiatec-header .menu-toggle { padding: calc(8 * var(--eiatec-m)); }
  html.eiatec-js body.home .eiatec-header .eiatec-menu-icon { width: calc(24 * var(--eiatec-m)); height: calc(24 * var(--eiatec-m)); }
  html.eiatec-js body.home .eiatec-header .primary-navigation { padding: calc(66 * var(--eiatec-m)) calc(22 * var(--eiatec-m)) calc(36 * var(--eiatec-m)); }
  html.eiatec-js body.home .eiatec-header .eiatec-header-menu { gap: calc(5 * var(--eiatec-m)); }
  html.eiatec-js body.home .eiatec-header .eiatec-header-menu > li > a,
  html.eiatec-js body.home .eiatec-header:hover .eiatec-header-menu > li > a,
  html.eiatec-js body.home .eiatec-header:focus-within .eiatec-header-menu > li > a { gap: calc(11 * var(--eiatec-m)); padding: calc(11 * var(--eiatec-m)) calc(14 * var(--eiatec-m)); border-radius: calc(11 * var(--eiatec-m)); font-size: calc(14 * var(--eiatec-m)); }
  html.eiatec-js body.home .eiatec-header .eiatec-nav-icon,
  html.eiatec-js body.home .eiatec-header:hover .eiatec-nav-icon,
  html.eiatec-js body.home .eiatec-header:focus-within .eiatec-nav-icon { width: calc(18 * var(--eiatec-m)); height: calc(18 * var(--eiatec-m)); }
  html.eiatec-js body.home .eiatec-header .eiatec-nav-cta,
  html.eiatec-js body.home .eiatec-header:hover .eiatec-nav-cta,
  html.eiatec-js body.home .eiatec-header:focus-within .eiatec-nav-cta { margin-top: calc(10 * var(--eiatec-m)); }
}
@media (prefers-reduced-motion: reduce) {
  .eiatec-header, .eiatec-header *, .eiatec-header *::before, .eiatec-header *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
