header {
  background-color: #23221f;
  color: #fff;
  padding: 10px;
  display: flex;
  align-items: center; /* Alinea los elementos verticalmente al centro */
}

.titulomenu {
  margin-left: 40px;
  margin-bottom: 20px;
}

nav ul {
  list-style: none;
  padding: 0; 
  margin: 0;
}

nav ul li {
  display: inline; /*para que este alineado*/
  margin-right: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
}

nav ul li a:hover {
  color: rgb(170, 170, 170); /*para que se cambie de color a gris*/
}

.logotipo {
  width: 100px;
  margin-bottom: 20px;
  margin-top: 20px;
  margin-left: 20px;
  border-radius: 30px; /*figma me dio esto para que sea asi de redondo*/
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.fotoprincipal {
  width: 100%;
  height: 130px;
  display: flex;
}

.nosotros {
  text-align: center;
}

.contenedor {
  width: 80%;
  margin: 0 auto;
}

section {
  padding: 50px 0;
  transition: background-color 0.3s ease; /*con esto se hace la transición suave*/
  position: relative;
}

section.gris {
  background-color: #eaeaea;
}

section h2 {
  margin-top: 0;
}

section p {
  line-height: 1.6;
}

section ul {
  padding-left: 20px;
}

.servicios-contenedor {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; /* Permite que los elementos se envuelvan en una nueva línea si no hay suficiente espacio */
}

.servicio {
  width: 350px;
  margin-bottom: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /*con esto agrego sombra atras de las cajas*/
  transition: background-color 0.3s ease; /*tiempo que tarda en cambiar de color*/
  cursor: pointer; /* Cambia el cursor al pasar sobre el servicio */
}

.servicio:hover {
  background-color: #d3d3d3; /* Cambia el color de fondo al gris claro */
}

div.vision {
  padding-bottom: 10px;
  padding-top: 10px;
}

.servicio img {
  width: 100%;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  height: 300px;
}

.servicio h3,
.servicio p {
  padding: 10px;
  margin: 0;
}

footer {
  background-color: #23221f;
  color: #fff; /* Color de texto */
  padding-top: 15px;
  padding-bottom: 15px;
}

.contactoCopy {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.info {
  text-align: left;
  margin-left: 50px;
}

.copyright {
  text-align: center;
  display: flex;
  align-items: center;
  margin-right: 50px;
}

@media (max-width: 870px) {
  .servicios-contenedor {
    justify-content: center;
    width: auto;
  }
  h2 {
    text-align: center;
  }
}

.listaDesplegable {
  display: none;
}

@media (max-width: 350px) {
  /* para que sea responsive*/
  .servicios-contenedor {
    width: 90%;
    justify-content: center;
  }
}
@media (max-width: 660px) {
  nav {
    display: none;
  }
  .listaDesplegable {
    display: flex;
  }
}

/* estilos para el modo noche */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

.servicio.dark-mode {
  background-color: #2c2c2c;
  color: #e0e0e0;
}

.servicio.dark-mode:hover {
  background-color: #3c3c3c;
}

.servicio.dark-mode h3,
.servicio.dark-mode p {
  color: #e0e0e0;
}

section.dark-mode {
  background-color: #2c2c2c;
}

section.gris.dark-mode {
  background-color: #3c3c3c;
}

/* estilo para el icono */

#toggle-dark-mode {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 20px;
  cursor: pointer;
  font-size: 24px;
  background: none;
  border: none;
  color: inherit;
  transition: color 0.3s;
  display: flex;
}

#toggle-dark-mode:hover {
  color: #ffc107;
}


