/* ====== Hero Nosotros Fullscreen ====== */
.hero-nosotros {
  position: relative;
  height: 100vh; /* Ocupa toda la altura de la pantalla */
  background-image: url("../assets/img/portada_servicios.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px; /* Espacio por el navbar */
  overflow: hidden;
}

.hero-nosotros::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(
    0,
    0,
    0,
    0.5
  ); /* oscurece para que se lea bien el texto */
  z-index: 1;
}

.hero-nosotros .container {
  position: relative;
  z-index: 2;
}

.hero-nosotros h1,
.hero-nosotros p {
  color: #fff;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

/*****/

/* ===== Main Container ===== */
.services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ===== Service Sections ===== */
.service-section {
  margin-bottom: 80px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.reverse {
  direction: rtl;
}

.reverse > * {
  direction: ltr;
}

.service-content {
  padding: 0 20px;
}

.service-title {
  color: #003366;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-top: 70px;
  padding-bottom: 0;
}

.service-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #80c542;
}

.service-subtitle {
  color: #005b8c;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.service-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.service-features li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 0.8rem;
}

.service-features li::before {
  content: "•";
  color: #80c542;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ===== Service Images ===== */
.service-image {
  text-align: center;
}
.service-image img {
  border-radius: 10px;
}

.service-img {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
}

.btn-cotizar {
  display: inline-block;
  background-color: #0D3C6E;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 1rem;
}

.btn-cotizar:hover {
  background-color: #15559b;
  transform: translateY(-2px);
}


/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .reverse {
    direction: ltr;
  }

  .service-content {
    padding: 0;
  }

  .service-image {
    order: -1;
  }

  .services-hero-title {
    font-size: 2.4rem;
  }

  .services-hero-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .services-hero {
    height: 40vh;
    min-height: 350px;
    margin-bottom: 40px;
  }

  .service-section {
    margin-bottom: 60px;
  }

  .service-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .services-hero-title {
    font-size: 2rem;
  }

  .services-hero-subtitle {
    font-size: 1.1rem;
  }

  .service-title {
    font-size: 1.4rem;
  }

  .service-description {
    font-size: 1rem;
  }
}
