/* Rediseño aislado de especialidades para index-carousel.html. */
.page-home .gc-specialties--modern {
  position: relative;
  overflow: hidden;
  padding: 82px 0 90px;
  background:
    radial-gradient(circle at 90% 12%, rgba(90, 160, 230, 0.15), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
}

.page-home .gc-specialties--modern:before {
  content: "";
  position: absolute;
  top: 34px;
  right: -84px;
  width: 220px;
  height: 220px;
  border: 38px solid rgba(50, 85, 170, 0.045);
  border-radius: 50%;
}

.page-home .gc-specialties--modern .gc-specialties__head {
  margin-bottom: 36px;
  text-align: left;
}

.page-home .gc-specialties__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #3255aa;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.page-home .gc-specialties__eyebrow:before {
  content: "";
  width: 32px;
  height: 3px;
  background: #ea1d24;
  border-radius: 3px;
}

.page-home .gc-specialties--modern .gc-specialties__title {
  max-width: 760px;
  margin: 0 0 18px;
  color: #17335f;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 38px;
  font-weight: 750;
  line-height: 1.16;
  letter-spacing: -0.6px;
}

.page-home .gc-specialties--modern .gc-specialties__subtitle {
  max-width: 760px;
  margin: 0;
  color: #5b6878;
  font-size: 17px;
  line-height: 1.7;
}

.page-home .gc-specialties--modern .gc-specialties__grid {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0;
}

.page-home .gc-specialties--modern .gc-specialties__grid > div {
  display: flex;
}

.page-home .gc-specialty-card--modern {
  display: flex;
  width: 100%;
  min-height: 430px;
  margin-bottom: 24px;
  flex-direction: column;
  border: 1px solid rgba(31, 70, 120, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(31, 70, 120, 0.09);
  color: #17335f;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-home .gc-specialty-card--modern:hover,
.page-home .gc-specialty-card--modern:focus {
  color: #17335f;
  filter: none;
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(31, 70, 120, 0.16);
}

.page-home .gc-specialty-card__media {
  position: relative;
  height: 178px;
  overflow: hidden;
  flex: 0 0 auto;
  background-color: #dfeafa;
}

.page-home .gc-specialty-card__media:before,
.page-home .gc-specialty-card__media:after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.page-home .gc-specialty-card__media:before {
  top: -75px;
  right: -35px;
  width: 220px;
  height: 220px;
  border: 42px solid rgba(255, 255, 255, 0.13);
}

.page-home .gc-specialty-card__media:after {
  bottom: -80px;
  left: -50px;
  width: 190px;
  height: 190px;
  background: rgba(255, 255, 255, 0.09);
}

.page-home .gc-specialty-card__media--gastro {
  background: linear-gradient(135deg, #2558ba, #4a8cdd);
}

.page-home .gc-specialty-card__media--colon {
  background: linear-gradient(135deg, #164a78, #3186a2);
}

.page-home .gc-specialty-card__media--pediatric {
  background: linear-gradient(135deg, #3878b5, #65b6c8);
}

.page-home .gc-specialty-card__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .gc-specialty-card__placeholder {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: flex;
  width: 78px;
  height: 78px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: translate(-50%, -50%) rotate(-4deg);
  backdrop-filter: blur(5px);
}

.page-home .gc-specialty-card__placeholder i {
  font-size: 34px;
  transform: rotate(4deg);
}

.page-home .gc-specialty-card__number {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.page-home .gc-specialty-card--modern .gc-specialty-card__inner {
  display: flex;
  min-height: 0;
  padding: 25px 24px 24px;
  flex: 1;
  flex-direction: column;
}

.page-home .gc-specialty-card__label {
  margin-bottom: 8px;
  color: #4b83c5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}

.page-home .gc-specialty-card--modern .gc-specialty-card__title {
  margin: 0 0 11px;
  color: #17335f;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.page-home .gc-specialty-card--modern .gc-specialty-card__text {
  margin: 0 0 22px;
  color: #607080;
  font-size: 14px;
  line-height: 1.65;
}

.page-home .gc-specialty-card--modern .gc-specialty-card__cta {
  display: flex;
  margin-top: auto;
  padding: 0;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: #2f5eae;
  font-size: 14px;
  font-weight: 800;
}

.page-home .gc-specialty-card--modern .gc-specialty-card__cta i {
  display: inline-flex;
  width: 34px;
  height: 34px;
  margin-left: 12px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #edf4fc;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.page-home .gc-specialty-card--modern:hover .gc-specialty-card__cta i,
.page-home .gc-specialty-card--modern:focus .gc-specialty-card__cta i {
  background: #3255aa;
  color: #fff;
}

@media (max-width: 991px) {
  .page-home .gc-specialties--modern .gc-specialties__title {
    font-size: 32px;
  }

  .page-home .gc-specialty-card--modern .gc-specialty-card__inner {
    padding-right: 19px;
    padding-left: 19px;
  }
}

@media (max-width: 767px) {
  .page-home .gc-specialties--modern {
    padding: 58px 0 62px;
  }

  .page-home .gc-specialties--modern .gc-specialties__head {
    margin-bottom: 28px;
  }

  .page-home .gc-specialties--modern .gc-specialties__title {
    font-size: 29px;
    line-height: 1.2;
  }

  .page-home .gc-specialties--modern .gc-specialties__subtitle {
    font-size: 15px;
  }

  .page-home .gc-specialties--modern .gc-specialties__grid,
  .page-home .gc-specialties--modern .gc-specialties__grid > div {
    display: block;
  }

  .page-home .gc-specialty-card--modern {
    min-height: 0;
    margin-bottom: 20px;
  }

  .page-home .gc-specialty-card__media {
    height: 165px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .gc-specialty-card--modern,
  .page-home .gc-specialty-card--modern .gc-specialty-card__cta i {
    transition: none;
  }
}
