:root {
  --primary: #008D99;
  --primary-dark: #003C48;
  --line: #0FC8D8;
  --text: #003C48;
  --shadow: 0 16px 45px rgba(0, 60, 72, .08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--text);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-shell {
  width: 100%;
  max-width: 1368px;
  margin: 0 auto;
  padding-left: 54px;
  padding-right: 54px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 8px;
  letter-spacing: -.01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Header compartido Medisis */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e4eef6;
  box-shadow: 0 8px 24px rgba(0, 60, 72, .06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__img {
  height: 52px;
  width: auto;
}

.nav {
  flex: 1;
  display: block;
  flex-wrap: nowrap;
  padding-left: 0;
  margin-bottom: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list > li {
  position: relative;
}

.nav__list > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 34px 0;
  color: #003C48;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.nav__list > li > a:hover,
.nav__list > li > a.active {
  color: #008D99;
}

.nav__list > li > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  width: 44px;
  height: 3px;
  margin: 0 auto;
  border-radius: 99px;
  background: #008D99;
}

.nav__list > li > a i {
  font-size: 10px;
  opacity: .65;
}

.has-dropdown .dropdown {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  background: #fff;
  border: 1px solid #0FC8D8;
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(0, 60, 72, .1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .18s ease;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.dropdown li a:hover {
  background: #f3faff;
  color: #008D99;
}

.btn--primary,
.header__cta {
  color: #fff;
  background: linear-gradient(90deg, #0FC8D8, #008D99);
  border: none;
  box-shadow: 0 9px 18px rgba(0, 141, 153, .22);
}

.btn--primary:hover,
.header__cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 60, 72, .18);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 14px;
}

.header__cta {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: #003C48;
  font-size: 22px;
  cursor: pointer;
}

/* Footer */

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  color: #fff;
  background: #008D99;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 141, 153, .4);
  transition: all .2s ease;
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 141, 153, .5);
}

.whatsapp-float svg {
  position: relative;
  z-index: 2;
  width: 30px;
  height: 30px;
}

.whatsapp-pulse {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #008D99;
  border-radius: 50%;
  animation: whatsappPulse 2s ease-out infinite;
}

@keyframes whatsappPulse {
  0% {
    opacity: .5;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@media (max-width: 767.98px) {
  .whatsapp-float {
    display: none;
  }
}

/* contact banner */
/* botones accesibilidad movil */
.contact-banner {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(30, 30, 30, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
    padding: 5px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
}

.contact-icon-bottom {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    min-height: 58px;
    position: relative;
}

.contact-icon-bottom:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.contact-icon-bottom i {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    color: #ffffff;
    font-size: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.contact-icon-bottom .fa-whatsapp {
    font-size: 25px;
}

.contact-icon-bottom:hover i,
.contact-icon-bottom:focus i {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.08);
}



@media (min-width: 769px) {
    .contact-banner {
        display: none;
    }

}

@media (max-width: 1024px) {
  .nav {
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    display: block;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid #eef3f7;
    box-shadow: 0 10px 30px rgba(0, 60, 72, .10);
    transition: max-height .28s ease;
  }

  .nav.nav--open {
    max-height: calc(100vh - 88px);
    overflow-y: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
  }

  .nav__list > li > a {
    justify-content: space-between;
    padding: 14px 0;
  }

  .nav__list > li > a.active::after {
    display: none;
  }

  .has-dropdown .dropdown {
    position: static;
    display: none;
    margin-bottom: 8px;
    background: #f3faff;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .has-dropdown:hover .dropdown,
  .has-dropdown.is-open .dropdown {
    display: block;
  }

  .nav__toggle {
    display: block;
  }
}

@media (max-width: 767.98px) {
  .page-shell {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Reorganizacion anti-desborde de cards */
.specialists-main {
  padding-left: 20px;
  padding-right: 20px;
}

.specialists-container {
  max-width: 1280px;
  padding-left: 6px;
  padding-right: 6px;
}

.doctors-row {
  --bs-gutter-x: 22px;
  --bs-gutter-y: 26px;
}

.doctor-card {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  gap: 18px;
  padding: 14px;
}

.doctor-card.wide {
  grid-template-columns: 136px minmax(0, 1fr);
}

.doctor-card.compact,
.three-cols .doctor-card {
  grid-template-columns: 1fr;
  align-content: start;
}

.doctor-card.wide img {
  width: 136px;
  height: 154px;
}

.doctor-card.compact img,
.three-cols .doctor-card img {
  width: 100%;
  height: 178px;
}

.doctor-content {
  min-width: 0;
  justify-content: flex-start;
  height: 100%;
  padding: 0;
}

.doctor-content h4,
.doctor-content strong,
.doctor-content li {
  overflow-wrap: anywhere;
}

.doctor-content h4 {
  font-size: 18px;
  line-height: 1.15;
}

.doctor-content strong {
  margin-bottom: 10px;
  font-size: 12.5px;
  line-height: 1.2;
}

.doctor-content ul {
  margin-bottom: 14px;
  padding-left: 17px;
  font-size: 12.5px;
  line-height: 1.42;
}

@media (max-width: 1199.98px) {
  .specialists-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .doctor-card.wide,
  .doctor-card.compact,
  .three-cols .doctor-card {
    grid-template-columns: 1fr;
  }

  .doctor-card.wide img,
  .doctor-card.compact img,
  .three-cols .doctor-card img {
    width: 100%;
    height: 190px;
  }
}

@media (max-width: 767.98px) {
  .specialists-main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .specialists-container {
    padding-left: 0;
    padding-right: 0;
  }

  .doctor-card {
    padding: 16px;
  }

  .doctor-card.wide img,
  .doctor-card.compact img,
  .three-cols .doctor-card img {
    width: min(100%, 230px);
    height: 214px;
  }
}

/* Alineacion izquierda del contenido en cards */
.doctor-card.wide .doctor-content,
.doctor-card.compact .doctor-content,
.three-cols .doctor-content {
  align-items: flex-start;
  text-align: left;
}

.doctor-card.wide .doctor-content ul,
.doctor-card.compact .doctor-content ul,
.three-cols .doctor-content ul {
  width: auto;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

@media (max-width: 640px) {
  .header__cta {
    display: none;
  }
}

/*
====MAIN SECTIONS====
*/

:root {
  --blue: #003C48;
  --blue-dark: #003C48;
  --blue-soft: #008D99;
  --cyan: #008D99;
  --line: #0FC8D8;
  --line-soft: #0FC8D8;
  --text: #003C48;
  --muted: #003C48;
  --bg: #ffffff;
  --card-bg: #ffffff;
  --shadow: 0 7px 18px rgba(0, 60, 72, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(15, 200, 216, 0.10), transparent 32%),
    radial-gradient(circle at 90% 40%, rgba(230, 248, 255, .18), transparent 28%),
    #fff;
  color: var(--text);
}

.specialists-main {
  padding: 12px 18px 30px;
}

.specialists-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
}

.page-heading {
  margin-bottom: 8px;
}

.page-heading h1 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.page-heading span {
  display: block;
  width: 48px;
  height: 3px;
  margin: 11px auto 0;
  border-radius: 999px;
  background: var(--cyan);
}

.specialty-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 56px;
  text-align: left;
  margin-bottom: 8px;
}

.specialty-title.dental {
  margin-bottom: 8px;
}

.specialty-icon {
  width: 60px;
  height: 60px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: #f8fdff;
  font-size: 34px;
  line-height: 1;
}

.specialty-title h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.specialty-title p {
  margin: 4px 0 0;
  color: #008D99;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 600;
}

.subspecialty-title {
  width: 100%;
  height: 31px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 28px;
  margin: 7px 0 10px;
  border: 1.4px solid var(--line);
  border-radius: 999px;
  background: rgba(250, 254, 255, 0.92);
}

.subspecialty-title i {
  width: 38px;
  color: #008D99;
  font-size: 26px;
  line-height: 1;
}

.subspecialty-title h3 {
  margin: 0;
  color: var(--blue);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.doctors-row {
  margin-bottom: 10px;
}

.doctor-card {
  height: 100%;
  min-height: 132px;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 9px 24px 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.doctor-card.wide {
  grid-template-columns: 130px minmax(0, 1fr);
}

.doctor-card img {
  width: 130px;
  height: 118px;
  object-fit: cover;
  object-position: center top;
  border-radius: 7px;
  background: #edf5fb;
}

.doctor-content {
  min-width: 0;
}

.doctor-content h4 {
  margin: 0 0 1px;
  color: var(--blue-dark);
  font-size: 17px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.doctor-content strong {
  display: block;
  margin-bottom: 8px;
  color: #008D99;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 800;
}

.doctor-content ul {
  margin: 0 0 8px;
  padding-left: 14px;
  color: #003C48;
  font-size: 10.5px;
  line-height: 1.45;
  font-weight: 600;
}

.doctor-content li::marker {
  color: #008D99;
  font-size: .75em;
}

.certification-note {
  max-width: 760px;
  min-height: 39px;
  margin: 9px auto 0;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue-dark);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 60, 72, 0.045);
}

.certification-note i {
  color: var(--blue);
  font-size: 23px;
}

@media (min-width: 1200px) {
  .three-cols > .col-xl-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
}

@media (max-width: 1199.98px) {
  .specialists-main {
    padding: 16px;
  }

  .doctor-card {
    min-height: 138px;
  }
}

@media (max-width: 991.98px) {
  .specialty-title {
    justify-content: flex-start;
  }

  .subspecialty-title {
    height: auto;
    min-height: 38px;
    padding: 6px 18px;
  }

  .doctor-card.wide,
  .doctor-card.compact {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .doctor-card img {
    width: 118px;
    height: 110px;
  }
}

@media (max-width: 767.98px) {
  .specialists-main {
    padding: 14px 12px 24px;
  }

  .specialty-title {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    margin-bottom: 16px;
  }

  .specialty-title h2 {
    font-size: 28px;
  }

  .subspecialty-title {
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 8px 14px;
  }

  .subspecialty-title h3 {
    font-size: 17px;
  }

  .doctor-card.wide,
  .doctor-card.compact,
  .doctor-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 16px;
    gap: 12px;
  }

  .doctor-card img {
    width: 138px;
    height: 138px;
    margin: 0 auto;
    border-radius: 10px;
  }

  .doctor-content ul {
    text-align: left;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
  }

  .certification-note {
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px;
  }
}

@media (max-width: 420px) {
  .page-heading h1 {
    font-size: 30px;
  }

  .specialty-title h2 {
    font-size: 25px;
  }

  .doctor-content h4 {
    font-size: 16px;
  }
}

/* Ajuste final de la pagina de especialistas */
body {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background:
    linear-gradient(180deg, #f8fdff 0%, #ffffff 34%, #f7fcff 100%);
}

.specialists-page {
  background:
    radial-gradient(circle at 9% 12%, rgba(0, 141, 153, .08), transparent 30%),
    radial-gradient(circle at 92% 28%, rgba(0, 141, 153, .08), transparent 28%);
}

.specialists-main {
  padding: 54px 34px 62px;
}

.specialists-container {
  max-width: 1180px;
  padding: 0 18px;
}

.page-heading {
  margin-bottom: 42px;
}

.page-heading h1 {
  color: var(--primary-dark);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: clamp(38px, 4.8vw, 60px);
  letter-spacing: -.055em;
}

.page-heading span {
  width: 44px;
  height: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg, #0FC8D8, #008D99);
}

.specialty-title {
  justify-content: flex-start;
  gap: 18px;
  min-height: auto;
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 141, 153, .14);
}

.specialty-title.dental {
  margin-bottom: 34px;
}

.specialty-icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border: 2px solid rgba(0, 141, 153, .22);
  color: var(--primary);
  background: #fff;
  box-shadow: 0 12px 26px rgba(0, 141, 153, .10);
}

.specialty-title h2 {
  color: var(--primary-dark);
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -.05em;
}

.specialty-title p {
  margin-top: 7px;
  color: #003C48;
  font-size: 15px;
  line-height: 1.35;
}

.subspecialty-title {
  height: auto;
  min-height: 54px;
  gap: 14px;
  margin: 34px 0 20px;
  padding: 12px 22px;
  border: 1px solid rgba(0, 141, 153, .18);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 60, 72, .06);
}

.specialty-title + .subspecialty-title {
  margin-top: 0;
}

.subspecialty-title i {
  width: 38px;
  color: var(--primary);
  font-size: 26px;
  text-align: center;
}

.subspecialty-title h3 {
  color: var(--primary-dark);
  font-size: 22px;
  letter-spacing: -.025em;
}

.doctors-row {
  --bs-gutter-x: 24px;
  --bs-gutter-y: 24px;
  margin-bottom: 14px;
}

.doctor-card {
  min-height: 198px;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: stretch;
  gap: 22px;
  padding: 16px;
  border: 1px solid #0FC8D8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(0, 60, 72, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.doctor-card.wide,
.doctor-card.compact {
  grid-template-columns: 150px minmax(0, 1fr);
}

.doctor-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 141, 153, .35);
  box-shadow: 0 18px 34px rgba(0, 60, 72, .13);
}

.doctor-card img {
  width: 150px;
  height: 166px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  background: #edf5fb;
}

.doctor-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 2px 4px 2px 0;
}

.doctor-content h4 {
  margin-bottom: 5px;
  color: var(--primary-dark);
  font-size: 20px;
  letter-spacing: -.025em;
}

.doctor-content strong {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 13px;
}

.doctor-content ul {
  margin-bottom: 16px;
  padding-left: 18px;
  color: #003C48;
  font-size: 13px;
  line-height: 1.45;
  list-style: disc;
}

.doctor-content li + li {
  margin-top: 4px;
}

.doctor-content li::marker {
  color: var(--primary);
}

.dental-panel .specialty-icon,
.dental-panel .subspecialty-title i,
.dental-panel .doctor-content strong {
  color: #008D99;
}

.certification-note {
  max-width: 900px;
  min-height: 62px;
  margin: 42px auto 0;
  padding: 18px 28px;
  border: 1px solid rgba(0, 141, 153, .18);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(0, 60, 72, .07);
  color: var(--primary-dark);
  font-size: 15px;
}

.certification-note i {
  color: var(--primary);
  font-size: 28px;
}

@media (max-width: 1199.98px) {
  .specialists-main {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (max-width: 991.98px) {
  .specialists-main {
    padding-top: 42px;
  }

  .specialists-container {
    padding: 0 8px;
  }

  .specialty-title {
    align-items: flex-start;
  }

  .doctor-card.wide,
  .doctor-card.compact,
  .doctor-card {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .doctor-card img {
    width: 140px;
    height: 156px;
  }
}

@media (max-width: 767.98px) {
  .specialists-main {
    padding: 34px 16px 46px;
  }

  .specialists-container {
    padding: 0;
  }

  .page-heading {
    margin-bottom: 30px;
  }

  .specialty-title,
  .specialty-title.dental {
    align-items: center;
    margin-bottom: 26px;
    padding-bottom: 20px;
  }

  .subspecialty-title {
    margin-top: 28px;
    margin-bottom: 16px;
  }

  .doctor-card.wide,
  .doctor-card.compact,
  .doctor-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 18px;
    text-align: center;
  }

  .doctor-card img {
    width: min(100%, 220px);
    height: 220px;
    margin: 0 auto;
  }

  .doctor-content {
    padding: 0;
  }

  .doctor-content ul {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .certification-note {
    margin-top: 32px;
  }
}

/* Capa final: cards estables, menos margen lateral y botones contenidos */
.specialists-main {
  padding-left: 20px;
  padding-right: 20px;
}

.specialists-container {
  max-width: 1280px;
  padding-left: 6px;
  padding-right: 6px;
}

.doctors-row {
  --bs-gutter-x: 22px;
  --bs-gutter-y: 26px;
}

.doctor-card {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  gap: 18px;
  padding: 14px;
}

.doctor-card.wide {
  grid-template-columns: 136px minmax(0, 1fr);
}

.doctor-card.compact,
.three-cols .doctor-card {
  grid-template-columns: 1fr;
  align-content: start;
}

.doctor-card.wide img {
  width: 136px;
  height: 154px;
}

.doctor-card.compact img,
.three-cols .doctor-card img {
  width: 100%;
  height: 178px;
}

.doctor-content {
  min-width: 0;
  justify-content: flex-start;
  height: 100%;
  padding: 0;
}

.doctor-content h4,
.doctor-content strong,
.doctor-content li {
  overflow-wrap: anywhere;
}

.doctor-content h4 {
  font-size: 18px;
  line-height: 1.15;
}

.doctor-content strong {
  margin-bottom: 10px;
  font-size: 12.5px;
  line-height: 1.2;
}

.doctor-content ul {
  margin-bottom: 14px;
  padding-left: 17px;
  font-size: 12.5px;
  line-height: 1.42;
}

@media (max-width: 1199.98px) {
  .specialists-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .doctor-card.wide,
  .doctor-card.compact,
  .three-cols .doctor-card {
    grid-template-columns: 1fr;
  }

  .doctor-card.wide img,
  .doctor-card.compact img,
  .three-cols .doctor-card img {
    width: 100%;
    height: 190px;
  }
}

@media (max-width: 767.98px) {
  .specialists-main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .specialists-container {
    padding-left: 0;
    padding-right: 0;
  }

  .doctor-card {
    padding: 16px;
  }

  .doctor-card.wide img,
  .doctor-card.compact img,
  .three-cols .doctor-card img {
    width: min(100%, 230px);
    height: 214px;
  }
}
/* Mobile horizontal overflow guard */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

@media (max-width: 767.98px) {
    body {
        position: relative;
    }

    img,
    video,
    iframe,
    svg {
        max-width: 100%;
    }

    .container,
    .container-fluid,
    .page-shell,
    .header__inner,
    .footer__grid {
        max-width: 100%;
    }
}
/* Mobile dropdown toggle fix */
@media (max-width: 768px) {
    .nav__list .has-dropdown:not(.is-open) .dropdown {
        display: none !important;
        opacity: 0;
        visibility: hidden;
        transform: none;
        pointer-events: none;
    }

    .nav__list .has-dropdown.is-open .dropdown {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }
}

/* Mobile card layout aligned with endoscopy specialists reference */
.specialists-page,
.specialists-main,
.gastro-panel {
  background: #fff;
}

.specialists-container.compact-shell {
  max-width: 1284px;
}

.gastro-panel {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.doctor-card-icon {
  display: none;
}

.doctor-description {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: #003C48;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.doctor-description i {
  flex: 0 0 auto;
  color: #008D99;
  font-size: 22px;
}

@media (max-width: 767.98px) {
  .specialists-main {
    padding-right: 0;
    padding-left: 0;
  }

  .specialists-page .container-fluid.page-shell.specialists-container {
    padding-right: 20px !important;
    padding-left: 20px !important;
  }

  .doctors-row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
    margin-right: 0;
    margin-left: 0;
  }

  .doctors-row > [class*="col-"] {
    width: auto;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
  }

  .doctor-card,
  .doctor-card.wide,
  .doctor-card.compact,
  .three-cols .doctor-card {
    position: relative;
    display: grid;
    grid-template-rows: clamp(158px, 47vw, 188px) 1fr;
    gap: 0;
    min-height: 0;
    height: 100%;
    padding: 0;
    text-align: center;
    border: 1px solid rgba(0, 141, 153, .3);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow:
      0 0 0 3px rgba(0, 141, 153, .05),
      0 12px 30px rgba(0, 60, 72, .1);
  }

  .doctor-card img,
  .doctor-card.wide img,
  .doctor-card.compact img,
  .three-cols .doctor-card img {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center 24%;
    background: #eef7fb;
  }

  .doctor-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    min-height: 126px;
    padding: 23px 7px 10px;
    border-top: 1px solid rgba(0, 141, 153, .14);
    background: #fff;
    text-align: center;
  }

  .doctor-card-icon {
    position: absolute;
    z-index: 3;
    top: calc(clamp(158px, 47vw, 188px) - 19px);
    left: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #008D99;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 60, 72, .1);
    transform: translateX(-50%);
    font-size: 19px;
  }

  .doctor-content h4 {
    width: 100%;
    margin: 0 0 3px;
    color: #003C48;
    font-family: "Poppins", sans-serif;
    font-size: clamp(10.5px, 3.25vw, 12.5px);
    line-height: 1.18;
    letter-spacing: -.035em;
    font-weight: 700;
    overflow-wrap: normal;
    text-align: center;
  }

  .doctor-content strong {
    display: block;
    width: 100%;
    margin: 0;
    color: #008D99;
    font-size: clamp(9px, 2.75vw, 10.5px);
    line-height: 1.2;
    overflow-wrap: normal;
    text-align: center;
  }

  .doctor-content strong::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    margin: 6px auto;
    border-radius: 999px;
    background: #008D99;
  }

  .doctor-description {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    max-width: 100%;
    color: #003C48;
    font-size: 9.5px;
    line-height: 1.3;
    text-align: center;
  }

  .doctor-description i {
    font-size: 13px;
  }
}

@media (max-width: 479.98px) {
  .specialists-page .container-fluid.page-shell.specialists-container {
    padding-right: 15px !important;
    padding-left: 15px !important;
  }
}

/* Presentacion editorial de Especialistas: solo escritorio. */
@media (min-width: 992px) {
  .specialists-main {
    padding-top: 68px;
    padding-bottom: 82px;
  }

  .page-heading {
    position: relative;
    max-width: 780px;
    margin: 0 auto 58px;
    padding-bottom: 24px;
  }

  .page-heading::before {
    content: "EQUIPO MÉDICO MEDISIS";
    display: block;
    margin-bottom: 10px;
    color: #008D99;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .12em;
    font-weight: 800;
  }

  .page-heading h1 {
    margin: 0;
    color: #003C48;
    font-family: "Poppins", sans-serif;
    font-size: clamp(46px, 4.5vw, 60px);
    line-height: 1.05;
    letter-spacing: -.05em;
    font-weight: 800;
  }

  .page-heading span {
    width: 58px;
    height: 4px;
    margin-top: 18px;
    border-radius: 99px;
    background: linear-gradient(90deg, #0FC8D8, #008D99);
  }

  .gastro-panel,
  .dental-panel {
    position: relative;
  }

  .gastro-panel + .dental-panel {
    margin-top: 72px;
    padding-top: 54px;
    border-top: 1px solid #0FC8D8;
  }

  .specialty-title,
  .specialty-title.dental {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
    min-height: 82px;
    margin: 0 0 36px;
    padding: 0 0 24px;
    border-bottom: 1px solid #0FC8D8;
    text-align: left;
  }

  .specialty-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 92px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, #0FC8D8, #008D99);
  }

  .specialty-icon {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 141, 153, .2);
    border-radius: 50%;
    color: #008D99;
    background: linear-gradient(145deg, #f4fcff, #e4f7fb);
    box-shadow: 0 12px 28px rgba(0, 60, 72, .09);
    font-size: 34px;
  }

  .dental-panel .specialty-icon {
    color: #008D99;
    background: linear-gradient(145deg, #f2fdfd, #e1f8f8);
  }

  .specialty-title h2 {
    margin: 0;
    color: #003C48;
    font-family: "Poppins", sans-serif;
    font-size: 38px;
    line-height: 1.08;
    letter-spacing: -.045em;
    font-weight: 800;
  }

  .specialty-title p {
    margin: 7px 0 0;
    color: #003C48;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 500;
  }

  .subspecialty-title {
    width: 100%;
    min-height: 58px;
    height: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 38px 0 22px;
    padding: 10px 20px;
    border: 1px solid #0FC8D8;
    border-left: 4px solid #008D99;
    border-radius: 10px;
    background: linear-gradient(90deg, #f7fcff, #fff);
    box-shadow: 0 8px 20px rgba(0, 60, 72, .05);
  }

  .specialty-title + .subspecialty-title {
    margin-top: 0;
  }

  .dental-panel .subspecialty-title {
    border-left-color: #008D99;
  }

  .subspecialty-title i {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #008D99;
    background: #eaf8fd;
    font-size: 21px;
    line-height: 1;
  }

  .dental-panel .subspecialty-title i {
    color: #008D99;
    background: #e8fafa;
  }

  .subspecialty-title h3 {
    margin: 0;
    color: #003C48;
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -.025em;
    font-weight: 700;
  }

  .certification-note {
    max-width: 900px;
    min-height: 76px;
    margin: 58px auto 0;
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 1px solid #0FC8D8;
    border-radius: 14px;
    color: #003C48;
    background: linear-gradient(90deg, #f4fbff, #eefcfa);
    box-shadow: 0 12px 28px rgba(0, 60, 72, .07);
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
    text-align: left;
  }

  .certification-note i {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #008D99;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 60, 72, .08);
    font-size: 25px;
  }
}

/* Replica exacta de endo-doctors-grid y endo-doctor-card */
.specialists-main {
  padding-right: 0;
  padding-left: 0;
}

.specialists-page .container-fluid.page-shell.specialists-container {
  max-width: 1284px;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.gastro-panel,
.dental-panel {
  padding: 0;
  border: 0;
  background: #fff;
  box-shadow: none;
}

.gastro-panel + .dental-panel {
  margin-top: 48px;
}

.specialists-page .doctors-row {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 27px;
  margin-right: 0;
  margin-bottom: 14px;
  margin-left: 0;
}

.specialists-page .doctors-row > [class*="col-"] {
  display: flex;
  width: 100%;
  max-width: none;
  padding: 0;
}

.specialists-page .doctor-card,
.specialists-page .doctor-card.wide,
.specialists-page .doctor-card.compact,
.specialists-page .three-cols .doctor-card {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 27px rgba(0, 60, 72, .09);
  text-align: center;
  transform: none;
}

.specialists-page .doctor-card:hover {
  transform: none;
  box-shadow: 0 12px 27px rgba(0, 60, 72, .09);
}

.specialists-page .doctor-card img,
.specialists-page .doctor-card.wide img,
.specialists-page .doctor-card.compact img,
.specialists-page .three-cols .doctor-card img {
  display: block;
  width: 100%;
  height: 310px;
  min-height: 0;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
  background: #eef7fb;
  transform: none;
}

.specialists-page .doctor-content {
  position: relative;
  z-index: 2;
  display: block;
  min-height: 168px;
  height: auto;
  padding: 44px 24px 22px;
  border-top: 0;
  background: #fff;
  text-align: center;
}

.specialists-page .doctor-card-icon {
  position: absolute;
  z-index: 3;
  top: 274px;
  left: 50%;
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #008D99;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 60, 72, .08);
  transform: translateX(-50%);
  font-size: 38px;
}

/* Font Awesome Free 6.5.1 no incluye fa-stomach: icono de Endoscopia. */
.specialists-page .fa-stomach::before {
  content: "";
  display: block;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 489.6 489.6'%3E%3Cpath d='M1.429,489.6h56c2.3-12.4,4.7-25.3,7-37.7c4.3-21.8,10.5-46.6,35.7-52.1c29.4-6.2,56.7,21.8,73.8,33.4c42.7,30.3,97.5,39.6,150,35c103.4-6.4,137.2-87.4,152.3-134.4c5.4-16.7,34.1-132.3-23.3-220.7c-25.1-44.3-75.3-55.8-122-28c-13.2,10.1-22.9,26.4-42.4,24.9c-30.1,0-36.1-52.5-33.8-70.7V0h-58.3v75.8c-2.7,56.5,69.5,102.7,74.2,135.2c13.2,31.1-1.9,67.6-24.9,92.9c-24.2,29.9-57.1,25.6-73.1,24.9c-20.6-.8-41.2-.4-62.2,.8c-21.6,1.1-103.1,6.2-109,75.3V489.6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 489.6 489.6'%3E%3Cpath d='M1.429,489.6h56c2.3-12.4,4.7-25.3,7-37.7c4.3-21.8,10.5-46.6,35.7-52.1c29.4-6.2,56.7,21.8,73.8,33.4c42.7,30.3,97.5,39.6,150,35c103.4-6.4,137.2-87.4,152.3-134.4c5.4-16.7,34.1-132.3-23.3-220.7c-25.1-44.3-75.3-55.8-122-28c-13.2,10.1-22.9,26.4-42.4,24.9c-30.1,0-36.1-52.5-33.8-70.7V0h-58.3v75.8c-2.7,56.5,69.5,102.7,74.2,135.2c13.2,31.1-1.9,67.6-24.9,92.9c-24.2,29.9-57.1,25.6-73.1,24.9c-20.6-.8-41.2-.4-62.2,.8c-21.6,1.1-103.1,6.2-109,75.3V489.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.specialists-page .doctor-content h4 {
  width: auto;
  margin: 0 0 5px;
  color: #003C48;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 15.2px;
  line-height: 1.1;
  letter-spacing: -.04em;
  font-weight: 900;
  overflow-wrap: normal;
  text-align: center;
}

.specialists-page .doctor-content strong {
  display: block;
  width: auto;
  margin: 0;
  color: #008D99;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  overflow-wrap: normal;
  text-align: center;
}

.specialists-page .doctor-content strong::after {
  content: "";
  display: block;
  width: 33px;
  height: 3px;
  margin: 15px auto;
  border-radius: 99px;
  background: #008D99;
}

.specialists-page .doctor-description {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  color: #003C48;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.specialists-page .doctor-description i {
  flex: 0 0 auto;
  color: #008D99;
  font-size: 27px;
}

@media (max-width: 1199.98px) {
  .specialists-page .doctors-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .specialists-page .container-fluid.page-shell.specialists-container {
    padding-right: 20px !important;
    padding-left: 20px !important;
  }

  .specialists-page .doctors-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .specialists-page .doctor-card,
  .specialists-page .doctor-card.wide,
  .specialists-page .doctor-card.compact,
  .specialists-page .three-cols .doctor-card {
    display: grid;
    grid-template-rows: 3fr 2fr;
    gap: 0;
    height: clamp(300px, 80vw, 330px);
    border: 1px solid rgba(0, 141, 153, .28);
    border-radius: 14px;
    box-shadow:
      0 0 0 3px rgba(0, 141, 153, .05),
      0 12px 30px rgba(0, 60, 72, .1);
  }

  .specialists-page .doctor-card img,
  .specialists-page .doctor-card.wide img,
  .specialists-page .doctor-card.compact img,
  .specialists-page .three-cols .doctor-card img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center 24%;
    transform: scale(1.08);
    transform-origin: center 24%;
  }

  .specialists-page .doctor-content {
    z-index: 2;
    min-height: 0;
    height: auto;
    padding: 20px 8px 3px;
    border-top: 1px solid rgba(0, 141, 153, .14);
    background: #fff;
  }

  .specialists-page .doctor-card-icon {
    top: calc(60% - 18px);
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .specialists-page .doctor-content h4 {
    margin-bottom: 3px;
    font-family: "Poppins", sans-serif;
    font-size: 12.5px;
    line-height: 1.18;
    font-weight: 700;
  }

  .specialists-page .doctor-content strong {
    font-size: 10.5px;
    line-height: 1.2;
  }

  .specialists-page .doctor-content strong::after {
    width: 20px;
    height: 2px;
    margin: 6px auto;
  }

  .specialists-page .doctor-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    gap: 3px;
    font-size: 9.5px;
    line-height: 1.3;
  }

  .specialists-page .doctor-description i {
    font-size: 13px;
  }
}

@media (max-width: 479.98px) {
  .specialists-page .container-fluid.page-shell.specialists-container {
    padding-right: 15px !important;
    padding-left: 15px !important;
  }
}

@media (min-width: 992px) {
  .gastro-panel + .dental-panel {
    margin-top: 72px;
  }
}

/* Propuesta anterior desactivada. */
@media (min-width: 99999px) {
  .specialists-page {
    background:
      radial-gradient(circle at 8% 14%, rgba(0, 141, 153, .10), transparent 24%),
      radial-gradient(circle at 93% 32%, rgba(0, 141, 153, .09), transparent 22%),
      linear-gradient(180deg, #f4fbff 0, #fff 760px);
  }

  .specialists-main {
    padding-top: 34px;
    padding-bottom: 96px;
  }

  .page-heading {
    position: relative;
    isolation: isolate;
    max-width: none;
    min-height: 260px;
    margin: 0 0 82px;
    padding: 48px 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 30px;
    background:
      radial-gradient(circle at 12% 18%, rgba(15, 200, 216, 0.10), transparent 26%),
      radial-gradient(circle at 88% 76%, rgba(0, 141, 153, .30), transparent 25%),
      linear-gradient(125deg, #0FC8D8 0%, #0FC8D8 55%, #008D99 100%);
    box-shadow: 0 26px 60px rgba(0, 60, 72, .20);
  }

  .page-heading::before {
    content: "EQUIPO MÉDICO MEDISIS";
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-bottom: 14px;
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .10);
    backdrop-filter: blur(8px);
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 11px;
    line-height: 1;
    letter-spacing: .16em;
    font-weight: 800;
  }

  .page-heading::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -76px;
    top: -116px;
    width: 330px;
    height: 330px;
    border: 52px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
  }

  .page-heading h1 {
    max-width: 850px;
    margin: 0;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: clamp(50px, 5vw, 68px);
    line-height: 1.02;
    letter-spacing: -.055em;
    font-weight: 800;
    text-shadow: 0 8px 24px rgba(0, 60, 72, .20);
  }

  .page-heading span {
    width: 68px;
    height: 4px;
    margin-top: 22px;
    border-radius: 99px;
    background: linear-gradient(90deg, #fff, #0FC8D8);
    box-shadow: 0 4px 12px rgba(0, 60, 72, .14);
  }

  .gastro-panel,
  .dental-panel {
    position: relative;
    isolation: isolate;
  }

  .gastro-panel::before,
  .dental-panel::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -26px 0;
    border: 1px solid rgba(0, 141, 153, .10);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(245, 252, 255, .86), rgba(255, 255, 255, .96));
    box-shadow: 0 18px 48px rgba(0, 60, 72, .07);
  }

  .dental-panel::before {
    border-color: rgba(0, 141, 153, .12);
    background: linear-gradient(145deg, rgba(244, 253, 253, .88), rgba(255, 255, 255, .97));
  }

  .gastro-panel + .dental-panel {
    margin-top: 104px;
    padding-top: 0;
    border-top: 0;
  }

  .specialty-title,
  .specialty-title.dental {
    position: relative;
    min-height: 146px;
    margin: 0 0 42px;
    padding: 28px 34px;
    overflow: hidden;
    border: 1px solid rgba(0, 141, 153, .16);
    border-radius: 22px;
    background:
      radial-gradient(circle at 92% 20%, rgba(0, 141, 153, .12), transparent 28%),
      linear-gradient(105deg, #fff 0%, #f0f9fe 100%);
    box-shadow: 0 16px 38px rgba(0, 60, 72, .10);
  }

  .specialty-title.dental {
    border-color: rgba(0, 141, 153, .18);
    background:
      radial-gradient(circle at 92% 20%, rgba(0, 141, 153, .14), transparent 28%),
      linear-gradient(105deg, #fff 0%, #eefbfb 100%);
  }

  .specialty-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    border-radius: 0;
    background: linear-gradient(90deg, #0FC8D8, #008D99 45%, transparent 84%);
  }

  .specialty-title.dental::after {
    background: linear-gradient(90deg, #0FC8D8, #008D99 45%, transparent 84%);
  }

  .specialty-icon {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    border: 1px solid rgba(0, 141, 153, .20);
    color: #008D99;
    background: #fff;
    box-shadow:
      0 0 0 8px rgba(0, 141, 153, .06),
      0 14px 28px rgba(0, 60, 72, .12);
    font-size: 38px;
  }

  .dental-panel .specialty-icon {
    border-color: rgba(0, 141, 153, .24);
    color: #008D99;
    background: #fff;
    box-shadow:
      0 0 0 8px rgba(0, 141, 153, .06),
      0 14px 28px rgba(0, 60, 72, .11);
  }

  .specialty-title > div:last-child::before {
    content: "ESPECIALIDAD 01";
    display: block;
    margin-bottom: 7px;
    color: #008D99;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 10px;
    line-height: 1;
    letter-spacing: .15em;
    font-weight: 800;
  }

  .specialty-title.dental > div:last-child::before {
    content: "ESPECIALIDAD 02";
    color: #008D99;
  }

  .specialty-title h2 {
    font-size: 42px;
    line-height: 1.04;
  }

  .specialty-title p {
    max-width: 620px;
    margin-top: 9px;
    font-size: 15px;
    line-height: 1.5;
  }

  .subspecialty-title {
    width: fit-content;
    min-width: 310px;
    min-height: 54px;
    margin: 46px 0 22px;
    padding: 8px 20px 8px 10px;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(100deg, #0FC8D8, #008D99);
    box-shadow: 0 12px 25px rgba(0, 60, 72, .16);
  }

  .specialty-title + .subspecialty-title {
    margin-top: 0;
  }

  .dental-panel .subspecialty-title {
    border: 0;
    background: linear-gradient(100deg, #0FC8D8, #008D99);
    box-shadow: 0 12px 25px rgba(0, 60, 72, .15);
  }

  .subspecialty-title i,
  .dental-panel .subspecialty-title i {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    color: #008D99;
    background: #fff;
    box-shadow: 0 5px 12px rgba(0, 60, 72, .12);
    font-size: 20px;
  }

  .dental-panel .subspecialty-title i {
    color: #008D99;
  }

  .subspecialty-title h3 {
    color: #fff;
    font-size: 18px;
    letter-spacing: -.015em;
    font-weight: 700;
  }

  .certification-note {
    position: relative;
    max-width: 980px;
    min-height: 92px;
    margin-top: 86px;
    padding: 20px 38px;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    color: #fff;
    background:
      radial-gradient(circle at 92% 30%, rgba(15, 200, 216, 0.10), transparent 30%),
      linear-gradient(110deg, #0FC8D8, #008D99);
    box-shadow: 0 20px 42px rgba(0, 60, 72, .18);
    font-size: 15px;
    line-height: 1.5;
  }

  .certification-note i {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    color: #008D99;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 60, 72, .18);
    font-size: 27px;
  }
}

/* Diseño de paneles suaves revertido. */
@media (min-width: 99998px) {
  .specialists-page {
    background:
      radial-gradient(circle at 10% 12%, rgba(0, 141, 153, .06), transparent 24%),
      radial-gradient(circle at 92% 34%, rgba(0, 141, 153, .06), transparent 22%),
      #fff;
  }

  .specialists-main {
    padding-top: 48px;
    padding-bottom: 88px;
  }

  .page-heading {
    max-width: none;
    min-height: 210px;
    margin: 0 0 74px;
    padding: 38px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(15, 200, 216, .62);
    border-radius: 28px;
    background:
      radial-gradient(circle at 14% 18%, rgba(15, 200, 216, 0.10), transparent 24%),
      radial-gradient(circle at 88% 76%, rgba(0, 141, 153, .14), transparent 24%),
      linear-gradient(135deg, #f9fdff 0%, #e9f8fc 100%);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, .66),
      0 18px 42px rgba(0, 60, 72, .08);
  }

  .page-heading::before {
    content: "EQUIPO MÉDICO MEDISIS";
    display: block;
    margin-bottom: 10px;
    padding: 0;
    border: 0;
    color: #008D99;
    background: transparent;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .12em;
    font-weight: 800;
  }

  .page-heading::after {
    content: none;
  }

  .page-heading h1 {
    margin: 0;
    color: #003C48;
    font-family: "Poppins", sans-serif;
    font-size: clamp(44px, 4.4vw, 58px);
    line-height: 1.05;
    letter-spacing: -.05em;
    font-weight: 800;
    text-shadow: none;
  }

  .page-heading span {
    width: 54px;
    height: 4px;
    margin-top: 18px;
    border-radius: 99px;
    background: linear-gradient(90deg, #008D99, #0FC8D8);
    box-shadow: none;
  }

  .gastro-panel,
  .dental-panel {
    position: relative;
    isolation: isolate;
  }

  .gastro-panel::before,
  .dental-panel::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -24px 0;
    border-radius: 28px;
    background: linear-gradient(135deg, #f9fdff 0%, #eef9fd 100%);
    box-shadow:
      inset 0 0 0 1px rgba(15, 200, 216, .55),
      0 16px 38px rgba(0, 60, 72, .06);
  }

  .dental-panel::before {
    background: linear-gradient(135deg, #f9fefe 0%, #edfafa 100%);
    box-shadow:
      inset 0 0 0 1px rgba(15, 200, 216, .58),
      0 16px 38px rgba(0, 60, 72, .055);
  }

  .gastro-panel + .dental-panel {
    margin-top: 96px;
    padding-top: 0;
    border-top: 0;
  }

  .specialty-title,
  .specialty-title.dental {
    position: relative;
    min-height: 118px;
    margin: 0 0 38px;
    padding: 24px 30px 24px 34px;
    overflow: hidden;
    border: 1px solid #0FC8D8;
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 28px rgba(0, 60, 72, .07);
  }

  .specialty-title.dental {
    border-color: #0FC8D8;
  }

  .specialty-title::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    height: auto;
    border-radius: 18px 0 0 18px;
    background: linear-gradient(180deg, #008D99, #0FC8D8);
  }

  .specialty-title.dental::after {
    background: linear-gradient(180deg, #008D99, #0FC8D8);
  }

  .specialty-icon {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    border: 2px solid rgba(0, 141, 153, .28);
    color: #008D99;
    background: #f7fcff;
    box-shadow: 0 10px 24px rgba(0, 60, 72, .09);
    font-size: 33px;
  }

  .dental-panel .specialty-icon {
    border-color: rgba(0, 141, 153, .28);
    color: #008D99;
    background: #f5fdfd;
    box-shadow: 0 10px 24px rgba(0, 60, 72, .08);
  }

  .specialty-title > div:last-child::before {
    content: "ÁREA MÉDICA";
    display: block;
    margin-bottom: 6px;
    color: #008D99;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: .10em;
    font-weight: 800;
  }

  .specialty-title.dental > div:last-child::before {
    content: "ÁREA ODONTOLÓGICA";
    color: #008D99;
  }

  .specialty-title h2 {
    margin: 0;
    color: #003C48;
    font-family: "Poppins", sans-serif;
    font-size: 36px;
    line-height: 1.06;
    letter-spacing: -.04em;
    font-weight: 800;
  }

  .specialty-title p {
    max-width: 640px;
    margin: 7px 0 0;
    color: #003C48;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
  }

  .subspecialty-title {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    margin: 40px 0 20px;
    padding: 9px 18px;
    gap: 13px;
    border: 1px solid #0FC8D8;
    border-radius: 10px;
    color: #003C48;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 20px rgba(0, 60, 72, .05);
  }

  .specialty-title + .subspecialty-title {
    margin-top: 0;
  }

  .dental-panel .subspecialty-title {
    border: 1px solid #0FC8D8;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 20px rgba(0, 60, 72, .045);
  }

  .subspecialty-title i,
  .dental-panel .subspecialty-title i {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    color: #008D99;
    background: #eaf8fd;
    box-shadow: none;
    font-size: 20px;
  }

  .dental-panel .subspecialty-title i {
    color: #008D99;
    background: #e8fafa;
  }

  .subspecialty-title h3 {
    color: #003C48;
    font-family: "Poppins", sans-serif;
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: -.02em;
    font-weight: 700;
  }

  .certification-note {
    max-width: 900px;
    min-height: 78px;
    margin-top: 76px;
    padding: 16px 30px;
    border: 1px solid #0FC8D8;
    border-radius: 14px;
    color: #003C48;
    background: linear-gradient(90deg, #f4fbff, #eefcfa);
    box-shadow: 0 12px 28px rgba(0, 60, 72, .07);
    font-size: 14px;
    line-height: 1.5;
  }

  .certification-note i {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    color: #008D99;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 60, 72, .08);
    font-size: 25px;
  }
}

/* Diseño tipográfico anterior revertido. */
@media (min-width: 99997px) {
  .specialists-page {
    background: #fff;
  }

  .specialists-main {
    padding-top: 60px;
    padding-bottom: 82px;
  }

  .page-heading {
    max-width: 820px;
    min-height: 0;
    margin: 0 auto 76px;
    padding: 0;
    display: block;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .page-heading::before,
  .page-heading::after {
    content: none;
  }

  .page-heading h1 {
    margin: 0;
    color: #003C48;
    font-family: "Poppins", sans-serif;
    font-size: clamp(46px, 4.4vw, 60px);
    line-height: 1.06;
    letter-spacing: -.05em;
    font-weight: 700;
    text-shadow: none;
  }

  .page-heading span {
    width: 54px;
    height: 3px;
    margin: 18px auto 0;
    border-radius: 99px;
    background: #008D99;
    box-shadow: none;
  }

  .gastro-panel,
  .dental-panel {
    position: relative;
    isolation: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .gastro-panel::before,
  .dental-panel::before {
    content: none;
  }

  .gastro-panel + .dental-panel {
    margin-top: 104px;
    padding-top: 82px;
    border-top: 1px solid #0FC8D8;
  }

  .specialty-title,
  .specialty-title.dental {
    position: relative;
    min-height: 0;
    margin: 0 0 48px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
  }

  .specialty-title::after,
  .specialty-title.dental::after {
    content: "";
    position: static;
    width: 56px;
    height: 3px;
    margin-top: 18px;
    border-radius: 99px;
    background: #008D99;
  }

  .specialty-title.dental::after {
    background: #008D99;
  }

  .specialty-icon {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    margin-bottom: 18px;
    display: grid;
    place-items: center;
    border: 2px solid #0FC8D8;
    border-radius: 50%;
    color: #008D99;
    background: #fff;
    box-shadow: none;
    font-size: 31px;
  }

  .dental-panel .specialty-icon {
    border-color: #0FC8D8;
    color: #008D99;
    background: #fff;
    box-shadow: none;
  }

  .gastro-panel .specialty-icon i,
  .dental-panel .specialty-icon i {
    display: none;
  }

  .gastro-panel .specialty-icon::before,
  .dental-panel .specialty-icon::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    line-height: 1;
  }

  .gastro-panel .specialty-icon::before {
    content: "\f0f1";
  }

  .dental-panel .specialty-icon::before {
    content: "\f5c9";
  }

  .specialty-title > div:last-child::before {
    content: "SALUD DIGESTIVA";
    display: block;
    margin-bottom: 8px;
    color: #008D99;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: .14em;
    font-weight: 800;
  }

  .specialty-title.dental > div:last-child::before {
    content: "SALUD ORAL";
    color: #008D99;
  }

  .specialty-title h2 {
    margin: 0;
    color: #003C48;
    font-family: "Poppins", sans-serif;
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -.045em;
    font-weight: 700;
  }

  .specialty-title p {
    max-width: 620px;
    margin: 9px auto 0;
    color: #003C48;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 500;
    text-align: center;
  }

  .subspecialty-title,
  .dental-panel .subspecialty-title {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 48px 0 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    border-radius: 0;
    color: #003C48;
    background: transparent;
    box-shadow: none;
  }

  .specialty-title + .subspecialty-title {
    margin-top: 0;
  }

  .subspecialty-title::before,
  .subspecialty-title::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    max-width: 150px;
    background: #0FC8D8;
  }

  .dental-panel .subspecialty-title::before,
  .dental-panel .subspecialty-title::after {
    background: #0FC8D8;
  }

  .subspecialty-title i,
  .dental-panel .subspecialty-title i {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border: 1px solid #0FC8D8;
    border-radius: 50%;
    color: #008D99;
    background: #fff;
    box-shadow: none;
    font-size: 20px;
  }

  .dental-panel .subspecialty-title i {
    border-color: #0FC8D8;
    color: #008D99;
  }

  .subspecialty-title h3 {
    margin: 0;
    color: #003C48;
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -.025em;
    font-weight: 700;
    white-space: nowrap;
  }

  .certification-note {
    max-width: 920px;
    min-height: 72px;
    margin-top: 82px;
    padding: 18px 24px;
    border: 0;
    border-top: 1px solid #0FC8D8;
    border-bottom: 1px solid #0FC8D8;
    border-radius: 0;
    color: #003C48;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
  }

  .certification-note i {
    width: auto;
    height: auto;
    flex: 0 0 auto;
    color: #008D99;
    background: transparent;
    box-shadow: none;
    font-size: 28px;
  }
}

/* Directorio visual de especialidades: solo escritorio. */
@media (min-width: 992px) {
  .specialists-page {
    background: #fff;
  }

  .specialists-main {
    padding-top: 58px;
    padding-bottom: 88px;
  }

  .page-heading {
    max-width: 860px;
    min-height: 0;
    margin: 0 auto 30px;
    padding: 0;
    display: block;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .page-heading::before {
    content: "DIRECTORIO MÉDICO";
    display: block;
    margin-bottom: 10px;
    padding: 0;
    border: 0;
    color: #008D99;
    background: transparent;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: .18em;
    font-weight: 800;
  }

  .page-heading::after {
    content: none;
  }

  .page-heading h1 {
    margin: 0;
    color: #003C48;
    font-family: "Poppins", sans-serif;
    font-size: clamp(48px, 4.5vw, 45px);
    line-height: 1.04;
    letter-spacing: -.055em;
    font-weight: 700;
    text-shadow: none;
  }

  .page-heading span {
    width: 58px;
    height: 3px;
    margin: 18px auto 0;
    border-radius: 99px;
    background: linear-gradient(90deg, #0FC8D8, #008D99);
    box-shadow: none;
  }

  .gastro-panel,
  .dental-panel {
    position: relative;
    isolation: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    scroll-margin-top: 110px;
  }

  .gastro-panel::before,
  .dental-panel::before {
    content: none;
  }

  .gastro-panel + .dental-panel {
    margin-top: 112px;
    padding-top: 48px;
    border-top: 1px solid #0FC8D8;
  }

  .dental-panel::after {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    width: 14px;
    height: 14px;
    border: 3px solid #fff;
    background: #008D99;
    box-shadow: 0 0 0 1px #0FC8D8;
    transform: translateX(-50%) rotate(45deg);
  }

  .specialty-title,
  .specialty-title.dental {
    position: relative;
    max-width: 820px;
    min-height: 0;
    margin: 0 auto 56px;
    padding: 0px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
  }

  .specialty-title::before {
    position: absolute;
    z-index: -1;
    top: -18px;
    left: 50%;
    color: transparent;
    -webkit-text-stroke: 1px #e1f0f6;
    transform: translateX(-50%);
    font-family: "Poppins", sans-serif;
    font-size: 76px;
    line-height: 1;
    letter-spacing: .12em;
    font-weight: 800;
    white-space: nowrap;
  }

  .specialty-title.dental::before {
    -webkit-text-stroke-color: #def0f0;
  }

  .specialty-title::after,
  .specialty-title.dental::after {
    content: "";
    position: static;
    width: 64px;
    height: 3px;
    margin-top: 20px;
    border-radius: 99px;
    background: #008D99;
  }

  .specialty-title.dental::after {
    background: #008D99;
  }

  .specialty-icon {
    position: relative;
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    margin-bottom: 22px;
    display: grid;
    place-items: center;
    border: 2px solid #0FC8D8;
    border-radius: 50%;
    color: #fff;
    background: #008D99;
    box-shadow: 0 0 0 8px #eff9fd;
    font-size: 33px;
  }

  .specialty-icon::after {
    content: "";
    position: absolute;
    right: 3px;
    bottom: 5px;
    width: 12px;
    height: 12px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #0FC8D8;
  }

  .dental-panel .specialty-icon {
    border-color: #0FC8D8;
    color: #fff;
    background: #008D99;
    box-shadow: 0 0 0 8px #eefafa;
  }

  .gastro-panel .specialty-icon i,
  .dental-panel .specialty-icon i {
    display: none;
  }

  .gastro-panel .specialty-icon::before,
  .dental-panel .specialty-icon::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    line-height: 1;
  }

  .gastro-panel .specialty-icon::before {
    content: "\f0f1";
  }

  .dental-panel .specialty-icon::before {
    content: "\f5c9";
  }

  .specialty-title > div:last-child::before {
    content: "ÁREA DE ESPECIALIDAD";
    display: block;
    margin-bottom: 8px;
    color: #008D99;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: .17em;
    font-weight: 800;
  }

  .specialty-title.dental > div:last-child::before {
    color: #008D99;
  }

  .specialty-title h2 {
    margin: 0;
    color: #003C48;
    font-family: "Poppins", sans-serif;
    font-size: 32px;
    line-height: 1.06;
    letter-spacing: -.05em;
    font-weight: 700;
  }

  .specialty-title p {
    max-width: 650px;
    margin: 10px auto 0;
    color: #003C48;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 500;
    text-align: center;
  }

  .subspecialty-title,
  .dental-panel .subspecialty-title {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    margin: 52px 0 26px;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(40px, 1fr) 46px auto minmax(40px, 1fr);
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 0;
    border-radius: 0;
    color: #003C48;
    background: transparent;
    box-shadow: none;
  }

  .specialty-title + .subspecialty-title {
    margin-top: 0;
  }

  .subspecialty-title::before,
  .subspecialty-title::after {
    content: "";
    width: 100%;
    max-width: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #0FC8D8);
  }

  .subspecialty-title::after {
    background: linear-gradient(90deg, #0FC8D8, transparent);
  }

  .dental-panel .subspecialty-title::before {
    background: linear-gradient(90deg, transparent, #0FC8D8);
  }

  .dental-panel .subspecialty-title::after {
    background: linear-gradient(90deg, #0FC8D8, transparent);
  }

  .subspecialty-title i,
  .dental-panel .subspecialty-title i {
    width: 46px;
    height: 46px;
    flex: none;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #008D99;
    box-shadow: 0 7px 16px rgba(0, 60, 72, .16);
    font-size: 21px;
  }

  .dental-panel .subspecialty-title i {
    color: #fff;
    background: #008D99;
    box-shadow: 0 7px 16px rgba(0, 141, 153, .15);
  }

  .subspecialty-title h3 {
    position: relative;
    margin: 0;
    color: #003C48;
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -.025em;
    font-weight: 700;
    white-space: nowrap;
  }

  .subspecialty-title h3::before {
    content: "SERVICIO";
    display: block;
    margin-bottom: 3px;
    color: #008D99;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 8px;
    line-height: 1;
    letter-spacing: .16em;
    font-weight: 800;
  }

  .dental-panel .subspecialty-title h3::before {
    content: "ESPECIALIDAD DENTAL";
    color: #008D99;
  }

  .certification-note {
    max-width: 940px;
    min-height: 78px;
    margin-top: 88px;
    padding: 18px 28px;
    border: 0;
    border-top: 1px solid #0FC8D8;
    border-bottom: 1px solid #0FC8D8;
    border-radius: 0;
    color: #003C48;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.5;
  }

  .certification-note i {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border: 1px solid #0FC8D8;
    border-radius: 50%;
    color: #008D99;
    background: #fff;
    box-shadow: none;
    font-size: 23px;
  }
}

/* Centrado definitivo de grupos de especialistas en escritorio. */
@media (min-width: 1200px) {
  .specialists-page .doctors-row {
    grid-template-columns: repeat(auto-fit, calc((100% - 81px) / 4));
    justify-content: center;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .specialists-page .doctors-row > [class*="col-"]:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 27px) / 2);
    justify-self: center;
  }
}

@media (min-width: 992px) {
  .gastro-panel .specialty-icon i {
    display: inline-block;
  }

  .gastro-panel .specialty-icon::before {
    content: none;
  }
}

/* Adaptación móvil de los encabezados del directorio; las cards no se modifican. */
@media (max-width: 991.98px) {
  .specialists-page {
    background: #fff;
  }

  .page-heading {
    max-width: 520px;
    min-height: 0;
    margin: 0 auto 22px;
    padding: 0 10px;
    display: block;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .page-heading::before {
    content: "DIRECTORIO MÉDICO";
    display: block;
    margin-bottom: 7px;
    color: #008D99;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 9px;
    line-height: 1.3;
    letter-spacing: .15em;
    font-weight: 800;
  }

  .page-heading::after {
    content: none;
  }

  .page-heading h1 {
    margin: 0;
    color: #003C48;
    font-family: "Poppins", sans-serif;
    font-size: clamp(30px, 9vw, 39px);
    line-height: 1.06;
    letter-spacing: -.05em;
    font-weight: 700;
    text-shadow: none;
  }

  .page-heading span {
    width: 44px;
    height: 3px;
    margin: 13px auto 0;
    border-radius: 99px;
    background: linear-gradient(90deg, #0FC8D8, #008D99);
    box-shadow: none;
  }

  .gastro-panel,
  .dental-panel {
    position: relative;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    scroll-margin-top: 86px;
  }

  .gastro-panel::before,
  .dental-panel::before {
    content: none;
  }

  .gastro-panel + .dental-panel {
    margin-top: 66px;
    padding-top: 54px;
    border-top: 1px solid #0FC8D8;
  }

  .dental-panel::after {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    border: 3px solid #fff;
    background: #008D99;
    box-shadow: 0 0 0 1px #0FC8D8;
    transform: translateX(-50%) rotate(45deg);
  }

  .specialty-title,
  .specialty-title.dental {
    position: relative;
    max-width: 520px;
    min-height: 0;
    margin: 0 auto 36px;
    padding: 0px 6px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
  }

  .specialty-title::before {
  
    position: absolute;
    z-index: 0;
    top: -3px;
    left: 50%;
    color: transparent;
    -webkit-text-stroke: 1px #e1f0f6;
    transform: translateX(-50%);
    font-family: "Poppins", sans-serif;
    font-size: clamp(38px, 13vw, 50px);
    line-height: 1;
    letter-spacing: .08em;
    font-weight: 800;
    white-space: nowrap;
  }

  .specialty-title.dental::before {
  
    -webkit-text-stroke-color: #def0f0;
  }

  .specialty-title::after,
  .specialty-title.dental::after {
    content: "";
    position: static;
    width: 48px;
    height: 3px;
    margin-top: 14px;
    border-radius: 99px;
    background: #008D99;
  }

  .specialty-title.dental::after {
    background: #008D99;
  }

  .specialty-icon {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    margin-bottom: 17px;
    display: grid;
    place-items: center;
    border: 2px solid #0FC8D8;
    border-radius: 50%;
    color: #fff;
    background: #008D99;
    box-shadow: 0 0 0 6px #eff9fd;
    font-size: 25px;
  }

  .specialty-icon::after {
    content: "";
    position: absolute;
    right: 2px;
    bottom: 4px;
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #0FC8D8;
  }

  .dental-panel .specialty-icon {
    border-color: #0FC8D8;
    color: #fff;
    background: #008D99;
    box-shadow: 0 0 0 6px #eefafa;
  }

  .gastro-panel .specialty-icon i {
    display: inline-block;
  }

  .gastro-panel .specialty-icon::before {
    content: none;
  }

  .dental-panel .specialty-icon i {
    display: none;
  }

  .dental-panel .specialty-icon::before {
    content: "\f5c9";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    line-height: 1;
  }

  .specialty-title > div:last-child {
    position: relative;
    z-index: 1;
  }

  .specialty-title > div:last-child::before {
    content: "ÁREA DE ESPECIALIDAD";
    display: block;
    margin-bottom: 6px;
    color: #008D99;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 8px;
    line-height: 1.2;
    letter-spacing: .14em;
    font-weight: 800;
  }

  .specialty-title.dental > div:last-child::before {
    color: #008D99;
  }

  .specialty-title h2 {
    margin: 0;
    color: #003C48;
    font-family: "Poppins", sans-serif;
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.08;
    letter-spacing: -.045em;
    font-weight: 700;
  }

  .specialty-title p {
    max-width: 360px;
    margin: 8px auto 0;
    color: #003C48;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 500;
    text-align: center;
  }

  .subspecialty-title,
  .dental-panel .subspecialty-title {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 38px 0 18px;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(16px, 1fr) 38px auto minmax(16px, 1fr);
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 0;
    color: #003C48;
    background: transparent;
    box-shadow: none;
  }

  .specialty-title + .subspecialty-title {
    margin-top: 0;
  }

  .subspecialty-title::before,
  .subspecialty-title::after {
    content: "";
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #0FC8D8);
  }

  .subspecialty-title::after {
    background: linear-gradient(90deg, #0FC8D8, transparent);
  }

  .dental-panel .subspecialty-title::before {
    background: linear-gradient(90deg, transparent, #0FC8D8);
  }

  .dental-panel .subspecialty-title::after {
    background: linear-gradient(90deg, #0FC8D8, transparent);
  }

  .subspecialty-title i,
  .dental-panel .subspecialty-title i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #008D99;
    box-shadow: 0 6px 14px rgba(0, 60, 72, .15);
    font-size: 17px;
  }

  .dental-panel .subspecialty-title i {
    color: #fff;
    background: #008D99;
    box-shadow: 0 6px 14px rgba(0, 141, 153, .14);
  }

  .subspecialty-title h3 {
    margin: 0;
    color: #003C48;
    font-family: "Poppins", sans-serif;
    font-size: clamp(13px, 4vw, 16px);
    line-height: 1.15;
    letter-spacing: -.025em;
    font-weight: 700;
    white-space: nowrap;
  }

  .subspecialty-title h3::before {
    content: "SERVICIO";
    display: block;
    margin-bottom: 2px;
    color: #008D99;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 6.5px;
    line-height: 1;
    letter-spacing: .14em;
    font-weight: 800;
  }

  .dental-panel .subspecialty-title h3::before {
    content: "ESPECIALIDAD DENTAL";
    color: #008D99;
  }

  .certification-note {
    max-width: 520px;
    min-height: 66px;
    margin: 60px auto 0;
    padding: 14px 8px;
    border: 0;
    border-top: 1px solid #0FC8D8;
    border-bottom: 1px solid #0FC8D8;
    border-radius: 0;
    color: #003C48;
    background: transparent;
    box-shadow: none;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
  }

  .certification-note i {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border: 1px solid #0FC8D8;
    border-radius: 50%;
    color: #008D99;
    background: #fff;
    box-shadow: none;
    font-size: 20px;
  }
}
