/* ===== BASE ===== */
body {
  margin: 0;
  padding-top: 65px;
  font-family: 'Merriweather', serif;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 10px 30px;
  border-bottom: 1px solid #e5e5e5;
  z-index: 1000;
}

/* ===== LOGOS ===== */
.header-left,
.header-right {
  display: flex;
  margin-left: 10px;
  align-items: center;
  flex: 0 0 220px;
  gap: 10px;
}

.header-right {
  white-space: nowrap;
  justify-self: end;
  margin-left: 0; 

}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 8px;
  transition: transform 0.25s ease;
}

.logo-link:hover {
  transform: translateY(-2px);
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.15;
}

.logo-main {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.sub-left,
.sub-right {
  font-size: 10px;
  color: #150b9b;
}

.sub-right {
  opacity: 0.8;
}

.logo {
  height: 38px;
}

/* ===== MENU ===== */
.material-symbols-outlined {
  font-size: 13px;
  color: #8a8a8a;
}

.menu {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: black;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: 0.25s;
}

.menu a:hover {
  background: #edf2ff;
  transform: translateY(-1px);
}

.menu a.active {
  color: #150b9b;
  background: #edf2ff;
  font-weight: 500;
}

.menu a.active .material-symbols-outlined {
  color: #150b9b;
}

/* ===== HAMBURGUESA ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: black;
  border-radius: 3px;
  transition: 0.3s;
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {

  .menu {
    gap: 20px;
  }

  .menu a {
    font-size: 16px;
  }

}

/* ===== MOVIL ===== */
@media (max-width: 768px) {

  .header {
    grid-template-columns: 1fr auto;
    padding: 10px 20px;
  }

  .header-right {
    display: none;
  }

  .logo {
    height: 32px;
  }

  .logo-text {
    font-size: 11px;
  }

  /* mostrar hamburguesa */
  .hamburger {
    display: flex;
  }

  /* menú lateral */
  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: white;

    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    padding: 80px 20px;
    gap: 20px;

    transition: 0.3s;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    z-index: 2000;
  }

  .menu.active {
    right: 0;
  }

}

/* ===== MOVIL PEQUEÑO ===== */
@media (max-width: 480px) {

  .menu a {
    font-size: 15px;
  }

}