/* Main Attributes*/
* {
  margin: 0px;
  padding: 0px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

header {
  background-color: #d4b7b7;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-flow: wrap;
  padding: 1rem;
}

.logo {
  height: 4rem;
}

.nombrePagina {
  padding: 1rem;
  text-align: center;
}

.navBar {
  font-size: 1rem;
  display: inline;
  padding: 1rem;
}

.nav-bar {
  color: #fefefe;
  border-radius: 50px;
  transition: 0.2s;
}

.nav-bar ul li a:hover {
  color: #fff;
}

/* Aplica a todos los enlaces en la barra de navegación cuando están activos */
.nav-bar a.active {
  color: white; /* Cambia el color del texto a blanco */
  text-decoration: none; /* Opcional: Elimina el subrayado */
}

/* Aplica estilos adicionales al pasar el ratón por encima de los enlaces */
.nav-bar a:hover {
  color: #ccc; /* Color al pasar el ratón por encima (ejemplo) */
}

/* Opcional: Aplica estilos a los enlaces no activos */
.nav-bar a {
  color: #000; /* Color de los enlaces no activos */
  text-decoration: none; /* Elimina el subrayado de los enlaces */
}

a {
  color: rgb(14, 13, 13); /*para que se cambie de color a gris*/
  text-decoration: none;
}

.fotoPerro {
  width: 100%;
}

.titulo {
  display: flex;
  justify-content: center;
  text-align: center;
  font-weight: 500;
  font-size: 1.5rem;
}

.tituloCajas {
  display: flex;
  justify-content: center;
  text-align: center;
  font-weight: 500;
  font-size: 3rem;
}

.parrafo {
  font-size: 1.2rem;
  padding-top: 1rem;
  text-align: center;
}

/* Sección Inicio*/
.containerIndex {
  padding: 1rem;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5);
  background-color: #dddddd;
  border-radius: 30px;
  display: flex;
  justify-content: space-between;
  max-width: 600px;
  margin: 2rem auto;
  flex-direction: column;
}

.cajaListado {
  display: flex;
  justify-content: space-evenly;
  padding: 1rem 0px;
}

.tituloInicio {
  font-weight: 700;
  margin-left: -1rem;
}

.logoUade {
  justify-content: space-around;
  align-items: center;
  display: flex;
}

.fotoUade {
  width: 200px;
  display: flex;
}

ul {
  list-style: none;
}

.parrafoInicio {
  display: flex;
  flex-wrap: wrap;
}

.link {
  text-decoration: underline;
}

/* Termina seccion inicio */

/* Sección integrantes */
.containerIntegrantes {
  padding: 1rem;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5);
  background-color: #dddddd;
  border-radius: 30px;
  display: flex;
  justify-content: space-between;
  max-width: 700px;
  margin: 2rem auto;
  flex-direction: column;
}

.cajaIntegrantes {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  align-items: center;
  grid-column-gap: 80px;
  grid-row-gap: 50px;
  margin-bottom: 10px;
  padding: 2rem 1rem;
}

.cajaIntegrante1,
.cajaIntegrante2,
.cajaIntegrante3,
.cajaIntegrante4 {
  grid-row: auto;
  grid-column: auto;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: space-around;
}

.fotoIntegrantes {
  border-radius: 30px;
  width: 115px;
}

.texto-boton a {
  background-color: #020202;
  text-decoration: none;
  padding: 10px;
  border-radius: 30px;
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  width: 90px;
}

.texto-boton {
  display: flex;
  flex-direction: column;
  gap: 1rem 0px;
  font-size: 1.5rem;
}

/* Termina sección integrantes */

/* Sección Proyecto */
.seccion-proyecto {
  padding: 1rem;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5);
  background-color: #dddddd;
  border-radius: 30px;
  display: flex;
  justify-content: space-between;
  max-width: 700px;
  margin: 2rem auto;
  flex-direction: column;
}

/* Termina sección proyecto */

/* Sección avances */
.container1Avances {
  padding: 1rem;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5);
  background-color: #dddddd;
  border-radius: 30px;
  display: flex;
  justify-content: space-between;
  margin: 2rem auto;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
}

.tituloAvances {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
}

.cajaAvances {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  align-items: start;
}

.container2Avances {
  padding: 1rem;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5);
  background-color: #dddddd;
  border-radius: 30px;
  display: flex;
  justify-content: center;
  margin: 2rem auto;
  flex-direction: column;
  align-items: center;
  max-width: 40%;
  margin-top: 3rem;
}

.avancesTitulo {
  display: flex;
  text-align: center;
  align-items: center;
  margin: 1rem;
  flex-direction: column;
}

.logochico {
  width: 5rem;
  padding-top: 1rem;
}

.color {
  height: 150px;
  width: 150px;
  color: rgb(255, 255, 255);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  font-size: 25px;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin: 1rem;
}

#color1 {
  background-color: #d4b7b7;
  box-shadow: 5px 5px 4px rgba(0, 0, 0, 0.5);
  border: black solid 3px;
}

#color2 {
  background-color: #dddddd;
  box-shadow: 5px 5px 4px rgba(0, 0, 0, 0.5);
  border: black solid 3px;
}

#color3 {
  background-color: #000000;
  box-shadow: 5px 5px 4px rgba(0, 0, 0, 0.5);
  border: black solid 3px;
}

.arbol {
  display: flex;
  width: 100%;
}

/* seccion sitio proyecto*/

.main-video {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.seccion-video {
  background-color: #dddddd;
  box-shadow: 5px 5px 4px rgba(0, 0, 0, 0.5);
  height: 100px;
  width: 800px;
  margin: 50px 0px;
  border-radius: 20px;
  padding: 70px 80px;
  font-size: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #d4b7b7;
}

.seccion-video p {
  text-shadow: 0 1px 2px rgba(0, 0, 0.1);
}

iframe {
  width: 540px;
  height: 415px;
}

/* Termina sección avances */

footer {
  background-color: #d4b7b7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-flow: wrap;
  padding: 1rem;
  margin-top: auto;
}

.footerBar {
  font-size: 0.75rem;
  list-style: none;
  display: inline;
  padding: 0.75rem;
  font-weight: 500;
}

/* Estilo para el botón de hamburguesa */

.hamburger-menu {
  display: none;
  cursor: pointer;
  font-size: 2rem;
}

.hamburger-menu i {
  color: #444;
}

/* Estilo para el menú móvil */

.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 12%; /* Ajustar según la altura del header */
  width: 100%;
  background-color: #d4b7b7;
  z-index: 1000;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
}

.mobile-menu ul li {
  margin: 1rem 0;
}

.mobile-menu ul li a {
  text-decoration: none;
  color: #000;
  font-size: 1.5rem;
}

/* Modo nocturno */

body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

.dark-mode header,
.dark-mode nav,
.dark-mode footer {
  background-color: #1c1c1c;
}

.dark-mode a {
  color: #fff;
}

.dark-mode .nombrePagina {
  color: #999;
}

.dark-mode .nav-bar a {
  color: #999;
}

.dark-mode .mobile-menu ul li a {
  text-decoration: none;
  color: #999;
  font-size: 1.5rem;
}

/*Inicio*/

.dark-mode .tituloCajas {
  color: #999;
}

.dark-mode .parrafoInicio {
  color: #fff;
}

.dark-mode .tituloInicio {
  color: #fff;
}

.dark-mode .containerIndex {
  color: #444;
  background-color: #222;
}

/* Integrantes */

.dark-mode .containerIntegrantes {
  color: #fff;
  background-color: #222;
}

/*Proyecto*/

.dark-mode .seccion-proyecto {
  color: #fff;
  background-color: #222;
}

/*Avances*/

.dark-mode .container1Avances {
  color: #fff;
  background-color: #222;
}

.dark-mode .container2Avances {
  color: #fff;
  background-color: #222;
}

.dark-mode .footerBar {
  color: #999;
}

.dark-mode-toggle {
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.5rem;
  background: transparent;
}

.dark-mode-toggle i {
  color: #fff;
  font-size: 1.5rem; /* Asegura un tamaño suficiente para que el icono sea visible */
  display: inline-block; /* Asegura que el icono se muestre */
}

/* Sitio Proyecto */

.dark-mode .seccion-video a {
  color: #000000;
}

/* Botón de modo oscuro */

.dark-mode-toggle {
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.5rem;
}

.dark-mode-toggle i {
  color: #444;
}

/* Media Query para Dispositivos Móviles */
@media (max-width: 768px) {
  .nav-bar {
    display: none;
  }

  .hamburger-menu {
    display: inline-block;
    background-color: transparent;
    border: none;
  }

  .mobile-menu {
    display: none;
    position: absolute;
    top: 12%;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  .mobile-menu.show {
    display: flex;
  }

  header {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .logo {
    height: 5rem;
  }

  .navBar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
  }

  .nav-bar {
    font-size: 1.2rem;
    margin: 0.5rem 0;
  }

  .containerIndex,
  .containerIntegrantes,
  .seccion-proyecto,
  .container1Avances,
  .container2Avances {
    max-width: 90%;
    padding: 1rem;
  }

  .cajaIntegrantes,
  .cajaAvances {
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
  }

  .cajaIntegrante1,
  .cajaIntegrante2,
  .cajaIntegrante3,
  .cajaIntegrante4 {
    flex-direction: column;
    align-items: center;
  }

  .titulo,
  .tituloCajas,
  .parrafo,
  .tituloInicio,
  .tituloAvances {
    font-size: 1rem;
    text-align: center;
  }

  .texto-boton a {
    padding: 0.5rem;
    font-size: 1rem;
    width: auto;
  }

  .color {
    width: 100px;
    height: 100px;
    font-size: 18px;
  }

  footer {
    flex-direction: column;
    align-items: center;
  }

  .footerBar {
    padding: 0.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 980px) {
  .seccion-video {
    width: 50%;
  }
  .seccion-video p {
    font-size: 2rem;
    text-align: center;
  }
  iframe {
    width: 350px;
    height: 250px;
    margin-top: 2rem;
  }
}
@media (max-width: 500px) {
  iframe {
    width: 267px;
    height: 199px;
  }
  .seccion-video {
    height: 450px;
  }
}