body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
   background-image: url('../images/body_principal-1.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.452);
  z-index: -1;
}

.service-header {
  text-align: center;
  padding: 30px 20px;
  background-color: #1f5c7a;
  color: white;
}

.service-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.service-header p {
  font-size: 1.4rem;
  margin-bottom: 20px;
  margin-left: 40px;
  margin-right: 40px;
}

.service-section {
  min-height: auto; 
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 10%;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.service-section.show {
  opacity: 1;
  transform: translateY(0);
}

.service-content {
  display: flex;
  align-items: center;
  background: #6f574a69;
  gap: 40px;
  max-width: 1200px;
}

.service-section:nth-child(even) .service-content {
  flex-direction: row-reverse;
}

.service-section:nth-child(odd) .service-content {
  flex-direction: row;
}


.service-text {
  flex: 1;
}

.service-text h3 {
  font-size: 2rem;
  color: #b3edff;
  margin-bottom: 15px;
  margin-left: 50px;
}

.service-text p {
  font-size: 1.2rem;
  color: #ffffff;
  line-height: 1.6;
  margin-left: 50px;
}

.service-image {
  flex: 1;
}

.service-image img {
  width: 450px;
  height: 300px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.service-text ul li {
  color: #fff;            
  font-size: 1.2rem;          
  line-height: 1.6;         
  margin-bottom: 8px;       
}

@media (max-width: 900px) {
  .service-content {
    flex-direction: column;
    text-align: center;
  }
  .service-content.reverse {
    flex-direction: column;
  }
}
@media (max-width: 992px) {
  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {

  header h1 {
    font-size: 1.8rem;
  }

  header p {
    font-size: 0.95rem;
  }
  
}

@media (max-width: 768px) {
body {
    background-image: url('../images/body_principal-mobile.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
  }

  .service-content {
    flex-direction: column; 
    align-items: center;
    gap: 20px;
  }

  .service-section:nth-child(even) .service-content,
  .service-section:nth-child(odd) .service-content {
    flex-direction: column;
  }
.service-text {
    text-align: left;
  }

  .service-text h3,
  .service-text p,
  .service-text ul li {
    margin-left: 0;
    margin-right: 0;
  }

  .service-header p {
    font-size: 1.2rem;
  }

  .service-image img {
    width: 100%;
    max-width: 360px;
    height: auto;
  }

  .service-section {
    padding: 40px 20px;
  }


}


@media (max-width: 992px) {
  .service-content {
    flex-direction: column;
    text-align: left;
    gap: 20px;
  }

  .service-text h3,
  .service-text p,
  .service-text ul li {
    margin-left: 0;
    margin-right: 0;
  }

  .service-image img {
    width: 100%;
    max-width: 350px;
    height: auto; 
  }

  .service-section {
    padding: 40px 20px;
  }

  .service-header h1 {
    font-size: 1.5rem;
  }

  .service-header p {
    font-size: 1.2rem;
    margin: 0 10px;
  }
}