/* ==================== HEADER PRINCIPAL ==================== */

/* --- Logotipos y contenedor --- */
.logo {
  height: 8vh;
}

.logos {
  display: flex;
  width: 30%;
  justify-content: flex-end;
  align-items: center;
}

#logo {
  width: 30%;
}

.logo a {
  width: 100%;
}

.gmc {
  height: 9vh;
  display: none;
}

.chevrolet {
  height: 4vh;
  margin: 15px;
  display: none;

}

/* --- Header general --- */
header {
  width: 100%;
  height: 8vh;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 2px solid #00609c;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 100;
}

/* --- Título (centrado) --- */
.tittle {
  flex: 1;
  text-align: center;
}

.tittle h1 {
  color: #004b70;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  text-shadow: 0 2px 6px rgba(0, 96, 156, 0.15);
  transition: all 0.3s ease;
}

.tittle h1:hover {
  transform: scale(1.03);
  color: #00609c;
}

/* --- Footer links --- */
footer a {
  color: white;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  header {
    padding: 0 1rem;
  }
  .tittle h1 {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column; /* coloca logo y títulos uno debajo del otro */
    height: auto;
    padding: 1rem 0;
    text-align: center;
    gap: 10px;
  }

  #logo {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    display: none;
  }

  .tittle {
    order: 2;
    margin: 0.5rem 0;
    width: 100%;
  }

  .logos {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 15px;
  }

  .logos img {
    height: 5vh;
  }

  .tittle h1 {
    font-size: 1.2rem;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 480px) {
  .tittle h1 {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .logos img {
    height: 4.5vh;
  }
}
