/*Seccion 1*/
.services-hero {
  font-family: "Darker Grotesque", "Odoo Unicode Support Noto", sans-serif;
  background-color: #fff;
  padding: 4rem 2rem;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0 0 0 0;
  display: flex;
  width: 100%;
  overflow: hidden;
}

.services-content {
  font-family: "Darker Grotesque", "Odoo Unicode Support Noto", sans-serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  gap: 2rem;
}

.text-section {
  font-family: "Darker Grotesque", "Odoo Unicode Support Noto", sans-serif;
  flex: 1;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.text-section h1 {
  font-size: 2.8rem;
  font-weight: 600;
  font-family: "Darker Grotesque", "Odoo Unicode Support Noto", sans-serif;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #222;
}

.text-section .subheading {
  font-family: "Darker Grotesque", "Odoo Unicode Support Noto", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #222;
}

.text-section .description {
  font-family: "Darker Grotesque", "Odoo Unicode Support Noto", sans-serif;
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #444;
  max-width: 90%;
}

.services-button {
  background-color: #6d9111;
  color: black;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.services-button:hover {
  background-color: #55770d;
}

.image-section {
  width: 50%;
  height: auto;
}

.image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*Section 2*/

.services-banner {
  font-family: "Darker Grotesque", "Odoo Unicode Support Noto", sans-serif;
  background-color: #7a9d1f;
  /* verde fuerte */
  color: white;
  padding: 4rem 1rem;
  text-align: center;
}

.services-banner-content {
  max-width: 1000px;
  margin: 0 auto;
}

.banner-text {
  font-size: 1.3rem;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.banner-subtext {
  font-size: 1rem;
  color: white;
}

/*Section 3*/
.services-intro {
  font-family: "Darker Grotesque", "Odoo Unicode Support Noto", sans-serif;
  background-color: white;
  padding: 4rem 1rem 1rem 1rem;
  text-align: center;
}

.services-intro-content {
  max-width: 1000px;
  margin: 0 auto;
}

.services-intro h2 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
  color: #222;
  font-weight: 700;
}

.services-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
  margin: 0 auto;
}

/*Seccion 4*/
.service-cards {
  font-family: "Darker Grotesque", "Odoo Unicode Support Noto", sans-serif;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 2rem 4rem 2rem;
  background-color: #f9f9f9;
}

.service-cards .card {
  background-color: #fcfcfc;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-cards .card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d2d2d;
  margin-bottom: 1rem;
}

.service-cards .card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
}

.service-cards .card img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  object-fit: cover;
}

/*Seccion 5*/
.testimonial-banner {
  font-family: "Darker Grotesque", "Odoo Unicode Support Noto", sans-serif;
  background-image: url("../images/ASURE FOTOS_SITIO_WEB/SERVICIOS/servicios_04.jpg");
  background-size: cover;
  background-position: center;
  padding: 6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-box {
  background-color: white;
  max-width: 800px;
  border-radius: 0.8rem;
  padding: 3rem 2rem;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  text-align: center;
  font-weight: 600;
}

.quote-icon {
  position: absolute;
  top: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #7a9d1f;
  color: black;
  font-size: 1.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  font-weight: bold;
}

.testimonial-box p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #222;
  margin: 0;
}

@media (max-width: 1100px) and (min-width: 900px) {
  .text-section {
    max-width: 500px;
    padding-left: 2rem;
    padding-right: 2rem;
    margin-left: auto;
    margin-right: auto;
  }

  .services-content {
    padding: 2rem;
    gap: 2rem;
  }

  .text-section h1 {
    font-size: 2.5rem;
  }

  .image-section {
    max-width: 50%;
  }
}


@media (max-width: 900px) {
  .services-content {
    flex-direction: row;
    flex-wrap: wrap; /* permite que se ajusten si no caben */
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .text-section {
    flex: 1;
    max-width: 48%;
  }

  .image-section {
    flex: 1;
    max-width: 48%;
  }

  .text-section h1 {
    font-size: 2.4rem;
  }

  .text-section .subheading,
  .text-section .description {
    font-size: 1rem;
  }

  .services-button {
    margin-top: 1rem;
  }

  .image-section img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .services-hero {
    padding: 2rem 1rem;
    overflow-x: hidden;         /* 👈 evita el scroll horizontal */
    box-sizing: border-box;
  }

  .services-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
  }

  .text-section {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 1rem;
  }

  .text-section h1 {
    font-size: 2rem;
    word-wrap: break-word;     /* 👈 evita que palabras largas rompan el layout */
  }

  .text-section .subheading {
    font-size: 1rem;
  }

  .text-section .description {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .image-section {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .image-section img {
    width: 100%;
    height: auto;
    display: block;
  }

  .services-button {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
  }
}
