/* Pantalla de carga */
#preloader {
  background: #fff;
  position: absolute;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  animation: spin 1s linear infinite;
}
/* Efecto giratorio */
@keyframes spin {
  to { transform: rotate(360deg); }
}
/* Reset y tipografía */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
 
}
/* Barra de navegacion */
/* M3*/



.BarraN ul {
    background-color: rgba(165, 153, 153, 0.014);
    list-style: none;
    display: flex;
    
}
/* Letras */
.BarraN ul li a {
    display: block;
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-size: 18px;
    padding: 10px 25px;
    border-radius: 15px;
    transition: 0.2s;
    margin: 0 5px;
}
.BarraN ul li a:hover{
  color: black;
  background-color:  #28a4e2;
}
.BarraN ul li a.Activo{
  color: black;
  background-color:   #28A3E2;
}
/* ajuste de la ventana  */
@media(max-width:800px) {

    header {
        padding: 0px 30px;
    }
    .Barra {
        display: block;
        cursor: pointer;
    }

    .Barra .Linea {
        width: 30px;
        height: 3px;
        background-color:rgb(44, 52, 168);
        margin: 6px 0px;
    }
    .BarraN{ 
        height: 0px;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        width: 100vw;
        background-color:#ffffffc0;
        transition: 0.5s;
    }
    .BarraN.active{
        height: 450px;
    }
    .BarraN ul{
        display: none;
        width: fit-content;
        margin: 80px auto 0 auto;
        text-align: center;
        transition: 0.5s;
        opacity: 0;
        pointer-events: none;
    }
    .BarraN.active ul{
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
    .BarraN ul li a{
        margin-bottom: 20px;
    }
}header {
    box-sizing: border-box;     
    width: 100%;
    height: 80px;
    background-color: rgba(146, 5, 5, 0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 100px;
    position: relative;
    transition: margin-bottom 0.5s ease;
}

.Logo {
  display: flex;
  align-items: center;
  margin-right: 0%;
  
}
.Logo img {
  height: 60px;
  width: auto;
}

  .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
  .content-box {
    flex: 1;
    text-align: left;
    margin-left: 5%;
  }
  .content-box h3 {
    font-size: 24px;
    font-weight: bold;
    color: #3a3a3a;
    margin-bottom: 15px;
  }
  .content-box p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
  }
  .content-box ul {
    list-style: none;
    padding: 0;
  }
  .content-box ul li {
    font-size: 16px;
    color: #3a3a3a;
    margin-bottom: 10px;
  }

  /* Adaptación para pantallas pequeñas */
  @media (max-width: 768px) {
    .content {
      flex-direction: column;
      gap: 10px;
      align-items: stretch;
    }
    .content-box {
      margin-left: 0;
      text-align: center;
    }
    .content-box h3 {
      font-size: 20px;
    }
    .content-box p,
    .content-box ul li {
      font-size: 15px;
    }
  }
/*Slider*/
.slider-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Oculta la barra de scroll en Firefox */
  -ms-overflow-style: none; /* Oculta la barra en Edge/IE */
  scroll-behavior: smooth; /* Transición suave al hacer scroll */
  
}

.slider-container::-webkit-scrollbar {
  display: none; /* Oculta la barra en Chrome/Safari */
 
}

.slider-container img {
  flex: 0 0 100%;
  display: flex;
  object-fit: cover;
  scroll-snap-align: center;
  width: 100%;
  max-height: 80vh; 
  opacity: 0.85; /* Un poco opaco */
  transition: opacity 0.6s ease, transform 0.6s ease;
   z-index: -1
}

.slider-container img:hover {
  opacity: 1;
  transform: scale(1.02); /* Leve zoom al pasar el mouse */
  
}

  /*Contenedor general*/
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
  }
  
  /* Título de la sección */
  .section-title p {
    color: hsl(30, 62%, 60%);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  .section-title h2 {
    font-size: 36px;
    font-weight: bold;
    color: #3a3a3a;
    margin-bottom: 40px;
  }
 
  /* Botón */
  .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #125bad;
    color: #fff;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  .btn:hover {
    background-color: #bf814a;
  }
  
  /* Imagen central */
  .image-box {
    flex: 1;
    text-align: center;
  }
  .image-box img {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
  }
  /* Cuadrícula de servicios */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
  .service-item {
    display: flex;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
  }
  .service-item:hover {
    transform: scale(1.05);
  }
  /* Imagen de cada servicio */
  .service-item img {
    width: 40%;
    object-fit: cover;
    border-right: 3px solid #f3e4d8; /* Separador decorativo */
  }
  /* Contenido del servicio */
  .service-content {
    padding: 20px;
    text-align: left;
  }
  .service-content h3 {
    font-size: 20px;
    color: #3a3a3a;
    margin-bottom: 10px;
  }
  .service-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
  }
  .image-container {
    display: flex;
    justify-content: space-between; /* Espaciado uniforme entre las imágenes */
    align-items: center;
    flex-wrap: wrap; /* Permite que las imágenes se ajusten en múltiples líneas si es necesario */
    padding: 20px; /* Espaciado interior */
  }
  
  /* Imágenes con efecto blanco y negro */
  .image-container img {
    width: calc(33.333% - 20px); /* Tres imágenes por fila con espacio entre ellas */
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    cursor: pointer;
  }
  
  /* Al pasar el cursor, se colorean */
  .image-container img:hover {
    filter: grayscale(0%);
    z-index: -1;
  }
  /* Texto debajo de las imágenes */
.text-below {
    text-align: center;
    padding: 40px;
  }
  .text-below h2 {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
  }
  .text-below p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
  }
  
  /* Responsivo para pantallas pequeñas */
  @media (max-width: 768px) {
    .image-container img {
      width: calc(50% - 20px); /* Dos imágenes por fila */
    }
  }
  @media (max-width: 480px) {
    .image-container img {
      width: 100%; 
    }
  }
  

/* Pie de pagina */

  .footer {
            background: #222;
            color: #fff;
            padding: 40px 20px 20px 20px;
            font-size: 16px;
          }
          .footer-content {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: flex-start;
            max-width: 1200px;
            margin: 0 auto;
          }
          .footer-section {
            flex: 1 1 220px;
            margin: 10px 20px;
            min-width: 180px;
          }
          .footer-logo {
            width: 250px;
            margin-bottom: 10px;
          }
          .footer-links {
            display: flex;
            flex-direction: column;
            gap: 8px;
          }
          .footer-links a {
            color: #fff;
            text-decoration: none;
            transition: color 0.2s;
          }
          .footer-links a:hover {
            color: #00bcd4;
          }
          .social-section {
            display: flex;
            gap: 16px;
            align-items: center;
            margin-top: 20px;
          }
          .social-section a {
            color: #fff;
            font-size: 22px;
            transition: color 0.2s;
          }
          .social-section a:hover {
            color: #00bcd4;
          }
          @media (max-width: 900px) {
            .footer-content {
              flex-wrap: wrap;
              justify-content: center;
            }
            .footer-section {
              margin: 10px 10px;
              min-width: 150px;
            }
          }
          @media (max-width: 600px) {
            .footer-content {
              flex-direction: column;
              align-items: center;
              text-align: center;
            }
            .footer-section {
              margin: 15px 0;
              min-width: 0;
            }
            .social-section {
              justify-content: center;
              margin-top: 10px;
            }
          }
  /* Botón de volver arriba */
  .scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: #0099ff; /* Naranja */
    color: #ffffff; /* Texto blanco */
    border: none;
    border-radius: 54%;
    width: 42px;
    height: 42px;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .scroll-top:hover {
    background-color: #005ce6; /* Naranja oscuro */
  }
  
  button {
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    background-color: #333;
    color: rgb(255, 255, 255);
    font-size: 16px;
    cursor: pointer;
  }
  .dato p {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
  }
  
  /* Seccion de clientes*/
.nya-seccion {
  text-align: center;
  padding: 50px 20px;
  background-color: #fff;
}

/* Estilos del carrusel */
.carousel {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.carousel-item {
  min-width: 100%;
  text-align: center;
}

.carousel-item img {
  max-width: 50%;
  margin: 0 auto;
}

/* Indicadores del carrusel */
.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.indicator {
  height: 40px;
  background-color: #d3d3d3;
  border: none;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.indicator.active {
  background-color: #141414;
}


.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.89);
  border-radius: 12px;
  padding: 20px;
  max-width: 400px;
  margin: 100px auto;
  opacity: 0;
  transform: scale(0.8);
  animation: aparecer 1s ease-out forwards;
  margin-top: -28%;
  margin-bottom: 22%;
  position: relative;
  z-index: -1; /* Asegura que quede detrás de la barra (que tiene z-index mayor) */
}

.logo-container img {
  width: 100%;
  height: auto;
  display: block;
  z-index: 0;
}


/* Animación */
@keyframes aparecer {
  to {
    opacity: 1;
    transform: scale(1);
  }
}



.capacitacion-section {
  background-color: #ffffff;
  text-align: center;
  padding: 60px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.capacitacion-section h2 {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 30px;
  color: #000;
}

.curso-lista {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
}

.curso-lista li {
  font-size: 1.2rem;
  padding: 12px 0;
  border-bottom: 1px solid #ccc;
  color: #333;
  transition: color 0.3s ease;
}

.curso-lista li:last-child {
  border-bottom: none;
}

.curso-lista li:hover {
  color: #007BFF; /* color azul al pasar el mouse */
}
.social-links a {
    color: rgb(243, 238, 238);
    text-decoration: none;
    margin: 0 10px;
}