:root {
  --navy: #0D3B73;
  --navy-deep: #082f5f;
  --ink: #0D3B73;
  --teal: #16A7C9;
  --teal-dark: #0d8fb0;
  --soft: #F5FBFF;
  --line: #dfe8f3;
  --text: #1c3158;
  --muted: #5d6a80;
  --shadow: 0 10px 26px rgba(12, 49, 99, .12);
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-subtitle: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Poppins', Arial, Helvetica, sans-serif;
}

/* Shared motion and interaction polish. */
body.drjam-motion .drjam-reveal {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(32px) scale(.988);
  transition:
    opacity .72s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms),
    filter .72s ease var(--reveal-delay, 0ms),
    transform .72s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms);
  will-change: opacity, filter, transform;
}

body.drjam-motion .drjam-reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
  will-change: auto;
}

.btn,
.fiv-btn,
.header-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.btn::after,
.fiv-btn::after,
.header-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -40%;
  left: -65%;
  width: 42%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent);
  transform: skewX(-20deg);
  transition: left .65s ease;
}

.btn:hover::after,
.fiv-btn:hover::after,
.header-cta:hover::after,
.btn:focus-visible::after,
.fiv-btn:focus-visible::after,
.header-cta:focus-visible::after {
  left: 125%;
}

.story-card,
.fiv-card-grid article,
.contact-reviews article,
.doctor-page article {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

@media (hover: hover) {

  .story-card:hover,
  .fiv-card-grid article:hover,
  .contact-reviews article:hover,
  .doctor-page article:hover {
    transform: translateY(-6px);
    border-color: rgba(23, 165, 196, .42);
    box-shadow: 0 18px 38px rgba(13, 59, 115, .14);
  }

  .fiv-wide-img,
  .story-card img,
  .doctor-page article img,
  .contact-page section img {
    transition: transform .55s cubic-bezier(.2, .7, .2, 1), filter .55s ease;
  }

  .fiv-wide-img:hover,
  .story-card:hover img,
  .doctor-page article:hover img,
  .contact-page section:hover img {
    transform: scale(1.025);
    filter: saturate(1.06) contrast(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  body.drjam-motion .drjam-reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

.drjam-footer {
  background: #f5fbff;
  border-top: 1px solid #d9edf6;
  padding: 34px 0;
}

.drjam-footer-inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.drjam-footer .brand img {
  max-width: 190px;
}

.drjam-footer p {
  margin: 0;
  color: #0d3b73;
  font-weight: 600;
}

.drjam-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.drjam-footer-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0d3b73;
  font-weight: 700;
  text-decoration: none;
}

.drjam-footer-actions .fa {
  color: #16a7c9;
}

@media (max-width: 900px) {
  .drjam-footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .drjam-footer-actions {
    justify-content: center;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

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

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

.wrap {
  width: min(100% - 96px, 1560px);
  margin: 0 auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
}

h3,
.hero-copy>p,
.hero-intro p,
.lead-form>p,
.gift-card strong,
.gift-card span,
.promo-inner p,
.final-inner p {
  font-family: var(--font-subtitle);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  min-height: 54px;
  padding: 0 34px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 53, 112, .12);
}

.btn-primary {
  background: var(--navy);
}

.btn-accent {
  background: linear-gradient(90deg, var(--teal), #0f94b6);
}

.site-header {
  position: relative;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #edf1f6;
}

.header-inner {
  min-height: 136px;
  display: grid;
  grid-template-columns: 300px minmax(640px, 1fr) 300px;
  align-items: center;
  gap: 34px;
}

.brand {
  justify-self: start;
}

.brand img {
  width: 300px;
  height: 130px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 100%;
}

.nav-item {
  display: flex;
}

.nav-link {
  min-width: 160px;
  min-height: 84px;
  padding: 0 20px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-left: 1px solid #e1e8f0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}

.nav-link:last-child {
  border-right: 1px solid #e1e8f0;
}

.nav-link .fa {
  color: var(--teal);
  font-size: 29px;
  line-height: 1;
}

.nav-toggle-icon {
  display: none;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--teal-dark);
  background: var(--soft);
}

.header-cta {
  justify-self: end;
  min-width: 292px;
  min-height: 62px;
  border-radius: 999px;
  font-size: 18px;
  box-shadow: 0 10px 22px rgba(13, 59, 115, .18);
}

.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  padding: 6px 0 32px;
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
  box-shadow: 0 18px 34px rgba(13, 59, 115, .08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.mega-column {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 52px 10px;
  border-left: 1px solid #dfe8f3;
}

.mega-column:last-child {
  border-right: 1px solid #dfe8f3;
}

.mega-column img {
  width: 138px;
  height: 138px;
  object-fit: cover;
  border: 3px solid var(--teal);
  border-radius: 50%;
}

.mega-badge {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -24px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  border: 3px solid #fff;
  font-size: 22px;
}

.mega-column h3 {
  min-height: 58px;
  margin-top: 12px;
  color: var(--teal-dark);
  text-align: center;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .04em;
}

.mega-line {
  width: 54px;
  height: 3px;
  margin: 0px 0 4px;
  background: var(--teal);
  border-radius: 999px;
}

.mega-column a {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}

.mega-column a .fa {
  color: var(--teal-dark);
  font-size: 23px;
  text-align: center;
}

.mega-column a:hover,
.mega-column a:focus {
  color: var(--teal-dark);
}

.mega-feature p {
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 24px;
}

.mega-feature .mega-cta {
  display: inline-grid;
  grid-template-columns: 42px 1fr;
  min-height: 68px;
  margin-top: auto;
  padding: 0 24px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--teal), #0f94b6);
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(13, 59, 115, .15);
}

.mega-feature .mega-cta .fa {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink);
  font-size: 27px;
  font-weight: 500;
  white-space: nowrap;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.phone-link .fa {
  color: var(--teal);
  width: 42px;
  height: 42px;
  border: 2px solid rgba(22, 167, 201, .45);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.divider {
  height: 36px;
  width: 2px;
  background: #cbd4df;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 648px;
  background: linear-gradient(90deg, #fff 0%, #fff 37%, rgba(255, 255, 255, .72) 50%, rgba(255, 255, 255, .34) 66%, #f4f6fa 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #f5f7fa;
  background-image:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .96) 15%, rgba(255, 255, 255, .72) 31%, rgba(255, 255, 255, .12) 49%, rgba(255, 255, 255, .08) 68%, rgba(242, 244, 248, .92) 100%),
    url("../images/fondo.png");
  background-position: center, center 42%;
  background-size: 100% 100%, auto 100%;
  background-repeat: no-repeat;
  opacity: 1;
}

.hero-grid {
  position: relative;
  min-height: 648px;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 520px;
  gap: 60px;
  align-items: center;
  padding: 28px 0;
}

.hero-copy h1 {
  font-size: clamp(46px, 5vw, 78px);
  line-height: .98;
  max-width: 650px;
  margin-bottom: 28px;
}

.hero-copy>p,
.hero-intro p {
  max-width: 690px;
  color: var(--text);
  font-size: 23px;
  font-weight: 600;
  margin-bottom: 26px;
}

.hero-intro p+p {
  margin-top: 14px;
}

.gift-card {
  width: min(100%, 535px);
  min-height: 98px;
  background: rgba(255, 255, 255, .93);
  border: 1px solid #e8eef6;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 104px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 20px 28px;
  margin-bottom: 32px;
}

.gift-card .fa {
  grid-row: 1 / 3;
  color: var(--teal);
  font-size: 50px;
}

.gift-card strong {
  color: var(--teal-dark);
  font-size: 27px;
  font-weight: 600;
}

.gift-card span {
  color: var(--ink);
  font-size: 25px;
  font-weight: 500;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 590px;
}

.trust-row article {
  min-height: 145px;
  text-align: center;
  padding: 0 18px;
  border-right: 1px solid #e7edf4;
}

.trust-row article:last-child {
  border-right: 0;
}

.trust-row .fa {
  width: 76px;
  height: 76px;
  border: 1px solid #e7edf4;
  border-radius: 50%;
  color: var(--teal);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin-bottom: 12px;
  box-shadow: 0 8px 18px rgba(12, 49, 99, .08);
}

.trust-row span {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.lead-form {
  background: rgba(255, 255, 255, .95);
  border: 1px solid #dfe5ee;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 30px 38px 24px;
}

.lead-form h2 {
  text-align: center;
  font-size: 38px;
  line-height: 1.05;
  margin-bottom: 8px;
}

.lead-form>p {
  color: var(--text);
  text-align: center;
  font-weight: 500;
  margin-bottom: 22px;
}

.lead-form label {
  display: block;
  margin-bottom: 12px;
}

.lead-form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  border: 2px solid #e1e5eb;
  border-radius: 7px;
  color: var(--text);
  background: #fff;
  padding: 0 18px;
  font: 500 15px var(--font-body);
  outline-color: var(--teal);
}

.lead-form textarea {
  min-height: 72px;
  resize: vertical;
  padding-top: 16px;
}

.lead-form .btn {
  width: 100%;
  font-size: 19px;
  margin-top: 4px;
}

.lead-form small {
  display: block;
  text-align: center;
  color: var(--muted);
  font-weight: 500;
  margin-top: 14px;
}

.lead-form small .fa {
  color: var(--teal);
  margin-right: 8px;
}

.promo-bar,
.final-cta {
  background: var(--navy);
  color: #fff;
}

.promo-inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 34px;
  padding-left: 150px;
}

.promo-inner .fa {
  font-size: 46px;
  color: #fff;
}

.promo-inner p,
.final-inner p {
  color: #fff;
  font-size: 29px;
  font-weight: 600;
  line-height: 1.15;
}

.section {
  padding: 20px 0 26px;
}

.section h2 {
  text-align: center;
  font-size: 36px;
  line-height: 1.1;
}

.title-line {
  width: 58px;
  height: 4px;
  background: var(--teal);
  margin: 12px auto 22px;
  border-radius: 10px;
}

.title-line.left {
  margin-left: 0;
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: stretch;
  gap: 14px;
}

.treatment-grid article {
  min-width: 0;
  min-height: 210px;
  text-align: center;
  padding: 0;
  border: 1px solid #e2ebf3;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
  box-shadow: 0 8px 24px rgba(12, 49, 99, .07);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.treatment-grid article:last-child {
  border-right: 1px solid #e2ebf3;
}

.treatment-grid article:hover,
.treatment-grid article:focus-within {
  border-color: rgba(23, 165, 196, .5);
  box-shadow: 0 14px 32px rgba(12, 49, 99, .13);
  transform: translateY(-5px);
}

.treatment-grid article>a {
  display: flex;
  min-height: 210px;
  height: 100%;
  padding: 22px 12px 18px;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.treatment-icon {
  position: relative;
  display: block;
  width: 104px;
  height: 88px;
  margin-bottom: 12px;
  border-radius: 0;
  background: transparent;
  transition: transform .25s ease;
}

.treatment-grid article:hover .treatment-icon,
.treatment-grid article:focus-within .treatment-icon {
  background: transparent;
  transform: scale(1.06);
}

.treatment-grid .treatment-icon img {
  display: block;
  width: 80px;
  height: 80px;
  max-width: 100%;
  object-fit: contain;
  margin: 4px auto;
}

.treatment-grid .treatment-icon .fa {
  color: var(--teal);
  font-size: 42px;
  margin: 0;
  transition: color .25s ease;
}

.treatment-grid article:hover .treatment-icon .fa,
.treatment-grid article:focus-within .treatment-icon .fa {
  color: #fff;
}

.treatment-grid h3 {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 12px;
}

.treatment-more {
  margin-top: auto;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(23, 165, 196, .09);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  transition: color .25s ease, background-color .25s ease;
}

.treatment-grid article:hover .treatment-more,
.treatment-grid article:focus-within .treatment-more {
  color: #fff;
  background: var(--teal);
}

.proof {
  padding-top: 18px;
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 8px;
}

.panel {
  min-height: 428px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(12, 49, 99, .08);
  background: #fff;
}

.results-card {
  padding: 28px 44px 30px;
}

.results-card h2,
.doctor-card h2 {
  text-align: left;
  font-size: 39px;
}

.results-card>p {
  text-align: center;
  font-weight: 500;
  max-width: 640px;
  margin: 0 auto 26px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-bottom: 26px;
}

.stats div {
  display: grid;
  grid-template-columns: 96px auto;
  align-items: center;
}

.stats .fa {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 39px;
  grid-row: 1 / 3;
}

.stats strong {
  color: var(--teal);
  font-size: 62px;
  line-height: .9;
  font-weight: 700;
}

.stats span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.mini-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mini-facts span {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #f2f7ff;
  color: var(--ink);
  font-weight: 600;
  border-radius: 6px;
}

.mini-facts b {
  color: var(--teal);
  font-size: 47px;
  line-height: .9;
}

.mini-facts .fa {
  color: var(--teal);
  font-size: 34px;
  flex: 0 0 auto;
}

.doctor-card {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 428px;
  background: var(--soft);
}

.doctor-text {
  position: relative;
  z-index: 2;
  width: min(62%, 620px);
  padding: 36px 0 28px 40px;
}

.doctor-text p {
  color: var(--text);
  font-weight: 500;
  margin-bottom: 24px;
}

.doctor-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 17px;
  font-weight: 500;
}

.doctor-text li::before {
  content: "\f00c";
  font-family: FontAwesome;
  color: #fff;
  background: #1b9bd7;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  margin-right: 14px;
  font-size: 13px;
}

.doctor-card img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 38%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

.stories {
  position: relative;
  padding-top: 18px;
}

.stories .wrap {
  position: relative;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 58px;
}

.story-card {
  min-height: 190px;
  display: grid;
  grid-template-columns: 155px 1fr;
  grid-template-rows: 1fr auto;
  gap: 8px 22px;
  padding: 14px 20px;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(12, 49, 99, .07);
  background: #fff;
}

.story-card img {
  grid-row: 1 / 3;
  width: 145px;
  height: 145px;
  object-fit: cover;
  border-radius: 50%;
}

.story-card blockquote {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
}

.story-card cite {
  color: var(--ink);
  font-style: normal;
  font-weight: 600;
}

.story-card cite span {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.slider-arrow {
  position: absolute;
  top: 58%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid #edf1f6;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 16px rgba(12, 49, 99, .08);
  font-size: 34px;
  cursor: pointer;
}

.slider-arrow.prev {
  left: 0;
}

.slider-arrow.next {
  right: 0;
}

.contact-strip {
  padding: 0 0 0;
}

.contact-grid {
  min-height: 190px;
  display: grid;
  grid-template-columns: 1.08fr .9fr 1fr;
  align-items: center;
  gap: 28px;
  padding: 34px 58px;
  border-radius: 8px 8px 0 0;
  background: var(--soft);
}

.contact-grid article {
  min-height: 120px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-right: 1px solid #d8e2ef;
}

.contact-grid article:last-child {
  border-right: 0;
}

.contact-grid .fa {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  flex: 0 0 auto;
}

.contact-grid .fa.whatsapp {
  background: #4fc34a;
}

.contact-grid strong {
  color: var(--ink);
  display: block;
  font-size: 21px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.contact-grid p {
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
}

.contact-grid .big {
  font-size: 35px;
}

.contact-grid span {
  font-weight: 500;
}

.contact-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 12px;
  padding: 0 24px;
  border: 1px solid #9fb5c8;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-weight: 600;
}

/* Toda la tarjeta de WhatsApp del pie es interactiva. */
.contact-grid .contact-whatsapp-card {
  padding: 0;
}

.contact-grid .contact-card-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  width: 100%;
  min-height: 120px;
  margin: 0;
  padding: 18px 22px;
  color: var(--ink);
  text-decoration: none;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.contact-grid .contact-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: inherit;
}

.contact-grid .contact-card-link .big {
  display: block;
  margin: 3px 0;
  color: var(--ink);
}

.contact-grid .contact-card-link:hover {
  color: var(--ink);
  background: transparent;
  outline: 0;
}

.contact-grid .contact-card-link:focus-visible {
  color: var(--ink);
  background: transparent;
  outline: 3px solid rgba(25, 166, 196, .18);
  outline-offset: -3px;
}

.final-inner {
  min-height: 112px;
  display: grid;
  grid-template-columns: 118px 1fr auto;
  align-items: center;
  gap: 28px;
}

.final-inner>.fa {
  color: rgba(255, 255, 255, .7);
  font-size: 68px;
}

.cta-wide {
  min-width: 500px;
  min-height: 68px;
  border-radius: 999px;
  font-size: 27px;
}

@media (max-width: 1350px) {
  .wrap {
    width: min(100% - 40px, 1180px);
  }

  .header-inner {
    min-height: 126px;
    grid-template-columns: 270px minmax(520px, 1fr) 250px;
    gap: 24px;
  }

  /* .brand img { width: 270px; height: 74px; } */
  .nav-link {
    min-width: 132px;
    min-height: 78px;
    padding: 0 12px;
    font-size: 13px;
  }

  .header-cta {
    min-width: 250px;
    padding: 0 24px;
    font-size: 16px;
  }

  .mega-column {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .promo-inner {
    padding-left: 0;
  }

  .treatment-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 24px;
  }

  .proof-grid,
  .story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .story-grid {
    padding: 0 52px;
  }

  .contact-grid article {
    border-right: 0;
    border-bottom: 1px solid #d8e2ef;
    padding-bottom: 22px;
  }

  .contact-grid article:last-child {
    border-bottom: 0;
  }

  .final-inner {
    grid-template-columns: 70px 1fr;
    padding: 20px 0;
  }

  .cta-wide {
    grid-column: 2;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 0;
  }

  .brand {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
  }

  .brand img {
    object-position: center;
  }

  .main-nav {
    order: 3;
    flex: 1 1 100%;
  }

  .mega-inner {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }

  .mega-column:nth-child(odd) {
    border-left: 1px solid #dfe8f3;
  }

  .mega-column:nth-child(even) {
    border-right: 1px solid #dfe8f3;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 38px 0;
  }

  .lead-form {
    max-width: 620px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .wrap {
    width: min(100% - 24px, 620px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .brand {
    width: 100%;
    justify-content: flex-start;
  }

  .brand img {
    width: 300px;
    height: 68px;
    object-position: left center;
  }

  .main-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-item {
    display: block;
  }

  .has-mega {
    grid-column: 1 / -1;
  }

  .nav-link {
    width: 100%;
    min-width: 0;
    min-height: 74px;
    border: 1px solid #e1e8f0;
    font-size: 13px;
  }

  .header-cta {
    width: 100%;
    min-width: 0;
  }

  .mega-menu {
    position: static;
    display: none;
    width: 100%;
    grid-column: 1 / -1;
    padding: 20px 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }

  .has-mega:hover .mega-menu,
  .has-mega:focus-within .mega-menu {
    display: block;
  }

  .mega-inner {
    grid-template-columns: 1fr;
  }

  .mega-column {
    min-height: 0;
    padding: 18px 8px 26px;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid #dfe8f3;
  }

  .mega-column:last-child {
    border-right: 0;
    border-bottom: 0;
  }

  .mega-column h3 {
    min-height: 0;
    font-size: 19px;
  }

  .mega-column a {
    max-width: 330px;
  }

  .phone-secondary,
  .divider {
    display: none;
  }

  .btn {
    width: 100%;
    padding: 0 18px;
  }

  .hero {
    min-height: 0;
  }

  .hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 43px;
  }

  .hero-copy>p {
    font-size: 18px;
  }

  .gift-card {
    grid-template-columns: 64px 1fr;
    padding: 16px;
  }

  .gift-card .fa {
    font-size: 38px;
  }

  .gift-card strong,
  .gift-card span {
    font-size: 20px;
  }

  .trust-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .trust-row article {
    border-right: 0;
    min-height: 0;
  }

  .lead-form {
    padding: 24px 18px;
  }

  .lead-form h2 {
    font-size: 30px;
  }

  .promo-inner,
  .final-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 0;
  }

  .promo-inner p,
  .final-inner p {
    font-size: 23px;
  }

  .section h2,
  .results-card h2,
  .doctor-card h2 {
    font-size: 31px;
  }

  .treatment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .treatment-grid article {
    padding: 0;
    border-right: 1px solid #e2ebf3;
  }

  .results-card {
    padding: 24px 18px;
  }

  .stats,
  .mini-facts {
    grid-template-columns: 1fr;
  }

  .doctor-card {
    display: grid;
    min-height: 0;
  }

  .doctor-text {
    width: 100%;
    padding: 26px 18px;
  }

  .doctor-card img {
    position: static;
    width: 100%;
    height: 360px;
    object-position: center bottom;
  }

  .story-grid {
    padding: 0;
  }

  .story-card {
    grid-template-columns: 92px 1fr;
    padding: 14px;
  }

  .story-card img {
    width: 88px;
    height: 88px;
  }

  .slider-arrow {
    display: none;
  }

  .contact-grid {
    padding: 24px 18px;
  }

  .contact-grid article {
    align-items: flex-start;
    gap: 16px;
  }

  .contact-grid .fa {
    width: 64px;
    height: 64px;
    font-size: 34px;
  }

  .contact-grid p,
  .contact-grid .big {
    font-size: 21px;
  }

  .cta-wide {
    min-width: 0;
    width: 100%;
    font-size: 20px;
  }
}

/* Ajustes finales para WordPress y responsive */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

main p,
main blockquote,
.drjam-footer p {
  text-align: justify;
  text-justify: inter-word;
  /* hyphens: auto; */
  overflow-wrap: break-word;
}

.lead-form>p,
.gift-card,
.trust-row span,
.stats span,
.mini-facts span,
.contact-grid .big,
.final-inner p {
  text-align: left;
}

.hero-copy h1 {
  font-size: 72px;
}

.section h2,
.results-card h2,
.doctor-card h2 {
  font-size: 35px;
}

.lead-form input,
.lead-form select,
.lead-form textarea,
.btn {
  max-width: 100%;
}

.nav-link span {
  max-width: 100%;
  overflow-wrap: normal;
}

@media (max-width: 1500px) {
  .header-inner {
    grid-template-columns: 260px minmax(560px, 1fr) 260px;
    gap: 22px;
  }

  /* .brand img {
    width: 260px;
    height: 76px;
  } */

  .nav-link {
    min-width: 136px;
    padding-inline: 14px;
  }

  .header-cta {
    min-width: 248px;
    font-size: 16px;
  }
}

@media (max-width: 1100px) {
  .hero {
    background-position: center top;
  }

  .hero-copy h1 {
    font-size: 56px;
  }

  .section h2,
  .results-card h2,
  .doctor-card h2 {
    font-size: 42px;
  }

  .lead-form {
    width: min(100%, 640px);
    margin-inline: auto;
  }

  .proof-grid {
    align-items: stretch;
  }

  .doctor-card img {
    object-fit: contain;
    object-position: right bottom;
  }
}

@media (max-width: 900px) {
  .drjam-footer p {
    text-align: center;
  }

  .story-card blockquote,
  .contact-grid p {
    text-align: left;
  }

  .contact-grid article {
    padding-right: 0;
  }
}

@media (max-width: 700px) {
  .hero-copy h1 {
    font-size: 42px;
    line-height: .98;
  }

  .section h2,
  .results-card h2,
  .doctor-card h2 {
    font-size: 34px;
    line-height: 1.02;
  }

  .hero-copy>p,
  .lead-form>p,
  .results-card>p,
  .doctor-text p {
    font-size: 16px;
  }

  .lead-form .btn {
    min-height: 50px;
    font-size: 15px;
  }

  .treatment-grid {
    gap: 18px 0;
  }

  .treatment-grid h3 {
    font-size: 18px;
  }

  .doctor-card img {
    height: auto;
    max-height: 380px;
    object-fit: contain;
  }

  .story-card {
    grid-template-columns: 1fr;
  }

  .story-card img {
    grid-row: auto;
    width: 100%;
    height: 190px;
    border-radius: 8px;
  }

  .contact-grid article {
    min-height: auto;
  }

  .contact-grid strong {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .wrap {
    width: min(100% - 20px, 420px);
  }

  .brand img {
    width: 230px;
    height: 62px;
  }

  .main-nav {
    grid-template-columns: 1fr;
  }

  .nav-link {
    min-height: 62px;
    flex-direction: row;
    justify-content: flex-start;
  }

  .nav-link .fa {
    width: 34px;
    font-size: 22px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .gift-card {
    grid-template-columns: 52px 1fr;
    gap: 10px 14px;
  }

  .gift-card strong,
  .gift-card span {
    font-size: 17px;
  }

  .treatment-grid {
    grid-template-columns: 1fr;
  }

  .stats strong {
    font-size: 44px;
  }

  .contact-grid article {
    flex-direction: column;
  }

  .final-inner {
    align-items: stretch;
  }
}

/* Home responsive polish: loaded late on purpose to neutralize shared page styles. */
@media (max-width: 920px) {

  html,
  body {
    overflow-x: hidden;
  }

  .wrap {
    width: min(100% - 28px, 760px);
  }

  main p,
  main blockquote,
  .drjam-footer p {
    text-align: left;
    text-justify: auto;
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
  }

  h1,
  h2,
  h3,
  .nav-link,
  .btn {
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
  }

  .site-header {
    padding: 10px 0 16px;
  }

  .header-inner {
    width: min(100% - 28px, 760px);
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: center;
  }

  .brand img {
    width: min(188px, 54vw);
    height: auto;
  }

  .header-cta {
    order: 2;
    width: min(100%, 420px);
    min-width: 0;
    min-height: 44px;
    padding: 0 18px;
    font-size: 15px;
    border-radius: 999px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
    overflow: visible;
  }

  .nav-item,
  .has-mega {
    width: 100%;
    grid-column: auto;
  }

  .has-mega {
    grid-column: 1 / -1;
  }

  .nav-link {
    min-width: 0;
    min-height: 44px;
    width: 100%;
    padding: 0 12px;
    border: 1px solid #dbe8f2;
    border-radius: 8px;
    background: #fff;
    flex-direction: row;
    justify-content: flex-start;
    gap: 9px;
    font-size: 12.5px;
    line-height: 1.2;
    text-align: left;
  }

  .nav-link .fa {
    width: 20px;
    min-width: 20px;
    font-size: 17px;
  }

  .nav-link span {
    white-space: normal;
  }

  .mega-menu {
    width: 100%;
    left: 0;
  }

  .hero {
    padding: 0;
    background-position: center top;
  }

  .hero-grid {
    padding: 30px 0;
    gap: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 8vw, 46px);
    line-height: 1.04;
  }

  .hero-copy>p,
  .lead-form>p,
  .results-card>p,
  .doctor-text p,
  .contact-grid p {
    font-size: 15px;
    line-height: 1.65;
  }

  .gift-card {
    grid-template-columns: 48px 1fr;
    gap: 10px 14px;
    padding: 14px;
  }

  .gift-card .fa {
    font-size: 28px;
  }

  .gift-card strong,
  .gift-card span {
    font-size: 16px;
    line-height: 1.25;
  }

  .trust-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, .78);
    border-radius: 10px;
  }

  .trust-row article {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    align-items: center;
    text-align: left;
  }

  .trust-row .fa {
    width: 52px;
    height: 52px;
    margin: 0;
    font-size: 25px;
  }

  .trust-row span {
    font-size: 16px;
    line-height: 1.35;
  }

  .lead-form {
    padding: 20px 16px;
    border-radius: 10px;
  }

  .lead-form h2 {
    font-size: 30px;
    line-height: 1.08;
  }

  .lead-form input,
  .lead-form select,
  .lead-form textarea {
    min-height: 46px;
    font-size: 14px;
  }

  .lead-form textarea {
    min-height: 92px;
  }

  .section {
    padding: 42px 0;
  }

  .section h2,
  .results-card h2,
  .doctor-card h2 {
    font-size: clamp(30px, 7vw, 42px);
    line-height: 1.06;
  }

  .promo-inner,
  .final-inner {
    min-height: auto;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px 14px;
    align-items: center;
    padding: 18px 14px;
  }

  .promo-inner .fa,
  .final-inner>.fa {
    width: 46px;
    height: 46px;
    font-size: 28px;
  }

  .promo-inner p,
  .final-inner p {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.3;
    text-align: left;
  }

  .promo-inner p br,
  .final-inner p br {
    display: none;
  }

  .treatment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .treatment-grid article {
    min-height: auto;
    padding: 0;
  }

  .treatment-grid .treatment-icon .fa {
    font-size: 38px;
  }

  .treatment-grid h3 {
    font-size: 18px;
    line-height: 1.15;
  }

  .proof-grid,
  .doctor-card,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .results-card {
    padding: 24px 16px;
  }

  .stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
  }

  .stats div {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
    text-align: left;
  }

  .stats .fa {
    width: 58px;
    height: 58px;
    font-size: 28px;
  }

  .stats strong {
    font-size: 42px;
    line-height: .95;
  }

  .stats span {
    font-size: 15px;
    line-height: 1.3;
  }

  .mini-facts span {
    min-height: auto;
    grid-template-columns: 40px 1fr;
    padding: 14px;
    font-size: 15px;
    line-height: 1.35;
  }

  .doctor-text {
    padding: 24px 16px;
  }

  .doctor-card img {
    width: 100%;
    max-height: 340px;
    object-fit: contain;
    object-position: center bottom;
    background: #f5fbff;
  }

  .story-grid {
    gap: 16px;
  }

  .story-card {
    display: block;
    padding: 14px;
  }

  .story-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    margin-bottom: 12px;
  }

  .story-card blockquote {
    font-size: 15px;
    line-height: 1.55;
  }

  .contact-grid {
    padding: 18px;
  }

  .contact-grid article {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
    padding: 0 0 16px;
  }

  .contact-grid .fa {
    width: 54px;
    height: 54px;
    font-size: 27px;
  }

  .contact-grid strong {
    font-size: 17px;
    line-height: 1.25;
  }

  .contact-grid .big {
    font-size: 18px;
    line-height: 1.35;
  }

  .final-inner .cta-wide {
    grid-column: 1 / -1;
    min-height: 52px;
    font-size: 16px;
  }

  .drjam-footer {
    padding: 26px 0 34px;
  }

  .drjam-footer-inner {
    width: min(100% - 28px, 760px);
    padding: 22px 14px;
    border-radius: 8px;
    gap: 14px;
  }

  .drjam-footer .brand img {
    max-width: 180px;
    height: auto;
  }

  .drjam-footer p {
    font-size: 17px;
    line-height: 1.4;
    text-align: center;
  }

  .drjam-footer-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    justify-items: center;
  }
}

.contact-grid p,
.contact-grid span {
  text-align: left;
  text-justify: auto;
  hyphens: none;
  word-spacing: normal;
}

/* La referencia de ubicación es información secundaria y no debe competir
   visualmente con la dirección principal. */
.contact-location-copy {
  min-width: 0;
}

.contact-location-copy p {
  margin: 0;
}

.contact-location-copy p>span,
.contact-location-copy p>em {
  display: block;
}

.contact-location-copy p>span {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  white-space: nowrap;
}

.contact-location-copy p em {
  display: inline-block;
  margin: 2px 0;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.1px;
  white-space: nowrap;
}

@media (max-width: 700px) {

  .contact-location-copy p>span,
  .contact-location-copy p em {
    white-space: normal;
  }
}

/* Touch-friendly treatments menu. */
@media (max-width: 920px) {
  .has-mega>.nav-link {
    position: relative;
    padding-right: 16px;
  }

  .has-mega>.nav-link .nav-toggle-icon {
    display: inline-flex;
    width: 28px;
    min-width: 28px;
    height: 28px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--teal);
    font-size: 18px;
    transition: transform .25s ease, background-color .25s ease;
  }

  .has-mega.is-open>.nav-link {
    color: var(--teal-dark);
    border-color: rgba(22, 167, 201, .55);
    background: #f2fbfe;
  }

  .has-mega.is-open>.nav-link .nav-toggle-icon {
    transform: rotate(180deg);
    background: var(--navy);
  }

  .has-mega>.mega-menu {
    position: static !important;
    display: none !important;
    width: 100% !important;
    max-height: min(72vh, 640px);
    margin-top: 10px;
    padding: 12px !important;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #d8e8f1;
    border-radius: 16px;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: linear-gradient(180deg, #f8fcff 0%, #eef8fc 100%);
    box-shadow: 0 18px 36px rgba(13, 59, 115, .14) !important;
  }

  .has-mega.is-open>.mega-menu {
    display: block !important;
    animation: mobile-menu-in .3s cubic-bezier(.2, .7, .2, 1) both;
  }

  .mega-menu .mega-inner {
    width: 100% !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .mega-menu .mega-column {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid #dbe9f2 !important;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(13, 59, 115, .06);
  }

  .mega-menu .mega-column img {
    width: 84px;
    height: 84px;
    align-self: center;
  }

  .mega-menu .mega-badge {
    width: 36px;
    height: 36px;
    align-self: center;
    margin-top: -18px;
    font-size: 16px;
  }

  .mega-menu .mega-column h3 {
    min-height: 0;
    margin: 10px 0 4px;
    font-size: 17px;
    line-height: 1.2;
    text-align: center;
  }

  .mega-menu .mega-line {
    margin: 6px auto 12px;
  }

  .mega-menu .mega-column>a {
    max-width: none;
    min-height: 42px;
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 9px;
    background: #f6fbfe;
    font-size: 14px;
    line-height: 1.3;
  }

  .mega-menu .mega-column>a:active {
    color: #fff;
    background: var(--teal);
  }

  .mega-menu .mega-feature p {
    margin: 4px 0 12px;
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
  }

  .mega-menu .mega-feature .mega-cta {
    min-height: 52px;
    color: #fff;
    background: linear-gradient(90deg, var(--teal), #0b90b3);
  }

  .header-cta {
    min-height: 50px;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .48);
    color: #fff;
    background: linear-gradient(100deg, #18afd0 0%, #078daf 100%);
    box-shadow: 0 12px 26px rgba(13, 143, 176, .25), inset 0 1px 0 rgba(255, 255, 255, .3);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
  }

  .header-cta .fa {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
  }
}

@keyframes mobile-menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 520px) {

  .wrap,
  .header-inner,
  .drjam-footer-inner {
    width: min(100% - 22px, 460px);
  }

  .site-header {
    padding-top: 10px;
  }

  .hero-grid {
    padding: 28px 0;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .treatment-grid {
    gap: 14px 10px;
  }

  .treatment-grid .treatment-icon .fa {
    font-size: 34px;
  }

  .treatment-grid h3 {
    font-size: 16px;
  }

  .promo-inner,
  .final-inner {
    border-radius: 8px;
  }

  .contact-grid {
    padding: 16px 14px;
  }
}

@media (max-width: 380px) {
  .main-nav {
    grid-template-columns: 1fr !important;
  }

  .hero-copy h1,
  .section h2,
  .results-card h2,
  .doctor-card h2 {
    font-size: 30px;
  }
}

/* Home doctor card: balanced desktop composition. */
@media (min-width: 1101px) {
  .doctor-card {
    min-height: 520px;
    border-color: #dcebf3;
    border-radius: 18px;
    background:
      radial-gradient(circle at 88% 30%, rgba(22, 167, 201, .16), transparent 27%),
      linear-gradient(145deg, #f8fcff 0%, #eef8fc 100%);
    box-shadow: 0 18px 42px rgba(13, 59, 115, .11);
  }

  .doctor-card::before {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -130px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(22, 167, 201, .22);
    border-radius: 50%;
    background: rgba(255, 255, 255, .48);
  }

  .doctor-text {
    width: 66%;
    padding: 40px 18px 38px 42px;
  }

  .doctor-card h2 {
    max-width: 440px;
    margin: 0;
    font-size: clamp(36px, 2.65vw, 43px);
    line-height: 1.03;
    text-wrap: balance;
  }

  .doctor-text p {
    max-width: 340px;
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    text-wrap: pretty;
    hyphens: none;
    word-break: normal;
  }

  .doctor-text ul {
    max-width: 340px;
    gap: 13px;
    font-size: 15px;
    line-height: 1.35;
  }

  .doctor-text li {
    position: relative;
    min-height: 28px;
    padding: 3px 0 0 39px;
    text-align: left;
  }

  .doctor-text li::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    margin: 0;
    box-shadow: 0 6px 14px rgba(27, 155, 215, .2);
  }

  .doctor-card img {
    z-index: 1;
    right: -1%;
    width: 47%;
    height: 95%;
    object-position: right bottom;
    filter: drop-shadow(-12px 12px 18px rgba(13, 59, 115, .12));
  }
}

/* Home lower sections: clearer cards and a more compact contact area. */
@media (min-width: 1050px) {
  .stories {
    padding: 52px 0 60px;
    background: linear-gradient(180deg, #fff 0%, #f7fbfe 100%);
  }

  .story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 0 48px;
  }

  .story-card {
    position: relative;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 26px;
    overflow: hidden;
    border-color: #dce9f2;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff 0%, #f8fcff 100%);
    box-shadow: 0 14px 32px rgba(13, 59, 115, .08);
  }

  .story-card::before {
    content: "\201C";
    position: absolute;
    top: 10px;
    right: 20px;
    color: rgba(22, 167, 201, .13);
    font-family: Georgia, serif;
    font-size: 90px;
    line-height: 1;
  }

  .story-card img {
    position: relative;
    z-index: 1;
    grid-row: auto;
    width: 82px;
    height: 82px;
    margin: 0 0 20px;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(13, 59, 115, .16);
  }

  .story-card blockquote {
    position: relative;
    z-index: 1;
    flex: 1;
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.62;
    text-align: left;
    text-wrap: pretty;
  }

  .story-card cite {
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid #deebf3;
    font-size: 15px;
    line-height: 1.4;
  }

  .contact-grid {
    min-height: 174px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 30px rgba(13, 59, 115, .05);
  }

  .contact-grid article {
    min-height: 0;
    height: 100%;
    display: flex;
    grid-template-columns: none;
    gap: 18px;
    align-items: center;
    padding: 20px;
    border: 1px solid #dceaf2;
    border-radius: 14px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 8px 20px rgba(13, 59, 115, .05);
  }

  .contact-grid article:last-child {
    border: 1px solid #dceaf2;
  }

  .contact-grid .fa {
    width: 68px;
    height: 68px;
    font-size: 34px;
  }

  .contact-grid strong {
    font-size: 18px;
    line-height: 1.25;
  }

  .contact-grid p,
  .contact-grid .big {
    font-size: 16px;
    line-height: 1.25;
  }

  .contact-grid p,
  .contact-grid span {
    margin: 0;
    text-align: left;
    text-justify: auto;
    hyphens: none;
    word-spacing: normal;
  }

  .contact-grid a {
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
  }

  .contact-grid a:hover,
  .contact-grid a:focus-visible {
    color: #fff;
    border-color: var(--teal);
    background: var(--teal);
  }

  .final-inner {
    min-height: 126px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) minmax(320px, 370px);
    gap: 22px;
    align-items: center;
    padding: 22px 0;
  }

  .final-inner>.fa {
    font-size: 52px;
  }

  .final-inner p {
    max-width: 640px;
    margin: 0;
    font-size: clamp(21px, 2vw, 27px);
    line-height: 1.25;
    text-align: left;
    text-wrap: balance;
  }

  .final-inner .cta-wide {
    grid-column: auto;
    width: 100%;
    min-width: 0;
    min-height: 60px;
    padding: 0 24px;
    font-size: 19px;
    white-space: nowrap;
  }

  .drjam-footer {
    padding: 26px 0;
  }

  .drjam-footer-inner {
    grid-template-columns: 180px minmax(260px, 1fr) auto;
    gap: 24px;
  }

  .drjam-footer .brand img {
    max-width: 160px;
  }

  .drjam-footer p {
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
  }
}

/* Compact and balanced desktop header. */
@media (min-width: 1101px) {
  .header-inner {
    min-height: 108px;
    grid-template-columns: 250px minmax(420px, 1fr) 238px;
    gap: 22px;
  }

  /* .brand img {
    width: 240px;
    height: 88px;
  } */

  .main-nav {
    justify-content: center;
  }

  .nav-link {
    min-width: 138px;
    min-height: 72px;
    padding: 0 14px;
    border-radius: 8px;
  }

  .nav-link .fa {
    font-size: 25px;
  }

  .header-cta {
    min-width: 238px;
    min-height: 58px;
    padding: 0 24px;
    white-space: nowrap;
    font-size: 15.5px;
    transition: transform .25s ease, box-shadow .25s ease;
  }

  .header-cta:hover,
  .header-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(13, 59, 115, .24);
  }
}