/* Fuente y colores */
body {
  margin: 0;
  font-family: 'League Spartan', sans-serif;
  background: #e8e8e8;
  color: #000000;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #F1F1F1;
}

.navbar .logo img {
  height: 50px;
  width: auto;
  margin-left: 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #000;
  text-decoration: none;    
  font-weight: 600;
}

.nav-links a:hover {
  color: #0047FF;
}

/* Hero */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: url("img/Zoftfondo.png") no-repeat center center/cover;
  color: #ffffff;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero p {
  font-size: 18px;
  margin-bottom: 20px;
}

.btn {
  background: #0047FF;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: #0035cc;
}

/* Secciones */
section {
  padding: 60px 20px;
  text-align: center;
}

.about p {
  max-width: 1200px;
  margin: auto;
  font-size: 18px;
  line-height: 1.6;
}

/* --- Servicios (Carrusel con 3 tarjetas) --- */
.services {
  text-align: center;
  padding: 60px 20px;
  background: #e4e4e4;
}

.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 40px auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-card {
  flex: 0 0 33.33%; /* tres por fila */
  box-sizing: border-box;
  padding: 15px;
  background: #fff;
  border-radius: 15px;
  margin: 0 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-card img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.carousel-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #0047FF;
}

.carousel-card p {
  font-size: 14px;
  color: #444;
  margin-bottom: 10px;
}

.more-link {
  color: #0047FF;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.more-link:hover {
  text-decoration: underline;
}

/* Botones de navegación */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid #0047FF;
  color: #0047FF;
  font-size: 22px;
  padding: 6px 10px;
  border-radius: 40%;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: #0047FF;
  color: white;
}

.carousel-btn.left { left: 10px; }
.carousel-btn.right { right: 10px; }

/* Responsive: en móviles solo 1 tarjeta */
@media (max-width: 768px) {
  .carousel-card {
    flex: 0 0 100%;
    margin: 10px 0;
  }
}

/* --- Modal Dinámico --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 25px;
  border-radius: 12px;
  width: 80%;
  max-width: 800px;
  animation: slideUp 0.3s ease-in-out;
  text-align: left;
}

.modal-content img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.modal-content h2 {
  color: #0047FF;
  margin-bottom: 10px;
}

.modal-content p {
  font-size: 16px;
  line-height: 1.6;
}

.close {
  float: right;
  font-size: 28px;
  cursor: pointer;
  color: #444;
}

.close:hover {
  color: #0047FF;
}

/* Animaciones */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes slideUp {
  from {transform: translateY(50px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}

/* Sectores */
body {
  font-family: 'League Spartan', sans-serif;
  background: #ffffff;
  margin: 0;
  padding: 0;
}

.industries-section {
  padding: 50px 8%;
  text-align: center;
}

.industries-section h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #222;
}

.industries-section p {
  font-size: 1rem;
  margin-bottom: 40px;
  color: #000000;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

.industry-card {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  padding: 40px 20px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industry-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}

.industry-card i,
.industry-card h3 {
  position: relative;
  z-index: 2;
}

.industry-card i {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.industry-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.industry-card:hover {
  transform: translateY(-8px);
  box-shadow: 0px 12px 25px rgba(0,0,0,0.25);
}

/* Fondo difuminado y padding */
#proceso-trabajo-horizontal {
  background: url('fondo-difuminado.jpg') center/cover no-repeat;
  padding: 80px 20px;
  color: #000000;
  font-family: Arial, sans-serif; /* base para párrafos */
}

#proceso-trabajo-horizontal .container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

#proceso-trabajo-horizontal h2 {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 60px;
}

/* Timeline horizontal */
.timeline-horizontal {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  gap: 20px;
}

.timeline-horizontal::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 0;
}

/* Paso individual */
.timeline-step {
  flex: 1;
  position: relative;
  z-index: 1;
  padding: 0 10px;
}

.timeline-step .timeline-icon {
  width: 60px;
  height: 60px;
  background: #0047FF;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

/* Títulos y textos */
.timeline-step h3 {
  font-family: 'League Spartan', sans-serif;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.timeline-step p {
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline-horizontal {
    flex-direction: column;
    align-items: flex-start;
  }
  .timeline-horizontal::before {
    top: 0;
    left: 30px;
    right: auto;
    width: 4px;
    height: 100%;
  }
  .timeline-step {
    padding-left: 40px;
    margin-bottom: 40px;
  }
}

.tech-section {
  padding: 50px 20px;
  background-color: #ffffff;
  overflow: hidden;
}

.tech-slider-wrapper {
  overflow: hidden;
  position: relative;
}

.tech-slider {
  display: flex;
  gap: 40px;
  animation: scrollLoop 20s linear infinite;
  cursor: grab;
}

.tech-item {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-item img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  display: block;
}

/* Animación de loop */
@keyframes scrollLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* mueve la mitad del slider duplicado */
}

/* Responsive */
@media (max-width: 768px) {
  .tech-slider {
    gap: 20px;
  }
}
