/* ===================== */
/* UTILITIES */
/* ===================== */
.text-center {
  text-align: center;
}

.my-4 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.rounded {
  border-radius: 8px;
}

.shadow-lg {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* ===================== */
/* BODY Y NAVBAR */
/* ===================== */

/* ===================== */
/* CONTENEDOR PRINCIPAL */
/* ===================== */
.content-container {
  font-family: 'Nunito', sans-serif;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ===================== */
/* IMAGEN PRINCIPAL A PANTALLA COMPLETA */
/* ===================== */
.fullwidth-image-container {
  margin: 100px auto;
  position: relative;
  width: 100vw;
  max-width: 100%;
  height: auto;
  overflow: hidden;
}

.fullwidth-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

.text-overlay h4 {
  font-size: 70px;
  margin: 0;
}

.text-overlay p {
  font-size: 18px;
  margin-top: 10px;
}

/* ===================== */
/* CONTENEDOR DE SERVICIOS */
/* ===================== */
.service-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  margin-top: -150px;
  position: relative;
  z-index: 20;
  padding: 0 20px;
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
}

/* ===================== */
/* TARJETA DE SERVICIO */
/* ===================== */
.service-card {
  background: #ffffff;
  border-top: 4px solid #349B7D;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 16px;
  flex: 1 1 calc(33.33% - 20px);
  max-width: calc(33.33% - 20px);
  transition: transform 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.service-content h5 {
  font-size: 22px;
  font-weight: bold;
  color: #349B7D;
  margin-bottom: 10px;
}

.service-content p {
  font-size: 16px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.service-button {
  display: inline-block;
  background-color: #349B7D;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto;
  transition: background-color 0.3s ease;
  max-width: 100%;
  overflow-wrap: break-word;
  align-self: center;
}

.service-button:hover {
  background-color: #28705A;
}

/* ===================== */
/* RESPONSIVE DISEÑO MÓVIL */
/* ===================== */
@media (max-width: 768px) {
  body {
    padding: 10px;
    background-color: #f5f5f5;
  }

  .fullwidth-image-container {
    margin: 60px auto;
    width: 100%;
    height: auto;
  }

  .fullwidth-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
  }

  .text-overlay h4 {
    font-size: 32px;
  }

  .text-overlay p {
    font-size: 14px;
  }

  .service-container {
    flex-direction: column;
    gap: 16px;
    margin-top: -100px;
    padding: 0 10px;
    max-width: 100%;
  }

  .service-card {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
  }

  .service-image {
    max-height: 160px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
  }

  .service-content h5 {
    font-size: 18px;
    margin-top: 10px;
  }

  .service-content p {
    font-size: 14px;
    color: #444;
    -webkit-line-clamp: 4;
  }

  .service-button {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    margin-top: 12px;
    overflow-wrap: break-word;
  }
}
