/*
 * Ajustes responsive verificados en 320, 390, 768, 1024 y 1440 px.
 * Se carga al final para unificar plantillas antiguas y módulos ACF.
 */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

/* Footer institucional compartido: réplica funcional del diseño aprobado. */
.drjam-footer.drjam-footer-complete {
  padding: 26px 0 !important;
  border: 1px solid #cbdde7 !important;
  background: #fff !important;
  color: #123b6c;
  overflow: visible !important;
}

.drjam-footer-complete .drjam-footer-inner {
  width: min(calc(100% - 48px), 1340px) !important;
  max-width: 1340px !important;
  margin: 0 auto !important;
  padding: 28px 34px !important;
  display: grid !important;
  grid-template-columns: minmax(250px, .9fr) minmax(340px, 1.12fr) minmax(290px, .96fr) !important;
  align-items: stretch !important;
  gap: 32px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.drjam-footer-complete *,
.drjam-footer-complete *::before,
.drjam-footer-complete *::after {
  box-sizing: border-box;
}

.drjam-footer-complete h2,
.drjam-footer-complete p,
.drjam-footer-complete blockquote,
.drjam-footer-complete ul {
  margin-top: 0;
}

.drjam-footer-complete h2 {
  margin-bottom: 8px;
  color: #0d3b73;
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(20px, 1.45vw, 27px);
  font-weight: 800;
  line-height: 1.12;
  text-transform: uppercase;
}

.drjam-footer-complete .brand {
  display: flex;
  justify-content: center;
  margin: 0 auto 14px;
}

.drjam-footer-complete .brand img {
  width: auto !important;
  max-width: 265px !important;
  max-height: 136px !important;
  object-fit: contain;
}

.drjam-footer-identity blockquote {
  max-width: 300px;
  margin: 20px auto;
  color: #123b6c;
  font-family: "Lora", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.42;
  text-align: center;
}

.drjam-footer-divider,
.drjam-footer-heading-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #149cb8;
}

.drjam-footer-divider::before,
.drjam-footer-divider::after,
.drjam-footer-heading-rule::before,
.drjam-footer-heading-rule::after {
  content: "";
  width: 38%;
  height: 2px;
  background: #68b9c5;
}

.drjam-footer-divider i,
.drjam-footer-heading-rule i {
  font-size: 13px;
}

.drjam-footer-contact-list,
.drjam-footer-services ul {
  padding: 0;
  margin-bottom: 0;
  list-style: none;
}

.drjam-footer-contact-list {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.drjam-footer-contact-list li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #173c69;
  font-size: 16px;
  line-height: 1.38;
}

.drjam-footer-contact-list li > i,
.drjam-footer-services li a > i,
.drjam-footer-info-title > span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #edf8fa;
  color: #1299b4;
  font-size: 21px;
}

.drjam-footer-contact-list li span {
  min-width: 0;
}

.drjam-footer-contact-list li span a {
  display: block;
}

.drjam-footer-contact-list a,
.drjam-footer-phone-lines a {
  color: #173c69 !important;
  overflow-wrap: anywhere;
}

.drjam-footer-socials {
  display: flex !important;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.drjam-footer-socials a,
.drjam-footer-socials span {
  width: 42px;
  height: 42px;
  position: relative;
  isolation: isolate;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #119bb2;
  color: #fff !important;
  font-size: 21px;
  box-shadow: 0 5px 14px rgba(17, 155, 178, .18);
  transition: transform .28s ease, background .28s ease, box-shadow .28s ease;
}

.drjam-footer-socials a::after,
.drjam-footer-socials span::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -5px;
  border: 2px solid rgba(17, 155, 178, .34);
  border-radius: inherit;
  opacity: 0;
  transform: scale(.72);
  transition: opacity .28s ease, transform .28s ease;
}

.drjam-footer-socials .drjam-tiktok-icon {
  width: 21px;
  height: 21px;
  display: block;
  fill: currentColor;
}

@media (hover: hover) {
  .drjam-footer-socials a:hover,
  .drjam-footer-socials span:hover {
    background: linear-gradient(135deg, #0e467f 0%, #10aec2 100%);
    box-shadow: 0 10px 24px rgba(14, 70, 127, .28);
    transform: translateY(-5px) scale(1.08);
  }

  .drjam-footer-socials a:hover::after,
  .drjam-footer-socials span:hover::after {
    opacity: 1;
    transform: scale(1);
  }
}

.drjam-footer-socials a:focus-visible {
  outline: 3px solid rgba(17, 155, 178, .3);
  outline-offset: 5px;
  background: linear-gradient(135deg, #0e467f 0%, #10aec2 100%);
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .drjam-footer-socials a,
  .drjam-footer-socials span,
  .drjam-footer-socials a::after,
  .drjam-footer-socials span::after {
    transition: none;
  }
}

.drjam-footer-services {
  padding: 24px 28px;
  border-radius: 14px;
  background: #f3f8fb;
}

.drjam-footer-section-icon {
  margin-bottom: 6px;
  color: #139db5;
  font-size: 28px;
  text-align: center;
}

.drjam-footer-services > h2 {
  margin-bottom: 10px;
  text-align: center;
}

.drjam-footer-heading-rule {
  margin-bottom: 14px;
}

.drjam-footer-heading-rule::before,
.drjam-footer-heading-rule::after {
  width: 68px;
}

.drjam-footer-heading-rule.compact {
  margin: 13px 0 0;
}

.drjam-footer-services li {
  border-bottom: 1px dotted #c9dce4;
}

.drjam-footer-services li a {
  min-height: 48px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  color: #173c69 !important;
  font-size: 16px;
  line-height: 1.25;
}

.drjam-footer-services-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 2px solid #74bbc6;
  color: #188b9f;
  font-family: "Lora", Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.drjam-footer-information {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 8px 0 0;
}

.drjam-footer-information article {
  margin: 0;
}

.drjam-footer-info-title {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.drjam-footer-info-title h2 {
  margin-bottom: 10px;
}

.drjam-footer-info-title > span {
  width: 54px;
  height: 54px;
  font-size: 25px;
}

.drjam-footer-info-title .drjam-footer-heading-rule {
  justify-content: flex-start;
  margin-bottom: 0;
}

.drjam-footer-info-title .drjam-footer-heading-rule::before,
.drjam-footer-info-title .drjam-footer-heading-rule::after {
  width: min(33%, 62px);
}

.drjam-footer-information article > p {
  margin: 12px 0 0;
  color: #17345c;
  font-size: 15px;
  line-height: 1.52;
}

.drjam-footer-phone-lines {
  display: grid;
  gap: 4px;
  padding-left: 68px;
  font-size: 18px !important;
}

.drjam-footer-promise {
  margin-top: auto;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-radius: 10px;
  background: #113f85;
  color: #fff;
}

.drjam-footer-promise > i {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 25px;
}

.drjam-footer-promise p {
  margin: 0;
  color: #fff;
  font-family: "Lora", Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

/* El perfil del doctor incluía otro pie interno; conservamos solo el global. */
.doctor-page > .doctor-footer {
  display: none !important;
}

/* Sin efectos hover, movimiento, sombras o cambios cromáticos. */
.drjam-footer-complete a,
.drjam-footer-complete a:hover,
.drjam-footer-complete a:focus,
.drjam-footer-complete a:active {
  transform: none !important;
  translate: none !important;
  scale: 1 !important;
  filter: none !important;
  opacity: 1 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transition: none !important;
}

.drjam-footer-complete a:hover,
.drjam-footer-complete a:focus,
.drjam-footer-complete a:active {
  background-color: inherit !important;
}

@media (max-width: 1023px) {
  .drjam-footer-complete .drjam-footer-inner {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important;
    gap: 28px !important;
  }

  .drjam-footer-information {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-top: 4px;
  }

  .drjam-footer-promise {
    grid-column: 1 / -1;
  }

  .drjam-footer-phone-lines {
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .drjam-footer.drjam-footer-complete {
    padding: 14px 0 !important;
  }

  .drjam-footer-complete .drjam-footer-inner {
    width: calc(100% - 24px) !important;
    padding: 22px 18px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  .drjam-footer-complete .brand img {
    max-width: 230px !important;
    max-height: 135px !important;
  }

  .drjam-footer-services {
    padding: 22px 18px;
  }

  .drjam-footer-information {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .drjam-footer-contact-list li {
    grid-template-columns: 44px minmax(0, 1fr);
    text-align: left;
  }

  .drjam-footer-promise {
    grid-column: auto;
  }
}

@media (max-width: 479px) {
  .drjam-footer-complete .drjam-footer-inner {
    width: calc(100% - 16px) !important;
    padding: 18px 12px !important;
  }

  .drjam-footer-complete h2 {
    font-size: 20px;
  }

  .drjam-footer-identity blockquote {
    font-size: 18px;
  }

  .drjam-footer-services li a {
    font-size: 15px;
  }

  .drjam-footer-info-title {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }

  .drjam-footer-info-title > span {
    width: 48px;
    height: 48px;
  }
}

/* Encabezado visible durante todo el recorrido de la página. */
.site-header {
  position: sticky !important;
  top: 0;
  z-index: 10000;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 24px rgba(13, 59, 115, .08);
  backdrop-filter: saturate(135%) blur(10px);
  -webkit-backdrop-filter: saturate(135%) blur(10px);
}

body.admin-bar .site-header {
  top: 32px;
}

@media (min-width: 1024px) {
  .fiv-sticky-doctor {
    top: 160px !important;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

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

.drjam-carousel-controls button,
.drjam-testimonials-carousel [data-carousel-prev],
.drjam-testimonials-carousel [data-carousel-next] {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

/* Móviles pequeños y smartphones modernos. */
@media (max-width: 479px) {
  .wrap,
  .header-inner,
  .drjam-footer-inner {
    width: min(100% - 20px, 440px);
  }

  .site-header {
    padding: 6px 0 10px !important;
  }

  .header-inner {
    gap: 7px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  .site-header .brand {
    margin: 0;
    padding: 0;
    line-height: 0;
  }

  .site-header .brand img {
    width: min(150px, 48vw) !important;
    height: auto !important;
    max-height: 82px !important;
    display: block;
    object-fit: contain;
  }

  .header-cta {
    min-height: 44px !important;
    height: 44px !important;
    font-size: 13px;
  }

  .main-nav {
    gap: 6px !important;
    margin-top: 4px !important;
  }

  .nav-link {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 10px;
    font-size: 11.5px;
  }

  .fiv-breadcrumb {
    margin-top: 14px;
    margin-bottom: 10px;
  }

  .fiv-breadcrumb > span {
    max-width: 100%;
    padding: 8px 12px;
    white-space: normal;
    line-height: 1.25;
  }

  .hero-copy h1,
  .fiv-hero h1,
  .icsi-hero h1,
  .ia-hero h1,
  .ovo-hero h1,
  .doctor-hero h1,
  .contact-form-card h1,
  .drjam-module-hero h1 {
    font-size: clamp(30px, 10.5vw, 42px);
    line-height: 1.02;
  }

  .fiv-btn,
  .btn-accent,
  .mega-cta,
  .contact-actions .fiv-btn {
    max-width: 100%;
    min-height: 44px;
    white-space: normal;
    text-align: center;
  }

  .fiv-hero,
  .icsi-hero,
  .ia-hero,
  .ovo-hero,
  .doctor-hero,
  .contact-hero,
  .drjam-module-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .chart-bars,
  .ia-success-chart > div,
  .ovo-chart,
  .drjam-admin-chart {
    max-width: 100%;
  }

  .drjam-testimonials-heading {
    align-items: center;
  }

  .drjam-carousel-controls {
    gap: 8px;
    flex: 0 0 auto;
  }
}

/* En 320-380 px se conserva una sola columna de navegación, pero compacta. */
@media (max-width: 380px) {
  .main-nav {
    grid-template-columns: 1fr !important;
  }

  .site-header .brand img {
    width: 138px !important;
    max-height: 72px !important;
  }
}

/* Tabletas verticales: tarjetas a dos columnas, composiciones principales a una. */
@media (min-width: 768px) and (max-width: 1023px) {
  .wrap,
  .header-inner,
  .drjam-footer-inner {
    width: min(100% - 40px, 940px);
  }

  .fiv-main-layout,
  .fiv-page .fiv-main-layout,
  .icsi-page .fiv-main-layout,
  .ia-page .fiv-main-layout,
  .ovo-page .fiv-main-layout,
  .ropa-page .fiv-main-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .treatment-grid,
  .fiv-choice-grid,
  .drjam-module-steps,
  .drjam-module-videos,
  .team-grid,
  .allies-grid,
  .contact-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .fiv-choice-grid > .wide,
  .contact-trust-strip > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .fiv-sticky-doctor {
    position: static !important;
    width: min(100%, 460px) !important;
    margin: 30px auto 0;
  }
}

/* Laptops: recupera dos columnas justo desde 1024 px. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .wrap,
  .header-inner,
  .drjam-footer-inner {
    width: min(100% - 48px, 1180px);
  }

  .fiv-main-layout,
  .fiv-page .fiv-main-layout,
  .icsi-page .fiv-main-layout,
  .ia-page .fiv-main-layout,
  .ovo-page .fiv-main-layout,
  .ropa-page .fiv-main-layout {
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 28px !important;
    align-items: start;
  }

  .fiv-sticky-doctor {
    position: sticky !important;
    top: 20px;
    width: 300px;
  }

  .fiv-hero,
  .icsi-hero,
  .ia-hero,
  .ovo-hero {
    gap: 34px;
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Escritorios amplios: limita la línea de lectura sin desaprovechar pantalla. */
@media (min-width: 1280px) {
  .wrap,
  .header-inner,
  .drjam-footer-inner {
    width: min(calc(100% - 64px), 1440px);
  }
}

/*
 * FIV con estudio genético:
 * calibrado para 1280, 1536, 1745 y 1920 px.
 */
.genetic-page .fiv-main-column {
  gap: clamp(54px, 4vw, 72px);
}

.genetic-page .genetic-hero > img {
  content: url("../images/single-img-eight.jpg");
  object-position: center;
}

.genetic-page .fiv-choice-copy p,
.genetic-page .fiv-choice-badge {
  text-align: left;
}

.fiv-page .fiv-video-copy p,
.fiv-page .ovo-process-list p,
.fiv-page .ia-process-list p,
.fiv-page .drjam-testimonial-slide p {
  text-align: left;
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .genetic-page .fiv-main-layout {
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 28px !important;
  }

  .genetic-page .fiv-sticky-doctor {
    width: 300px !important;
  }

  .genetic-page .fiv-choice-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .genetic-page .fiv-choice-grid article,
  .genetic-page .fiv-choice-grid article.wide {
    grid-column: auto;
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 0;
    gap: 22px;
    padding: 26px 28px;
    align-items: center;
  }

  .genetic-page .fiv-choice-icon {
    width: 92px;
    height: 92px;
    font-size: 45px;
  }

  .genetic-page .fiv-choice-copy h3 {
    font-size: 28px;
  }

  .genetic-page .fiv-choice-badge {
    width: fit-content;
    max-width: 100%;
    border-radius: 18px;
  }

  .genetic-page .genetic-process .ovo-process-list article {
    grid-template-columns: 52px minmax(0, 1fr) 220px;
  }

  .genetic-page .genetic-benefits-head {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
  }
}

@media (min-width: 1440px) {
  .genetic-page .fiv-main-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
  }

  .genetic-page .fiv-sticky-doctor {
    width: 320px;
  }

  .genetic-page .fiv-choice-grid article {
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 340px;
    gap: 20px;
    padding: 26px;
  }

  .genetic-page .fiv-choice-grid article.wide {
    min-height: 170px;
  }

  .genetic-page .fiv-choice-icon {
    width: 96px;
    height: 96px;
    font-size: 48px;
  }

  .genetic-page .fiv-choice-copy h3 {
    font-size: 28px;
  }
}

/*
 * Sistema común para páginas de tratamientos en escritorio y zoom alto.
 * La tarjeta del doctor comparte únicamente el bloque informativo inicial.
 * Después de Videos relacionados, testimonios, FAQ y ubicación usan 12 columnas.
 */
@media (min-width: 1024px) {
  .fiv-page .fiv-main-layout {
    align-items: start !important;
    row-gap: clamp(54px, 4vw, 72px) !important;
  }

  .fiv-page .fiv-main-column {
    display: contents;
  }

  .fiv-page .fiv-main-column > * {
    grid-column: 1;
    min-width: 0;
  }

  .fiv-page .fiv-main-column > .fiv-related-videos ~ * {
    grid-column: 1 / -1;
    width: 100%;
  }

  .ropa-page .fiv-location {
    grid-column: 1 / -1;
    width: 100%;
  }

  .fiv-page .fiv-sticky-doctor {
    grid-column: 2;
    grid-row: 1;
    align-self: start !important;
  }

  /*
   * En Método ROPA la tarjeta acompaña las cuatro secciones informativas
   * iniciales y finaliza junto al bloque "Tu viaje hacia la maternidad".
   * La sección de ubicación comienza después, nuevamente a ancho completo.
   */
  .ropa-page .ropa-doctor-range {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: stretch;
    min-width: 0;
  }

  .ropa-page .ropa-doctor-range .fiv-sticky-doctor {
    grid-column: auto;
    grid-row: auto;
    width: 100% !important;
  }

  .fiv-page .fiv-choice-copy p,
  .fiv-page .fiv-choice-badge {
    text-align: left;
  }

  /*
   * WordPress puede extraer el <main> del contenido administrable y dejar
   * .ropa-page como un hermano del layout. La clase de plantilla del body es
   * estable y permite que el soporte tenga altura para el recorrido sticky.
   */
  body.page-template-page-metodo-ropa .ropa-doctor-range {
    align-self: stretch !important;
    min-height: 100%;
    height: auto !important;
    overflow: visible !important;
  }

  body.page-template-page-metodo-ropa .ropa-doctor-range > .fiv-sticky-doctor {
    position: sticky !important;
    top: 160px !important;
    align-self: flex-start !important;
  }
}

@media (max-width: 1023px) {
  .ropa-page .ropa-doctor-range {
    width: 100%;
  }
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .fiv-page .fiv-main-layout,
  .ia-page .fiv-main-layout,
  .icsi-page .fiv-main-layout,
  .ovo-page .fiv-main-layout,
  .ropa-page .fiv-main-layout {
    grid-template-columns: minmax(0, 1fr) 300px !important;
    column-gap: 28px !important;
  }

  .fiv-page .fiv-sticky-doctor {
    position: sticky !important;
    top: 20px;
    width: 300px !important;
  }

  .fiv-page .fiv-choice-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fiv-page .fiv-choice-grid article,
  .fiv-page .fiv-choice-grid article.wide {
    grid-column: auto;
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 0;
    gap: 22px;
    padding: 26px 28px;
    align-items: center;
  }

  .fiv-page .fiv-choice-icon {
    width: 92px;
    height: 92px;
    font-size: 45px;
  }

  .fiv-page .fiv-choice-copy h3 {
    font-size: 28px;
  }

  .fiv-page .fiv-choice-badge {
    width: fit-content;
    max-width: 100%;
    border-radius: 18px;
  }

  .fiv-page .ovo-process-list article,
  .fiv-page .ia-process-list article {
    grid-template-columns: 52px minmax(0, 1fr) 220px;
  }

  .fiv-page .genetic-benefits-head {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
  }
}

@media (min-width: 1440px) {
  .fiv-page .fiv-main-layout,
  .ia-page .fiv-main-layout,
  .icsi-page .fiv-main-layout,
  .ovo-page .fiv-main-layout,
  .ropa-page .fiv-main-layout {
    grid-template-columns: minmax(0, 1fr) 320px !important;
    column-gap: 40px !important;
  }

  .fiv-page .fiv-sticky-doctor {
    width: 320px !important;
  }

  .fiv-page .fiv-choice-grid article {
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 340px;
    gap: 20px;
    padding: 26px;
  }

  .fiv-page .fiv-choice-grid article.wide {
    min-height: 170px;
  }

  .fiv-page .fiv-choice-icon {
    width: 96px;
    height: 96px;
    font-size: 48px;
  }

  .fiv-page .fiv-choice-copy h3 {
    font-size: 28px;
  }
}

/*
 * Inseminación artificial.
 * La introducción necesita más ancho que otras secciones: en pantallas de
 * escritorio compactas se apila para mantener líneas cómodas y legibles.
 */
.ia-page .ia-what-copy article p,
.ia-page .ia-candidates li span,
.ia-page .ia-soft-cta p {
  text-align: left;
}

/*
 * El título introductorio ocupa las dos columnas. De este modo la frase no
 * queda comprimida junto a la fotografía en pantallas de escritorio.
 */
.ia-page .ia-what > h2,
.ia-page .ia-what > .fiv-line {
  grid-column: 1 / -1;
}

.ia-page .ia-what > h2 {
  max-width: none;
  font-size: clamp(42px, 4.2vw, 64px);
  line-height: 1;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.ia-page .ia-what > .fiv-line {
  margin-top: -22px;
  margin-bottom: 0;
}

@media (min-width: 1180px) {
  .ia-page .ia-what > h2 {
    white-space: nowrap;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .ia-page .ia-soft-cta {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 24px;
    padding: 38px 32px;
    overflow: hidden;
  }

  .ia-page .ia-soft-cta h2 {
    font-size: 42px;
    line-height: 1.03;
    overflow-wrap: normal;
    word-break: normal;
  }

  .ia-page .ia-soft-cta .fiv-btn {
    width: fit-content;
    max-width: 100%;
  }

  .ia-page .ia-mother-illustration {
    width: 190px;
    height: 190px;
  }

  .ia-page .ia-mother-illustration .fa-female {
    font-size: 92px;
  }

  .ia-page .ia-mother-illustration .fa-circle-o {
    right: 45px;
    bottom: 56px;
    font-size: 46px;
  }
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .ia-page .ia-what {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding: 44px 36px 52px;
  }

  .ia-page .ia-what-copy {
    max-width: none;
  }

  .ia-page .ia-what-copy article {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
    margin-top: 24px;
  }

  .ia-page .ia-what-copy article .fa {
    width: 60px;
    height: 60px;
    font-size: 27px;
  }

  .ia-page .ia-what-copy article p {
    padding-left: 18px;
  }

  .ia-page .ia-what-media {
    min-height: 430px;
  }

  .ia-page .ia-what-media img {
    height: 430px;
  }

  .ia-page .ia-what-media div {
    right: 28px;
    bottom: -18px;
    left: 28px;
  }

  .ia-page .ia-soft-cta {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 28px;
    padding: 44px 40px;
    overflow: hidden;
  }

  .ia-page .ia-soft-cta h2 {
    max-width: 570px;
    font-size: clamp(42px, 4vw, 50px);
    line-height: 1.02;
    overflow-wrap: normal;
    word-break: normal;
  }

  .ia-page .ia-soft-cta p {
    max-width: 540px;
    font-size: 17px;
  }

  .ia-page .ia-soft-cta .fiv-btn {
    width: fit-content;
    max-width: 100%;
  }

  .ia-page .ia-mother-illustration {
    width: 220px;
    height: 220px;
  }

  .ia-page .ia-mother-illustration::before {
    inset: 20px;
    border-width: 3px;
  }

  .ia-page .ia-mother-illustration .fa-female {
    font-size: 108px;
  }

  .ia-page .ia-mother-illustration .fa-circle-o {
    right: 54px;
    bottom: 65px;
    font-size: 55px;
  }

  .ia-page .ia-mother-illustration .fa-heart-o {
    top: 35px;
    right: 35px;
    font-size: 28px;
  }
}

@media (min-width: 1440px) {
  .ia-page .ia-what {
    grid-template-columns: minmax(360px, .9fr) minmax(440px, 1.1fr);
    gap: 42px;
    padding: 52px 40px;
  }

  .ia-page .ia-what-copy article {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 20px;
    margin-top: 28px;
  }

  .ia-page .ia-what-copy article p {
    padding-left: 18px;
  }

  .ia-page .ia-what-media {
    min-height: 560px;
  }

  .ia-page .ia-what-media img {
    height: 540px;
  }

  .ia-page .ia-what-media div {
    right: 28px;
    left: 28px;
  }

  .ia-page .ia-soft-cta {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 42px;
    padding: 52px 56px;
    overflow: hidden;
  }

  .ia-page .ia-soft-cta h2 {
    max-width: 620px;
    font-size: 52px;
    line-height: 1.02;
    overflow-wrap: normal;
    word-break: normal;
  }

  .ia-page .ia-soft-cta p {
    max-width: 570px;
  }

  .ia-page .ia-mother-illustration {
    width: 270px;
    height: 270px;
  }

  .ia-page .ia-mother-illustration .fa-female {
    font-size: 126px;
  }

  .ia-page .ia-mother-illustration .fa-circle-o {
    right: 66px;
    bottom: 80px;
    font-size: 62px;
  }

  .ia-page .ia-mother-illustration .fa-heart-o {
    top: 42px;
    right: 42px;
  }
}

/*
 * Encabezado común del carrusel de testimonios.
 * El título se centra de forma independiente para que los controles laterales
 * no alteren visualmente su eje.
 */
.drjam-testimonials-heading {
  position: relative;
  justify-content: center;
  padding-right: 120px;
  padding-left: 120px;
  text-align: center;
}

.drjam-testimonials-heading > div:first-child {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.drjam-testimonials-heading h2 {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.drjam-testimonials-heading .drjam-carousel-controls {
  position: absolute;
  right: 0;
  bottom: 0;
}

@media (max-width: 767px) {
  .drjam-testimonials-heading {
    flex-direction: column;
    gap: 16px;
    padding-right: 0;
    padding-left: 0;
  }

  .drjam-testimonials-heading .drjam-carousel-controls {
    position: static;
    justify-content: center;
  }
}

/*
 * Motivos para elegir el centro.
 * Unificamos todas las páginas de tratamiento en una lista lineal: una fila
 * completa por motivo, evitando que FIV vuelva a mostrar dos tarjetas altas.
 */
.fiv-page .fiv-choice-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
}

.fiv-page .fiv-choice-grid article,
.fiv-page .fiv-choice-grid article.wide {
  grid-column: auto !important;
  display: grid !important;
  grid-template-columns: 100px minmax(0, 1fr) !important;
  min-height: 0 !important;
  gap: 24px !important;
  padding: 24px 28px !important;
  align-items: center !important;
}

.fiv-page .fiv-choice-icon {
  width: 92px !important;
  height: 92px !important;
  margin: 0 !important;
  font-size: 44px !important;
}

.fiv-page .fiv-choice-copy h3 {
  font-size: clamp(24px, 2.2vw, 30px) !important;
  text-align: left !important;
}

.fiv-page .fiv-choice-copy .fiv-line {
  margin: 12px 0 !important;
}

.fiv-page .fiv-choice-copy p {
  text-align: left !important;
}

.fiv-page .fiv-choice-badge {
  width: fit-content !important;
  max-width: 100% !important;
  min-height: 46px !important;
  margin-top: 14px !important;
  border-radius: 14px !important;
}

@media (max-width: 620px) {
  .fiv-page .fiv-choice-section {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .fiv-page .fiv-choice-grid article,
  .fiv-page .fiv-choice-grid article.wide {
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 20px 16px !important;
  }

  .fiv-page .fiv-choice-icon {
    width: 60px !important;
    height: 60px !important;
    font-size: 30px !important;
  }

  .fiv-page .fiv-choice-copy h3 {
    font-size: 22px !important;
  }

  .fiv-page .fiv-choice-badge {
    width: 100% !important;
    padding: 10px 12px !important;
  }
}

/*
 * CTA de Inseminación Artificial.
 * Mantiene una composición horizontal compacta en escritorio y evita que el
 * título se convierta en una columna estrecha de cuatro o cinco líneas.
 */
.ia-page .ia-soft-cta {
  grid-template-columns: minmax(0, 1fr) 230px !important;
  gap: clamp(24px, 3vw, 40px) !important;
  min-height: 0 !important;
  padding: clamp(34px, 4vw, 48px) !important;
  overflow: hidden;
}

.ia-page .ia-soft-cta > div:first-child {
  min-width: 0;
}

.ia-page .ia-soft-cta h2 {
  max-width: 650px !important;
  font-size: clamp(36px, 3.5vw, 48px) !important;
  line-height: 1.04 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.ia-page .ia-soft-cta p {
  max-width: 540px !important;
  margin-top: 0 !important;
  font-size: 17px !important;
}

.ia-page .ia-soft-cta .fiv-btn {
  width: fit-content !important;
  max-width: 100% !important;
}

.ia-page .ia-soft-cta .ia-mother-illustration {
  width: 210px !important;
  height: 210px !important;
}

.ia-page .ia-soft-cta .ia-mother-illustration .fa-female {
  font-size: 104px !important;
}

.ia-page .ia-soft-cta .ia-mother-illustration .fa-circle-o {
  right: 52px !important;
  bottom: 62px !important;
  font-size: 52px !important;
}

.ia-page .ia-soft-cta .ia-mother-illustration .fa-heart-o {
  top: 34px !important;
  right: 34px !important;
  font-size: 27px !important;
}

@media (max-width: 767px) {
  .ia-page .ia-soft-cta {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
    padding: 28px 20px !important;
  }

  .ia-page .ia-soft-cta h2 {
    font-size: clamp(31px, 10vw, 40px) !important;
  }

  .ia-page .ia-soft-cta .ia-mother-illustration {
    width: 170px !important;
    height: 170px !important;
  }

  .ia-page .ia-soft-cta .fiv-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .ia-page .ia-soft-cta small {
    align-items: flex-start;
  }
}

/*
 * Pie informativo de la página del doctor.
 * Es un bloque estático: ninguna de sus columnas debe heredar los efectos
 * globales de elevación, zoom o brillo definidos para las tarjetas.
 * La clase se reutiliza, por lo que esta corrección se aplica en todas las
 * páginas donde el bloque esté presente.
 */
.doctor-footer article,
.doctor-footer article:hover,
.doctor-footer article:focus-within,
.doctor-footer article img,
.doctor-footer article:hover img,
.doctor-footer article:focus-within img,
.doctor-footer a,
.doctor-footer a:hover,
.doctor-footer a:focus,
.doctor-footer .footer-cta,
.doctor-footer .footer-cta:hover,
.doctor-footer .footer-cta:focus {
  transform: none !important;
  translate: none !important;
  scale: 1 !important;
  filter: none !important;
  opacity: 1 !important;
  transition: none !important;
}

.doctor-footer article:hover,
.doctor-footer article:focus-within {
  border-color: transparent !important;
  box-shadow: none !important;
}

.doctor-footer .footer-cta::after,
.doctor-footer .footer-cta:hover::after,
.doctor-footer .footer-cta:focus::after {
  display: none !important;
  content: none !important;
}

.doctor-footer a:hover,
.doctor-footer a:focus {
  color: inherit !important;
  text-decoration: none !important;
}

.doctor-footer .footer-cta:hover,
.doctor-footer .footer-cta:focus {
  color: #fff !important;
  background: linear-gradient(90deg, var(--teal), var(--navy)) !important;
  box-shadow: 0 14px 28px rgba(13, 59, 115, .16) !important;
}

/*
 * Acciones de la tarjeta lateral del doctor.
 * La hoja base las convertía en una sola columna en móvil y el botón principal
 * quedaba reducido por las reglas globales de enlaces. Conservamos el botón de
 * WhatsApp y la llamada a la acción en una fila, usando todo el ancho disponible.
 */
@media (max-width: 767px) {
  .fiv-doctor-bottom {
    padding-right: 18px;
    padding-left: 18px;
  }

  .fiv-doctor-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 12px;
    align-items: center;
    justify-items: stretch !important;
  }

  /*
   * WordPress puede insertar un <br> entre ambos enlaces al procesar el
   * contenido. Dentro del grid ese salto ocupa la segunda columna y empuja el
   * botón a una fila nueva.
   */
  .fiv-doctor-actions > br {
    display: none !important;
  }

  .fiv-doctor-actions .fiv-wa {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    height: 48px;
    padding: 0;
    justify-self: start;
    border-radius: 50%;
  }

  .fiv-doctor-actions .fiv-btn.small {
    width: 100% !important;
    min-width: 0;
    max-width: none;
    min-height: 52px;
    padding: 10px 14px;
    box-sizing: border-box;
    justify-self: stretch;
    white-space: normal;
    line-height: 1.15;
    text-align: center;
  }
}

/*
 * CTA compartida: "¿Te identificas con alguna de estas situaciones?"
 * Se usa en Inseminación Artificial, FIV-ICSI y Ovodonación. La ilustración
 * anterior reservaba 420px fijos y comprimía el texto cuando existía una
 * columna lateral. Esta distribución conserva una lectura horizontal desde
 * tablet y se apila únicamente en teléfonos.
 */
.ia-soft-cta {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(190px, 30%, 300px) !important;
  gap: clamp(24px, 4vw, 56px) !important;
  align-items: center !important;
  min-height: 0 !important;
  padding: clamp(30px, 4vw, 58px) !important;
  overflow: hidden;
}

.ia-soft-cta > div:first-child {
  min-width: 0;
  max-width: 680px;
}

.ia-soft-cta h2 {
  width: 100% !important;
  max-width: 650px !important;
  margin: 0 !important;
  font-size: clamp(34px, 3vw, 46px) !important;
  line-height: 1.02 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

.ia-soft-cta p {
  width: 100% !important;
  max-width: 610px !important;
  margin: 24px 0 0 !important;
  font-size: clamp(16px, 1.65vw, 19px) !important;
  line-height: 1.55 !important;
}

.ia-soft-cta .fiv-btn {
  display: inline-flex !important;
  width: fit-content !important;
  min-width: 250px;
  max-width: 100% !important;
  min-height: 56px;
  margin: 24px 0 18px !important;
  padding: 13px 24px !important;
  justify-content: center !important;
  white-space: nowrap !important;
  line-height: 1.15 !important;
}

.ia-soft-cta small {
  display: flex !important;
  width: 100%;
  max-width: 570px;
  margin: 0 !important;
  gap: 10px;
  align-items: center !important;
  line-height: 1.35 !important;
}

.ia-soft-cta .ia-mother-illustration {
  width: clamp(190px, 24vw, 300px) !important;
  height: clamp(190px, 24vw, 300px) !important;
  justify-self: center !important;
}

.ia-soft-cta .ia-mother-illustration .fa-female {
  font-size: clamp(92px, 11vw, 138px) !important;
}

.ia-soft-cta .ia-mother-illustration .fa-circle-o {
  right: 25% !important;
  bottom: 29% !important;
  font-size: clamp(46px, 5.5vw, 70px) !important;
}

.ia-soft-cta .ia-mother-illustration .fa-heart-o {
  top: 15% !important;
  right: 15% !important;
  font-size: clamp(24px, 2.8vw, 34px) !important;
}

@media (min-width: 641px) and (max-width: 1023px) {
  .ia-soft-cta {
    grid-template-columns: minmax(0, 1fr) clamp(190px, 31%, 250px) !important;
    gap: clamp(20px, 3.5vw, 34px) !important;
    padding: clamp(28px, 4vw, 42px) !important;
  }

  .ia-soft-cta h2 {
    font-size: clamp(32px, 4.3vw, 42px) !important;
  }

  .ia-soft-cta .ia-mother-illustration {
    width: clamp(185px, 27vw, 245px) !important;
    height: clamp(185px, 27vw, 245px) !important;
  }
}

@media (max-width: 640px) {
  .ia-soft-cta {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 26px !important;
    padding: 30px clamp(18px, 6vw, 28px) !important;
  }

  .ia-soft-cta > div:first-child {
    max-width: none;
  }

  .ia-soft-cta h2 {
    font-size: clamp(32px, 10.5vw, 43px) !important;
    line-height: 1.03 !important;
  }

  .ia-soft-cta h2 br {
    display: none;
  }

  .ia-soft-cta p {
    margin-top: 20px !important;
    font-size: 16px !important;
  }

  .ia-soft-cta .fiv-btn {
    width: 100% !important;
    min-width: 0;
    min-height: 54px;
    padding-right: 16px !important;
    padding-left: 16px !important;
    white-space: normal !important;
  }

  .ia-soft-cta .ia-mother-illustration {
    width: min(66vw, 230px) !important;
    height: min(66vw, 230px) !important;
  }
}

/*
 * Debe permanecer al final de la auditoría responsive:
 * algunos módulos de tratamientos declaran text-align con !important.
 */
html body .drjam-justified-copy {
  text-align: justify !important;
  text-align-last: auto !important;
  text-justify: inter-word;
  overflow-wrap: break-word;
  word-break: normal;
}

/* La clase repetida supera las reglas históricas específicas de cada módulo. */
.drjam-justified-copy.drjam-justified-copy.drjam-justified-copy {
  text-align: justify !important;
  text-align-last: auto !important;
  text-justify: inter-word;
  overflow-wrap: break-word;
  word-break: normal;
}

@media (max-width: 479px) {
  .drjam-justified-copy {
    line-height: 1.65;
  }
}

/*
 * FIV-ICSI: las tres ventajas del hero deben conservar una retícula estable.
 * Evita que el tercer elemento quede aislado al usar zoom o anchos intermedios.
 */
body.page-template-page-fiv-icsi .icsi-hero .icsi-hero-features {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: auto !important;
  align-items: stretch;
  gap: 0 !important;
  width: 100%;
}

body.page-template-page-fiv-icsi .icsi-hero .icsi-hero-features > span {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-row: 1 !important;
  width: auto !important;
  min-width: 0;
  align-content: start;
  justify-items: center !important;
  padding: 0 clamp(6px, 1.4vw, 22px) !important;
  text-align: center !important;
}

body.page-template-page-fiv-icsi .icsi-hero .icsi-hero-features > br {
  display: none !important;
}

body.page-template-page-fiv-icsi .icsi-hero .icsi-hero-features > span:nth-of-type(1) {
  grid-column: 1 !important;
}

body.page-template-page-fiv-icsi .icsi-hero .icsi-hero-features > span:nth-of-type(2) {
  grid-column: 2 !important;
}

body.page-template-page-fiv-icsi .icsi-hero .icsi-hero-features > span:nth-of-type(3) {
  grid-column: 3 !important;
}

@media (min-width: 480px) and (max-width: 767px) {
  body.page-template-page-fiv-icsi .icsi-hero .icsi-hero-features {
    margin-block: 24px !important;
  }

  body.page-template-page-fiv-icsi .icsi-hero .icsi-hero-features > span {
    font-size: 12px;
    line-height: 1.25;
  }

  body.page-template-page-fiv-icsi .icsi-hero .icsi-hero-features .fa {
    width: 58px;
    height: 58px;
    font-size: 28px;
  }
}

@media (max-width: 479px) {
  body.page-template-page-fiv-icsi .icsi-hero .icsi-hero-features {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: repeat(3, auto) !important;
    gap: 12px !important;
  }

  body.page-template-page-fiv-icsi .icsi-hero .icsi-hero-features > span,
  body.page-template-page-fiv-icsi .icsi-hero .icsi-hero-features > span:nth-child(n) {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    grid-column: 1 !important;
    grid-row: auto !important;
    width: 100% !important;
    min-height: 68px;
    padding: 8px 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #d9e8f1;
    align-items: center;
    justify-items: start !important;
    text-align: left !important;
  }

  body.page-template-page-fiv-icsi .icsi-hero .icsi-hero-features > span:last-child {
    border-bottom: 0;
  }
}
