/* Las fichas usan la jerarquía de la portada con accesos al contenido real. */
.treatment-page .service-intro {
  position: relative;
  isolation: isolate;
  background-color: #173f43;
}
.treatment-page .service-intro::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 47px;
  z-index: -1;
  background: url('/assets/onda-metrica.svg') center 55% / 100% 150px no-repeat;
  opacity: .38;
  pointer-events: none;
}
.treatment-page .service-intro h1 { line-height: 1.08; letter-spacing: -.033em; text-wrap: balance; }
.treatment-page .service-intro .breadcrumbs { font-size: 14px; }
.treatment-page .page-index {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 20px;
  margin-inline: auto;
  padding-block: 12px;
  border-top: 0;
  border-bottom: 1px solid #bdc9bd;
}
.treatment-page .page-index a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: #29655e;
  font-size: 14px;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.page-index svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.treatment-page .clinical-note { font-size: 14px; }
.treatment-page .implant-case h3 { font-weight: 600; line-height: 1.35; }
.treatment-page :is(.page-index, .implant-case) :focus-visible { outline: 2px solid #286860; outline-offset: 3px; }

@media (hover: hover) {
  .treatment-page .page-index a:hover { text-decoration-thickness: 2px; }
}
@media (min-width: 700px) {
  .treatment-page .page-index { gap: 5px 28px; }
}

.treatment-page { --tinta-ficha: #153f42; --verde-ficha: #2c645e; --papel-ficha: #faf8f1; --linea-ficha: #bfcbc2; }
.treatment-page .service-intro {
  color: var(--tinta-ficha);
  background: var(--papel-ficha);
  border-bottom: 1px solid #d3d8cd;
}
.treatment-page .service-intro::after {
  inset: auto auto 0 0;
  width: min(74%, 720px);
  height: 41px;
  background: url("/assets/onda-metrica.svg") left 53% / 100% 112px no-repeat;
  mask-image: linear-gradient(to right, #000 35%, transparent 100%);
  opacity: .3;
}
.treatment-page .service-intro .breadcrumbs { padding-top: 15px; color: #4a655e; font-size: 13px; }
.treatment-page .service-intro .breadcrumbs [aria-current] { color: var(--tinta-ficha); }
.treatment-page .service-intro :is(.service-hero, .implant-hero) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "texto" "indice" "foto";
  align-items: start;
  gap: 17px;
  padding-block: 20px 32px;
}
.treatment-page .service-intro .implant-hero { grid-template-areas: "texto" "indice" "foto" "profesional"; }
.treatment-page .service-intro :is(.service-hero, .implant-hero) > div { grid-area: texto; min-width: 0; }
.treatment-page .service-intro :is(.service-hero, .implant-hero) h1 {
  color: var(--tinta-ficha);
  max-width: 22ch;
  font-size: clamp(36px, 8.5vw, 51px);
  line-height: 1.06;
  letter-spacing: -.038em;
  font-weight: 500;
}
.treatment-page .service-intro .implant-hero h1 > span {
  display: block;
  margin-top: .14em;
  color: var(--verde-ficha);
  font-size: .78em;
  line-height: 1.13;
}
.treatment-page .service-intro .service-lead {
  max-width: 40ch;
  margin-top: 13px;
  color: var(--verde-ficha);
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.32;
}
.treatment-page .service-intro :is(.service-hero p:not(.service-lead), .implant-hero-description) {
  max-width: 57ch;
  margin-top: 12px;
  color: #3e5853;
  font-size: 16px;
  line-height: 1.62;
}
.treatment-page .service-intro .button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 17px;
  min-height: 46px;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--tinta-ficha);
  border-radius: 4px;
  background: var(--tinta-ficha);
  color: #fffaf2;
  font-size: 14px;
  font-weight: 600;
}
.acciones-ficha {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 15px;
}
.treatment-page .service-intro .acciones-ficha .button { margin: 0; }
.precio-ficha {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 46px;
  gap: 8px;
  color: #245e57;
  font-size: 14px;
  text-decoration: none;
}
.precio-ficha > span { font-weight: 500; line-height: 1.35; }
.precio-ficha > span > span { display: block; font-size: .94em; }
.precio-ficha strong { color: var(--tinta-ficha); font-size: 21px; line-height: 1; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.precio-ficha .icon-arrow { width: 17px; height: 17px; }
.treatment-page .service-intro .page-index {
  grid-area: indice;
  justify-content: start;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-block: 3px 0;
  gap: 0 16px;
  border: 0;
  border-top: 1px solid var(--linea-ficha);
}
.treatment-page .service-intro .page-index a { min-height: 44px; gap: 4px; color: var(--verde-ficha); font-size: 13px; }
.treatment-page .service-intro .page-index svg { width: 14px; height: 14px; flex: none; }
.treatment-page .service-intro :focus-visible { outline: 2px solid #28665e; outline-offset: 3px; }
.foto-ficha {
  grid-area: foto;
  justify-self: stretch;
  align-self: center;
  min-width: 0;
  width: 100%;
  max-width: 490px;
  margin: 0;
}
.foto-ficha img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-bottom-left-radius: clamp(27px, 6vw, 72px);
}
.treatment-page .service-intro .doctor-profile {
  grid-area: profesional;
  width: 100%;
  margin: 6px 0 0;
  padding-top: 16px;
  border-color: var(--linea-ficha);
  text-align: left;
}
.treatment-page .service-intro .doctor-profile h2 { color: var(--tinta-ficha); }
.treatment-page .service-intro .doctor-profile p { color: #38564f; }
.treatment-page .service-intro .doctor-training { border-color: var(--linea-ficha); }
.treatment-page .service-intro .doctor-training > summary { min-height: 44px; color: var(--verde-ficha); }
.treatment-page .service-intro .doctor-training ul { color: #38564f; }

/* Una lista de etapas y, a su lado, el recurso original del tratamiento. */
.treatment-page :is(.service-process, .implant-journey) .section-heading { margin: 0 0 24px; }
.recorrido-ficha { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 24px; }
.treatment-page .recorrido-ficha .journey-list { margin: 0; width: 100%; min-width: 0; }
.recorrido-ficha > figure { margin: 0; min-width: 0; align-self: start; }
.recorrido-ficha .treatment-photo { width: 100%; max-width: 540px; overflow: visible; border-radius: 0; background: transparent; }
.recorrido-ficha .treatment-photo img { display: block; width: 100%; height: auto; border-radius: 3px; object-fit: contain; }
.recorrido-ficha .treatment-photo figcaption { padding: 7px 0 0; color: #4b625a; font-size: 12px; line-height: 1.55; }
.recorrido-ficha .video-portrait { width: min(72%, 275px); justify-self: center; }
.recorrido-ficha .implant-film { width: 100%; justify-self: center; }
.recorrido-ficha :is(.video-portrait, .implant-film) { overflow: hidden; background: #163f42; border-radius: 9px; }
.recorrido-ficha video { display: block; width: 100%; height: auto; object-fit: contain; }
.recorrido-ficha .video-portrait video { aspect-ratio: 9 / 16; }
.recorrido-ficha .implant-film video { aspect-ratio: 16 / 9; }
.treatment-page .etapas-interactivas > li {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--linea-ficha);
  scroll-margin-block-start: calc(var(--header-height, 92px) + 10px);
}
.etapas-interactivas > li:last-child { border-bottom: 1px solid var(--linea-ficha); }
.treatment-page .etapas-interactivas .journey-copy { display: block; }
.treatment-page .etapas-interactivas .journey-copy h3 { max-width: none; margin: 0; }
.elegir-etapa {
  display: grid;
  grid-template-columns: 2.1em minmax(0, 1fr) 22px;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 57px;
  padding: 11px 11px 11px 4px;
  border: 0;
  border-radius: 0;
  color: #284b48;
  background: transparent;
  font: inherit;
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 500;
  line-height: 1.32;
  text-align: left;
  cursor: pointer;
}
.treatment-page .elegir-etapa .journey-number { padding: 0; font-size: 14px; color: #526a61; font-weight: 500; font-variant-numeric: tabular-nums; }
.elegir-etapa[aria-expanded="true"] { background: #e6eee5; color: var(--tinta-ficha); }
.elegir-etapa[aria-expanded="true"] .journey-number { color: var(--verde-ficha); }
.signo-etapa { display: grid; place-items: center; }
.signo-etapa svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.5; }
.signo-vertical { transform-origin: 50% 50%; transition: transform 160ms ease-out; }
.elegir-etapa[aria-expanded="true"] .signo-vertical { transform: scaleY(0); }
.contenido-etapa { padding: 3px 17px 17px clamp(48px, 5vw, 60px); background: #e6eee5; }
.contenido-etapa[hidden] { display: none; }
.treatment-page .contenido-etapa p { max-width: 59ch; color: #354f49; font-size: 16px; line-height: 1.65; }
.treatment-page .contenido-etapa .journey-detail { margin-top: 8px; color: #285e55; font-size: 14px; }
.elegir-etapa:focus-visible { outline: 2px solid #25615a; outline-offset: -3px; }
.treatment-page :is(.service-promotion, .implant-offer) { background: #ede8dd; }
.treatment-page .promotion-ortodoncia { background: #e6ddeb; }
.treatment-page .promotion-limpieza { background: #e6d7c2; }
.treatment-page .implant-price-panel { background: var(--tinta-ficha); }
.treatment-page :is(.promotion-ortodoncia, .promotion-limpieza, .implant-price-panel)::before { content: none; }
.treatment-page .promotion-price { font-variant-numeric: tabular-nums; }
.treatment-page .related a { border-color: var(--linea-ficha); }
.treatment-page .faq-list summary { padding-block: 13px; min-height: 58px; font-size: clamp(16px, 1.4vw, 20px); }
.treatment-page .faq-list details > p { max-width: 68ch; }


@media (max-width: 759px) {
  .treatment-page .service-intro .foto-ficha { justify-self: center; }
  .treatment-page .service-intro .doctor-profile { grid-template-columns: 60px minmax(0, 1fr); }
  .treatment-page .service-intro .doctor-profile > img { width: 60px; height: 60px; }
}

@media (min-width: 760px) {
  .treatment-page .service-intro :is(.service-hero, .implant-hero) {
    grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr);
    grid-template-areas: "texto foto" "indice foto";
    column-gap: clamp(32px, 5vw, 80px);
    row-gap: 19px;
    padding-block: clamp(26px, 3.8vw, 55px) clamp(39px, 4.6vw, 70px);
  }
  .treatment-page .service-intro .implant-hero { grid-template-areas: "texto foto" "indice foto" "profesional profesional"; }
  .treatment-page .service-intro :is(.service-hero, .implant-hero) > div { align-self: end; }
  .treatment-page .service-intro :is(.service-hero, .implant-hero) h1 { font-size: clamp(42px, 4.3vw, 65px); }
  .foto-ficha { justify-self: end; }
  .treatment-page .service-intro .doctor-profile { display: grid; grid-template-columns: 66px minmax(240px, .95fr) minmax(200px, .85fr); gap: 15px 22px; align-items: start; }
  .treatment-page .service-intro .doctor-training { grid-column: auto; margin: 0; align-self: center; }
  .treatment-page .service-intro .doctor-training > summary { padding-block: 11px; }
  .recorrido-ficha { grid-template-columns: minmax(0, 1.24fr) minmax(0, .86fr); gap: clamp(30px, 6vw, 90px); }
  .recorrido-ficha > figure { justify-self: center; }
  .recorrido-ficha .video-portrait { width: min(100%, 256px); }
  .treatment-page .elegir-etapa { min-height: 66px; padding-block: 14px; }
}

@media (min-width: 1100px) {
  .treatment-page .service-intro .breadcrumbs { padding-top: 22px; }
  .recorrido-ficha .video-portrait { width: 280px; }
  .treatment-page .faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 7%; }
  .treatment-page .faq .faq-list { margin: 0; }
}

@media (hover: hover) {
  .precio-ficha:hover > span, .treatment-page .related a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .treatment-page .service-intro .button:hover { background: #256058; color: white; }
  .elegir-etapa[aria-expanded="false"]:hover { background: #f0f2e9; }
}

@media (prefers-reduced-motion: reduce) {
  .signo-vertical { transition: none; }
}

@media (forced-colors: active) {
  .elegir-etapa[aria-expanded="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
}

@media print {
  .etapas-interactivas .contenido-etapa[hidden] { display: block; }
  .signo-etapa { display: none; }
}
