body {
  font-family: "acier-bat-solid", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.wa-fixed {
  display: flex;
  width: 130px;
  height: 50px;
  color: white;
  background-color: #81b32f;
  background-image: url("../images/wa-white.svg");
  background-position: left;
  background-repeat: no-repeat;
  background-position-x: 9px;
  background-size: 30px;
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 9;
  border-radius: 60px;
  align-items: center;
  padding-right: 21px;
  justify-content: flex-end;
  cursor: pointer;
  text-decoration: none;
  font-family: "PT Sans", sans-serif;
  font-weight: bold;
}

.Top {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 50px;
  background-color: whitesmoke;
  position: fixed;
  z-index: 10;
  /* Para asegurarte de que se mantenga visible */
  padding-top: 10px;
  padding-bottom: 10px;
}

.container {
  width: 940px;
  display: flex;
  justify-content: space-between;
  /* Espaciado entre los tres elementos */
  align-items: center;
  /* Alinea verticalmente los elementos */
}

.Top-social {
  display: flex;
  justify-content: space-around;
  /* Espaciado uniforme entre los íconos */
  gap: 10px;
  /* Opcional, para más control del espacio entre íconos */
}

.Top-logo {
  width: 200px;
  /* Tamaño inicial */
  margin-top: 70px;
  /* Margen inicial */
  transition: all 0.3s ease-in-out;
  /* Suaviza el cambio */
}

.Top-logo.shrink {
  width: 100px;
  /* Tamaño reducido */
  margin-top: 0;
  /* Sin margen superior */
}

.menu {
  display: flex;
  /* Asegúrate de que esté alineado correctamente */
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* Estilos base del menú */
.nav-menu {
  width: 300px;
  background-color: #fffffffa;
  padding: 30px;
  position: fixed;
  top: 70px;
  right: -360px;
  /* Inicialmente oculto fuera del área visible */
  display: flex;
  flex-direction: column;
  height: 100vh;
  transition: right 0.5s ease;
  /* Animación al abrir/cerrar */
  z-index: 999;
  /* Asegura que esté encima de otros elementos */
}

/* Estilos de los enlaces */
.nav-menu a {
  text-decoration: none;
  color: #0f569d;
  font-size: 22px;
  margin: 10px 15px;
}

/* Estilos cuando el menú está abierto */
.nav-menu.open {
  right: 0;
  /* Muestra el menú */
}

/* El contenedor de la imagen */
.slider {
  position: relative;
  /* Necesario para colocar la "onda" encima */
  width: 100%;
  min-height: 900px;
  /* Esto garantiza que siempre ocupe al menos el 100% del alto de la ventana */
  background-image: url("../images/bg-home1.jpg");
  background-size: cover;
  /* Cubre el contenedor sin deformar */
  background-position: center;
  /* Centra la imagen */
  background-repeat: no-repeat;
  /* Evita la repetición de la imagen */
  overflow: hidden;
  /* Para evitar que las imágenes se desborden */
  background-color: cadetblue;
}

/* La imagen en el contenedor */
.slider-img {
  width: 100%;
  height: auto;
  display: block;
}

/* La onda que se coloca sobre la foto */
.wave-overlay {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 300px;
  /* Ajusta la altura de la onda como desees */
  background-image: url("../images/wave-white.svg");
  background-size: contain;
  /* Ajusta la onda para que no se distorsione */
  background-position: bottom;
  background-repeat: no-repeat;
}

.productos {
  display: flex;
  align-items: center;
  width: 100%;
  height: auto;
  background-color: #ffffff;
  flex-direction: column;
  padding-bottom: 70px;
  position: relative;
}

.productos-container {
  width: 940px;
  display: flex;
  justify-content: space-between;
  /* Espaciado entre los tres elementos */
  align-items: center;
  /* Alinea verticalmente los elementos */
  margin-top: 40px;
}

.title {
  color: #0f569d;
  font-size: 45px;
  text-align: center;
  line-height: 45px;
  width: 100%;
}

.product-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-items {
  display: flex;
  transition: transform 0.3s ease-in-out;
}

.carousel-item {
  flex-shrink: 0;
  text-align: center;
  width: 100%;
  height: auto;
  position: relative;
}

.carousel-item--info {
  position: relative;
  background-image: url(../images/wave-bottom.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
  height: 100px;
  bottom: 85px;
  z-index: 90;
}

.btn-info {
  display: flex;
  position: absolute;
  background-image: url(../images/mas-info.svg);
  background-position: left;
  background-repeat: no-repeat;
  background-size: 20px;
  width: 100px;
  color: white;
  left: 30px;
  top: 25px;
  height: 25px;
  align-items: center;
  justify-content: space-around;
  cursor: pointer;
}

.descripcion {
  transition: opacity 0.5s ease-in-out, max-height 0.5s ease-in-out;
  max-height: 0; /* Inicialmente oculta */
  opacity: 0; /* Inicialmente invisible */
  overflow: hidden; /* Asegura que no se vea lo que se escapa */
  position: absolute; /* Cambié esto para posicionar la descripción sobre la imagen */
  top: 0; /* Puedes ajustarlo para que aparezca donde prefieras dentro del div */
  left: 0;
  right: 0;
  bottom: 0; /* Esto asegura que el div ocupe toda el área del carousel-item */
  background-color: rgba(255, 255, 255, 0.92); /* Fondo semitransparente */
  z-index: 1; /* Asegura que el div .descripcion quede encima de la imagen */
  padding: 15px; /* Puedes ajustar el padding si lo deseas */
}

.descripcion.show {
  max-height: 700px; /* Ajusta este valor para que la descripción tenga la altura adecuada cuando sea visible */
  opacity: 1;
}

.volanta {
  padding: 0px 10px;
  height: 25px;
  position: absolute;
  top: 10px;
  left: 0;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px; /* Aquí ajustas el espaciado entre las letras */
}


.carousel-item p {
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 20px;
  margin: 0;
  position: absolute;
  width: 100%;
  bottom: 5px;
}

.carousel-item img {
  max-width: 100%;
  height: auto;
}

.carousel-pagination-line {
  position: relative;
  height: 4px;
  background-color: #ddd;
  width: 100%;
  margin-top: 10px;
  overflow: hidden;
}

.carousel-pagination-line .active-line {
  position: absolute;
  height: 4px;
  background-color: #000;
  width: 0%;
  transition: width 0.3s ease, transform 0.3s ease;
}

.carousel-pagination-line span {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background-color: #bbb;
  display: inline-block;
  margin: 0 4px;
  cursor: pointer;
}

.carousel-pagination-line span.active {
  background-color: #0f569d;
}

.prev-arrow {
  position: absolute;
  top: 50%;
  background-color: rgb(15 86 157);
  color: white;
  border: none;
  padding: 30px 20px;
  cursor: pointer;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 50%;
  top: 170px;
  left: 0px;
  background-image: url("../images/arrow-left.svg");
}

.next-arrow {
  position: absolute;
  top: 50%;
  background-color: rgb(15 86 157);
  color: white;
  border: none;
  padding: 30px 20px;
  cursor: pointer;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 50%;
  top: 170px;
  right: 0px;
  background-image: url("../images/arrow-right.svg");
}

.quienes-somos {
  position: relative;
}

.qs-background {
  width: 100%;
  height: 400px;
  background-image: url("../images/bg-quienessomos.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qs-texto {
  width: 100%;
  background-color: #009ade;
  display: flex;
  justify-content: center;
}

.qs-texto--container {
  width: 940px;
  height: auto;
  background-color: #0f569d;
  color: #ffffff;
  font-family: sans-serif;
  display: flex;
  justify-content: center;
}

.qs-texto--container p {
  font-size: 20px;
  padding: 40px;
  width: 480px;
}

.overlay {
  width: 100%;
  height: 400px;
  background-color: #00000025;
  position: absolute;
}

/* La onda que se coloca sobre la foto */
.distribuidores-wave--overlay {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 300px;
  /* Ajusta la altura de la onda como desees */
  background-image: url("../images/distribuidores-wave-white_1.svg");
  background-size: contain;
  /* Ajusta la onda para que no se distorsione */
  background-position: bottom;
  background-repeat: no-repeat;
}

.distri-background {
  width: 100%;
  height: 600px;
  background-image: url("../images/bg-distribuidores.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay-distribuidores {
  width: 100%;
  height: 600px;
  background-color: #00000025;
  position: absolute;
}

.videos {
  display: flex;
  flex-wrap: wrap; /* Ajusta videos en filas si no caben en una sola fila */
  gap: 20px; /* Espaciado entre videos */
  justify-content: center; /* Centra los videos */
  padding: 20px;
  margin-bottom: 80px;
}

.video-wrapper {
  width: 64%; /* Ajusta el ancho de los videos */
  height: 400px; /* Establece una altura común para los videos */
  overflow: hidden;
  position: relative;
  padding: 5px;
}

.video-item {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que el video se ajuste al contenedor sin distorsionarse */
}

.distribuidores {
  position: relative;
}

.distri-container {
  width: 940px;
  display: flex;
  justify-content: space-between;
  /* Espaciado entre los tres elementos */
  align-items: center;
  /* Alinea verticalmente los elementos */
  margin-top: 40px;
}

.ancla {
  position: absolute;
  top: -65px;
}

.contacto-background {
  width: 100%;
  height: 400px;
  background-image: url("../images/bg-contacto.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.comunicacion {
  display: flex;
  position: relative;
  justify-content: center;
  background: linear-gradient(to right, whitesmoke 50%, #81b32f 50%);
}

.comunicacion-container {
  width: 940px;
  display: flex;
  justify-content: space-between;
  /* Espaciado entre los tres elementos */
  align-items: center;
  /* Alinea verticalmente los elementos */
}

.com-1 {
  width: 33.5%;
  height: 350px;
  display: flex;
  justify-content: center;
  text-align: center;
  color: #0f569d;
  font-size: 30px;
  background-color: whitesmoke;
  padding-top: 80px;
  align-items: flex-start;
}

.com-2 {
  width: 33.5%;
  height: 350px;
  display: flex;
  justify-content: flex-start;
  text-align: center;
  color: white;
  font-size: 30px;
  background-color: #81b32f;
  padding-top: 80px;
  flex-direction: column;
  align-items: center;
}

.com-3 {
  width: 33.5%;
  height: 350px;
  display: flex;
  justify-content: center;
  text-align: center;
  color: white;
  font-size: 30px;
  background-color: #009ade;
  padding-top: 80px;
  align-items: flex-start;
}

.comunicacion-wave--overlay {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 300px;
  /* Ajusta la altura de la onda como desees */
  background-image: url("../images/wave-blue.svg");
  background-size: contain;
  /* Ajusta la onda para que no se distorsione */
  background-position: bottom;
  background-repeat: no-repeat;
}

.com-2-data {
  color: #ffffff;
  text-decoration: none;
  background-image: url("../images/wa-white.svg");
  background-size: 30px;
  background-position: 50px;
  background-repeat: no-repeat;
  padding-left: 20px;
  width: 100%;
}

.footer {
  width: 100%;
  background-color: #0f569d;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0px;
  font-family: sans-serif;
  font-size: 14px;
}

.Top-social--footer {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Ajustes para pantallas más grandes (1024px y más) */
@media (min-width: 1024px) {
  .carousel-item {
    width: 33.5%;
    /* Muestra 3 productos */
  }
}

/* Media Query: Para pantallas de 768px o menos */
@media (max-width: 768px) {
  .Top-logo {
    width: 100px;
    /* Siempre pequeño en pantallas más chicas */
    margin-top: 0;
    /* Sin margen adicional */
    transition: none;
    /* Sin animación */
  }

  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .wa-fixed {
    width: 30px;
    background-color: none;
  }

  .productos-container {
    width: 100%;
  }

  .distri-container {
    width: 100%;
  }

  .carousel-item {
    width: 50%;
    /* Muestra 2 productos */
  }

  .comunicacion-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
  }

  .com-1 {
    width: 100%;
    height: 150px;
  }
  .com-2 {
    width: 100%;
    height: 150px;
  }
  .com-3 {
    width: 100%;
    height: 150px;
  }

  .com-2-data {
    width: 300px;
  }

  .slider {
    background-image: url("../images/bg-home768_1.jpg");
    min-height: 600px;
  }
}

/* Media Query: Para pantallas de 425px o menos */
@media (max-width: 425px) {
  .Top-social {
    display: none;
    /* Oculta las redes sociales */
  }

  .carousel-item {
    width: 100%;
    /* Muestra 1 producto */
  }

  .qs-texto--container {
    width: auto;
  }

  .qs-texto--container p {
    width: auto;
  }

  .distri-container {
    flex-direction: column;
  }

  .video-item {
    width: 100%;
    /* Ocupa todo el ancho */
    margin-bottom: 30px;
  }

  .video-wrapper {
    width: 100%; /* Ajusta el ancho de los videos */
    height: 600px; /* Establece una altura común para los videos */
    overflow: hidden;
    position: relative;
    padding: auto;
  }

  .slider {
    background-image: url("../images/bg-home425_1.jpg");
    min-height: 400px;
  }

  .distri-background {
    background-image: url("../images/bg-distribuidores425.jpg");
  }

  .contacto-background {
    background-image: url("../images/bg-contacto425.jpg");
  }
}