.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  text-align: center;
}

.section-title::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: #0d83fd;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.service-card {
  height: 100%;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: flex;
}

.service-card img {
  width: 100%;
}

/* Card base */
.sub-card-pharma {
  border: 1.5px solid rgba(22, 85, 255, 0.4);
  background: linear-gradient(145deg, #ffffff, #eef4ff);
  border-radius: 16px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  margin-bottom: 24px;
  height: 250px;
}

/* Hover */
.sub-card-pharma:hover {
  background: #deedfd;
}

/* Wrapper Bootstrap */
.category-card {
  text-align: center;
}

/* Card content */
.feature-card {
  height: 100%;
  padding: 30px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Icon container */
.icons {
  height: 140px;
  /* 👈 Controla el área del icono */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

/* Icon image */
.icon-img {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
}

/* Title */
.feature-card h4 {
  font-size: 20px;
  /* Un poco más pequeño */
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: #192952;
  min-height: 50px;
  /* 👈 Espacio mínimo para 2 líneas */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Link reset */
.feature-box {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.feature-box:hover {
  color: inherit;
  text-decoration: none;
}

/* Contenedor con espaciado */
.categorias_medicamentos {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  text-align: center;
}

.section-title::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: #0d83fd;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

/* Card base */
.sub-card-pharma {
  border: 1.5px solid rgba(22, 85, 255, 0.4);
  background: linear-gradient(145deg, #ffffff, #eef4ff);
  border-radius: 16px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  margin-bottom: 24px;
}

/* Hover */
.sub-card-pharma:hover {
  background: #deedfd;
}

.paciente-card {
  height: 100%;
  padding: 15px;
  background: #fff;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: flex;
}

.paciente-card .icon {
  width: 25%;
  height: 25%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border-radius: 16px;
  color: #0d83fd;
  font-size: 28px;
  transition: all 0.3s ease;
  line-height: 1;
  margin-right: 20px;
}

.paciente-card .paciente_interaction {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-right: 8px;
}

.paciente-card .paciente_interaction h3 {
  color: #0f2a44;
  font-weight: 700;
  font-size: 18px;
  text-align: left;
}

.paciente-card p {
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.paciente-card p.expanded {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.btn-expand {
  background: #0d83fd;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  border-radius: 16px;
  padding: 4px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.btn-expand:hover {
  color: #fff;
  transform: scale(1.1);
}

.paciente-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0d83fd;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.icon_imgs {
  border-radius: 16px;
  object-fit: contain;
  aspect-ratio: 16 / 16;
}
