:root {
  --claec-navy: #233452;
  --claec-gold: #ffc02e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
  list-style: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  position: relative;
  z-index: 10;
}

.logo img {
  height: 75px;
  object-fit: contain;
}

.social-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.redes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.redes a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--claec-gold);
  color: var(--claec-navy);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.redes a i {
  font-size: 20px;
}

.redes a:hover {
  background-color: var(--claec-navy);
  color: var(--claec-gold);
  transform: translateY(-2px);
}

.whatsapp {
  position: static;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.whatsapp p {
  font-size: 16px;
  color: #000;
  font-weight: bold;
}

.whatsapp a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--claec-navy);
  text-decoration: none;
  background-color: var(--claec-gold);
  padding: 10px;
  border-radius: 20%;
  transition: all 0.3s ease;
}

.whatsapp svg {
  width: 20px;
  height: 20px;
  fill: var(--claec-navy);
  transition: fill 0.3s ease;
}
.whatsapp a:hover {
  background-color: var(--claec-navy);
  color: var(--claec-gold);
  transform: translateY(-2px);
}

.whatsapp a:hover svg {
  fill: var(--claec-gold);
}

.log-out {
  display: flex;
  align-items: center;
  margin-left: 10px;
  gap: 5px;
}
.log-out button {
  border: none;
  color: black;
  padding: 4px 5px;
  cursor: pointer;
  border-radius: 5px;
  background-color: white;
  border: 2px solid #f44336;
}
.log-out button:hover {
  background: #da190b;
  color: white;
}

.log-out svg {
  width: 20px;
  height: 20px;
  fill: #000000;
}

/* --- Media Queries para Responsividad del Header --- */

/* Para pantallas más pequeñas (ej. tablets y móviles) */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
  }

  .logo {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
  }

  .logo img {
    height: 60px;
  }

  /* Nuevo estilo para el contenedor social-contact */
  .social-contact {
    flex-direction: column; /* Apila las redes y WhatsApp verticalmente */
    gap: 15px; /* Espacio entre los bloques */
    width: 100%;
    align-items: center; /* Centra los elementos */
  }

  /* Estilo para los iconos de redes sociales */
  .redes {
    justify-content: center; /* Centra los íconos de redes sociales */
    width: 100%;
  }

  /* Estilo para el contenedor de WhatsApp */
  .whatsapp {
    flex-direction: column; /* Apila el texto y el botón de WhatsApp */
    text-align: center;
    width: 100%;
    gap: 8px;
    padding: 0;
  }

  .whatsapp p {
    margin-bottom: 0; /* Elimina el margen inferior */
    font-size: 13px;
  }

  .whatsapp a {
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid var(--claec-gold);
    border-radius: 5px;
    color: var(--claec-navy);
    background-color: #f8f8f8;
  }

  .whatsapp a:hover {
    background-color: #fff3d6;
  }

  .log-out {
    margin-left: 0;
    margin-top: 10px;
    justify-content: center;
    width: 100%;
  }
}

/* Para pantallas muy pequeñas (ej. móviles en modo vertical) */
@media (max-width: 480px) {
  header {
    padding: 10px 15px;
  }

  .logo img {
    height: 50px;
  }

  .whatsapp {
    font-size: 12px;
  }

  .whatsapp a {
    font-size: 12px;
    padding: 5px 10px;
  }

  .log-out button {
    font-size: 12px;
    padding: 3px 8px;
  }
}
