* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "open sans";
}

.contenedor {
  padding: 60px 0;
  width: 90%;
  max-width: 1000px;
  margin: auto;
  overflow: hidden;
}

.titulo {
  color: #642a73;
  font-size: 30px;
  text-align: center;
  margin-bottom: 60px;
}

/* Header */

header {
  width: 100%;
  height: 700px;
  background: #bc4e9c;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(
      to right,
      hsla(340, 95%, 50%, 0.455),
      hsla(317, 45%, 52%, 0.657)
    ),
    url(../img/portada.jpg);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
      to right,
      hsla(340, 95%, 50%, 0.455),
      hsla(317, 45%, 52%, 0.657)
    ),
    url(../img/portada.jpg);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  background-size: cover;
  background-attachment: fixed;
  position: relative;
}

nav {
  position: fixed; /* Fija la barra de navegación */
  width: 100%;
  text-align: right;
  display: flex; /* Usar flexbox */
  justify-content: space-around; /* Espacio igual entre enlaces */
  padding: 30px 50px 0 0;
  transition: background-color 0.3s; /* Suaviza el cambio de color */
  z-index: 1000; /* Asegura que la barra esté delante de otros elementos */


}

nav > a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  margin-right: 10px;
}

nav > a:hover {
  text-decoration: underline;
}

.scrolled {
  background-color: #fff; /* Fondo transparente */
  border-top: 2px solid purple; /* Borde superior de color morado */
  border-bottom: 2px solid purple; /* Borde inferior de color morado */
  padding-bottom: 30px;


}

.scrolled a {
  color: rgb(151, 35, 133); /* Cambia el color del texto cuando se hace scroll */
}

header .textos-header {
  display: flex;
  height: 430px;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.textos-header h1 {
  font-size: 50px;
  color: #fff;
}

.textos-header h2 {
  font-size: 30px;
  font-weight: 300;
  color: #fff;
}

.wave {
  position: absolute;
  bottom: 0;
  width: 100%;
}

/* About us */

main .sobre-nosotros {
  padding: 130px 0 260px 0;
}

.contenedor-sobre-nosotros {
  display: flex;
  justify-content: space-evenly;
}

.imagen-about-us {
  width: 48%;
}

.sobre-nosotros .contenido-textos {
  width: 48%;
}

.contenido-textos h3 {
  margin-bottom: 15px;
}

.contenido-textos h3 span {
  background: #4d0686;
  color: #fff;
  border-radius: 50%;
  display: inline-block;
  text-align: center;
  width: 30px;
  height: 30px;
  padding: 2px;
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.5);
  margin-right: 5px;
}

.contenido-textos p {
  padding: 0px 0px 30px 15px;
  font-weight: 300;
  text-align: justify;
}

/* Galeria */

.portafolio {
  background: #f2f2f2;
  padding-top: 0;

}

.galeria-port {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.imagen-port {
  width: 24%;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.5);
}

.imagen-port > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hover-galeria {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  transform: scale(0);
  background: hsla(273, 91%, 27%, 0.7);
  transition: transform 0.5s;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.hover-galeria img {
  width: 50px;
}

.hover-galeria p {
  color: #fff;
}

.imagen-port:hover .hover-galeria {
  transform: scale(1);
}

/* Clients */
.contenedor{
  margin-top: 90px;
  padding-top: 90px;
}

.cards {
  display: flex;
  justify-content: space-evenly;
}

.cards .card {
  background: #4d0686;
  display: flex;
  width: 46%;
  height: 200px;
  align-items: center;
  justify-content: space-evenly;
  border-radius: 5px;
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.6);
}

.cards .card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 50%;
  display: block;
}

.cards .card > .contenido-texto-card {
  width: 60%;
  color: #fff;
}

.cards .card > .contenido-texto-card p {
  font-weight: 300;
  padding-top: 5px;
  text-align: justify;
}

/* Our team */

.about-services {
  background: #f2f2f2;
  padding-top: 10px;
  padding-bottom: 30px;
}

.servicio-cont {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.servicio-ind {
  width: 28%;
  text-align: center;
}

.servicio-ind img {
  width: 90%;
}

.servicio-ind h3 {
  margin: 10px 0;
}

.servicio-ind p {
  font-weight: 300;
  text-align: justify;
}

/* footer */

footer {
  background: #414141;
  padding: 260px 0 30px 0;
  margin: auto;
  overflow: hidden;
}

.contenedor-footer {
  display: flex;
  width: 90%;
  justify-content: space-evenly;
  margin: auto;
  padding-bottom: 50px;
  border-bottom: 1px solid #ccc;
}

.content-foo {
  text-align: center;
}

.content-foo h4 {
  text-align: center;
  color: #fff;
  border-bottom: 3px solid #af20d3;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.content-foo p {
  color: #ccc;
}

.titulo-final {
  text-align: center;
  font-size: 24px;
  margin: 20px 0 0 0;
  color: #9e9797;
}

@media screen and (max-width: 900px) {
  header {
    background-position: left;
  }

  nav{
    display: none;
  }

  .contenedor-sobre-nosotros {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .sobre-nosotros .contenido-textos {
    width: 90%;
  }

  .imagen-about-us {
    width: 90%;
  }

  /* Galeria */

  .imagen-port {
    width: 44%;
  }

  /* Clientes */

  .cards {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

 

  .cards .card {
    width: 90%;
  }

  .cards .card {
    margin-bottom: 60px;
  }

  /* Sevicios */

  .servicio-cont {
    justify-content: center;
    flex-direction: column;
  }

  .servicio-ind {
    width: 100%;
    text-align: center;
  }

  .servicio-ind :nth-child(1),
  .servicio-ind :nth-child(2) {
    margin-bottom: 60px;
  }

  .servicio-ind img {
    width: 90%;
  }
}

@media screen and (max-width: 500px) {
  nav {
    text-align: center;
    padding: 30px 0 0 0;
  }

  nav > a {
    margin-right: 5px;
  }

  .textos-header h1 {
    font-size: 35px;
  }

  .textos-header h2 {
    font-size: 20px;
  }

  /* About us */

  .imagen-about-us {
    margin-bottom: 60px;
    width: 99%;
  }

  .sobre-nosotros .contenido-textos {
    width: 95%;
  }

  /* Galeria */

  .imagen-port {
    width: 95%;
  }

  /*Clients */



  .cards .card {
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 10px;
  }

  .cards .card img {
    width: 180px;
    height: 180px;
  }

  .contenedor-footer {
    flex-direction: column;
    border: none;
  }

  .content-foo {
    margin-bottom: 20px;
    text-align: center;
  }

  .content-foo h4 {
    border: none;
  }

  .content-foo p {
    color: #ccc;
    border-bottom: 1px solid #f2f2f2;
    padding-bottom: 20px;
  }

  .titulo-final {
    font-size: 20px;
  }
}

/*Barra desplegable*/

.menu-btn {
  display: none; /* Ocultar el botón por defecto */
  position: absolute;
  top: 20px;
  right: 20px; /* Mover el botón a la derecha */
  cursor: pointer;
  z-index: 1000; /* Asegurar que el botón esté encima */
  background-color: rgba(128, 0, 128, 0.7); /* Morado transparente */
  border-radius: 50%; /* Hacerlo circular */
  padding: 10px; /* Espacio alrededor del icono */
  overflow: hidden; /* Ocultar los bordes que sobresalen */
}

/* Estilo del SVG */
.menu-btn svg {
  transition: transform 0.3s ease; /* Para el efecto de escala normal */
}

/* Animaciones de expansión en ondas */
.menu-btn.expand {
  animation: pulse 0.6s ease-in-out; /* Aplicar la animación al hacer clic */
}

@keyframes pulse {
  0% {
      transform: scale(1); /* Tamaño original */
  }
  50% {
      transform: scale(1.2); /* Escalar hasta 1.2 en el medio de la animación */
  }
  100% {
      transform: scale(1); /* Volver al tamaño original */
  }
}


.sidebar {
  display: none;
  width: 850px;
  position: fixed;
  top: 0;
  left: -850px; /* Salir de vista por defecto */
  height: 100%;
  background: purple;
  transition: left 0.3s;
  padding-top: 60px;
  z-index: 999; /* Colocar el menú detrás del botón */
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
}

.sidebar ul li {
  margin: 15px 0;
}

.sidebar ul li a {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
}

.sidebar.show {
  left: 0; /* Mostrar el menú */
}


@media (max-width: 800px) {
  .menu-btn {
      display: block; /* Mostrar el botón en pantallas pequeñas */
      position: fixed;
  }

  .sidebar {
    display: block;
    width: 450px;
    position: fixed;
    top: 0;
    left: -450px; /* Salir de vista por defecto */
    height: 100%;
    background-color: rgba(128, 0, 128, 0.7); /* Morado transparente */

    transition: left 0.3s;
    padding-top: 60px;
    z-index: 999; /* Colocar el menú detrás del botón */
  }
  
  .sidebar ul {
    list-style-type: none;
    padding: 0;
  }
  
  .sidebar ul li {
    margin: 15px 0;
  }
  
  .sidebar ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
  }
  
  .sidebar.show {
    left: 0; /* Mostrar el menú */
  }
}

@media (max-width: 500px) {
  .menu-btn {
      display: block; /* Mostrar el botón en pantallas pequeñas */
      position: fixed;
  }

  .sidebar {
    display: block;
    width: 250px;
    position: fixed;
    top: 0;
    left: -250px
    50px; /* Salir de vista por defecto */
    height: 100%;
    background-color: rgba(128, 0, 128, 0.7); /* Morado transparente */

    transition: left 0.3s;
    padding-top: 60px;
    z-index: 999; /* Colocar el menú detrás del botón */
  }

  .sidebar.show {
    left: 0; /* Mostrar el menú */
  }

}