:root {
  --ivory: #f6f2ea;
  --linen: #dccab8;
  --stone: #d9b9ad;
  --pearl: #fcfbf8;
  --champagne: #b79a61;
  --champagne-deep: #8a7042;
  --taupe: #75746f;
  --text: #24231f;
  --muted: #68665f;
  --sage: #4b533c;
  --forest: #2d3528;
  --rose: #d9b9ad;
  --error: #9c4f45;
  --success: #587c5d;
  --line: rgba(91, 80, 71, 0.18);
  --shadow: 0 24px 70px rgba(82, 70, 58, 0.13);
  --radius: 8px;
}

.kd-os-preview {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(45, 53, 40, 0.96), rgba(75, 83, 60, 0.92)),
    var(--forest);
  color: var(--pearl);
}

.kd-os-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(252, 251, 248, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(252, 251, 248, 0.05) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.32;
}

.ecosystem-layout,
.ecosystem-modules,
.os-hero,
.os-governance,
.os-agent-rules,
.os-module-map,
.os-phase-grid {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
}

.ecosystem-layout {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
}

.kd-os-preview .kicker,
.kd-os-preview h2,
.kd-os-preview p,
.kd-os-preview a {
  color: inherit;
}

.kd-os-preview h2,
.os-hero h1,
.os-section h2 {
  max-width: 880px;
}

.kd-os-preview p {
  max-width: 720px;
  color: rgba(252, 251, 248, 0.76);
}

.ecosystem-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.os-safety-note {
  margin-top: 20px;
  border-left: 3px solid var(--champagne);
  padding-left: 14px;
  font-size: 0.95rem;
}

.os-console,
.os-status-panel {
  border: 1px solid rgba(252, 251, 248, 0.2);
  background: rgba(252, 251, 248, 0.08);
  box-shadow: 0 30px 80px rgba(14, 18, 12, 0.24);
  backdrop-filter: blur(18px);
}

.os-console {
  padding: clamp(20px, 3vw, 34px);
}

.os-console-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(252, 251, 248, 0.16);
  padding-bottom: 16px;
}

.os-console-head span,
.os-status-panel strong {
  color: var(--pearl);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 500;
}

.os-console-head small {
  color: rgba(252, 251, 248, 0.7);
}

.os-operational-flow {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.os-operational-flow li {
  display: grid;
  grid-template-columns: 42px minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(252, 251, 248, 0.12);
  background: rgba(252, 251, 248, 0.07);
  padding: 14px;
}

.os-operational-flow span,
.ecosystem-modules span,
.os-module-map span {
  color: var(--champagne);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.os-operational-flow strong {
  color: var(--pearl);
}

.os-operational-flow em {
  color: rgba(252, 251, 248, 0.68);
  font-style: normal;
}

.os-trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.os-trust-list div {
  border-top: 1px solid rgba(252, 251, 248, 0.18);
  padding-top: 12px;
}

.os-trust-list dt {
  color: rgba(252, 251, 248, 0.62);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.os-trust-list dd {
  margin: 4px 0 0;
  color: var(--pearl);
  font-weight: 800;
}

.ecosystem-modules {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(26px, 4vw, 46px);
}

.ecosystem-modules article,
.os-module-map article,
.os-phase-grid article,
.os-agent-rules article {
  border: 1px solid rgba(75, 83, 60, 0.16);
  background: rgba(252, 251, 248, 0.78);
  padding: clamp(18px, 2.4vw, 28px);
}

.ecosystem-modules article {
  border-color: rgba(252, 251, 248, 0.18);
  background: rgba(252, 251, 248, 0.09);
}

.ecosystem-modules h3,
.ecosystem-modules p {
  color: var(--pearl);
}

.ecosystem-modules p {
  color: rgba(252, 251, 248, 0.7);
}

.os-hero {
  min-height: 76vh;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.64fr);
  align-items: center;
  gap: clamp(34px, 5vw, 86px);
  padding: clamp(72px, 9vw, 142px) clamp(18px, 5vw, 76px);
  background:
    linear-gradient(90deg, rgba(45, 53, 40, 0.98), rgba(75, 83, 60, 0.94) 58%, rgba(246, 242, 234, 0.96) 58%),
    var(--forest);
}

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

.os-hero h1 {
  color: var(--pearl);
  font-size: clamp(4rem, 7vw, 7.7rem);
  line-height: 0.92;
}

.os-hero p {
  max-width: 620px;
  color: rgba(252, 251, 248, 0.78);
}

.os-status-panel {
  align-self: center;
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 420px;
  border-color: rgba(75, 83, 60, 0.2);
  background: rgba(252, 251, 248, 0.86);
  padding: clamp(20px, 3vw, 34px);
  color: var(--forest);
  box-shadow: 0 34px 90px rgba(36, 35, 31, 0.16);
}

.os-status-panel span {
  color: var(--champagne-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.os-status-panel strong,
.os-status-panel p {
  color: var(--forest);
}

.os-status-panel dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.os-status-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(75, 83, 60, 0.15);
  padding-top: 12px;
}

.os-status-panel dd {
  margin: 0;
  font-weight: 800;
}

.os-section {
  padding: clamp(64px, 8vw, 124px) clamp(18px, 5vw, 76px);
}

.os-module-map {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.os-module-map.compact-map {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.os-module-map article,
.os-phase-grid article {
  min-height: 210px;
}

.kd-bots-grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.kd-bots-grid p {
  flex: 1;
}

.agent-action-button {
  min-height: 40px;
  margin-top: 18px;
  padding: 0 14px;
  font-size: 0.86rem;
}

.os-module-map h3,
.os-phase-grid h3,
.os-agent-rules h3 {
  color: var(--forest);
}

.os-module-map p,
.os-phase-grid p,
.os-agent-rules li,
.os-governance p,
.os-legal-note {
  color: var(--muted);
}

.os-governance {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: start;
  background: linear-gradient(135deg, var(--ivory), #eef0e8);
}

.os-agent-rules {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.os-agent-rules ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.os-flow-board {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(75, 83, 60, 0.16);
  background: rgba(75, 83, 60, 0.16);
}

.os-flow-board span {
  display: grid;
  min-height: 116px;
  place-items: center;
  background: var(--pearl);
  color: var(--forest);
  font-weight: 800;
  text-align: center;
}

.os-phase-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.os-phase-grid strong {
  color: var(--champagne-deep);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.os-legal-note {
  margin-top: 24px;
  border-left: 3px solid var(--rose);
  padding-left: 16px;
}

@media (max-width: 1180px) {
  .ecosystem-layout,
  .os-hero,
  .os-governance {
    grid-template-columns: 1fr;
  }

  .ecosystem-modules,
  .os-module-map,
  .os-module-map.compact-map,
  .os-phase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .os-hero {
    background:
      linear-gradient(180deg, rgba(45, 53, 40, 0.98), rgba(75, 83, 60, 0.94) 56%, rgba(246, 242, 234, 0.96) 56%),
      var(--forest);
  }

  .os-flow-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ecosystem-modules,
  .os-module-map,
  .os-module-map.compact-map,
  .os-phase-grid,
  .os-agent-rules,
  .os-trust-list,
  .os-flow-board {
    grid-template-columns: 1fr;
  }

  .os-hero {
    min-height: auto;
    padding: 52px 16px;
    background: linear-gradient(180deg, var(--forest), var(--sage));
  }

  .os-hero h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .os-status-panel {
    min-height: auto;
  }

  .os-operational-flow li {
    grid-template-columns: 1fr;
  }

  .os-section {
    padding: 52px 16px;
  }
}

.ecosystem-section.kd-os-preview {
  background:
    linear-gradient(135deg, rgba(45, 53, 40, 0.97), rgba(75, 83, 60, 0.93)),
    var(--forest);
  color: var(--pearl);
}

.ecosystem-section.kd-os-preview h2,
.ecosystem-section.kd-os-preview h3,
.ecosystem-section.kd-os-preview strong,
.ecosystem-section.kd-os-preview a {
  color: var(--pearl);
}

.ecosystem-section.kd-os-preview p,
.ecosystem-section.kd-os-preview em {
  color: rgba(252, 251, 248, 0.76);
}

.ecosystem-section.kd-os-preview .button.secondary {
  background: var(--pearl);
  color: var(--forest);
}

.ecosystem-section.kd-os-preview .button.ghost {
  border-color: rgba(252, 251, 248, 0.24);
  background: rgba(252, 251, 248, 0.08);
  color: var(--pearl);
}

.ecosystem-section.kd-os-preview .os-console,
.ecosystem-section.kd-os-preview .ecosystem-modules article {
  border-color: rgba(252, 251, 248, 0.18);
  background: rgba(252, 251, 248, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(185, 154, 98, 0.65);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(330px, auto) 1fr auto;
  gap: clamp(16px, 2vw, 28px);
  align-items: center;
  padding: 12px clamp(16px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 244, 236, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  min-width: min(470px, 40vw);
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-symbol {
  display: block;
  flex: 0 0 auto;
  width: 62px;
  height: 48px;
  background: url("assets/brand/kd-logo-gold-nav.png") center / contain no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.brand strong {
  display: block;
  color: var(--champagne-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 1.72vw, 2.05rem);
  font-weight: 500;
  line-height: 0.94;
  white-space: nowrap;
}

.brand small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
}

.main-nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--text);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-cta {
  border: 1px solid rgba(185, 154, 98, 0.54);
  padding: 0 16px;
  background: var(--pearl);
  color: var(--champagne-deep);
  font-weight: 700;
}

.button {
  gap: 8px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 700;
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(82, 70, 58, 0.14);
}

.button.primary {
  background: linear-gradient(135deg, #b99a62, #8c7043);
  color: #fffdfa;
}

.button.secondary {
  border-color: rgba(185, 154, 98, 0.48);
  background: #fffdfa;
  color: var(--champagne-deep);
}

.button.ghost {
  border-color: rgba(91, 80, 71, 0.2);
  background: rgba(255, 253, 250, 0.62);
  color: var(--text);
}

.hero-luxury {
  position: relative;
  display: grid;
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: stretch;
  background: var(--linen);
}

.doctor-led-hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 0.78fr);
  gap: clamp(18px, 4vw, 54px);
  align-items: center;
  padding: clamp(34px, 6vw, 82px) clamp(16px, 5vw, 72px);
  background:
    radial-gradient(circle at 82% 18%, rgba(185, 154, 98, 0.16), transparent 28%),
    linear-gradient(120deg, #fbf7f0, #eee2d3);
}

.hero-image {
  min-height: 620px;
  margin: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-hero img {
  object-position: center top;
}

.doctor-hero-card {
  display: grid;
  gap: 14px;
  align-self: center;
  max-width: 470px;
  justify-self: center;
}

.doctor-hero-card figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(185, 154, 98, 0.42);
  border-radius: var(--radius);
  background: var(--pearl);
  box-shadow: var(--shadow);
}

.doctor-hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.doctor-hero-card dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}

.doctor-hero-card dl div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(91, 80, 71, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.76);
  padding: 10px 12px;
}

.doctor-hero-card dt {
  color: var(--champagne-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doctor-hero-card dd {
  margin: 0;
  color: var(--text);
}

.doctor-hero-card.media-composition {
  position: relative;
  width: min(660px, 100%);
  max-width: 660px;
  min-height: auto;
  grid-template-columns: minmax(260px, 1fr) minmax(178px, 0.62fr);
  align-content: center;
  justify-self: end;
  isolation: isolate;
}

.media-composition .portrait-frame {
  position: relative;
  z-index: 2;
  grid-column: 1;
  width: 100%;
  justify-self: end;
}

.media-composition .portrait-frame img {
  display: block;
  min-height: 0;
}

.media-composition > dl {
  position: relative;
  z-index: 3;
  grid-column: 1 / -1;
  width: 100%;
  justify-self: end;
}

.hero-method-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-width: 0;
  border: 1px solid rgba(185, 154, 98, 0.34);
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.68);
  box-shadow: 0 18px 48px rgba(82, 70, 58, 0.1);
  padding: 24px;
}

.hero-method-panel .mini-label {
  margin: 0;
}

.hero-method-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-method-panel li {
  border: 1px solid rgba(185, 154, 98, 0.38);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 253, 250, 0.94), rgba(239, 229, 216, 0.72));
  color: var(--text);
  font-size: 1rem;
  font-weight: 760;
  padding: 14px 15px;
}

.method-panel-title {
  display: block;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.5vw, 1.34rem);
  font-weight: 500;
  line-height: 1.22;
}

.method-panel-heading {
  display: block;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 3vw, 3.25rem);
  font-weight: 500;
  line-height: 0.95;
}

.hero-contact-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  margin: 0;
  border: 1px solid rgba(185, 154, 98, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 253, 250, 0.94), rgba(239, 229, 216, 0.76));
  box-shadow: 0 18px 48px rgba(82, 70, 58, 0.1);
  padding: 18px;
  font-style: normal;
}

.contact-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  border-bottom: 1px solid rgba(91, 80, 71, 0.14);
  padding-bottom: 12px;
}

.contact-title span {
  color: var(--champagne-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-title strong {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 500;
}

.hero-contact-card dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-contact-card dl div {
  grid-template-columns: minmax(82px, auto) minmax(0, 1fr);
}

.hero-contact-card dl div:nth-child(n + 3) {
  grid-column: 1 / -1;
}

.hero-contact-card dd {
  min-width: 0;
}

.hero-contact-card a {
  color: inherit;
  text-decoration: none;
}

.hero-contact-card a:hover {
  color: var(--champagne-deep);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 7vw, 96px) clamp(24px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(248, 244, 236, 0.72), rgba(248, 244, 236, 1) 42%),
    var(--ivory);
}

.doctor-led-hero .hero-content {
  padding: 0;
  background: transparent;
}

.kicker {
  margin: 0 0 12px;
  color: var(--champagne-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 780px;
  font-size: clamp(3.1rem, 6.7vw, 6.8rem);
}

.hero-name-gold {
  max-width: none;
  color: var(--champagne-deep);
  white-space: nowrap;
  background: linear-gradient(135deg, #d4b878, #8c7043 62%, #b99a62);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 12px 36px rgba(140, 112, 67, 0.12);
  font-size: 4.58rem;
}

h2 {
  max-width: 880px;
  font-size: clamp(2rem, 4.3vw, 4.3rem);
}

h3 {
  font-size: clamp(1.28rem, 2vw, 1.85rem);
}

p {
  margin: 0;
}

.hero-lead {
  max-width: 670px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.hero-actions,
.center-action,
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.signature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.signature-strip span {
  border-left: 2px solid var(--champagne);
  padding: 8px 13px;
  background: rgba(255, 253, 250, 0.72);
  color: var(--muted);
  font-size: 0.92rem;
}

.safety-ribbon {
  margin: -24px clamp(16px, 5vw, 72px) 0;
  padding: 16px 18px;
  border: 1px solid rgba(156, 79, 69, 0.22);
  border-left: 4px solid var(--rose);
  border-radius: var(--radius);
  background: #fff8f5;
  color: #68463f;
  position: relative;
  z-index: 3;
}

.editorial-section,
.page-hero,
.treatment-hero {
  padding: clamp(56px, 8vw, 118px) clamp(16px, 5vw, 76px);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  background: linear-gradient(180deg, #fbf7f0, var(--ivory));
}

.page-hero picture,
.treatment-hero picture,
.authority-section picture {
  display: block;
  width: 100%;
}

.page-hero img,
.treatment-hero img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-hero img.booking-human-photo {
  aspect-ratio: 16 / 10;
  object-position: center;
}

.page-hero img[src*="instagram-capture"],
.treatment-hero img[src*="instagram-capture"] {
  width: min(460px, 100%);
  aspect-ratio: 4 / 5;
  justify-self: center;
  object-fit: cover;
  object-position: center top;
  background: linear-gradient(135deg, #fbf7f0, #eee2d3);
}

.page-hero img[src*="-instagram"],
.treatment-hero img[src*="-instagram"],
.treatment-card img[src*="-instagram"],
.case-card-real img[src*="-instagram"] {
  object-fit: contain;
  object-position: center;
  background: linear-gradient(135deg, #fbf7f0, #efe5d7);
}

.page-hero img[src*="-kd-frame"],
.treatment-hero img[src*="-kd-frame"],
.treatment-card img[src*="-kd-frame"],
.case-card-real img[src*="-kd-frame"],
.treatment-detail-panel img[src*="-kd-frame"] {
  object-fit: contain;
  object-position: center;
  background: linear-gradient(135deg, #fbf7f0, #efe5d7);
}

.page-hero img[src*="-instagram"],
.treatment-hero img[src*="-instagram"],
.case-card-real img[src*="-instagram"] {
  aspect-ratio: 3 / 4;
}

.page-hero img[src*="-kd-frame"],
.treatment-hero img[src*="-kd-frame"] {
  aspect-ratio: 4 / 5;
  max-height: min(820px, 86vh);
  padding: clamp(8px, 1vw, 14px);
  box-shadow: 0 26px 86px rgba(105, 83, 42, 0.14);
}

.page-hero img[src*="fullbody"],
.treatment-hero img[src*="fullbody"],
.doctor-editorial-portrait img[src*="fullbody"] {
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center bottom;
  background: linear-gradient(135deg, #fbf7f0, #efe5d7);
  padding: clamp(8px, 1vw, 16px);
}

.page-hero img.clinical-complete-photo,
.treatment-hero img.clinical-complete-photo,
.treatment-card img.clinical-complete-photo,
.case-card-real img.clinical-complete-photo {
  object-fit: contain;
  object-position: center;
  padding: clamp(8px, 1vw, 16px);
  box-sizing: border-box;
  background: linear-gradient(135deg, #fbf7f0, #efe5d7);
}

.page-hero img.clinical-complete-photo,
.treatment-hero img.clinical-complete-photo {
  aspect-ratio: 3 / 4;
  max-height: min(820px, 86vh);
}

.page-hero img.method-hero-doctor-photo {
  object-position: center bottom;
  box-shadow: 0 28px 88px rgba(105, 83, 42, 0.18);
}

.page-hero img[src*="-instagram"],
.treatment-hero img[src*="-instagram"] {
  max-height: min(780px, 82vh);
  padding: clamp(10px, 1.4vw, 18px);
}

.treatment-detail-panel img[src*="-instagram"] {
  width: min(100%, 560px);
  height: clamp(520px, 52vw, 780px);
  min-height: 0;
  max-height: 780px;
  justify-self: center;
  padding: clamp(10px, 1.4vw, 18px);
}

.page-hero p:not(.kicker),
.treatment-hero p:not(.kicker),
.section-title p,
.prose p,
.intro-grid p,
.booking-preview p,
.detail-block p,
.detail-block li {
  color: var(--muted);
}

.page-hero p:not(.kicker),
.treatment-hero p:not(.kicker) {
  max-width: 700px;
  margin-top: 20px;
  font-size: 1.12rem;
}

.intro-grid,
.booking-preview,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.prose {
  display: grid;
  gap: 18px;
  font-size: 1.05rem;
}

.doctor-profile-home {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: linear-gradient(180deg, var(--ivory), #f1e8da);
}

.profile-lead {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.1rem;
}

.doctor-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.doctor-facts div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.78);
  padding: 16px;
  box-shadow: 0 12px 36px rgba(82, 70, 58, 0.08);
}

.doctor-facts dt {
  color: var(--champagne-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.doctor-facts dd {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 1rem;
}

.facts-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.doctor-signature-hero {
  display: grid;
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.78fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: center;
  padding: clamp(64px, 8vw, 128px) clamp(18px, 5vw, 76px);
  background:
    linear-gradient(90deg, rgba(45, 53, 40, 0.98), rgba(75, 83, 60, 0.94) 50%, rgba(246, 242, 234, 0.96) 50%),
    var(--forest);
}

.doctor-hero-copy {
  max-width: 780px;
  color: var(--pearl);
}

.doctor-brand-emblem {
  width: clamp(108px, 12vw, 172px);
  height: auto;
  margin-bottom: clamp(18px, 2.4vw, 30px);
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.22));
}

.doctor-hero-copy .kicker,
.doctor-hero-copy p {
  color: rgba(252, 251, 248, 0.76);
}

.doctor-hero-copy h1 {
  max-width: none;
  color: #d6b064;
  font-size: clamp(3.8rem, 5.3vw, 5.7rem);
  line-height: 0.94;
  white-space: normal;
  text-shadow: 0 24px 52px rgba(0, 0, 0, 0.18);
}

.doctor-quote {
  max-width: 620px;
  color: var(--champagne) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-style: italic;
}

.doctor-hero-copy .button.ghost {
  background: rgba(252, 251, 248, 0.9);
  color: var(--forest);
}

.doctor-hero-copy .button.text-link {
  color: var(--champagne);
}

.doctor-visual-stack {
  display: grid;
  gap: 16px;
}

.doctor-editorial-portrait {
  position: relative;
  min-height: 620px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(75, 83, 60, 0.18);
  background: var(--pearl);
  box-shadow: 0 34px 90px rgba(36, 35, 31, 0.22);
}

.doctor-editorial-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  background: linear-gradient(180deg, #fbf6ee, #e8dccd);
}

.doctor-concierge-card span {
  color: var(--champagne-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doctor-essentials,
.doctor-narrative-intro {
  background: linear-gradient(180deg, var(--pearl), var(--ivory));
}

.doctor-essentials .doctor-facts a {
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

.doctor-narrative-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(24px, 4vw, 62px);
  align-items: start;
}

.doctor-narrative-text {
  display: grid;
  gap: 18px;
  max-width: 920px;
}

.doctor-narrative-text p,
.doctor-method-narrative .prose p,
.doctor-closing-narrative p {
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.3vw, 1.22rem);
  line-height: 1.72;
}

.doctor-profile-note {
  display: grid;
  gap: 12px;
  border-left: 2px solid rgba(174, 126, 45, 0.42);
  background: rgba(252, 251, 248, 0.72);
  padding: clamp(22px, 3vw, 34px);
}

.doctor-profile-note strong {
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.doctor-profile-note span,
.doctor-profile-note a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.doctor-profile-note a {
  color: var(--champagne-deep);
}

.doctor-philosophy,
.doctor-method-narrative {
  background: var(--pearl);
}

.doctor-method-narrative {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: start;
}

.doctor-method-narrative h2 {
  max-width: 560px;
}

.method-principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: clamp(24px, 3vw, 38px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(75, 83, 60, 0.16);
  border-bottom: 1px solid rgba(75, 83, 60, 0.16);
}

.method-principles li {
  display: grid;
  gap: 10px;
  min-height: 150px;
  border-right: 1px solid rgba(75, 83, 60, 0.16);
  padding: clamp(18px, 2vw, 28px);
}

.method-principles li:last-child {
  border-right: 0;
}

.method-principles strong {
  color: var(--champagne-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 1.9vw, 1.9rem);
  font-weight: 500;
}

.method-principles span {
  color: var(--muted);
  line-height: 1.55;
}

.doctor-closing-narrative {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 0.72fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(45, 53, 40, 0.94), rgba(75, 83, 60, 0.9)),
    var(--forest);
  color: var(--pearl);
}

.doctor-closing-narrative .kicker,
.doctor-closing-narrative h2,
.doctor-closing-narrative p {
  color: var(--pearl);
}

.doctor-closing-narrative p {
  color: rgba(252, 251, 248, 0.76);
}

.doctor-closing-narrative .hero-actions {
  grid-column: 2;
  margin-top: -24px;
}

.image-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(16px, 5vw, 76px);
}

.inline-band {
  padding: 0;
}

.image-band figure,
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--pearl);
  box-shadow: 0 14px 46px rgba(82, 70, 58, 0.1);
}

.image-band img,
.gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 12;
  object-fit: cover;
}

figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.section-title {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}

.interactive-method,
.treatment-switcher {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
}

.treatment-switcher {
  margin-bottom: 34px;
}

.button-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.interactive-method .button-rail,
.treatment-switcher .button-rail {
  flex-direction: column;
  align-self: stretch;
}

.button-rail :is(button, a) {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(185, 154, 98, 0.36);
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.74);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 760;
  padding: 0 15px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.interactive-method .button-rail :is(button, a),
.treatment-switcher .button-rail :is(button, a) {
  width: 100%;
  justify-content: flex-start;
  min-height: 62px;
}

.button-rail :is(button, a):not(.active) {
  color: var(--text) !important;
}

.button-rail :is(button, a):hover,
.button-rail :is(button, a):focus-visible {
  border-color: rgba(143, 110, 52, 0.68);
  transform: translateY(-1px);
}

.button-rail :is(button, a).active {
  border-color: var(--champagne-deep);
  background: linear-gradient(135deg, var(--champagne), var(--champagne-deep));
  color: #fffdfa;
  box-shadow: 0 12px 28px rgba(140, 112, 67, 0.22);
}

.interactive-method .button-rail :is(button, a).active,
.interactive-method .button-rail :is(button, a).active:hover,
.interactive-method .button-rail :is(button, a).active:focus-visible,
.treatment-switcher .button-rail :is(button, a).active,
.treatment-switcher .button-rail :is(button, a).active:hover,
.treatment-switcher .button-rail :is(button, a).active:focus-visible {
  border-color: #8c7043 !important;
  color: #fffdfa !important;
}

.button-rail a[aria-pressed="false"],
.button-rail a[aria-pressed="false"]:visited {
  border-color: rgba(185, 154, 98, 0.36) !important;
  background: rgba(255, 253, 250, 0.74) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}

.button-rail a[aria-pressed="true"],
.button-rail a[aria-pressed="true"]:visited {
  border-color: #8c7043 !important;
  background: linear-gradient(135deg, var(--champagne), var(--champagne-deep)) !important;
  color: #fffdfa !important;
  box-shadow: 0 12px 28px rgba(140, 112, 67, 0.22);
}

.method-detail,
.treatment-detail-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.74fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.78);
  box-shadow: 0 18px 54px rgba(82, 70, 58, 0.1);
}

.method-detail img,
.treatment-detail-panel img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: center top;
}

.treatment-detail-panel {
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1fr);
  min-height: 520px;
}

.treatment-detail-panel img {
  object-fit: contain;
  object-position: center;
  max-height: 620px;
  padding: clamp(12px, 1.8vw, 24px);
  background: linear-gradient(135deg, #fbf7f0, #eee2d3);
}

.treatment-detail-panel img[src*="ai-patients"],
.treatment-hero img[src*="ai-patients"],
.page-hero img[src*="ai-patients"],
.treatment-card img[src*="ai-patients"] {
  object-fit: cover;
  object-position: center;
  padding: 0;
  background: var(--pearl);
}

.treatment-detail-panel img[src*="patient-valoracion"],
.treatment-card img[src*="patient-valoracion"] {
  object-position: center 36%;
}

.treatment-detail-panel img[src*="patient-expression"],
.treatment-hero img[src*="patient-expression"],
.page-hero img[src*="patient-expression"],
.treatment-card img[src*="patient-expression"] {
  object-position: center 42%;
}

.treatment-detail-panel img[src*="patient-harmony"],
.treatment-hero img[src*="patient-harmony"],
.page-hero img[src*="patient-harmony"],
.treatment-card img[src*="patient-harmony"] {
  object-position: center 45%;
}

.treatment-detail-panel img[src*="patient-collagen"],
.treatment-hero img[src*="patient-collagen"],
.page-hero img[src*="patient-collagen"],
.treatment-card img[src*="patient-collagen"] {
  object-position: center 45%;
}

.treatment-detail-panel img[src*="patient-skin"],
.treatment-card img[src*="patient-skin"] {
  object-position: center 42%;
}

.treatment-detail-panel img[src*="patient-male"],
.treatment-card img[src*="patient-male"] {
  object-position: center 38%;
}

.treatment-detail-panel img[src*="patient-wellbeing"],
.treatment-hero img[src*="patient-wellbeing"],
.page-hero img[src*="patient-wellbeing"],
.treatment-card img[src*="patient-wellbeing"] {
  object-position: center 44%;
}

.method-detail > div,
.treatment-detail-panel > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(24px, 4vw, 42px);
}

.method-detail .mini-label,
.treatment-detail-panel .mini-label {
  margin: 0;
}

.method-detail h3,
.treatment-detail-panel h3 {
  margin: 0;
  font-size: clamp(2.35rem, 4.8vw, 4.3rem);
  line-height: 0.98;
}

.method-detail p,
.treatment-detail-panel p {
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.7;
}

.method-detail .button,
.treatment-detail-panel .button {
  align-self: flex-start;
  margin-top: 6px;
}

.phase-row,
.treatment-grid,
.values-grid,
.legal-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.treatment-grid {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: clamp(26px, 3vw, 42px);
}

.phase-row article,
.value-card,
.legal-grid article,
.faq-grid details,
.booking-card,
.detail-block,
.price-note,
.assistant-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.72);
  box-shadow: 0 14px 44px rgba(82, 70, 58, 0.08);
}

.phase-row article,
.value-card,
.legal-grid article,
.faq-grid details,
.detail-block,
.price-note,
.assistant-note {
  padding: 22px;
}

.phase-row span {
  color: var(--champagne-deep);
  font-weight: 800;
}

.phase-row h3,
.value-card h3,
.legal-grid h3,
.detail-block h3 {
  margin: 14px 0 10px;
}

.phase-row p,
.value-card p,
.legal-grid p,
.treatment-card p,
.assistant-note p {
  color: var(--muted);
}

.treatment-teaser,
.soft-band {
  background: linear-gradient(180deg, var(--ivory), #f2eadf);
}

.treatment-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--pearl);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 22px 68px rgba(82, 70, 58, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.treatment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 32px 88px rgba(82, 70, 58, 0.16);
}

.treatment-card img {
  width: 100%;
  height: clamp(300px, 28vw, 460px);
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center top;
}

.treatment-card img[src*="-instagram"] {
  height: clamp(360px, 34vw, 540px);
  padding: clamp(8px, 1vw, 14px);
  box-sizing: border-box;
}

.treatment-card img[src*="-kd-frame"] {
  height: clamp(420px, 42vw, 620px);
  object-fit: contain;
  padding: clamp(8px, 1vw, 14px);
  box-sizing: border-box;
  background: linear-gradient(135deg, #fbf7f0, #efe5d7);
}

.treatment-card img[src*="fullbody"] {
  height: clamp(420px, 42vw, 620px);
  object-fit: contain;
  object-position: center bottom;
  padding: clamp(8px, 1vw, 14px);
  box-sizing: border-box;
  background: linear-gradient(135deg, #fbf7f0, #efe5d7);
}

.treatment-card img.clinical-complete-photo {
  height: clamp(520px, 48vw, 700px);
}

.treatment-card span,
.mini-label {
  display: block;
  margin: 22px 24px 10px;
  color: var(--champagne-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.treatment-card h3,
.treatment-card p {
  margin-right: 24px;
  margin-left: 24px;
}

.treatment-card h3 {
  color: var(--forest);
  font-size: clamp(1.72rem, 2.25vw, 2.45rem);
  line-height: 1.05;
}

.treatment-card p {
  margin-top: 12px;
  margin-bottom: 28px;
  font-size: 1rem;
  line-height: 1.6;
}

.booking-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(91, 80, 71, 0.22);
  border-radius: var(--radius);
  background: #fffdfa;
  color: var(--text);
  padding: 0 12px;
}

textarea {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}

.check-row {
  grid-template-columns: 18px 1fr;
  align-items: start;
}

.check-row input {
  min-height: auto;
  margin-top: 4px;
}

.booking-output {
  color: var(--success);
  font-weight: 700;
}

.booking-action-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(75, 83, 60, 0.14);
  background: rgba(252, 251, 248, 0.82);
  padding: 14px;
}

.booking-action-panel[hidden] {
  display: none;
}

.booking-action-panel .button {
  width: 100%;
  min-height: 44px;
}

.booking-manage-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(185, 154, 98, 0.34);
  border-left: 4px solid var(--champagne);
  background:
    linear-gradient(135deg, rgba(255, 253, 250, 0.94), rgba(246, 242, 234, 0.86));
  padding: 16px;
}

.booking-manage-panel[hidden] {
  display: none;
}

.booking-manage-panel strong {
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.08rem;
}

.booking-manage-panel span {
  color: var(--muted);
  font-size: 0.94rem;
}

.booking-manage-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.booking-manage-actions .button {
  width: 100%;
}

.booking-privacy-note {
  margin: 0;
  border-top: 1px solid rgba(75, 83, 60, 0.14);
  padding-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.booking-operational-note {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(75, 83, 60, 0.16);
  border-left: 4px solid var(--champagne);
  background: rgba(246, 242, 234, 0.72);
  padding: 14px;
}

.booking-operational-note strong {
  color: var(--forest);
}

.booking-operational-note span {
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(16px, 5vw, 76px) 88px;
  border-top: 1px solid var(--line);
  background: #e8ddce;
  color: var(--muted);
}

.site-footer > div {
  position: relative;
  min-height: 70px;
  padding-left: 92px;
}

.site-footer > div::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 72px;
  height: 58px;
  background: url("assets/brand/kd-logo-gold-nav.png") center / contain no-repeat;
  filter: drop-shadow(0 12px 22px rgba(86, 64, 27, 0.14));
}

.site-footer strong {
  display: block;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.48rem, 2.2vw, 2.35rem);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.treatment-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  background: linear-gradient(90deg, #fbf7f0, #eee2d3);
}

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

.detail-block ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.journey {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
}

.journey-nav {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
}

.journey-nav a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.72);
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
}

.journey-nav a:hover {
  color: var(--text);
  border-color: rgba(185, 154, 98, 0.7);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 16px;
}

.doctor-photo-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(185, 154, 98, 0.42);
  border-radius: var(--radius);
  background: var(--pearl);
  box-shadow: var(--shadow);
}

.doctor-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.doctor-photo-card img[src*="doctor-ai"] {
  aspect-ratio: 4 / 3;
  object-position: center center;
}

.assistant-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  min-height: 50px;
  border: 1px solid rgba(185, 154, 98, 0.56);
  border-radius: 999px;
  background: #fffdfa;
  color: var(--champagne-deep);
  padding: 0 18px;
  box-shadow: 0 16px 42px rgba(82, 70, 58, 0.18);
  font-weight: 800;
}

.assistant-dock {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 51;
  display: none;
  width: min(420px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--pearl);
  box-shadow: 0 28px 82px rgba(82, 70, 58, 0.24);
}

.assistant-dock.open {
  display: block;
}

.assistant-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #f1e8da;
}

.assistant-head strong {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.assistant-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.3rem;
}

.assistant-log {
  display: grid;
  max-height: 330px;
  gap: 10px;
  overflow: auto;
  padding: 16px;
}

.assistant-log p {
  max-width: 86%;
  border-radius: var(--radius);
  padding: 10px 12px;
}

.assistant-log .bot {
  justify-self: start;
  background: var(--ivory);
}

.assistant-log .user {
  justify-self: end;
  background: #e2d1ba;
}

.assistant-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}

.assistant-quick button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdfa;
  color: var(--champagne-deep);
  padding: 0 10px;
}

.assistant-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 12px;
}

.assistant-form input {
  min-height: 42px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero-luxury,
  .page-hero,
  .treatment-hero,
  .intro-grid,
  .doctor-profile-home,
  .booking-preview,
  .split-section,
  .journey {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 430px;
  }

  .doctor-hero-card.media-composition {
    justify-self: center;
    width: min(680px, 100%);
    min-height: auto;
  }

  .hero-name-gold {
    font-size: 4rem;
  }

  .journey-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phase-row,
  .treatment-grid,
  .values-grid,
  .legal-grid,
  .faq-grid,
  .detail-grid,
  .doctor-facts,
  .facts-wide,
  .image-band,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand {
    min-width: auto;
    gap: 8px;
  }

  .brand-symbol {
    width: 42px;
    height: 34px;
  }

  .brand strong {
    max-width: none;
    font-size: 1.16rem;
    line-height: 0.95;
    white-space: nowrap;
  }

  .brand small,
  .nav-cta {
    display: none;
  }

  .hero-luxury {
    min-height: auto;
  }

  .hero-content,
  .editorial-section,
  .page-hero,
  .treatment-hero {
    padding: 46px 16px;
  }

  .image-band {
    padding: 0 16px;
  }

  .doctor-hero-card.media-composition {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 0;
  }

  .hero-name-gold {
    font-size: 2.3rem;
  }

  .media-composition .portrait-frame,
  .media-composition dl {
    width: 100%;
    justify-self: stretch;
  }

  .hero-contact-card dl {
    grid-template-columns: 1fr;
  }

  .contact-title {
    display: grid;
    gap: 5px;
  }

  .media-composition .portrait-frame img {
    min-height: 0;
  }

  .button-rail {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .interactive-method,
  .treatment-switcher {
    grid-template-columns: 1fr;
  }

  .interactive-method .button-rail,
  .treatment-switcher .button-rail {
    flex-direction: row;
  }

  .button-rail :is(button, a) {
    flex: 0 0 auto;
    width: auto;
  }

  .method-detail,
  .treatment-detail-panel {
    grid-template-columns: 1fr;
  }

  .method-detail > div,
  .treatment-detail-panel > div {
    order: -1;
  }

  .method-detail img,
  .treatment-detail-panel img {
    min-height: 240px;
    max-height: 320px;
  }

  .treatment-detail-panel img[src*="-instagram"] {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 3 / 4;
  }

  .treatment-card img {
    height: min(76vw, 430px);
  }

  .treatment-card img[src*="-instagram"] {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.1rem);
  }

  .phase-row,
  .treatment-grid,
  .values-grid,
  .legal-grid,
  .faq-grid,
  .detail-grid,
  .doctor-facts,
  .facts-wide,
  .image-band,
  .gallery-grid,
  .journey-nav {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

  .assistant-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .hero-name-gold {
    font-size: 1.9rem;
  }
}

/* Elite editorial redesign */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 90;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--pearl);
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.elite-header {
  background: rgba(246, 242, 234, 0.82);
  transition: padding 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.elite-header.is-compact {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(252, 251, 248, 0.94);
  box-shadow: 0 14px 36px rgba(36, 35, 31, 0.08);
}

.header-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.nav-link-whatsapp {
  color: var(--sage);
  font-size: 0.92rem;
  font-weight: 760;
  text-decoration: none;
}

.kd-hero {
  display: grid;
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(0, 0.72fr) minmax(680px, 1.3fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: center;
  padding: clamp(52px, 7vw, 110px) clamp(18px, 5vw, 76px) clamp(42px, 6vw, 92px);
  background:
    linear-gradient(115deg, rgba(246, 242, 234, 0.96), rgba(252, 251, 248, 0.86) 54%, rgba(220, 202, 184, 0.48)),
    var(--ivory);
}

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

.hero-brand-lockup {
  display: grid;
  align-items: end;
  gap: 10px;
  max-width: min(860px, 100%);
  margin-bottom: clamp(22px, 3vw, 34px);
}

.hero-brand-lockup img {
  width: clamp(96px, 8vw, 142px);
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(86, 64, 27, 0.18));
}

.hero-brand-lockup span,
.hero-brand-lockup small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-brand-lockup strong {
  display: block;
  color: var(--champagne-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.15rem, 4.2vw, 4.65rem);
  font-weight: 500;
  line-height: 0.88;
  white-space: nowrap;
}

.hero-brand-lockup small {
  margin-top: 10px;
  color: var(--sage);
  letter-spacing: 0.12em;
}

.kd-hero h1 {
  max-width: 760px;
  color: var(--forest);
  font-size: clamp(3.6rem, 6vw, 7.2rem);
  letter-spacing: 0;
  line-height: 0.94;
}

.hero-emotion {
  max-width: 540px;
  margin-top: 18px;
  color: var(--sage);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-style: italic;
}

.button.text-link {
  border-color: transparent;
  background: transparent;
  color: var(--sage);
  padding-inline: 4px;
}

.button.primary {
  background: var(--forest);
  color: var(--pearl);
}

.button.secondary {
  border-color: rgba(75, 83, 60, 0.22);
  background: var(--pearl);
  color: var(--forest);
}

.button.ghost {
  border-color: rgba(75, 83, 60, 0.18);
  background: rgba(252, 251, 248, 0.72);
  color: var(--text);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 640px;
  margin: 34px 0 0;
  border: 1px solid rgba(75, 83, 60, 0.16);
  background: rgba(75, 83, 60, 0.16);
}

.hero-proof div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  background: rgba(252, 251, 248, 0.82);
  padding: 14px;
}

.hero-proof dt {
  color: var(--champagne-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.hero-proof dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-editorial-media {
  display: grid;
  grid-template-columns: minmax(460px, 1.08fr) minmax(210px, 0.46fr);
  gap: clamp(14px, 1.6vw, 22px);
  align-items: start;
}

.hero-side-stack {
  display: grid;
  gap: 16px;
}

.hero-portrait {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: clamp(540px, 66vh, 720px);
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(75, 83, 60, 0.16);
  background: var(--pearl);
  box-shadow: 0 30px 90px rgba(36, 35, 31, 0.14);
}

.hero-portrait picture,
.doctor-editorial-portrait picture {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-portrait-fullbody {
  height: clamp(620px, 76vh, 880px);
  background: linear-gradient(180deg, #f8f2e9, #e8dccd);
}

.hero-portrait-fullbody img {
  object-fit: cover;
  object-position: center 6%;
}

.portrait-signature {
  position: static;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(252, 251, 248, 0.28);
  border-width: 1px 0 0;
  background: linear-gradient(135deg, rgba(30, 34, 28, 0.82), rgba(75, 83, 60, 0.66));
  color: var(--pearl);
  padding: 18px;
  backdrop-filter: blur(14px);
}

.portrait-signature span {
  color: rgba(252, 251, 248, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portrait-signature strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  font-weight: 500;
}

.portrait-signature small {
  color: rgba(252, 251, 248, 0.72);
}

.hero-editorial-media .hero-method-panel {
  align-self: start;
  min-height: 0;
  border-color: rgba(75, 83, 60, 0.18);
  background: rgba(252, 251, 248, 0.72);
  box-shadow: none;
  padding: clamp(24px, 2.4vw, 34px);
}

.hero-editorial-media .hero-method-panel li {
  border-color: rgba(75, 83, 60, 0.18);
  background: rgba(246, 242, 234, 0.86);
  color: var(--forest);
  min-height: 56px;
  align-content: center;
}

@media (min-width: 1181px) {
  .hero-editorial-media {
    padding-top: clamp(56px, 5.25vw, 84px);
  }
}

.hero-concierge-card,
.doctor-concierge-card {
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid rgba(75, 83, 60, 0.18);
  background:
    linear-gradient(180deg, rgba(252, 251, 248, 0.92), rgba(246, 242, 234, 0.82));
  padding: clamp(20px, 2.2vw, 30px);
  box-shadow: 0 22px 60px rgba(36, 35, 31, 0.1);
}

.hero-concierge-card h2,
.doctor-concierge-card strong {
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.1vw, 2.25rem);
  font-weight: 500;
  line-height: 1;
}

.hero-concierge-card p,
.doctor-concierge-card p {
  color: var(--muted);
  margin: 0;
}

.hero-concierge-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 0;
}

.hero-concierge-card dl div {
  border-top: 1px solid rgba(75, 83, 60, 0.16);
  padding-top: 10px;
}

.hero-concierge-card dt {
  color: var(--champagne-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-concierge-card dd {
  margin: 4px 0 0;
  color: var(--forest);
  font-weight: 800;
}

.concierge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.concierge-link {
  color: var(--champagne-deep);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.luxe-standard-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.premium-ribbon {
  border-color: rgba(75, 83, 60, 0.2);
  border-left-color: var(--sage);
  background: #fbf8f2;
  color: var(--muted);
}

.brand-manifesto,
.diagnosis-editorial,
.treatment-objectives,
.facial-analysis-panel,
.clinical-cases,
.authority-section,
.security-section,
.patient-journey,
.education-section,
.ecosystem-section {
  padding: clamp(64px, 8vw, 124px) clamp(18px, 5vw, 76px);
}

.brand-manifesto {
  background: var(--pearl);
}

.manifesto-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(75, 83, 60, 0.2);
  border-bottom: 1px solid rgba(75, 83, 60, 0.2);
}

.manifesto-flow article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 245px;
  border-right: 1px solid rgba(75, 83, 60, 0.16);
  padding: clamp(18px, 2.4vw, 32px);
}

.manifesto-flow article:last-child {
  border-right: 0;
}

.manifesto-flow span,
.case-placeholder {
  color: var(--champagne-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manifesto-flow h3 {
  color: var(--forest);
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
}

.manifesto-flow p,
.diagnosis-editorial p,
.facial-analysis-panel p,
.authority-section p,
.patient-journey p,
.education-section p,
.clinical-cases p,
.security-grid p {
  color: var(--muted);
}

.diagnosis-editorial,
.authority-section,
.facial-analysis-panel,
.elite-booking,
.education-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
}

.diagnosis-editorial {
  background: linear-gradient(180deg, var(--ivory), #ece3d5);
}

.diagnosis-editorial figure,
.authority-section figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(75, 83, 60, 0.16);
  background: var(--pearl);
  box-shadow: 0 22px 70px rgba(36, 35, 31, 0.12);
}

.diagnosis-editorial img,
.authority-section img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.clinical-diagram,
.objective-grid,
.security-grid,
.automation-list,
.knowledge-list,
.validation-list {
  display: grid;
  gap: 10px;
}

.clinical-diagram {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 28px 0;
}

.clinical-diagram span,
.objective-grid a,
.automation-list p,
.knowledge-list a,
.validation-list div,
.security-grid article,
.case-grid article {
  border: 1px solid rgba(75, 83, 60, 0.16);
  background: rgba(252, 251, 248, 0.72);
}

.clinical-diagram span {
  display: grid;
  min-height: 78px;
  place-items: center;
  padding: 12px;
  color: var(--forest);
  font-weight: 760;
  text-align: center;
}

.treatment-objectives {
  background: var(--pearl);
  padding-top: clamp(82px, 9vw, 148px);
  padding-bottom: clamp(82px, 9vw, 148px);
}

.treatment-objectives .section-title {
  max-width: 1240px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.treatment-objectives .section-title .kicker {
  margin-bottom: 4px;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  letter-spacing: 0.08em;
}

.treatment-objectives .section-title h2 {
  max-width: 21ch;
  font-size: clamp(2.35rem, 4.3vw, 4.65rem);
  line-height: 1.02;
}

.elite-switcher {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: clamp(28px, 3.4vw, 54px);
}

.treatment-switcher .button-rail :is(button, a) {
  border-color: rgba(185, 154, 98, 0.42);
  background: rgba(255, 253, 250, 0.88);
  font-size: clamp(0.94rem, 1vw, 1.05rem);
  letter-spacing: 0;
  padding: 0 20px;
}

.treatment-objectives .treatment-switcher {
  margin-bottom: clamp(28px, 4vw, 52px);
}

.treatment-objectives .treatment-switcher .button-rail :is(button, a) {
  min-height: 74px;
  padding: 0 24px;
  font-size: clamp(1rem, 1.1vw, 1.16rem);
}

.treatment-objectives .treatment-detail-panel {
  grid-template-columns: minmax(430px, 0.86fr) minmax(340px, 0.64fr);
  min-height: clamp(640px, 64vw, 820px);
}

.treatment-objectives .treatment-detail-panel > div {
  padding: clamp(34px, 4vw, 56px);
}

.treatment-meta {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.objective-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}

.objective-grid a {
  display: grid;
  gap: 8px;
  min-height: 128px;
  align-content: end;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.objective-grid strong {
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.objective-grid span {
  color: var(--muted);
}

.facial-analysis-panel {
  background: linear-gradient(115deg, var(--forest), #4b533c);
  color: var(--pearl);
}

.facial-analysis-panel .kicker,
.facial-analysis-panel p,
.facial-analysis-panel li,
.facial-analysis-panel label {
  color: rgba(252, 251, 248, 0.82);
}

.facial-analysis-panel h2 {
  color: var(--pearl);
}

.analysis-steps {
  display: grid;
  gap: 8px;
  margin: 26px 0;
  padding-left: 20px;
}

.analysis-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(252, 251, 248, 0.18);
  background: rgba(252, 251, 248, 0.08);
  padding: clamp(22px, 3vw, 34px);
}

.analysis-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 42%;
  border: 1px solid rgba(252, 251, 248, 0.2);
  border-radius: var(--radius);
}

.analysis-card input,
.analysis-card select {
  background: var(--pearl);
}

.analysis-output {
  color: #eef4e8;
  font-weight: 760;
}

.clinical-cases {
  background: var(--ivory);
}

.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.case-filters button {
  min-height: 42px;
  border: 1px solid rgba(75, 83, 60, 0.16);
  border-radius: var(--radius);
  background: rgba(252, 251, 248, 0.72);
  color: var(--forest);
  padding: 0 14px;
  font-weight: 760;
}

.case-filters button.active {
  background: var(--forest);
  color: var(--pearl);
}

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

.case-grid article {
  display: grid;
  gap: 12px;
  min-height: 280px;
  align-content: end;
  padding: 22px;
}

.case-card-real {
  align-content: start;
  overflow: hidden;
}

.case-card-real figure {
  position: relative;
  margin: -22px -22px 8px;
  overflow: hidden;
  border-bottom: 1px solid rgba(75, 83, 60, 0.14);
  background: #eee4d8;
}

.case-card-real picture,
.case-card-real img {
  display: block;
  width: 100%;
}

.case-card-real img {
  aspect-ratio: 4 / 3.35;
  object-fit: cover;
  object-position: center top;
}

.case-card-real img[src*="caso-rejuvenecimiento-facial-real"] {
  aspect-ratio: 7 / 8;
  object-fit: contain;
  background: linear-gradient(135deg, #fbf7f0, #efe5d7);
}

.case-card-real img[src*="hiperhidrosis"] {
  aspect-ratio: 1 / 1.55;
  object-position: center center;
}

.case-card-real img[src*="-instagram"] {
  aspect-ratio: 3 / 4;
}

.case-card-real img[src*="-kd-frame"] {
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(135deg, #fbf7f0, #efe5d7);
}

.clinical-cases .case-grid,
.real-treatment-gallery .case-grid {
  grid-template-columns: repeat(2, minmax(340px, 1fr));
  gap: clamp(26px, 3.5vw, 46px);
}

.clinical-cases .case-card-real,
.real-treatment-gallery .case-card-real {
  padding: clamp(26px, 3vw, 38px);
}

.clinical-cases .case-card-real figure,
.real-treatment-gallery .case-card-real figure {
  margin: clamp(-38px, -3vw, -26px) clamp(-38px, -3vw, -26px) 18px;
}

.clinical-cases .case-card-featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(420px, 1.08fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
}

.clinical-cases .case-card-featured figure {
  margin: clamp(-38px, -3vw, -26px) 0 clamp(-38px, -3vw, -26px) clamp(-38px, -3vw, -26px);
}

.clinical-cases .case-card-featured img {
  height: clamp(560px, 58vw, 860px);
  min-height: 0;
  object-fit: contain;
  background: linear-gradient(135deg, #fbf7f0, #efe5d7);
}

.clinical-cases .case-card-real img[src*="-instagram"],
.real-treatment-gallery .case-card-real img[src*="-instagram"] {
  height: clamp(620px, 60vw, 920px);
  min-height: 0;
  max-height: 940px;
  padding: clamp(8px, 0.9vw, 14px);
  box-sizing: border-box;
}

.clinical-cases .case-card-real img[src*="-kd-frame"],
.real-treatment-gallery .case-card-real img[src*="-kd-frame"] {
  height: clamp(700px, 66vw, 980px);
  min-height: 0;
  max-height: 1040px;
  padding: clamp(8px, 0.9vw, 14px);
  box-sizing: border-box;
  object-fit: contain;
}

.clinical-cases .case-card-real h3,
.real-treatment-gallery .case-card-real h3 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
}

.clinical-cases .case-card-real p,
.real-treatment-gallery .case-card-real p {
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.65;
}

.case-card-real figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 24px);
  border: 1px solid rgba(178, 126, 43, 0.36);
  background: rgba(253, 250, 245, 0.9);
  color: var(--champagne-deep);
  padding: 7px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.case-card-real h3 {
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 500;
}

.clinical-consent-note,
.clinical-photo-note {
  border: 1px solid rgba(156, 79, 69, 0.18);
  border-left: 4px solid var(--rose);
  background: #fff8f5;
  color: #68463f;
}

.clinical-consent-note {
  margin-top: 20px;
  padding: 16px 18px;
}

.clinical-photo-note {
  display: grid;
  gap: 6px;
  margin: -46px clamp(16px, 5vw, 76px) 0;
  padding: 16px 18px;
  position: relative;
  z-index: 2;
}

.clinical-photo-note span {
  color: var(--muted);
}

.case-placeholder {
  display: grid;
  min-height: 120px;
  place-items: center;
  border: 1px dashed rgba(75, 83, 60, 0.28);
  background: rgba(246, 242, 234, 0.72);
  text-align: center;
}

.authority-section {
  background: var(--pearl);
}

.validation-list {
  margin: 26px 0;
}

.validation-list div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 14px;
}

.validation-list dt {
  color: var(--forest);
  font-weight: 800;
}

.validation-list dd {
  margin: 0;
  color: var(--muted);
}

.security-section {
  background: linear-gradient(180deg, #edf0e8, var(--ivory));
}

.security-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.security-grid article {
  min-height: 220px;
  padding: 22px;
}

.security-grid h3 {
  color: var(--forest);
}

.patient-journey {
  background: var(--pearl);
}

.journey-line {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 30px 0 18px;
  border-top: 1px solid rgba(75, 83, 60, 0.26);
}

.journey-line span {
  position: relative;
  padding: 18px 10px 0 0;
  color: var(--forest);
  font-weight: 760;
}

.journey-line span::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--champagne);
}

.automation-list {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.automation-list p,
.knowledge-list a {
  min-height: 72px;
  padding: 16px;
}

.education-section {
  background: linear-gradient(115deg, var(--ivory), #eef0e8);
}

.ecosystem-section {
  background: var(--pearl);
}

.knowledge-list a {
  display: grid;
  align-items: center;
  color: var(--forest);
  font-weight: 760;
  text-decoration: none;
}

.elite-booking {
  background: var(--pearl);
}

.booking-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(75, 83, 60, 0.12);
}

.booking-progress span {
  display: block;
  height: 100%;
  background: var(--sage);
}

.mobile-cta-bar {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 49;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-cta-bar a {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid rgba(75, 83, 60, 0.16);
  border-radius: var(--radius);
  background: var(--pearl);
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(36, 35, 31, 0.12);
}

.mobile-cta-bar a:last-child {
  background: var(--forest);
  color: var(--pearl);
}

.premium-footer {
  background: var(--forest);
  color: rgba(252, 251, 248, 0.72);
}

.premium-footer strong,
.premium-footer a {
  color: var(--pearl);
}

@media (max-width: 1180px) {
  .header-actions {
    justify-self: end;
  }

  .kd-hero,
  .doctor-signature-hero,
  .diagnosis-editorial,
  .authority-section,
  .facial-analysis-panel,
  .elite-booking,
  .education-section {
    grid-template-columns: 1fr;
  }

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

  .hero-editorial-media {
    max-width: 760px;
  }

  .doctor-signature-hero {
    background:
      linear-gradient(180deg, rgba(45, 53, 40, 0.97), rgba(75, 83, 60, 0.92) 54%, var(--ivory) 54%),
      var(--forest);
  }

  .manifesto-flow,
  .security-grid,
  .objective-grid,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .elite-switcher,
  .treatment-objectives .treatment-detail-panel {
    grid-template-columns: 1fr;
  }

  .treatment-objectives .button-rail {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .treatment-objectives .treatment-switcher .button-rail :is(button, a) {
    flex: 0 0 auto;
    width: auto;
    min-width: 170px;
  }

  .clinical-cases .case-card-featured {
    grid-template-columns: 1fr;
  }

  .clinical-cases .case-card-featured figure {
    margin: clamp(-38px, -3vw, -26px) clamp(-38px, -3vw, -26px) 18px;
  }

  .clinical-diagram,
  .journey-line,
  .automation-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-actions,
  .nav-link-whatsapp {
    display: none;
  }

  .kd-hero {
    min-height: auto;
    padding: 38px 16px 34px;
  }

  .doctor-signature-hero {
    min-height: auto;
    padding: 42px 16px 34px;
  }

  .hero-brand-lockup {
    align-items: start;
    gap: 8px;
    margin-bottom: 24px;
  }

  .hero-brand-lockup img {
    width: 76px;
  }

  .hero-brand-lockup strong {
    font-size: 1.76rem;
    line-height: 0.9;
    white-space: nowrap;
  }

  .hero-brand-lockup span,
  .hero-brand-lockup small {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .doctor-brand-emblem {
    width: 92px;
    margin-bottom: 18px;
  }

  .kd-hero h1,
  .doctor-hero-copy h1 {
    font-size: 2.88rem;
    line-height: 0.92;
  }

  .doctor-hero-copy h1 {
    white-space: normal;
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 1.02rem;
  }

  .hero-emotion {
    margin-top: 14px;
    font-size: 1.18rem;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-proof,
  .hero-editorial-media,
  .hero-concierge-card dl,
  .booking-action-panel,
  .booking-manage-actions,
  .doctor-narrative-grid,
  .doctor-method-narrative,
  .doctor-closing-narrative,
  .manifesto-flow,
  .security-grid,
  .objective-grid,
  .case-grid,
  .clinical-cases .case-grid,
  .real-treatment-gallery .case-grid,
  .clinical-diagram,
  .journey-line,
  .automation-list,
  .validation-list div {
    grid-template-columns: 1fr;
  }

  .clinical-cases .case-card-featured,
  .clinical-cases .case-card-real,
  .real-treatment-gallery .case-card-real {
    grid-template-columns: 1fr;
  }

  .clinical-cases .case-card-featured img,
  .clinical-cases .case-card-real img[src*="-instagram"],
  .real-treatment-gallery .case-card-real img[src*="-instagram"],
  .clinical-cases .case-card-real img[src*="-kd-frame"],
  .real-treatment-gallery .case-card-real img[src*="-kd-frame"] {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 4 / 5;
    object-fit: contain;
  }

  .clinical-cases .case-card-featured img[src*="caso-rejuvenecimiento-facial-real"] {
    aspect-ratio: 7 / 8;
  }

  .hero-proof {
    display: none;
  }

  .elite-switcher {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    min-height: auto;
  }

  .hero-portrait-fullbody {
    height: min(145vw, 680px);
  }

  .hero-portrait img,
  .doctor-editorial-portrait img {
    aspect-ratio: 4 / 5;
  }

  .hero-portrait-fullbody img {
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center 6%;
  }

  .doctor-editorial-portrait {
    min-height: auto;
  }

  .portrait-signature {
    padding: 14px;
  }

  .hero-contact-card dl div:nth-child(n + 3) {
    grid-column: auto;
  }

  .brand-manifesto,
  .diagnosis-editorial,
  .treatment-objectives,
  .facial-analysis-panel,
  .clinical-cases,
  .authority-section,
  .security-section,
  .patient-journey,
  .education-section,
  .ecosystem-section {
    padding: 52px 16px;
  }

  .site-footer {
    display: block;
  }

  .site-footer > div {
    min-height: 60px;
    padding-top: 58px;
    padding-left: 0;
  }

  .site-footer > div::before {
    top: 0;
    width: 58px;
    height: 48px;
  }

  .site-footer strong {
    font-size: 1.36rem;
    white-space: nowrap;
  }

  .site-footer nav {
    margin-top: 18px;
  }

  .manifesto-flow article,
  .security-grid article,
  .case-grid article {
    min-height: auto;
  }

  .manifesto-flow article {
    border-right: 0;
    border-bottom: 1px solid rgba(75, 83, 60, 0.16);
  }

  .method-principles {
    grid-template-columns: 1fr;
  }

  .method-principles li {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(75, 83, 60, 0.16);
  }

  .method-principles li:last-child {
    border-bottom: 0;
  }

  .doctor-closing-narrative .hero-actions {
    grid-column: auto;
    margin-top: 0;
  }

  .mobile-cta-bar {
    display: grid;
  }

  .assistant-launcher {
    right: 12px;
    bottom: 16px;
    display: grid;
    width: 46px;
    min-height: 46px;
    place-items: center;
    padding: 0;
    font-size: 0;
  }

  .assistant-launcher::after {
    content: "KD";
    color: var(--champagne-deep);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
  }

  .assistant-dock {
    bottom: 82px;
  }

  body[data-page="inicio"] .assistant-launcher,
  body[data-page="doctora"] .assistant-launcher,
  body[data-page="metodo"] .assistant-launcher,
  body[data-page="kd-clinic-os"] .assistant-launcher {
    bottom: 72px;
  }

  body[data-page="inicio"] .assistant-dock,
  body[data-page="doctora"] .assistant-dock,
  body[data-page="metodo"] .assistant-dock,
  body[data-page="kd-clinic-os"] .assistant-dock {
    bottom: 136px;
  }

  .site-footer {
    padding-bottom: 92px;
  }
}

@media (max-width: 720px) {
  main,
  section,
  .section-title,
  .treatment-hero > *,
  .clinical-cases > *,
  .security-section > * {
    max-width: 100%;
  }

  .clinical-cases,
  .security-section,
  .treatment-hero {
    width: 100%;
    overflow-x: clip;
  }

  .section-title h1,
  .section-title h2,
  .treatment-hero h1,
  .treatment-hero p,
  .case-placeholder {
    overflow-wrap: anywhere;
  }

  .treatment-hero img,
  .treatment-hero .button,
  .treatment-hero .hero-actions {
    width: 100%;
    max-width: 100%;
  }
}
