/* Dr. Roberto Dutra — landing
   Paleta tomada del logo: acero (wordmark), salvia (bajada), lavanda (hélice). */

:root {
  --white: #ffffff;
  --ink: #1e2329;
  --ink-soft: #4a5560;
  --steel: #517490;
  --steel-deep: #2c4559;
  --steel-night: #20354a;
  --sage: #a7ae8f;
  --sage-ink: #5d6447;
  --sage-light: #eceee3;
  --lavender: #9c8fd6;
  --lavender-ink: #6b5ba0;
  --lilac-light: #f0eef9;
  --mist: #e4eaf0;
  --line: #d3dbe3;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--steel-deep); text-underline-offset: 3px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--steel-night);
  text-wrap: balance;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--steel-night);
  color: var(--white);
  border-radius: 8px;
}
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  background: var(--steel);
  color: var(--white);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--steel-deep); }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 1.25rem; height: 1.25rem; fill: currentColor; flex: none; }

.btn-small { padding: .65rem 1.15rem; font-size: .9375rem; }

.btn-light { background: var(--white); color: var(--steel-night); }
.btn-light:hover { background: var(--sage-light); }

.link-quiet {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.link-quiet:hover { text-decoration-color: var(--steel); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--steel);
  text-decoration: none;
}
.brand-mark { width: 56px; height: 56px; flex: none; }

/* Wordmark redibujado en tipografía, en lugar de la captura del logo */
.brand-word {
  display: grid;
  justify-items: start;
  line-height: 1;
  color: var(--steel);
}
.bw-dr {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.125em;
  letter-spacing: -.01em;
  margin-left: .9em;
}
.bw-name {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 800;
  font-size: 1.75em;
  line-height: .86;
  letter-spacing: .01em;
  background: linear-gradient(180deg, #5f84a2 0%, var(--steel) 55%, #44647e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bw-tag {
  margin-top: .35em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .56em;
  letter-spacing: 0;
  color: #7c8361;
  white-space: nowrap;
}
.site-header .brand-word { font-size: 17px; }

.nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-size: .9375rem;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: .25rem;
}
.nav a:hover { color: var(--steel-deep); }

@media (max-width: 1000px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
}
@media (max-width: 480px) {
  .header-inner { gap: .75rem; }
  .brand { gap: .4rem; }
  .brand-mark { width: 40px; height: 40px; }
  .site-header .brand-word { font-size: 13px; }
  .site-header .btn-small { padding: .6rem .95rem; font-size: .875rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.1rem, 6.4vw, 5.75rem);
  line-height: .96;
  letter-spacing: -0.02em;
  color: var(--steel-night);
}
.hero-title .line { display: block; }
.hero-title .line + .line { margin-top: .08em; }

.hero-lede {
  margin-top: 1.75rem;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
}

.hero-portrait {
  position: relative;
  justify-self: end;
  width: min(100%, 430px);
  margin-bottom: 3.25rem;
  isolation: isolate;
}
.stage {
  position: absolute;
  inset: 16% 0 0 0;
  z-index: -1;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(120% 70% at 65% 10%, #45677f 0%, transparent 60%),
    linear-gradient(195deg, #3a5970 0%, var(--steel-deep) 50%, var(--steel-night) 100%);
}
/* halo de puntos, como el del logo */
.halo {
  position: absolute;
  inset: -10% -10% 30% -10%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .32) 1.3px, transparent 1.8px);
  background-size: 15px 15px;
  -webkit-mask-image: radial-gradient(closest-side at 62% 40%, #000 0%, transparent 100%);
  mask-image: radial-gradient(closest-side at 62% 40%, #000 0%, transparent 100%);
}
.hero-portrait .portrait {
  position: relative;
  width: 100%;
  height: auto;
}
.hero-portrait figcaption {
  position: absolute;
  top: calc(100% + .9rem);
  left: 0;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- Hélice ---------- */

.helix {
  position: absolute;
  top: -4%;
  bottom: 18%;
  left: 4%;
  width: 26%;
  pointer-events: none;
}
.helix svg { width: 100%; height: 100%; overflow: visible; }
.helix .strand { fill: none; stroke-width: 5; stroke-linecap: round; }
.helix .strand-a { stroke: var(--lavender); }
.helix .strand-b { stroke: var(--sage); }
.helix .back { opacity: .42; }
.helix .rung { stroke: #c9d6e2; stroke-width: 2; stroke-linecap: round; opacity: .35; }
.helix .bead-a { fill: var(--lavender); }
.helix .bead-b { fill: var(--sage); }

.helix.is-drawing .strand {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: draw .5s cubic-bezier(.45, 0, .25, 1) forwards;
  animation-delay: var(--d);
}
.helix.is-drawing .rung,
.helix.is-drawing .bead {
  opacity: 0;
  animation: appear .4s ease forwards;
  animation-delay: var(--d);
}
.helix.is-drawing .rung { --to: .35; }
.helix.is-drawing .bead { --to: 1; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: var(--to); } }

/* titular: entra junto con la hélice, una sola vez */
.js .hero-title .line,
.js .hero-lede,
.js .hero-actions {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards;
}
.js .hero-title .line:nth-child(2) { animation-delay: .18s; }
.js .hero-lede { animation-delay: .38s; }
.js .hero-actions { animation-delay: .5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.js:not(.is-ready) .hero-title .line,
.js:not(.is-ready) .hero-lede,
.js:not(.is-ready) .hero-actions,
.js:not(.is-ready) .helix * { animation-play-state: paused; }

/* ---------- Pantalla de carga ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  background: var(--white);
}
.js .loader { display: grid; }
.js.intro-short .loader { display: none; }
.js:not(.is-ready) body { overflow: hidden; }

.loader-inner {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}
.loader-mark { width: 168px; height: 168px; overflow: visible; }
.loader-word { font-size: 27px; justify-items: center; text-align: center; }
.loader-word .bw-dr { margin-left: 0; }

.loader .m-halo { opacity: 0; animation: appear .9s ease .05s forwards; --to: 1; }
.loader .m-strand {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw .55s cubic-bezier(.45, 0, .25, 1) forwards;
  animation-delay: var(--d);
}
.loader .m-rungs line { opacity: 0; animation: appear .3s ease forwards; animation-delay: var(--d); --to: 1; }
.loader .m-beads circle {
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
  animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) forwards;
  animation-delay: var(--d);
}
.loader-word > span {
  opacity: 0;
  transform: translateY(8px);
  animation: rise .6s cubic-bezier(.2, .7, .2, 1) forwards;
}
.loader-word .bw-dr { animation-delay: .75s; }
.loader-word .bw-name { animation-delay: .87s; }
.loader-word .bw-tag { animation-delay: 1s; }
@keyframes pop { to { transform: scale(1); } }

.is-ready .loader {
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease, visibility 0s linear .6s;
}
.is-ready .loader-inner { transform: translateY(-10px) scale(.97); }

/* ---------- Facts strip ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
  color: var(--ink-soft);
}
.facts strong {
  display: block;
  margin-bottom: .2rem;
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Generic section bits ---------- */

.band { padding-block: var(--section); }
.band-sage { background: var(--sage-light); }
.band-mist { background: var(--mist); }
.band-lilac { background: var(--lilac-light); }

.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head p { margin-top: 1rem; color: var(--ink-soft); }

/* ---------- Voces (síntomas) ---------- */

.voices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem clamp(2rem, 6vw, 5rem);
}
.voices li {
  position: relative;
  padding-left: 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.3;
  color: var(--steel-night);
}
.voices li::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -.12em;
  font-size: 2.6em;
  line-height: 1;
  color: var(--lavender);
  font-style: normal;
}
.voices-close {
  max-width: 44rem;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-top: 1.75rem;
  border-top: 2px solid var(--sage);
  font-size: 1.125rem;
}

/* ---------- Triángulo ---------- */

.triangle-section { padding-block: var(--section); }

.triangle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.triangle {
  --axis: var(--steel);
  position: relative;
  width: min(100%, 470px);
  margin: 4.5rem auto 5rem;
  aspect-ratio: 400 / 360;
}
.triangle[data-active="regenerativa"] { --axis: var(--sage); }
.triangle[data-active="hormonas"] { --axis: var(--lavender); }

.triangle-svg { width: 100%; height: 100%; overflow: visible; }
.tri-fill { fill: var(--white); }
.triangle-svg .edge {
  stroke: var(--line);
  stroke-width: 2;
  transition: stroke .35s ease, stroke-width .35s ease;
}
.triangle-svg .edge.on { stroke: var(--axis); stroke-width: 5; stroke-linecap: round; }
.tri-center {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 500;
  fill: var(--steel-night);
}
.tri-center-sub {
  font-family: var(--sans);
  font-size: 13px;
  fill: var(--ink-soft);
}

.vertex {
  --c: var(--steel);
  --c-ink: var(--steel-deep);
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: .25rem .5rem;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}
.v-integrativa { left: 50%; top: 9.44%; flex-direction: column-reverse; transform: translate(-50%, calc(-100% + 13px)); }
.v-regenerativa { --c: var(--sage); --c-ink: var(--sage-ink); left: 91.5%; top: 89.44%; transform: translate(-50%, -13px); }
.v-hormonas { --c: var(--lavender); --c-ink: var(--lavender-ink); left: 8.5%; top: 89.44%; transform: translate(-50%, -13px); }

.vertex .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--c);
  transition: background-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.vertex .v-name {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--c-ink);
}
.vertex .v-tag { font-size: .875rem; color: var(--ink-soft); line-height: 1.2; }
.vertex:hover .dot { transform: scale(1.12); }
.vertex[aria-selected="true"] .dot {
  background: var(--c);
  transform: scale(1.15);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--c) 22%, transparent);
}

.panels { position: relative; }

.panel {
  --c: var(--steel);
  padding-left: clamp(1.25rem, 3vw, 2rem);
  border-left: 4px solid var(--c);
}
.panel[data-axis="regenerativa"] { --c: var(--sage); }
.panel[data-axis="hormonas"] { --c: var(--lavender); }
.panel.is-entering { animation: panel-in .4s cubic-bezier(.2, .7, .2, 1); }
@keyframes panel-in { from { opacity: 0; transform: translateX(10px); } }

.panel h3 {
  font-family: var(--serif);
  font-size: clamp(1.875rem, 3vw, 2.375rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--steel-night);
}
.panel-lede { margin-top: .75rem; font-size: 1.125rem; font-weight: 500; }
.panel > p:not(.panel-lede) { margin-top: .75rem; color: var(--ink-soft); }
.panel h4 {
  margin-top: 1.75rem;
  margin-bottom: .5rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
}
.panel ul li {
  position: relative;
  padding: .55rem 0 .55rem 1.25rem;
  border-top: 1px solid var(--line);
}
.panel ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
}
.panels-note {
  margin-top: 1.75rem;
  font-size: .875rem;
  color: var(--ink-soft);
}

/* ---------- Motivos ---------- */

.motives {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 3vw, 2.5rem);
}
.motive { padding-top: 1rem; border-top: 2px solid var(--steel); }
.motive h3 { margin-bottom: .6rem; color: var(--steel-night); }
.motive li { padding-block: .2rem; color: var(--ink-soft); font-size: .9688rem; }

/* ---------- Lo que dicen los datos ---------- */

.data {
  padding-block: var(--section);
  background:
    radial-gradient(70% 60% at 78% 45%, #2e4c66 0%, transparent 70%),
    var(--steel-night);
  color: var(--white);
  overflow: hidden;
}
.data h2 { color: var(--white); }

.data-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.data-intro { margin-top: 1rem; max-width: 30rem; color: #c3cfdb; }

.data-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
}
.data-tabs button {
  position: relative;
  overflow: hidden;
  padding: .55rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: transparent;
  color: #d5dee7;
  font: inherit;
  font-size: .9375rem;
  line-height: 1.2;
  flex: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.data-tabs button:hover { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.data-tabs button[aria-selected="true"] {
  background: var(--white);
  border-color: var(--white);
  color: var(--steel-night);
  font-weight: 500;
}
/* barra de avance mientras rota sola */
.data.is-auto .data-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--lavender);
  transform-origin: left;
  animation: dprog 9s linear forwards;
}
@keyframes dprog { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.data-panels { margin-top: 2.25rem; min-height: 23rem; }
.data-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(5rem, 10vw, 8.25rem);
  line-height: .9;
  letter-spacing: -.02em;
  color: #c4bbf5;
  font-variant-numeric: lining-nums tabular-nums;
}
.data-text {
  margin-top: .85rem;
  max-width: 28rem;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.45;
}
.data-note { margin-top: .9rem; max-width: 30rem; color: #b9c6d2; }
.data-legend {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin-top: 1.5rem;
  font-size: .875rem;
  color: #d5dee7;
}
.data-legend .key {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b4a9f2;
  box-shadow: 0 0 0 4px rgba(180, 169, 242, .18);
}
.data-source { margin-top: .6rem; font-size: .8125rem; color: #91a5b8; }
.data-source a { color: #d5dee7; }

.data-stage {
  position: relative;
  height: clamp(440px, 46vw, 620px);
}
.data-canvas { display: block; width: 100%; height: 100%; }
.no-webgl .data-stage { display: none; }
.no-webgl .data-grid { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 860px) {
  .data-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .data-copy { display: contents; }
  .data-tabs {
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .data-tabs button { padding-inline: .75rem; text-align: center; }
  .data-stage { order: 3; height: 300px; margin-top: 1rem; }
  .data-panels { order: 4; margin-top: .5rem; min-height: 0; }
}

/* ---------- Consulta ---------- */

.consult { padding-block: var(--section); }
.consult-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.consult-aside { position: sticky; top: 120px; }
.quote {
  margin-top: 2rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--lavender);
}
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  line-height: 1.25;
  color: var(--lavender-ink);
}
.consult-aside .btn { margin-top: 2.25rem; }

.steps { counter-reset: step; }
.steps > li {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  column-gap: 1.25rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps > li::before {
  content: counter(step);
  grid-row: span 3;
  font-family: var(--serif);
  font-size: 3.25rem;
  font-weight: 500;
  line-height: .9;
  color: var(--steel);
}
.steps h3 { font-size: 1.1875rem; }
.steps p { margin-top: .4rem; color: var(--ink-soft); }

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.pillars li {
  padding: .35rem .85rem;
  border-radius: 999px;
  background: var(--sage-light);
  color: var(--sage-ink);
  font-size: .875rem;
  font-weight: 500;
}

/* ---------- Doctor ---------- */

.doctor-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.doctor-photo { position: sticky; top: 120px; }
.doctor-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.doctor-photo figcaption {
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--lavender-ink);
}

.doctor-role {
  margin-top: .5rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  color: var(--sage-ink);
}
.doctor-body > p:not(.doctor-role):not(.events) { max-width: 40rem; }

.cv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.5rem;
}
.cv h3 {
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--lavender);
  color: var(--steel-night);
}
.cv h3:not(:first-child) { margin-top: 2rem; }
.cv dt { font-weight: 500; font-size: .9688rem; }
.cv dd { margin-bottom: .9rem; font-size: .9375rem; color: var(--ink-soft); }

.timeline li {
  position: relative;
  padding: 0 0 .9rem 1.4rem;
  font-size: .9375rem;
  color: var(--ink-soft);
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--steel);
  background: var(--lilac-light);
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.25em;
  bottom: -.2em;
  width: 1px;
  background: var(--steel);
  opacity: .4;
}
.timeline li:last-child::after { display: none; }
.timeline li:last-child { color: var(--ink); font-weight: 500; }
.timeline li:last-child::before { background: var(--steel); }

.plain li { padding-bottom: .5rem; font-size: .9375rem; color: var(--ink-soft); }

.events {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--lavender) 35%, transparent);
  font-size: .9375rem;
  color: var(--ink-soft);
}

/* ---------- Formación continua ---------- */

.practice { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.practice-head {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 1rem clamp(2rem, 6vw, 5.5rem);
  align-items: end;
  margin-bottom: 2rem;
}
.practice-head h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  line-height: 1.1;
  color: var(--steel-night);
}
.practice-head p { max-width: 40rem; color: var(--ink-soft); font-size: .9688rem; }
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.practice-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.practice-grid figcaption { margin-top: .75rem; font-size: .875rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */

.faq { padding-block: var(--section); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 1.35rem 3rem 1.35rem 0;
  font-weight: 500;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after,
.faq-list summary::before {
  content: "";
  position: absolute;
  right: .5rem;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--steel);
  transition: transform .25s ease;
}
.faq-list summary::before { transform: rotate(90deg); }
.faq-list details[open] summary::before { transform: rotate(0deg); }
.faq-list summary:hover { color: var(--steel-deep); }
.faq-list details p {
  padding: 0 3rem 1.5rem 0;
  max-width: 42rem;
  color: var(--ink-soft);
}

/* ---------- Contacto ---------- */

.contact {
  padding-block: var(--section);
  background: var(--steel-deep);
  color: var(--white);
}
.contact h2 { color: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: stretch;
}
.contact-copy > p { margin-top: 1rem; margin-bottom: 2rem; max-width: 30rem; color: #d5dee7; }
.contact-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.contact-data dt { font-size: .875rem; color: var(--sage); font-weight: 500; }
.contact-data dd { margin-top: .25rem; font-size: .9688rem; line-height: 1.55; }
.contact-data a { color: var(--white); }

.map {
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--steel-night);
}
.map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 2rem 6rem;
  background: var(--steel-night);
  color: #b9c6d2;
  font-size: .875rem;
}
.footer-inner { display: grid; gap: .5rem; }
.site-footer strong { color: var(--white); font-weight: 500; }
.disclaimer { max-width: 46rem; }
.credit { margin-top: .75rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.credit a { color: var(--white); }

/* ---------- WhatsApp flotante ---------- */

.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(32, 53, 74, .28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .motives { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doctor-grid, .faq-grid, .contact-grid, .consult-grid { grid-template-columns: minmax(0, 1fr); }
  .doctor-photo, .consult-aside { position: static; }
  .doctor-photo { max-width: 460px; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-portrait { justify-self: center; width: min(86%, 380px); }
  .practice-head { grid-template-columns: minmax(0, 1fr); }
  .triangle-layout { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .voices { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .motives { gap: 2rem 1.25rem; }
  .practice-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: .5rem;
  }
  .practice-grid figure { scroll-snap-align: start; }
  .motive li { font-size: .875rem; }
  .cv { grid-template-columns: minmax(0, 1fr); }
  .contact-data { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .triangle { width: 100%; margin: 4rem auto 4.5rem; }
  .vertex .v-name { font-size: 1.375rem; }
  .vertex .v-tag { font-size: .75rem; }
  .v-regenerativa { transform: translate(-72%, -13px); }
  .v-hormonas { transform: translate(-28%, -13px); }
  .tri-center { font-size: 44px; }
  .steps > li { grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 1rem; }
  .steps > li::before { font-size: 2.5rem; }
  .faq-list summary { padding-right: 2.5rem; }
  .faq-list details p { padding-right: 0; }
}

@media (min-width: 861px) {
  .wa-float { display: none; }
  .site-footer { padding-bottom: 2.5rem; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
  }
}
