
:root {
  /* Colores principales */
  --primary-color: #f57c00; /* naranja */
  --primary-color-alt: #7b1fa2; /* morado */
  --header-text-color: #222;

  /* Colores secundarios */
  --submenu-bg: rgba(255, 255, 255, 0.95);

  /* Tipografía */
  --header-font-family: 'Poppins', sans-serif;

  /* Altura del header */
  --header-height: 90px;
}

header {
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  background: #e9e6e6;
  font-family: var(--header-font-family);
  color: var(--header-text-color);
  padding: 0 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

header > div {
  width: 33.33%;
  height: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  align-items: center;
  padding: 0 1rem;
}


.brand-cb {
  color: var(--header-text-color);
  font-weight: 500;
  letter-spacing: 1px;
}

.brand-torcal {
  background: linear-gradient(to right, orange 50%, purple 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  letter-spacing: 1px;
}


.text {
  font-size: 2.5rem;
  font-weight: 300;
  margin-left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  user-select: none;
}

.img {
  justify-content: flex-start;
  align-items: center;
}

.img img {
  width: 90px;
  height: auto;
  user-select: none;
  transition: transform 0.3s ease;
}

.img img:hover {
  transform: scale(1.05);
}

.nav {
  width: 33%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.menu {
  display: flex;
  align-items: center;
  background-color: transparent;
  border: none;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-horizontal {
  display: flex;
  list-style: none;
  background-color: transparent;
  margin: 0;
  padding: 0;
}

.menu a {
  color: var(--header-text-color);
  text-transform: uppercase;
  text-decoration: none;
  padding: 0 15px;
  transition: color 0.4s ease;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.menu a:hover {
  color: #ffd6f7;
}

.mostrar-menu,
.esconder-menu {
  font-size: 30px;
  cursor: pointer;
  display: none;
  transition: color 0.4s ease;
}

.mostrar-menu {
  order: 1;
  font-size: 40px;
}

.mostrar-menu:hover,
.esconder-menu:hover {
  color: #ffd6f7;
}

#check {
  display: none;
}

label img {
  width: 50px;
  cursor: pointer;
}

.submenu-redes {
  display: none;
  position: absolute;
  background-color: var(--submenu-bg);
  padding: 10px;
  z-index: 1000;
  top: 60%;
  right: -20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

li:hover .submenu-redes {
  display: flex;
}

nav li {
  color: var(--header-text-color);
  margin-left: 20px;
  font-weight: 500;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  nav li {
    color: white;
  }

  .submenu-redes {
    position: static;
    display: none;
    width: 100%;
    background-color: transparent;
  }

  /* Estilos para mostrar el submenú al hacer clic */
  li.active .submenu-redes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: static;
  }

  header {
    justify-content: baseline;
  }

  /*header > div {*/
  /*  width: auto;*/
  /*}*/

  .text {
    justify-content: center;
    margin-left: 0px;
    font-size: 23px;
  }

  .img img {
    width: 70px;
  }

  ul {
    display: flex;
    list-style: none;
    flex-direction: column;
  }

  .mostrar-menu,
  .esconder-menu {
    display: block;
    margin: 5px;
  }

  .menu {
    display: block;
    position: fixed;
    width: 100%;
    height: 120vh;
    background-color: rgba(133, 133, 133, 0.8);
    top: 0;
    right: -100%;
    text-align: center;
    padding: 100px 0px;
    z-index: 100;
    transition: 0.8s;
  }

  .menu a {
    display: block;
    padding: 10px;
    color: whitesmoke;
  }

  .esconder-menu {
    position: absolute;
    right: 40px;
    top: 40px;
    color: rgba(253, 189, 159, 0.8);
  }

  #check:checked ~ .menu {
    right: 0;
  }

  .nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
 
}
