/* Capa visual contemporánea: se carga después de los estilos históricos. */
.banner_tecnologia .contenedor_texto_banner {
  max-width: 1050px;
  margin: 0 auto 1.5rem;
  padding-top: 0;
}

.banner_tecnologia .banner-columna-texto {
  margin-top: 2rem;
}

.banner_tecnologia .banner-elemento-texto {
  height: 100%;
  padding: 1.75rem;
  border: 1px solid #dbeaf3;
  border-radius: 18px;
  background: #f5f9fc;
  text-align: left;
}

.banner_tecnologia .banner-elemento-texto .texto_banner {
  margin-top: 0 !important;
}

.banner_tecnologia .banner-elemento-texto .titulo_elemento {
  margin: 0 0 1rem;
  color: var(--gd-navy);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
}

.banner_tecnologia .banner-elemento-texto p:last-child {
  margin-bottom: 0;
}

.instalaciones-foto {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(20, 72, 106, .1);
}

.instalaciones-foto a {
  display: block;
  overflow: hidden;
}

.instalaciones-foto img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform .25s ease;
}

.instalaciones-foto a:hover img {
  transform: scale(1.025);
}

.instalaciones-foto figcaption {
  padding: 1rem 1.2rem;
  font-weight: 600;
}

.instalaciones-galeria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
}

.instalaciones-indice {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 2.5rem;
}

.instalaciones-indice a {
  padding: .6rem 1rem;
  border: 1px solid #dbeaf3;
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
}

.instalaciones-grupo {
  grid-column: 1 / -1;
  margin-bottom: 2.5rem;
  scroll-margin-top: 150px;
}

.instalaciones-gabinete {
  grid-column: auto;
}

.instalaciones-grupo > h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
}

.instalaciones-gabinete .instalaciones-foto img,
#instalaciones-tecnologia .instalaciones-foto img,
#instalaciones-ubicacion .instalaciones-foto img {
  height: 460px;
  max-height: 75vh;
  object-fit: contain;
  background: #edf3f7;
}

@media (max-width: 767.98px) {
  .instalaciones-galeria {
    grid-template-columns: minmax(0, 1fr);
  }
}

.archivo-blog {
  padding: 1.5rem;
  background: #eaf4fa;
  border-radius: 18px;
}

.archivo-blog .form-control {
  height: auto;
  min-height: 44px;
}

.creditos-imagen {
  margin-top: 2rem;
  font-size: .75rem;
  color: #5f7482;
}
:root {
  --gd-navy: #14486a;
  --gd-deep: #206a98;
  --gd-blue: #2b86b8;
  --gd-sky: #39c;
  --gd-mint: #eaf4fa;
  --gd-ink: #1b3445;
  --gd-muted: #5f7482;
  --gd-surface: #ffffff;
  --gd-shadow: 0 18px 45px rgba(20, 72, 106, .13);
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f5f9fc;
  color: var(--gd-ink);
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  line-height: 1.65;
}

h1, h2, h3, h4,
.navbar-nav .nav-link {
  font-family: "Montserrat", sans-serif;
}

h1, h2, h3, h4 {
  color: var(--gd-navy);
  letter-spacing: -.025em;
}

a {
  color: var(--gd-blue);
}

a:hover {
  color: var(--gd-navy);
}

#contenedor_header_principal {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(7, 59, 76, .08);
  box-shadow: 0 6px 22px rgba(7, 59, 76, .06);
}

#contenedor_header_principal .container_brand {
  padding: 1rem 0 .55rem;
}

#contenedor_header_principal .logo {
  max-height: 90px;
  width: auto;
}

#contenedor_header_principal .navbar {
  margin: 0;
  padding: .2rem 0 .85rem;
}

.navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link {
  color: var(--gd-navy);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .7rem .85rem;
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:hover,
.navbar-nav .active > .nav-link {
  color: #fff;
  background: var(--gd-blue);
  transform: translateY(-1px);
}

/* Barra superior de contacto */
.sup_header {
  background: linear-gradient(90deg, var(--gd-deep), var(--gd-blue));
  font-size: .88rem;
  letter-spacing: .01em;
}

.sup_header li {
  display: flex;
  align-items: center;
  padding: 5px 0;
}

.sup_header_izquierda li {
  padding-right: .9rem;
}

.sup_header_izquierda li + li {
  padding-left: .9rem;
  border-left: 1px solid rgba(255, 255, 255, .22);
}

.sup_header_izquierda li.sup_label {
  padding-right: .6rem;
  border-left: 0;
  color: rgba(255, 255, 255, .8);
}

.sup_header_izquierda ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
}

.sup_header_izquierda li.sup_tel {
  display: flex !important;
  align-items: center;
}

.sup_header_izquierda li.sup_label .fa,
.sup_header_izquierda li.sup_label svg,
.sup_header_izquierda li.sup_mail .fa,
.sup_header_izquierda li.sup_mail svg {
  margin-right: .7rem !important;
}

.sup_header_izquierda li.sup_label + li {
  padding-left: 0;
  border-left: 0;
}

.sup_header .fa,
.sup_header .fab {
  width: auto;
  height: auto;
  margin-right: .4rem;
  padding: 0;
  line-height: 1;
  color: #8fe3f3;
}

.sup_header a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}

.sup_header a:hover {
  color: #8fe3f3;
  text-decoration: none;
}

.sup_header .sup_sep::before {
  margin: 0 .55rem;
  color: rgba(255, 255, 255, .4);
  content: "·";
}

.sup_header_derecha ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.sup_header_derecha li {
  padding: 5px 0 5px .35rem;
  flex: 0 0 auto;
}

.sup_header_derecha a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}

.sup_header_derecha a .fab {
  margin: 0;
  color: #fff;
  font-size: .8rem;
}

.sup_header_derecha a:hover {
  background: var(--gd-sky);
}

.sup_header_derecha a:hover .fab {
  color: #fff;
}

@media (max-width: 575.98px) {
  .sup_header {
    font-size: .82rem;
  }

  .sup_header_izquierda li + li {
    padding-left: .6rem;
  }

  .sup_header_izquierda li.sup_mail {
    padding-left: 0;
    border-left: 0;
  }

  .sup_header_izquierda li.sup_label .fa {
    width: 1rem;
    margin-right: .5rem;
  }

  .sup_header_izquierda li.sup_mail .fa {
    width: 1rem;
    margin-right: .5rem;
  }
}

@media (min-width: 992px) {
  .navbar-nav .nav-link,
  .navbar-light .navbar-nav .nav-link {
    font-size: 1.05rem;
    line-height: 1.3;
    padding: .75rem 1rem;
  }

  #contenedor_header_principal .navbar {
    margin-top: 9px;
  }

  #contenedor_header_principal2 .navbar {
    margin-top: 2px;
  }
}

.contenedor_slider {
  margin: 0;
  background: var(--gd-navy);
}

.carousel-inner .item {
  position: relative;
  min-height: clamp(420px, 51vw, 680px);
  isolation: isolate;
}

.carousel-inner .item::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(16, 58, 88, .8) 0%, rgba(16, 58, 88, .5) 48%, rgba(16, 58, 88, .15) 100%);
}

.carousel-caption {
  right: auto;
  bottom: clamp(4rem, 10vw, 8rem);
  left: clamp(1.5rem, 9vw, 11rem);
  width: min(680px, 78%);
  margin: 0;
  padding: 0;
  text-align: left;
  text-shadow: 0 3px 20px rgba(0, 0, 0, .35);
}

.carousel-caption h1 {
  max-width: 15ch;
  margin: 0 0 .65rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 4.35rem);
  font-weight: 800;
  line-height: 1.08;
}

.carousel-caption h2 {
  margin: 0;
  color: #d8f6fb;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 500;
}

.carousel-indicators {
  right: auto;
  bottom: 1.6rem;
  left: clamp(1.5rem, 9vw, 11rem);
  width: auto;
  margin: 0;
}

.carousel-indicators li {
  width: 30px;
  height: 3px;
  margin-right: 7px;
  margin-left: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, .45);
}

.carousel-indicators .active {
  background: #fff;
}

.container_banner {
  padding: clamp(3.5rem, 7vw, 6.5rem) 15px;
}

.container_banner_1,
.container_banner_4 {
  background: var(--gd-surface);
}

.contenedor_texto_banner {
  padding: clamp(1rem, 3vw, 2.25rem);
}

h2.titulo_banner {
  margin-bottom: 1.25rem;
  color: var(--gd-navy);
  font-size: clamp(1.7rem, 3vw, 2.75rem);
  font-weight: 750;
  line-height: 1.18;
}

.container_banner p,
.texto_banner {
  color: var(--gd-muted);
}

.container_banner_1 .img-banner,
.container_banner_4 .img-banner {
  width: 100%;
  margin: 0;
  border-radius: 1.25rem;
  box-shadow: var(--gd-shadow);
}

.banner_franja_2 {
  color: var(--gd-ink);
  background: linear-gradient(135deg, #e6f1f8 0%, #f6fafd 100%);
}

.banner_franja_2 h2,
.banner_franja_2 h3,
.banner_franja_2 .texto_banner {
  color: var(--gd-ink);
}

.banner_franja_2 .container_padre_banner {
  height: calc(100% - 30px);
  margin: 15px 0;
  overflow: hidden;
  border: 1px solid rgba(11, 113, 137, .1);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 9px 26px rgba(7, 59, 76, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.banner_franja_2 .container_padre_banner:hover {
  box-shadow: 0 16px 32px rgba(7, 59, 76, .16);
  transform: translateY(-7px);
}

.banner_franja_2 .img-banner {
  width: 100%;
  height: 190px;
  margin: 0;
  object-fit: cover;
}

.banner_franja_2 .texto_banner {
  min-height: 225px;
  padding: 1.35rem;
}

.banner_franja_2 a h4.titulo_elemento,
h4.titulo_elemento {
  margin-bottom: .7rem;
  color: var(--gd-blue);
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.35;
}

.banner_franja_1 {
  background: linear-gradient(135deg, var(--gd-deep), var(--gd-blue));
}

.banner_franja_1 h2,
.banner_franja_1 .contenedor_texto_banner {
  color: #fff;
}

.banner_franja_1 h2.titulo_banner {
  color: #fff;
}

.banner_cita_previa {
  margin-top: 0;
  color: var(--gd-ink);
  background: #fff;
  border-top: 1px solid rgba(7, 59, 76, .08);
}

.enlace_boton,
.btn-success {
  border: 0;
  border-radius: 999px;
  background: var(--gd-blue);
  box-shadow: 0 8px 18px rgba(11, 113, 137, .22);
  color: #fff;
  font-weight: 700;
  letter-spacing: .01em;
  padding: .7rem 1.25rem;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

a.enlace_boton:hover,
.enlace_boton[type="submit"]:hover,
.btn-success:hover,
.btn-success:focus {
  background: var(--gd-navy);
  box-shadow: 0 12px 24px rgba(7, 59, 76, .28);
  color: #fff;
  transform: translateY(-2px);
}

footer {
  padding-top: 1rem;
  background: var(--gd-deep);
}

footer .container_banner {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

footer a,
footer h2,
footer h3,
footer h4 {
  color: #fff;
}

footer a:hover {
  color: #9ee8f4;
}

footer .banner_logos_pie .col-sm-3 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .5rem .75rem;
}

footer .banner_logos_pie .container_padre_banner {
  width: 100%;
}

footer .banner_logos_pie img {
  width: 100%;
  height: 84px;
  object-fit: contain;
  padding: .45rem .7rem;
  border-radius: .75rem;
  background: #fff;
  opacity: .92;
  transition: opacity .25s ease, transform .25s ease;
}

footer .banner_logos_pie img:hover {
  opacity: 1;
  transform: translateY(-3px);
}

footer .texto_centro h2 {
  margin: 1.5rem 0 0;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: .01em;
}

footer .texto_centro h2::after {
  display: none;
}

footer .container_datos_footer hr {
  display: none;
}

footer .footer_contacto a,
footer .footer_contacto span {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}

footer .footer_contacto span {
  display: block;
  text-align: center;
}

footer .footer_contacto span .fa,
footer .footer_contacto span svg {
  margin-right: .65rem;
}

footer .footer_contacto .fa,
footer .footer_contacto svg {
  width: 1em;
  margin: 0;
  color: #8fe3f3;
}

footer .footer_contacto span .fa,
footer .footer_contacto span svg {
  margin-right: .65rem;
}

footer .footer_contacto {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 2rem;
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, .85);
  font-size: .95rem;
}

footer .subfooter {
  padding: 1rem 15px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .18);
  color: rgba(255, 255, 255, .7);
  font-size: .85rem;
}

footer .subfooter a {
  color: #fff;
  font-weight: 600;
}

footer .subfooter a:hover {
  color: #8fe3f3;
}

@media (max-width: 767.98px) {
  footer .banner_logos_pie img {
    height: 70px;
  }

  footer .subfooter .text-right,
  footer .subfooter .text-left {
    text-align: center !important;
  }
}

/* Página de especialidades: listado editorial en formato de tarjetas. */
.page-especialidades .contenedor_subnav {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--gd-deep), var(--gd-blue));
}

.page-especialidades .contenedor_subnav::after {
  position: absolute;
  top: -120px;
  right: 8%;
  width: 310px;
  height: 310px;
  border: 44px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  content: "";
}

.page-especialidades .contenedor_subnav .container_subnav,
.page-especialidades .contenedor_subnav h1,
.page-especialidades .contenedor_subnav h2 {
  position: relative;
  z-index: 1;
  color: #fff;
}

.page-especialidades .container_ppal {
  padding-top: clamp(2.5rem, 5vw, 4.75rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.page-especialidades .container_ppal .col-md-4.col-sm-6.col-12.text-center {
  display: flex;
  flex: 0 0 calc(33.333333% - 24px);
  flex-direction: column;
  max-width: calc(33.333333% - 24px);
  min-height: 445px;
  margin: 12px;
  padding: 0;
  overflow: hidden;
  text-align: left !important;
  border: 1px solid rgba(7, 59, 76, .1);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7, 59, 76, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.page-especialidades .container_ppal .col-md-4.col-sm-6.col-12.text-center:hover {
  box-shadow: var(--gd-shadow);
  transform: translateY(-7px);
}

.page-especialidades .container_ppal .col-md-4.col-sm-6.col-12.text-center > a:first-of-type {
  display: block;
  overflow: hidden;
}

.page-especialidades .container_ppal .img_apartado {
  width: 100%;
  height: 205px;
  margin: 0 !important;
  object-fit: cover;
  transition: transform .45s ease;
}

.page-especialidades .container_ppal .col-md-4.col-sm-6.col-12.text-center:hover .img_apartado {
  transform: scale(1.045);
}

.page-especialidades .container_ppal .titulo_apartado {
  min-height: 3.15em;
  margin: 1.35rem 1.4rem .7rem;
  color: var(--gd-navy);
  font-size: 1.18rem;
  font-weight: 750;
  line-height: 1.34;
}

.page-especialidades .container_ppal a:hover .titulo_apartado {
  color: var(--gd-blue);
}

.page-especialidades .container_ppal .col-md-4.col-sm-6.col-12.text-center > p {
  margin: 0 1.4rem 1.5rem;
  color: var(--gd-muted);
  font-size: .91rem;
  line-height: 1.6;
}

/* Instalaciones: galería, datos de la clínica y visita virtual. */
.page-instalaciones .contenedor_subnav {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #206a98, #2b86b8 68%, #39c);
}

.page-instalaciones .contenedor_subnav::after {
  position: absolute;
  right: -5rem;
  bottom: -9rem;
  width: 330px;
  height: 330px;
  border: 52px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  content: "";
}

.page-instalaciones .contenedor_subnav .container_subnav,
.page-instalaciones .contenedor_subnav h1,
.page-instalaciones .contenedor_subnav h2 {
  position: relative;
  z-index: 1;
  color: #fff;
}

.page-instalaciones .contenedor_subnav + section.container-fluid.text-left {
  padding: clamp(2.25rem, 5vw, 4.5rem) 0;
  background: linear-gradient(180deg, #eaf4fa 0%, #f5f9fc 100%);
}

.page-instalaciones #carousel-example {
  padding: .4rem 2.7rem;
  margin-left: 15px;
  margin-right: 15px;
}

.page-instalaciones #carousel-example .carousel-inner {
  padding: .4rem 0;
}

.page-instalaciones #carousel-example .carousel-item {
  padding: .45rem;
}

.page-instalaciones #carousel-example .carousel-item > a {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 9px 24px rgba(7, 59, 76, .12);
}

.page-instalaciones #carousel-example .carousel-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform .45s ease;
}

.page-instalaciones #carousel-example .carousel-item > a:hover img {
  transform: scale(1.06);
}

.page-instalaciones #carousel-example .carousel-control-prev,
.page-instalaciones #carousel-example .carousel-control-next {
  top: 50%;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  background-color: var(--gd-navy);
  box-shadow: 0 7px 16px rgba(7, 59, 76, .2);
  opacity: 1;
  transform: translateY(-50%);
}

.page-instalaciones #carousel-example .carousel-control-prev {
  left: 0;
}

.page-instalaciones #carousel-example .carousel-control-next {
  right: 0;
}

.page-instalaciones .container_ppal {
  padding-top: 0;
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.page-instalaciones .contenedor_subnav + section.container-fluid.text-left {
  padding-bottom: 1rem;
}

.page-instalaciones .banner_franja_gris {
  margin-top: 0;
  padding: 0;
  background: transparent;
}

.page-instalaciones .banner_franja_gris > .row > article {
  padding: .75rem;
}

.page-instalaciones .banner_franja_gris > .row > article > .row {
  height: 100%;
  margin: 0;
  padding: 1.8rem;
  border: 1px solid rgba(7, 59, 76, .1);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(7, 59, 76, .08);
}

.page-instalaciones .banner_franja_gris .titulo_apartado {
  margin: 0 0 1.05rem;
  color: var(--gd-navy);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.page-instalaciones .container_ppal h2::after,
.page-instalaciones .banner_franja_gris .titulo_apartado::after {
  display: none;
}

.page-instalaciones .banner_franja_gris ul {
  display: inline-block;
  margin: 0;
  padding: 0;
  text-align: left;
  list-style: none;
}

.page-instalaciones .banner_franja_gris li {
  position: relative;
  margin: .55rem 0;
  padding-left: 1.55rem;
  list-style: none;
  color: var(--gd-muted);
}

.page-instalaciones .banner_franja_gris li::before {
  position: absolute;
  left: 0;
  color: var(--gd-blue);
  font-weight: 800;
  content: "✓";
}

.page-instalaciones .container_ppal .col-12.col-sm-12.mt-5 {
  margin-top: clamp(3.5rem, 7vw, 5.5rem) !important;
}

.page-instalaciones .container_ppal .col-12.col-sm-12.mt-5 h2 {
  margin-bottom: 1.25rem;
  color: var(--gd-navy);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.01em;
  text-align: center;
}

.page-instalaciones .container_ppal .col-12.col-sm-12.mt-5 iframe {
  display: block;
  min-height: 390px;
  border: 0;
  border-radius: 1.2rem;
  box-shadow: var(--gd-shadow);
}

/* Profesionales: perfiles del equipo y currículos en ventana modal. */
.page-profesionales .contenedor_subnav {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #206a98, #2b86b8 72%, #39c);
}

.page-profesionales .contenedor_subnav::after {
  position: absolute;
  top: -9rem;
  right: 9%;
  width: 270px;
  height: 270px;
  border: 46px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  content: "";
}

.page-profesionales .contenedor_subnav .container_subnav,
.page-profesionales .contenedor_subnav h1,
.page-profesionales .contenedor_subnav h2 {
  position: relative;
  z-index: 1;
  color: #fff;
}

.page-profesionales .container_ppal {
  padding-top: clamp(2.75rem, 5vw, 4.75rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.page-profesionales .container_ppal section[id] {
  margin: 0 0 clamp(3rem, 6vw, 5rem);
}

.page-profesionales .container_ppal section[id] > .row > .col-sm-12 > .titulo_apartado {
  margin: 0 0 1.5rem;
  color: var(--gd-navy);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 780;
}

.page-profesionales .container_ppal section[id] > .row > .col-sm-12 > .titulo_apartado::after {
  display: none;
}

.page-profesionales .container_ppal section[id] > .row > .col-md-3.col-sm-6.col-12.text-center {
  display: flex;
  flex: 0 0 calc(25% - 20px);
  flex-direction: column;
  max-width: calc(25% - 20px);
  min-height: 440px;
  margin: 10px;
  padding: 0;
  overflow: hidden;
  text-align: left !important;
  border: 1px solid rgba(7, 59, 76, .1);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 10px 26px rgba(7, 59, 76, .08);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.page-profesionales .container_ppal section[id] > .row > .col-md-3.col-sm-6.col-12.text-center:hover {
  box-shadow: var(--gd-shadow);
  transform: translateY(-7px);
}

.page-profesionales .container_ppal section[id] > .row > .col-md-3.col-sm-6.col-12.text-center > a:first-of-type {
  display: block;
  overflow: hidden;
}

.page-profesionales .container_ppal .img_apartado {
  width: 100%;
  height: 310px;
  margin: 0 !important;
  object-fit: cover;
  object-position: center top;
  transition: transform .45s ease;
}

.page-profesionales .container_ppal section[id] > .row > .col-md-3.col-sm-6.col-12.text-center:hover .img_apartado {
  transform: scale(1.045);
}

.page-profesionales .container_ppal section[id] h3.titulo_apartado {
  min-height: 2.75em;
  margin: 1.25rem 1.3rem .55rem;
  color: var(--gd-navy);
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.35;
}

.page-profesionales .container_ppal section[id] > .row > .col-md-3.col-sm-6.col-12.text-center > p,
.page-profesionales .container_ppal section[id] .subtitulo {
  margin: 0 1.3rem 1.4rem;
  color: var(--gd-muted);
  font-size: .88rem;
  line-height: 1.55;
}

.page-profesionales .container_ppal section[id] .subtitulo {
  display: block;
  margin-top: 0;
  margin-bottom: 1.4rem;
}

.page-profesionales .modal-dialog {
  max-width: 760px;
}

.page-profesionales .modal-content {
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  border: 0;
  border-radius: 1.15rem;
  box-shadow: 0 24px 60px rgba(2, 32, 43, .28);
}

.page-profesionales .modal-header {
  padding: 1.45rem 1.7rem;
  border-bottom: 1px solid rgba(7, 59, 76, .1);
  background: var(--gd-mint);
}

.page-profesionales .modal-header h2 {
  margin: 0;
  color: var(--gd-navy);
  font-size: 1.45rem;
  font-weight: 750;
}

.page-profesionales .modal-header h2::after,
.page-profesionales .modal-body h2::after,
.page-profesionales .modal-body h3::after {
  display: none;
}

.page-profesionales .modal-body > h3 {
  margin: 0;
  color: var(--gd-ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
}

.page-profesionales .modal-body:has(> h3):not(:has(> h2)) {
  display: flex;
  flex-direction: column;
}

.page-profesionales .modal-body:has(> h3):not(:has(> h2)) > h3 {
  order: 2;
}

.page-profesionales .modal-body {
  overflow-y: auto;
  padding: 1.7rem;
  color: var(--gd-ink);
}

.page-profesionales .modal-body > .col-xs-12 {
  padding: 0;
}

.page-profesionales .modal-body img.img-responsive {
  display: block;
  width: 100%;
  max-width: 320px;
  max-height: 380px;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 18px rgba(7, 59, 76, .15);
}

.page-profesionales .modal-body h2 {
  margin: 1.4rem 0 .7rem;
  color: var(--gd-navy);
  font-size: 1.2rem;
}

.page-profesionales .modal-body li {
  margin-bottom: .55rem;
}

.page-profesionales .modal-footer {
  padding: 1rem 1.7rem;
  border-top: 1px solid rgba(7, 59, 76, .1);
}

/* Contacto: formulario, vías de contacto y mapa. */
.page-contacto .contenedor_subnav {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #206a98, #2b86b8 68%, #39c);
}

.page-contacto .contenedor_subnav::after {
  position: absolute;
  top: -11rem;
  right: 8%;
  width: 315px;
  height: 315px;
  border: 52px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  content: "";
}

.page-contacto .contenedor_subnav .container_subnav,
.page-contacto .contenedor_subnav h1,
.page-contacto .contenedor_subnav h2 {
  position: relative;
  z-index: 1;
  color: #fff;
}

.page-contacto .container_ppal {
  padding-top: clamp(2.75rem, 5vw, 4.75rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.page-contacto .contacto_intro {
  margin-bottom: 1rem;
}

.page-contacto .contacto_intro article {
  max-width: 760px;
  margin: 0 auto 1.75rem;
  color: var(--gd-muted);
  font-size: 1.06rem;
  text-align: center;
}

.page-contacto .contacto_formulario,
.page-contacto .contacto_datos {
  flex: 0 0 calc(50% - 18px);
  max-width: calc(50% - 18px);
  min-height: 100%;
  margin: 9px;
  padding: clamp(1.45rem, 3vw, 2.35rem);
  border: 1px solid rgba(7, 59, 76, .1);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(7, 59, 76, .08);
}

.page-contacto .contacto_formulario h3,
.page-contacto .contacto_datos h3 {
  margin: 0 0 .65rem;
  color: var(--gd-navy);
  font-size: 1.42rem;
  font-weight: 750;
}

.page-contacto .contacto_formulario h3::after,
.page-contacto .contacto_datos h3::after {
  display: none;
}

.page-contacto .contacto_datos > span a {
  color: var(--gd-blue);
  font-weight: 700;
}

.page-contacto #formulario {
  margin-top: 1.5rem;
}

.page-contacto #formulario .form-group {
  margin-bottom: 1.15rem;
}

.page-contacto #formulario .control-label {
  margin-bottom: .35rem;
  color: var(--gd-navy);
  font-size: .9rem;
  font-weight: 700;
}

.page-contacto #formulario .form-control {
  min-height: 46px;
  border: 1px solid rgba(7, 59, 76, .18);
  border-radius: .65rem;
  color: var(--gd-ink);
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.page-contacto #formulario textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.page-contacto #formulario .form-control:focus {
  border-color: var(--gd-sky);
  box-shadow: 0 0 0 .2rem rgba(34, 166, 197, .15);
}

.page-contacto #formulario .checkbox {
  margin-top: 1.25rem;
  color: var(--gd-muted);
  font-size: .82rem;
  line-height: 1.5;
}

.page-contacto #formulario .checkbox input {
  margin-top: .28rem;
}

.page-contacto #formulario .btn-success {
  min-width: 140px;
  margin-top: .4rem;
}

.page-contacto .contacto_datos > span {
  display: block;
  margin-bottom: 1.25rem;
  padding: .85rem 0 .85rem 1rem;
  border-left: 3px solid var(--gd-sky);
  color: var(--gd-muted);
  line-height: 1.55;
}

.page-contacto .contacto_datos > span strong {
  display: block;
  margin-bottom: .15rem;
  color: var(--gd-navy);
  font-size: .86rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.page-contacto .contacto_datos > a {
  display: inline-block;
  margin: -.9rem .25rem 1.15rem 1rem;
  color: var(--gd-blue);
  font-weight: 700;
}

.page-contacto .contacto_legal_mapa {
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: 1.15rem;
  background: var(--gd-mint);
  color: var(--gd-muted);
  font-size: .82rem;
  line-height: 1.65;
}

.page-contacto .contacto_legal_mapa > strong {
  color: var(--gd-navy);
  font-size: .86rem;
}

.page-contacto .contacto_legal_mapa iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  margin-top: 1.5rem;
  border: 0 !important;
  border-radius: .9rem;
  box-shadow: 0 10px 24px rgba(7, 59, 76, .13);
}

/* Páginas de contenido (especialidades y similares): lectura cómoda y sin subrayados decorativos. */
.contenedor_subnav {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--gd-deep), var(--gd-blue) 70%, var(--gd-sky));
}

.contenedor_subnav .container_subnav,
.contenedor_subnav h1,
.contenedor_subnav h2,
.contenedor_subnav .breadcrumb-item,
.contenedor_subnav .breadcrumb-item.active,
.contenedor_subnav a,
.contenedor_subnav .fa,
.contenedor_subnav svg {
  position: relative;
  z-index: 1;
  color: #fff;
}

.contenedor_subnav .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, .6);
}

.contenedor_subnav a:hover {
  color: #bff0f8;
}

.container_ppal article > .row > .col-12 {
  max-width: 1000px;
  margin: 0 auto;
}

.container_ppal article figure {
  margin: 0 0 2rem;
}

.container_ppal article figure img {
  display: block;
  width: 100%;
  margin: 0;
  border-radius: 1.25rem;
  box-shadow: var(--gd-shadow);
  max-height: 420px;
  object-fit: cover;
}

.container_ppal article p {
  margin-bottom: 1.15rem;
  color: #3b525a;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.85;
}

.container_ppal article p:first-of-type {
  color: var(--gd-ink);
  font-size: 1.22rem;
  line-height: 1.7;
}

.container_ppal article h2:not([class])::after,
.container_ppal article h3:not([class])::after,
.container_ppal article h4:not([class])::after {
  display: none;
}

.container_ppal article h3:not([class]) {
  margin: 3rem 0 1rem;
  color: var(--gd-navy);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: 750;
  line-height: 1.3;
}

.container_ppal article p img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: .4rem auto 1.1rem;
  border-radius: 1rem;
  box-shadow: 0 10px 26px rgba(7, 59, 76, .12);
}

.container_ppal article img.img_50 {
  width: 100%;
  max-width: 720px;
}

.container_ppal article ul,
.container_ppal article ol {
  margin-bottom: 1.3rem;
  color: #3b525a;
  line-height: 1.8;
}

@media (max-width: 991.98px) {
  #contenedor_header_principal .container_brand {
    padding: .75rem 0 .25rem;
  }

  #contenedor_header_principal .logo {
    max-height: 64px;
  }

  .navbar-toggler {
    border-color: rgba(11, 113, 137, .25);
    border-radius: .65rem;
  }

  .navbar-collapse.show {
    background: #fff;
    box-shadow: var(--gd-shadow);
  }

  .page-especialidades .container_ppal .col-md-4.col-sm-6.col-12.text-center {
    flex-basis: calc(50% - 24px);
    max-width: calc(50% - 24px);
  }

  .page-instalaciones #carousel-example .carousel-item img {
    height: 170px;
  }

  .page-profesionales .container_ppal section[id] > .row > .col-md-3.col-sm-6.col-12.text-center {
    flex-basis: calc(50% - 20px);
    max-width: calc(50% - 20px);
  }

  .page-contacto .contacto_formulario,
  .page-contacto .contacto_datos {
    flex-basis: calc(50% - 18px);
    max-width: calc(50% - 18px);
  }

  .navbar-nav,
  .navbar-nav .nav-item {
    text-align: left;
  }

  .navbar-collapse .menu_cerrar {
    position: absolute;
    top: .6rem;
    right: 1rem;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border: 1px solid rgba(20, 72, 106, .25);
    border-radius: 50%;
    background: #fff;
    color: var(--gd-navy);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
  }

  .navbar-collapse .menu_cerrar:hover,
  .navbar-collapse .menu_cerrar:focus {
    background: var(--gd-mint);
    outline: 0;
  }

  .navbar-collapse .navbar-nav {
    margin-top: 3.5rem;
  }

  .navbar-nav .nav-link,
  .navbar-light .navbar-nav .nav-link {
    display: inline-block;
    margin: .2rem 0;
    padding: .65rem .85rem;
  }
}

@media (max-width: 767.98px) {
  .carousel-inner .item {
    min-height: 440px;
  }

  .carousel-inner .item::before {
    background: linear-gradient(180deg, rgba(16, 58, 88, .25), rgba(16, 58, 88, .85));
  }

  .carousel-caption {
    right: 1.5rem;
    bottom: 4.5rem;
    left: 1.5rem;
    width: auto;
  }

  .carousel-caption h1 {
    max-width: none;
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .carousel-indicators {
    left: 1.5rem;
  }

  .container_banner {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .contenedor_texto_banner {
    padding: .5rem 0 1.5rem;
  }

  .banner_franja_2 .img-banner {
    height: 145px;
  }

  .banner_franja_2 .texto_banner {
    min-height: 250px;
    padding: 1rem;
    font-size: .9rem;
  }

  .page-especialidades .container_ppal .col-md-4.col-sm-6.col-12.text-center {
    flex-basis: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 10px 0;
  }

  .page-especialidades .container_ppal .img_apartado {
    height: 215px;
  }

  .page-instalaciones .contenedor_subnav + section.container-fluid.text-left {
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
  }

  .page-instalaciones #carousel-example {
    padding: .3rem 2.35rem;
  }

  .page-instalaciones #carousel-example .carousel-item img {
    height: 225px;
  }

  .page-instalaciones .banner_franja_gris > .row > article {
    padding: .5rem 0;
  }

  .page-instalaciones .container_ppal .col-12.col-sm-12.mt-5 iframe {
    min-height: 300px;
  }

  .page-profesionales .container_ppal section[id] > .row > .col-md-3.col-sm-6.col-12.text-center {
    flex-basis: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 10px 0;
  }

  .page-profesionales .container_ppal .img_apartado {
    height: 290px;
  }

  .page-profesionales .modal-body {
    padding: 1.3rem;
  }

  .page-contacto .contacto_formulario,
  .page-contacto .contacto_datos {
    flex-basis: 100%;
    max-width: 100%;
    margin: 9px 0;
  }

  .page-contacto .contacto_legal_mapa iframe {
    min-height: 290px;
  }

  .banner_cita_previa .col-sm-4.col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .banner_cita_previa .container_padre_banner {
    margin: .4rem 0;
  }

  .banner_cita_previa .img-banner {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    border-radius: .75rem;
    box-shadow: 0 8px 20px rgba(7, 59, 76, .14);
  }

  .page-gadirdental .container_banner_2 .col-sm-3.col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .page-gadirdental .container_banner_2 .container_padre_banner {
    height: auto;
    margin: 0 0 1rem;
  }

  .page-gadirdental .container_banner_2 .img-banner {
    height: clamp(180px, 55vw, 240px);
  }

  .page-gadirdental .container_banner_2 .texto_banner {
    min-height: 0;
    padding: 1rem 1.25rem 1.35rem;
    text-align: left;
  }
}
