@import url(css_reset.css);
@import "https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;700;900&display=swap";
@import "https://fonts.googleapis.com/css2?family=Raleway:wght@500;700;800&display=swap";
@import url("fonts/icomoon/style.css");
.estilo-header {
  display: flex;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  align-items: center;
  background-color: #9542e8;
  width: 100%;
  height: 80px;
  /*margin-bottom: 20px;*/
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  transition: none !important; /* evita animaciones al hacer scroll */
}


/* ===== TÍTULO CENTRAL ===== */


.titulo-container {
  flex: 1;
  text-align: left;
  padding: 0 8px;

  overflow: visible; /* No recorta el texto */
}

.titulo-container h2 {
  color: #fff;
  font-weight: 600;
  font-size: clamp(12px, 2.5vw, 20px);
  margin: 0;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.titulo-container h2 span {
  display: block;
  font-size: clamp(10px, 2vw, 14px);
  font-weight: 400;
}

.logo-derecha {
  height: clamp(25px, 5vw, 45px);
  width: auto;
  object-fit: contain;
}


.estilo-header .logo {
  display: block;
  width: auto;
  height: 70%;
}

.estilo-header .icon {
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 75%;
  background-color: #4B575E;
  position: relative;
 
}

.estilo-header .icon.icon-ieem-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #4B575E;
  color: white;
  width: 150px;
  height: 100%;
  font-size: 40px;


}

.estilo-header .icon::after {
  display: block;
  content: "";
  width: 2px;
  height: 90%;
  position: absolute;
  background-color: #fff;
  top: 0;
  bottom: 0;
  right: 0;
  margin: auto;
}


  #btn-main-menu {
    display: block;
  }
  input.icon-nav[type=checkbox] {
    display: block;
    appearance: none;
    cursor: pointer;
    position: absolute;
    z-index: 51;
    right: -10px;
    top: 5px;
    margin: 10px 20px;
  }
  input.icon-nav[type=checkbox]::before {
    display: block;
    content: "\e9bd";
    font-size: 28px;
    font-family: "icomoon";
    color: #4B575E;
    background-color: #fff;
    border: solid 1px #ccc;
    padding: 5.1px;
    border-radius: 5px;
    width: 40px;
    height: 40px;
  }
  #btn-main-menu:checked ~ .nav-template {
    transform: translateX(0%);
  }

.nav-template {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateX(-100%);
  transition: all 0.3s;
  height: 100%;
  padding: 60px 0 0 0;       /* igual a la altura del header */
  background-color: #f09;
}
.nav-template ul {
  display: flex;
  flex-direction: column;
  background-color: #f09;
}
  

main {
  width: 100%;
  max-width: 1280px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 30px;
  justify-content: space-around;
  position: relative;
}

/* Logo derecho */
.estilo-header img {
    height: 45px;
    max-width: 100%;
    object-fit: contain;
    margin-left: auto;
    margin-right: 10px;
}

header.scrolled {
    background-color: #6C0D81 !important; /* forzamos el mismo color */
}






