/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Header fijo */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

header .logo img {
  height: 50px;
  width: auto;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
}

header nav ul li a {
  text-decoration: none;
  color: #001f4d;
  font-weight: bold;
  transition: 0.3s;
}

header nav ul li a:hover {
  color: #0066cc;
}

.btn-contacto {
  background: #001f4d;
  color: #fff !important;
  padding: 8px 15px;
  border-radius: 6px;
}

/* Ajuste body */
body {
  font-family: Arial, sans-serif;
  padding-top: 80px;
  background: #f9f9f9;
}

/* Hero */
.hero {
  background: url('../img/hero/hero_bg.png') center center / cover no-repeat;
  color: white;
  text-align: center;
  padding: 250px 40px 300px;
}

.hero h1 {
  font-size: 3vw;
  font-weight: bold;
  margin-bottom: 25px;
}

.hero .btn {
  display: inline-block;
  background: #fff;
  color: #001f4d;
  padding: 14px 35px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.2vw;
  text-decoration: none;
}


/*about*/

.about-section {
  padding: 60px 20px;
  background: #f9f9f9;
  font-family: Arial, sans-serif;
}
.about-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #222;
}
.about-section .intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: #555;
  font-size: 1.1rem;
}

/* Fila con 3 bloques */
.about-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.about-item {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  flex: 1 1 260px;
  max-width: 320px;
  text-align: center;
}
.about-item h3 {
  color: #0078ff;
  margin-bottom: 10px;
}
.about-item p, .about-item ul {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
}
.about-item ul {
  list-style: none;
  padding: 0;
}

/* Hero de Partners */
.partners-section {
  padding: 20px 20px;
  background: #fff;
  text-align: center;
}
.partners-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #222;
}

/* Banner */
.partners-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.partners-track {
  display: flex;
  width: calc(200%); /* porque duplicamos */
  animation: scrollPartners 40s linear infinite;
}

.partners-track img {
  width: 80px;
  height: auto;
  
  margin: 0 25px;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

/* Hover: pausa animacion y cambia color */
.partners-banner:hover .partners-track {
  animation-play-state: paused;
}

.partners-track img:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* Animacion infinita */
@keyframes scrollPartners {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}





/* Services */
.services {
  background: #f5f7fa;
  padding: 40px 20px;
}


  
.services .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: auto;
}

.services .card {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.services .card img {
  max-width: 30%;
  height: auto;
}


/* Noticias */
.noticias-section {
  padding: 20px;
  background: #fff;
  text-align: center;
}

.noticias-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #222;
}

/* Banner */
.noticias-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.noticias-track {
  display: flex;
  width: calc(200%); /* duplicamos para animación infinita */
  animation: scrollNoticias 40s linear infinite;
}

.noticia {
  display: inline-block;
  white-space: nowrap;
  font-size: 1rem;
  margin: 0 30px;
  color: #003366;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover: pausa animación y cambia estilo */
.noticias-banner:hover .noticias-track {
  animation-play-state: paused;
}

.noticia:hover {
  color: #ff6600;
  transform: scale(1.05);
  font-weight: bold;
}

/* Animación infinita */
@keyframes scrollNoticias {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}




/* INDUSTRIAS */
.industrias {
  background: #f5f7fa;
  padding: 80px 20px;
}

.industrias .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: auto;
}

.industrias .card {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.industrias .card img {
  max-width: 30%;
  height: auto;
}


/* ===== Banner Industrias ===== */
.industrias-container {
  width: 100%;
  overflow: hidden;
  background: #f8f9fa; /* Fondo claro */
  border-top: 2px solid #0056b3; /* Azul corporativo */
  border-bottom: 2px solid #0056b3;
  padding: 10px 0;
  position: relative;
}

.industrias-track {
  display: flex;
  width: max-content;
  animation: scroll-industrias 40s linear infinite;
}

.industria-item {
  flex: none;
  margin: 0 30px;
  font-size: 16px;
  white-space: nowrap;
  color: #0056b3;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

.industria-item:hover {
  color: #ff6600; /* Cambio de color al pasar el mouse */
  text-decoration: underline;
}

/* Animación infinita de scroll */
@keyframes scroll-industrias {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}


/* SmartService */
.smartservice {
  background: #f7f9fc;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 60px 20px;
  max-width: 965px;
  margin: 60px auto;
  border-radius: 8px;
}

.smartservice .text {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.smartservice h2 {
  color: #001f4d;
  font-size: 2vw;
  font-weight: bold;
  margin-bottom: 15px;
}

.smartservice h2 span {
  color: #004aad;
}

.smartservice p {
  font-size: 1.2vw;
  color: #555;
  line-height: 1.6;
}

.smartservice .image img {
  max-width: 280px;
  width: 100%;
}

/* Footer */
footer {
  background: #001f4d;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  header nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .hero {
    padding: 150px 20px;
  }

  .hero h1 {
    font-size: 6vw;
  }

  .hero .btn {
    font-size: 3vw;
  }

  .smartservice {
    flex-direction: column;
    text-align: center;
  }

  .smartservice h2 {
    font-size: 5vw;
  }

  .smartservice p {
    font-size: 3.5vw;
  }
}
