#header {
  height: 100px;
  background: transparent !important;
  z-index: 1200;
  transition: background-color 0.3s ease;
  font-family: "Manrope", Arial, sans-serif !important;
}

#header.active {
  /* Sin fondo ni sombra: .active solo controla botón PROYECTOS */
}

#header .row,
#header .col-12,
#navbar_header {
  height: 100%;
}

#header .row {
  align-items: center;
}

#navbar_header {
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-basis: 100% !important;
}

.header__logo-link {
  display: inline-flex;
  align-items: center;
  height: 80px;
}

.header__logo {
  display: block;
  height: 80px;
  width: auto;
  max-height: 100%;
}

.header__logo--blanco {
  display: block;
}

.header__logo--negro {
  display: none;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__btn-proyectos {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 40px;
  background-color: #1C9B83;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

#header.active .header__btn-proyectos {
  opacity: 1;
  pointer-events: auto;
}

.header__btn-proyectos:hover {
  color: #ffffff;
  background-color: #167866;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(28, 155, 131, 0.35);
}

.header__btn-proyectos:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(28, 155, 131, 0.25);
}

.header__hamburguesa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: auto;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.header__hamburguesa-icon {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
  opacity: 0;
}

#header.active .header__hamburguesa-icon {
  filter: brightness(0) invert(1);
  opacity: 1;
}

#menu-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  display: flex !important;
  justify-content: flex-end;
  z-index: 1300;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0);
  transform: none !important;
  transition: opacity 0.35s ease, background-color 0.35s ease, visibility 0s linear 0.35s;
}

#menu-mobile.show {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.45);
  transform: none !important;
  transition: opacity 0.35s ease, background-color 0.35s ease, visibility 0s linear 0s;
}

#menu-mobile > div:first-child {
  flex-basis: 60%;
  height: 100%;
  cursor: pointer;
}

#menu-mobile > div:nth-child(2) {
  flex-basis: 40%;
  height: 100%;
  background-color: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
}

#menu-mobile.show > div:nth-child(2) {
  transform: translateX(0);
}

#contenedor-interno-menu-mobile,
.header__mobile-panel {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  flex-basis: auto !important;
  margin: 0 !important;
  padding-top: 0 !important;
}

#contenedor-interno-menu-mobile > p {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.close-menu-mobile {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.close-menu-mobile::before,
.close-menu-mobile::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background-color: #ffffff;
}

.close-menu-mobile::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-menu-mobile::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.header__mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 65%;
  height: 80%;
  max-height: 80%;
  flex: 0 0 80%;
  text-align: center;
  box-sizing: border-box;
}

.header__mobile-link {
  display: block;
  width: 100%;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 0;
  transition: color 0.25s ease;
  text-align: start;
}

.header__mobile-link:hover {
  color: #1C9B83;
  text-decoration: none;
}

.header__mobile-link--active {
  color: #1C9B83;
  font-weight: 600;
}

.header__mobile-nav__social {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 28px;
  width: 100%;
  margin-top: 30px;
  padding-top: 24px;
  flex-shrink: 0;
}

.header__mobile-nav__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.header__mobile-nav__social-link:hover {
  opacity: 0.85;
}

.header__mobile-nav__social-icon {
  display: block;
  width: 26px;
  height: auto;
}

.header__mobile-nav__social-icon--instagram {
  width: 32px;
}

.seccion1 {
  margin-top: 0 !important;
}

@media (min-width: 992px) {
  .header__hamburguesa-icon {
    opacity: 1;
  }

  #header.header--logo-blanco .header__logo--blanco {
    display: block;
  }

  #header.header--logo-blanco .header__logo--negro {
    display: none;
  }

  #header.header--logo-negro .header__logo--blanco {
    display: none;
  }

  #header.header--logo-negro .header__logo--negro {
    display: block;
  }

  #header.header--logo-blanco .header__hamburguesa-icon {
    filter: brightness(0) invert(1);
    mix-blend-mode: normal;
  }

  #header.header--logo-negro .header__hamburguesa-icon {
    filter: brightness(0);
    mix-blend-mode: normal;
  }

  .header__mobile-panel {
    padding: 80px 48px 48px;
  }

  .header__mobile-link {
    font-size: 16px;
    padding: 14px 0;
  }
}

@media (max-height: 700px) {
  .header__mobile-panel {
    padding-top: 48px;
    padding-bottom: 16px;
  }

  .header__mobile-nav {
    height: 85%;
    max-height: 85%;
    flex: 0 0 85%;
    gap: 4px;
  }

  .header__mobile-link {
    padding: 7px 0;
    font-size: 13px;
  }

  .header__mobile-nav__social {
    margin-top: 14px;
    padding-top: 10px;
    gap: 22px;
  }
}

@media (max-width: 1399.98px) {
  #header {
    height: 80px;
  }

  .header__logo-link {
    height: 64px;
  }

  .header__logo {
    height: 64px;
  }
}

@media (max-width: 991.98px) {
  #header {
    height: 80px;
    background: #000 !important;
  }

  .header__btn-proyectos {
    display: none;
  }

  .header__hamburguesa-icon {
    opacity: 1;
    filter: brightness(0) invert(1);
  }

  #menu-mobile > div:first-child {
    flex-basis: 20%;
  }

  #menu-mobile > div:nth-child(2) {
    flex-basis: 80%;
  }

  .header__mobile-panel {
    padding: 76px 20px 36px;
  }

  .header__mobile-link {
    font-size: 14px;
    padding: 11px 0;
  }

  .close-menu-mobile {
    top: 28px;
    right: 28px;
  }
}

@media (max-width: 767.98px) {
  #header {
    height: 65px;
  }

  #navbar_header {
    padding: 0 16px;
  }

  .header__logo-link {
    height: 58px;
  }

  .header__logo {
    height: 58px;
  }

  .header__btn-proyectos {
    width: 120px;
    height: 36px;
    font-size: 14px;
  }
}
