*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Pantalla de carga */
#preloader {
  background: #fff;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* M3*/
/* 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;
}










.loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  animation: spin 1s linear infinite;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  width: 100%;
  height: 100%;
  background-color: #f9f9f9;
}

/* 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;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}







/*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 */
  
}

.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: 0; /* 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);
    display: fixed;
   z-index: -1
  }
}

.contenedor-contacto {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.informacion-contacto {
  flex: 1 1 400px;
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

.informacion-contacto h2, .informacion-contacto h3 {
  color: #063780;
  margin-top: 20px;
}

.informacion-contacto p {
  margin-bottom: 20px;
}

.contenedor-mapa {
  flex: 1 1 400px;
  height: 400px;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Texto debajo de imágenes */
.text-below {
  text-align: center;
  padding: 40px;
}

.text-below h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

.text-below p {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
}



 /* 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 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 */
}

/* Sección contacto e historial */
.Apartado1 {
  width: 100%;
  height: 150px;
}


.contact-section,
.historial-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px;
}

.map-container {
  grid-column: 1 / 3;
  height: 100%;
  border: 1px solid #ddd;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Contact info & formulario */
.contact-info,
.contact-form {
  padding: 20px;
  background-color: #f4f4f4;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info h2,
.contact-form h2 {
  margin-top: 0;
}

.contact-info p,
.contact-info a {
  margin: 10px 0;
}

.contact-info a {
  color: #007BFF;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form label {
  display: block;
  margin: 10px 0 5px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  background-color: #005ce6;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.contact-form button:hover {
  background-color: #05a5f0;
}

/* Sección contenido con fondo */
main {
  position: relative;
}

main .contenido,
.he,
.datos {
  position: relative;
  z-index: 1;
}

main::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('IMG/Fondo\ 2.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.he {
  padding: 20px;
  background: white;
}

.he h1 {
  font-size: 24px;
  color: #555;
}

.he h2 {
  font-size: 18px;
  color: #e60000;
}

button {
  margin-top: 10px;
  padding: 10px 20px;
  border: none;
  background-color: #333;
  color: rgb(255, 255, 255);
  font-size: 16px;
  cursor: pointer;
}

/* Datos circulares */
.datos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  margin: 20px;
}

.dato {
  text-align: center;
  width: 150px;
}

.circulo {
  width: 120px;
  height: 120px;
  border: 3px solid red;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 28px;
  font-weight: bold;
  color: red;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.circulo:hover {
  transform: scale(1.1);
}

.dato p {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}

/* Clientes */
.nya-seccion {
  text-align: center;
  padding: 50px 20px;
  background-color: #fff;
}

/* 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: 150px;
  margin: 0 auto;
}

/* Indicadores */
.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.indicator {
  height: 40px;
  width: 40px;
  background-color: #d3d3d3;
  border: none;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.indicator.active {
  background-color: #141414;
}

/* Responsivo */
@media (max-width: 768px) {
  .contact-section {
    grid-template-rows: auto auto auto;
    grid-template-columns: 1fr;
  }

  .map-container,
  .contact-info,
  .contact-form {
    grid-column: 1 / 2;
  }

  .map-container {
    height: 250px;
  }

  .image-container img {
    width: calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .image-container img {
    width: 100%;
  }
}