/* ---------- Tarjetas de servicios y procedimientos ---------- */

.service-card,
.procedure-card {
  border-left: 4px solid #3498db;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  background: #fff;
  max-width: 100%;
}

.procedure-card {
  border-left-color: #2980b9;
}

.service-card:hover,
.procedure-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

/* Icono */
.service-icon {
  font-size: 40px;
  color: #3498db;
  margin-bottom: 15px;
}

/* Sección de documentos */
.documents-section {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 5px;
}

/* Título de sección */
.section-title {
  position: relative;
  margin-bottom: 40px;
  padding-bottom: 15px;
  text-align: center;
  font-size: 28px;
}

.section-title:after {
  content: "";
  position: absolute;
  display: block;
  width: 80px;
  height: 3px;
  background: #3498db;
  bottom: 0;
  left: calc(50% - 40px);
}

/* ---------- Imagen de equipo ---------- */

.equipo-img {
  text-align: center;
  margin: 30px auto;
  max-width: 100%;
  padding: 0 15px;
}

.equipo-img figure {
  margin: 0 auto;
  display: inline-block;
  max-width: 100%;
}

.equipo-img img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.equipo-img img:hover {
  transform: scale(1.03);
}

/* ---------- Botón de contacto centrado ---------- */

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  white-space: normal;      /* Permite saltos de línea */
  word-wrap: break-word;    /* Rompe palabras largas si es necesario */
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-primary {
  background-color: #3498db;
  color: #fff;
}

.btn-primary:hover {
  background-color: #2980b9;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ---------- Responsivo ---------- */

@media (max-width: 991px) {
  .service-icon {
    font-size: 32px;
  }

  .section-title {
    font-size: 24px;
  }

  .documents-section {
    padding: 20px;
  }

  .equipo-img img {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .service-card,
  .procedure-card {
    padding: 15px;
    border-left: 3px solid #3498db;
  }

  .procedure-card {
    border-left-color: #2980b9;
  }

  .service-icon {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .section-title {
    font-size: 22px;
  }

  .section-title:after {
    width: 60px;
    left: calc(50% - 30px);
  }

  .equipo-img {
    padding: 10px;
  }
}

@media (max-width: 576px) {
  .btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    white-space: normal;         /* Permite que el texto haga saltos de línea */
    word-wrap: break-word;       /* Rompe palabras largas si es necesario */
    overflow-wrap: break-word;   /* Para mayor compatibilidad */
    text-align: center;
    box-sizing: border-box;
  }

  .service-icon {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .documents-section {
    padding: 15px;
  }

  .service-card,
  .procedure-card {
    margin-bottom: 20px;
  }

  .equipo-img img {
    border-radius: 5px;
  }
}

