/* Pantalla de carga */
#preloader {
  background: #fff;
  position: fixed;
  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;
}

/*--------- Diseño Historial ---------*/

.contenedor1 {
    height: 100vh; /* Ocupa toda la altura de la ventana */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover; /* Las imágenes cubren el contenedor */
    background-image: url('IMG/Fondo1.jpg'); /* Ruta de tu imagen */
    background-position: center; /* Centra las imágenes */
    transition: background-image 1s ease-in-out; /* Suaviza el cambio de imagen */
  }
  
  .contenedor_titulo {
    width: 60%;
    height: 250px;
    background-color: rgba(74, 160, 182, 0.795); /* Azul semitransparente */
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box; /* Asegura que el padding no afecte el tamaño del contenedor */
  }
  
  .tabla1 {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.7); /* Fondo blanco con transparencia */
    border-radius: 8px;
    padding: 10px;
  }
  
  .tabla1 td {
    padding: 10px;
    color: #333;
  }
  
  .titulo2 {
    font-size: 40px;
    color: #fff;
    margin-bottom: 20px; /* Ajuste del margen */
    text-align: center;
  }
  
  .descripcion {
    font-size: 20px;
    color: #fff;
    text-align: justify;
  }
  
  .titulo2::after {
    content: "";
    display: block;
    width: 200px;
    height: 2px;
    background-color: #003366;
    margin: 8px auto 0;
  }
  
  .contenedor-Historial {
    background-color: #f1f1f1; /* Color de fondo claro */
    padding: 20px;
    display: flex;
    width: 90%;
    height: 80vh; /* Esto hace que el contenedor ocupe el 90% del alto de la pantalla */
    margin: auto;
    position: relative;
    border-radius: 15px; /* Esquinas redondeadas */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra */
  }
  /*----------Contenedor1------------*/
  
  .Introduccion {
    width: 90%; /* Ancho del 90% */
    height: auto; /* Alto del 80% de la pantalla */
    margin: auto; /* Centrado en la página */
    background-color: #f1f1f1; /* Color de fondo claro */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra */
    padding: 30px; /* Espaciado interno */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alineación del contenido hacia la parte superior */
    font-size: 1.2rem; /* Tamaño de fuente */
    line-height: 1.6; /* Mayor espacio entre las líneas */
    color: #333; /* Color del texto */
    font-family: 'Arial', sans-serif; /* Tipo de letra */
  }
  
  .contenedorIntroduccion h2 {
    font-size: 1.8rem; /* Tamaño de fuente para el título */
    color: #2C3E50; /* Color del título */
    margin-bottom: 20px; /* Espaciado inferior */
  }
  
  .contenedorIntroduccion p {
    font-size: 1.1rem; /* Tamaño de fuente para el título */
    margin-bottom: 20px; /* Espaciado entre párrafos */
  }
  
  .contenedorIntroduccion ul {
    list-style-type: disc; /* Listas con puntos */
    font-size: 0.9rem; /* Tamaño de fuente para el título */
    margin-left: 20px; /* Alineación hacia la derecha */
  }
  
  .contenedorIntroduccion li {
    margin-bottom: 10px; /* Espaciado entre elementos de lista */
  }
  
  .contenedorIntroduccion .subtitulo {
    font-weight: bold; /* Subtítulos en negrita */
    margin-top: 20px;
  }
  
  .contenidoHistorial .subtitulo {
    font-weight: bold; /* Subtítulos en negrita */
    margin-top: 20px;
  }
  
  .contenidoHistorial .clientes ul {
    list-style-type: none; /* Eliminar puntos de lista */
    font-size: 1.5rem; /* Tamaño de fuente para el título */
  }
  
  .contenidoHistorial .clientes li {
    margin-bottom: 15px; /* Espaciado entre clientes */
    font-size: 1rem; /* Tamaño de fuente para el título */
  }
  
  .contenidoHistorial#contenido2 .subtitulop {
    font-weight: bold; /* Subtítulos en negrita */
    margin-top: 20px;
  }
  
  .contenidoHistorial#contenido2 .subtitulo {
    font-weight: bold; /* Subtítulos en negrita */
    font-size: 1.3rem; /* Tamaño de fuente para el título */
    margin-top: 20px;
  }
  
  .contenidoHistorial#contenido2 p {
    font-size: 1.1rem; /* Tamaño de fuente para el título */
    margin-bottom: 20px; /* Espaciado entre párrafos */
  }
  
  .contenidoHistorial#contenido2 ul {
    list-style-type: none; /* Eliminar puntos de lista */
    font-size: 1.5rem; /* Tamaño de fuente para el título */
  }
  
  .contenidoHistorial#contenido2 li {
    margin-bottom: 15px; /* Espaciado entre clientes */
    font-size: 1rem; /* Tamaño de fuente para el título */
  }
  /*------------------*/
  
  .menuHistorial {
    width: 20%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .menuHistorial button {
    background-color: #ffffff28;
    width: 110%; /* Ajusté el ancho a 100% para evitar que los botones se desborden */
    font-size: 1.4rem; /* Tamaño de letra aumentado */
    color: rgb(0, 0, 0);
    border: 1px solid black;
    padding: 10px;
    cursor: pointer;
    transition: color 0.3s;
    position: relative;
    border-radius: 15px; /* Esquinas redondeadas */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra */
  }
  
  .menuHistorial button:hover {
    color: #28A3E2;
  }
  
  .contenidoHistorial {
    width: 75%;
    padding: 15px;
    display: none;
    margin-left: 3%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    font-size: 1.5rem; /* Tamaño de letra aumentado */
  }
  
  .contenidoHistorial.mostrar {
    display: block;
    opacity: 1;
    position: relative;
    border-radius: 15px; /* Esquinas redondeadas */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra */
    overflow-y: auto; /* Agregar barra de desplazamiento si el contenido excede el contenedor */
  }
  
  .imagenes-container {
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  
  .imagenes-container img {
    width: 400px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    border-radius: 10px; /* Bordes redondeados opcionales */
  }
  
  .imagenes-container img:hover {
    transform: scale(1.02); /* Aumenta el tamaño en un 10% */
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3); /* Agrega sombra */
  }
  
  .hist-table {
    width: 90%;
    border-collapse: collapse;
    align-items: center;
    margin: auto; /* Centrado en la página */
  
  }
  .hist-table td {
    width: auto;
    height: auto;
    text-align: center;
    vertical-align: middle;
    font-size: 18px;
    border: none;
  }

  .hist-img {
    width: 40vh;
    height: auto;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    cursor: pointer;
    border-radius: 10px;
  }

  .hist-img:hover {
    transform: scale(1.02);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
  }

  .hist-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
  }

  .hist-modal img {
    width: 50%;
    height: auto;
    cursor: pointer;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    border-radius: 10px;
  }

  .hist-modal img:hover {
    transform: scale(1.02);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
  }

  .hist-modal .prev, .hist-modal .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
  }

  .hist-modal .prev { left: 10px; }
  .hist-modal .next { right: 10px; }
  
  .hist-table td:first-child, .hist-table td:nth-child(2), .hist-table td:last-child {
    padding-top: 20px; /* Espaciado superior entre imágenes y texto */
  }
  
  /*--------------- Contenedor 3 ---------------*/
  
  .hist2-container {
    position: relative;
    width: 90%;
    margin: 30px auto;
    padding: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: url('IMG/Imagen 4.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
  }
  
  /* Capa de opacidad */
  .hist2-container::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.452); /* Blanco con opacidad */
    z-index: 1;
  }
  
  /* Contenido sobre la capa */
  .hist2-container > * {
    position: relative;
    z-index: 2;
  }

  .hist2-section {
    margin-bottom: 30px;
  }

  .hist2-section h2 {
    font-size: 24px;
    color: #000000;
    background-color: #ffffff2d;
    display: inline-block;  /* Esto hace que la línea debajo tenga el mismo tamaño que el texto */
    padding-bottom: 5px;
    margin-bottom: 10px;
    position: relative;
  }

  .hist2-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% + 10%); /* Aumenta 10px a la línea */
    height: 2px;
    background-color: #2c3e50;
  }

  .hist2-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-left: 0;
    background: linear-gradient(to right, #f4f4f9, #ffffff);
    padding: 15px;
    border-radius: 8px;
  }

  .hist2-projects {
    margin-top: 15px;
    font-size: 14px;
    color: #555;
    margin-left: 0;
    background: linear-gradient(to right, #f4f4f9, #ffffff);
    padding: 15px;
    border-radius: 8px;
  }

  .hist2-projects strong {
    color: #2c3e50;
  }

  .hist2-projects ul {
    list-style-type: none;
    padding: 0;
  }

  .hist2-projects ul li {
    padding: 5px 0;
  }
/* Barra de navegacion */
/* Encabezado principal */



.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;
}
/*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%;
  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 */
}

  
 .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);
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
 
}
  /* Botón de volver arriba */
  .scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: #0099ff; 
    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 */
  }

  .section-title h2 {
    font-size: 36px;
    font-weight: bold;
    color: #3a3a3a;
    margin-bottom: 40px;
  }
  .section-title h2 {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #3a3a3a;
  }

  /* 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;
            }
          }
  .tabla-responsive {
  width: 100%;
  overflow-x: auto;
}

.tabla {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Evita que se rompa antes de tiempo */
}

/* Imágenes dentro de la tabla */
.tabla .imagenes-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.tabla .imagenes-container img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}

.img-servicio {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.img-servicio:hover {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .tabla {
    width: 100%;
    display: block;
    overflow-x: auto;
  }

  .tabla td {
    text-align: center;
    padding: 10px;
    font-size: 14px;
  }

  .img-servicio {
    max-width: 180px;
  }

  .tabla ul {
    padding-left: 15px;
    text-align: left;
  }
}

.tabla-responsive {
  width: 100%;
  overflow-x: auto;
}

.hist-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 750px;
}

.hist-table td {
  text-align: center;
  vertical-align: top;
  padding: 10px;
  font-size: 1rem;
  color: #333;
}

/* Imágenes responsivas */
.hist-img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.hist-img:hover {
  transform: scale(1.03);
}

/* Ajuste en pantallas pequeñas */
@media (max-width: 900px) {
  .hist-img {
    max-width: 180px;
  }

  .hist-table td {
    font-size: 0.9rem;
    padding: 8px;
  }
}

.clientes-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.cliente-item {
  width: 32%;
  background-color: #ffffffda;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  box-sizing: border-box;
  text-align: center;
  transition: transform 0.3s ease;
}

.cliente-item:hover {
  transform: scale(1.01);
}

.cliente-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cliente-img:hover {
  transform: scale(1.03);
}

.cliente-item p {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #333;
  text-align: justify;
}

@media (max-width: 900px) {
  .cliente-item {
    width: 100%;
  }

  .cliente-img {
    max-width: 100%;
  }

  .clientes-container {
    flex-direction: column;
  }
}

.servicios-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.servicio-bloque {
  flex: 1 1 30%;
  background-color: #ffffffde;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  box-sizing: border-box;
  text-align: center;
  transition: transform 0.3s ease;
}

.servicio-bloque:hover {
  transform: scale(1.02);
}

.img-servicio {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.servicio-bloque h2 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin: 10px 0;
}

.servicio-bloque ul {
  text-align: left;
  padding-left: 20px;
  font-size: 0.95rem;
  color: #333;
}

@media (max-width: 900px) {
  .servicio-bloque {
    flex: 1 1 100%;
  }

  .img-servicio {
    max-width: 100%;
  }
}
