.linea-metalmecanica-principal {
    background: linear-gradient(to bottom, #ffffff 0%, #0d3c66 100%);
    padding: 80px 60px;
    text-align: center;
}

.linea-metalmecanica-principal .container {
  display: flex;
  gap: 50px;
  max-width: 1100px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.metalmecanica-imagenes {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}


.imagen-principal-metalmecanica img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.metalmecanica-descripcion {
    flex: 2;
    color: #002C59;
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
    opacity: 0;
    transform: translateX(90px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.metalmecanica-descripcion.visible{
    opacity: 1;
    transform: translateX(0);
}


.servicios-section {
    position: relative;
    width: 100vw;
    display: flex;
    justify-content: center;
    padding: 60px 0;
    margin-top: -40px;
    overflow: hidden;
}

.servicios-cards {
    text-align: center;
    padding: 10px 20px;
    margin: 50px auto;
    max-width: 1100px;
    border-radius: 10px;
    position: relative; 
    overflow: hidden;
}

.servicios-cards h2 {
    font-size: 2rem;
    color: #BCA500;
    margin-bottom: 50px;
    font-weight: bold;
}
.servicios-cards h2::after{
    content: "";
    display: block;
    max-width: 40%;
    height: 4px; 
    background-color: #BCA500; 
    margin: 10px auto 0; 
    border-radius: 2px; 
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 250px; 
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 100%; 
}

.btn-ver-mas {
    display: inline-block;
    margin-top: auto; 
    padding: 10px 20px;
    background-color: #002246;
    color: #fff;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
}

.btn-ver-mas:hover {
    background: linear-gradient(90deg, #002C59, #0061c2);}


.card h3 {
    font-size: 1.4rem;
    color: #BCA500;
    margin-bottom: 10px;
    font-weight: bold;
}

.card p {
    font-size: 1rem;
    color: #002246;
    line-height: 1.4;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .linea-metalmecanica-principal {
    padding: 30px 0px;
  }

  .linea-metalmecanica-principal .container {
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
  }

  .metalmecanica-imagenes {
    width: 100%;
  }

  .metalmecanica-descripcion {
    transform: none !important;
    opacity: 1 !important;
  }

  .imagen-principal-metalmecanica img {
    width: 100%;
    height: auto;
  }

  .servicios-cards {
    padding: 10px 15px;
    margin: 30px auto;
  }

  .servicios-cards h2 {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  .cards-container {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .card {
    width: 90%;
    max-width: 320px;
  }

  .card h3 {
    font-size: 1.2rem;
  }

  .card p {
    font-size: 0.95rem;
  }

  .btn-ver-mas {
    font-size: 0.95rem;
    padding: 8px 18px;
  }
}

