@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600&family=Instrument+Serif&family=DM+Sans:wght@400;500;600;700&family=Jost:wght@400;500&display=swap');

:root {
  --ink: #38241d;
  --copy: #574037;
  --muted: #774b40;
  --bronze: #894c42;
  --dark: #39251e;
  --paper: #fcf6ef;
  --line: #e0cec0;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: .98; }
h2 { font-size: clamp(2.8rem, 4.6vw, 4.65rem); letter-spacing: -.042em; }
h3 { font-size: 1.65rem; letter-spacing: -.025em; }
p { color: var(--copy); }
p + p { margin-top: 1rem; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid #a65b45; outline-offset: 4px; }
.shell { width: min(1260px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; transform: translateY(-160%); background: white; padding: 10px; z-index: 20; }
.skip:focus { transform: none; }
.header { position: sticky; top: 0; z-index: 5; color: #fff4e9; background: #705043; transition: background-color .3s, box-shadow .3s; }
.header.scrolled { background: #402b23; box-shadow: 0 3px 18px #34221826; }
.head { min-height: 71px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; text-decoration: none; }
.brand img { width: 121px; height: auto; }
nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px); }
nav a { position: relative; text-decoration: none; font-size: .86rem; font-weight: 600; }
nav a::after { content: ""; position: absolute; inset: auto 0 -5px; height: 1px; background: #f3c6a7; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
nav a:hover::after, nav a[aria-current]::after { transform: scaleX(1); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; background: linear-gradient(165deg,#a25f52,#80453d); border: 1px solid #8c4f44; color: #fff9f5; font: 700 .87rem/1.3 var(--sans); text-decoration: none; border-radius: 6px; cursor: pointer; transition: transform .22s, box-shadow .22s, filter .22s, background-color .22s; }
.button:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 7px 18px #502b2538; }
.button:active { transform: translateY(0); }
.button.outline { background: #fcf0e43d; border-color: #95695b; color: #54362d; }
.button.outline:hover { background-color: #f4dbca; }
.menu { display: none; }
.label { margin-bottom: 13px; color: var(--muted); font-size: .76rem; letter-spacing: .17em; text-transform: uppercase; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
@keyframes entrance { from { opacity: .4; transform: translateY(17px); } to { opacity: 1; transform: none; } }
@keyframes photo-in { from { opacity: .42; transform: translateY(12px) scale(1.018); } to { opacity: 1; transform: none; } }
@keyframes glow-in { from { opacity: .2; transform: translateX(4%); } to { opacity: 1; transform: none; } }
.ribbon { position: relative; z-index: 3; margin-top: -35px; background: #fbede3; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid #fff8f3; border-radius: 10px; box-shadow: 0 10px 26px #6646321c; animation: entrance .72s .29s both; }
.ribbon a { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 67px; padding: 12px; text-decoration: none; font-weight: 700; font-size: .88rem; transition: background-color .22s; }
.ribbon a + a { border-left: 1px solid #e9d5c8; }
.ribbon a:hover { background: #f3ded1; }
.ribbon span, .cards article > span { color: var(--bronze); font-size: 1.65rem; }
.section { padding-block: clamp(65px,8vw,110px); scroll-margin-top: 72px; }
#inicio { scroll-margin-top: 71px; }
.section-intro { max-width: 620px; margin-bottom: 30px; }
.section-intro > p:not(.label), h2 + p, .credentials + p { margin-top: 14px; }
#especialidades { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.58fr); gap: 32px; align-items: center; }
#especialidades .section-intro { margin: 0; }
#especialidades .button { margin-top: 19px; }
.cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.cards article, .contact-card { border: 1px solid var(--line); border-radius: 9px; background: #fff9f3; padding: 19px; }
.cards article { transition: transform .27s, box-shadow .27s, border-color .27s; }
.cards article:hover { transform: translateY(-5px); border-color: #c8a08d; box-shadow: 0 12px 27px #7952461b; }
.cards h3 { margin: 8px 0; }
.cards p { font-size: .9rem; line-height: 1.45; }
.split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(29px,7vw,98px); align-items: center; }
.treat { background: linear-gradient(125deg,#f2e3d7,#ebd8ca); }
.treat .section-intro { margin: 0; }
.section .outline { margin-top: 22px; }
.accordion { border-top: 1px solid #ceb4a2; }
details { border-bottom: 1px solid #ceb4a2; }
summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 3px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.35rem; color: var(--bronze); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 18px 16px 3px; }
details[open] p { animation: entrance .3s ease-out both; }
.portrait { height: clamp(360px,42vw,490px); background: #e5c9b2; border-radius: 47% 47% 9px 9px / 29% 29% 9px 9px; overflow: hidden; max-width: 445px; width: 100%; justify-self: center; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.credentials { font-weight: 700; color: #794a37; }
.doctor-logo { margin-top: 23px; width: 155px; height: auto; }
.institute { background: #3b2820; color: #fff3e7; }
.institute p { color: #eddbce; }
.institute .label { color: #e3bda0; }
.institute .outline { color: #fff3e7; border-color: #b58b70; background: transparent; }
.institute .outline:hover { color: var(--ink); background: #f4dbca; }
.location-card { border: 1px solid #926e59; border-radius: 12px; background: radial-gradient(ellipse at top right,#75503c,#4b3429 70%); min-height: 245px; padding: 33px; display: grid; align-content: center; }
.location-card span { font-size: 2rem; color: #e3bda0; }
.location-card strong { font: 600 2.35rem/.95 var(--serif); margin-bottom: 8px; }
.gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 35px; }
.gallery figure { overflow: hidden; border: 1px solid #926e59; border-radius: 10px; background: #4b3429; }
.gallery img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; transition: transform .6s cubic-bezier(.2,.68,.25,1); }
.gallery figure:hover img { transform: scale(1.035); }
.gallery figcaption { position: relative; background: #4b3429; font-size: .91rem; color: #eddbce; padding: 10px 15px; }
.contact-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 20px; }
.contact-card p { margin: 10px 0; }
address { font-style: normal; color: var(--copy); }
form { margin-top: 20px; display: grid; gap: 9px; }
label { font-weight: 700; }
select { min-width: 0; width: 100%; min-height: 46px; border: 1px solid #b99c88; border-radius: 6px; color: var(--ink); padding: 8px; font: inherit; background: #fffaf4; }
.map { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #efe1d3; }
.map iframe { border: 0; width: 100%; min-height: 260px; flex: 1; }
.map a { padding: 12px 17px; background: #fffaf4; font-weight: 700; }
.floating { position: fixed; right: 18px; bottom: calc(17px + env(safe-area-inset-bottom)); z-index: 4; background: #79453d; color: #fff7ef; border: 1px solid #cd9789; border-radius: 40px; min-height: 46px; padding: 8px 14px; text-decoration: none; display: flex; align-items: center; gap: 7px; font-size: .87rem; font-weight: 700; box-shadow: 0 5px 15px #462b2933; transition: transform .23s, background-color .23s; }
.floating:hover { transform: translateY(-3px); background: #653831; }
.floating span:first-child { font-size: 1.25rem; }
@media (max-width: 1120px) {
  .shell { width: calc(100% - 72px); }
  #especialidades { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
  .shell { width: calc(100% - 44px); }
  .head { gap: 16px; }
  .head-cta { display: none; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 690px) {
  .shell { width: calc(100% - 36px); }
  .head { min-height: 61px; }
  .brand img { width: 108px; }
  .header { background: #705043; }
  .menu { width: 45px; height: 44px; border: 1px solid #e0b59d; border-radius: 50%; background: #57392e; color: #fff6ee; display: grid; place-content: center; gap: 5px; cursor: pointer; }
  .menu i { display: block; width: 16px; height: 1px; background: currentColor; transition: transform .25s; }
  .menu[aria-expanded=true] i:first-child { transform: translateY(3px) rotate(45deg); }
  .menu[aria-expanded=true] i:last-child { transform: translateY(-3px) rotate(-45deg); }
  nav { position: absolute; top: 100%; inset-inline: 0; display: grid; gap: 0; background: #402b23; padding: 4px 18px 15px; box-shadow: 0 10px 20px #38251e33; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  nav.open { opacity: 1; visibility: visible; transform: none; }
  nav a { padding: 11px 7px; border-bottom: 1px solid #684c3e; }
  nav a::after { content: none; }
  .actions { display: grid; grid-template-columns: minmax(0,1fr); margin-top: 14px; gap: 7px; }
  .ribbon { max-width: 470px; margin-top: -16px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ribbon a { justify-content: flex-start; padding: 8px 9px; gap: 7px; min-height: 49px; font-size: .83rem; line-height: 1.2; }
  .ribbon a:nth-child(3) { border-left: 0; }
  .ribbon a:nth-child(n+3) { border-top: 1px solid #e9d5c8; }
  .cards article { padding: 13px; }
  .cards h3 { font-size: 1.42rem; }
  .section, #inicio { scroll-margin-top: 61px; }
  .section { padding-block: 62px; }
  .portrait { height: 360px; }
  .floating { padding: 7px 13px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .floating span + span { display: none; }
}
@media (max-width: 490px) { .gallery { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (min-width:1121px) {
  #especialidades { grid-template-columns: minmax(0,.82fr) minmax(0,1.78fr); }
  .cards { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .cards article { padding: 13px 11px; min-height: 160px; }
  .cards h3 { font-size: 1.45rem; }
}
@media (min-width:691px) {
  .header { margin-bottom: -71px; background: transparent; }
  .header.scrolled { background: #402b23; }
}

/* The crop follows the silhouette in the supplied campaign photograph. */
.location-card img {
  width: 95px;
  height: auto;
  margin-bottom: 14px;
  filter: grayscale(1) invert(1) brightness(3) contrast(2);
  mix-blend-mode: screen;
}
@media (max-width:690px) {
}

@media (min-width:1121px) {
  #especialidades h2 { font-size: clamp(2.7rem, 3.55vw, 3.9rem); }
}
@media (max-width:360px) {
  .ribbon a { font-size: .77rem; }
}
@media (max-width:690px) {
  .header { background: #f3dfcd; color: #533527; border-bottom: 1px solid #d3ae95; }
  .header:not(.scrolled) .brand img { filter: brightness(.47) sepia(.55); }
  .header.scrolled { color: #fff6ee; border-color: #684c3e; }
  .head nav { color: #fff6ee; }
}

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 64px 24px;
  background: radial-gradient(ellipse at 9% 0%, #543528, #34231d 53%, #30201a);
  color: #fff3e7;
  border-top: 1px solid #a87558;
}
.site-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: -250px;
  left: -160px;
  width: min(690px, 90vw);
  height: 470px;
  border: 1px solid #d7a38442;
  border-radius: 50%;
  transform: rotate(-20deg);
  box-shadow: 0 0 42px #dd9f681c;
}
.footer-content {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: start;
  gap: clamp(28px, 6vw, 92px);
  padding-block-end: 41px;
}
.footer-brand .brand img { width: clamp(173px, 17vw, 226px); }
.footer-brand p { margin-top: 19px; color: #e4cbbb; }
.footer-directory { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(18px, 4vw, 62px); }
.footer-group { display: grid; justify-items: start; align-content: start; gap: 5px; }
.footer-group h2 {
  margin-bottom: 8px;
  color: #e3b394;
  font: 700 .76rem/1.3 var(--sans);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.footer-group address { color: #f0ddd0; font-size: .94rem; }
.footer-phone { color: #fff1e4; font: 600 clamp(1.5rem, 2.4vw, 2rem)/1.02 var(--serif); text-decoration: none; transition: color .25s; }
.footer-phone:hover { color: #e3b394; }
.footer-link {
  width: fit-content;
  display: inline-block;
  color: #e4cbbb;
  font-size: .87rem;
  text-decoration: none;
  background-image: linear-gradient(currentColor,currentColor);
  background-repeat: no-repeat;
  background-size: 0 1px;
  background-position: 0 100%;
  transition: color .25s, background-size .28s ease-out;
}
.footer-link:hover, .footer-link:focus-visible { color: #fff4e7; background-size: 100% 1px; }
.footer-group .footer-link { margin-top: 5px; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 20px;
  border-top: 1px solid #a9806c62;
  padding-block-start: 18px;
  padding-inline-end: 134px;
}
.footer-credit { display: inline-flex; align-items: center; gap: 6px; }
.footer-credit img { width: 105px; height: auto; filter: brightness(0) invert(1); }
.site-footer.in-view::before { animation: footer-glow .95s ease-out both; }
.site-footer.in-view :is(.footer-brand,.footer-group,.footer-base) { animation: footer-enter .7s cubic-bezier(.2,.68,.25,1) both; }
.site-footer.in-view .footer-group { animation-delay: .09s; }
.site-footer.in-view .footer-group + .footer-group { animation-delay: .16s; }
.site-footer.in-view .footer-base { animation-delay: .23s; }
@keyframes footer-enter {
  from { opacity: .5; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes footer-glow {
  from { opacity: .35; transform: translateX(-20px) rotate(-23deg); }
  to { opacity: 1; transform: rotate(-20deg); }
}
@media (max-width: 800px) {
  .footer-content { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 24px; }
}
@media (max-width: 690px) {
  .site-footer { padding-block: 38px max(23px, env(safe-area-inset-bottom)); }
  .footer-content { grid-template-columns: minmax(0,1fr); gap: 25px; padding-block-end: 24px; }
  .footer-brand p { margin-top: 10px; }
  .footer-directory { gap: 14px; padding-block-start: 20px; border-top: 1px solid #a9806c62; }
  .footer-group a { min-height: 28px; }
  .footer-base { padding-inline-end: 46px; padding-block-start: 12px; }
}
@media (max-width: 350px) {
  .footer-directory { grid-template-columns: minmax(0,1fr); gap: 18px; }
}
@supports selector(details::details-content) and (interpolate-size: allow-keywords) {
  .accordion { interpolate-size: allow-keywords; }
  .accordion details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size .34s cubic-bezier(.2,.68,.25,1), content-visibility .34s allow-discrete;
  }
  .accordion details[open]::details-content { block-size: auto; }
}

.profile-training {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  border-bottom-color: var(--line);
}
.profile-training ul {
  margin: 0 0 14px;
  padding-inline-start: 23px;
  color: var(--copy);
}
.profile-training li + li { margin-top: 4px; }
.profile-training[open] ul { animation: entrance .3s ease-out both; }

.therapies {
  background: radial-gradient(ellipse at 84% 15%, #f5e6d8, #fcf6ef 65%);
  border-block: 1px solid var(--line);
}
.therapies .section-intro { margin-bottom: 0; }
.therapies .button { margin-top: 22px; }
.therapy-note {
  padding: clamp(21px, 4vw, 42px);
  border: 1px solid #d9bca8;
  border-radius: 12px;
  background: #fff9f3;
  box-shadow: 0 12px 28px #79524612;
}
.therapy-note ul { margin: 14px 0 0; padding-inline-start: 22px; color: var(--copy); }
.therapy-note li + li { margin-top: 8px; }
.therapy-note li::marker { color: var(--bronze); }

.institute-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.institute-actions .outline { margin-top: 0; }
.experience { background: #f6e8db; }
.experience-photos { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(12px,2vw,22px); }
.experience-photos figure { overflow: hidden; border-radius: 12px; background: #fff9f3; border: 1px solid var(--line); }
.experience-photos img { width: 100%; height: auto; aspect-ratio: auto; transition: transform .55s ease; }
@media (hover:hover) { .experience-photos figure:hover img { transform: scale(1.015); } }
.experience-photos figcaption { position: relative; background: #fff9f3; padding: 10px 14px; font-size: .9rem; font-weight: 600; }
.welcome-menu { margin-top: 23px; padding-inline: clamp(15px,3vw,30px); border: 1px solid #d9bca8; border-radius: 10px; background: #fff9f3; }
.welcome-menu-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; padding: 5px 3px 16px; }
.welcome-menu[open] .welcome-menu-grid { animation: entrance .34s ease-out both; }
.welcome-menu ul { margin: 10px 0 0; padding-inline-start: 20px; color: var(--copy); }
@media (max-width:690px) {
}
@media (max-width:420px) { .welcome-menu-grid { grid-template-columns: minmax(0,1fr); } }

.experience-video {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.15fr);
  gap: 18px 30px;
  align-items: start;
  margin-top: 24px;
  padding: clamp(18px,4vw,32px);
  border: 1px solid #d9bca8;
  border-radius: 12px;
  background: #fff9f3;
}
.experience-video .label { margin-bottom: 8px; }
.experience-video h3 { font-size: clamp(1.8rem,4vw,2.7rem); }
.experience-video .video-source { margin-top: 10px; color: #754534; text-decoration: underline; text-underline-offset: 3px; }
.video-player { border: 1px solid #d9bca8; border-radius: 8px; padding-inline: 12px; }
.video-player iframe { display: block; width: min(100%,430px); height: clamp(420px,110vw,675px); border: 0; margin: 0 auto 12px; background: #fff; }
.video-player[open] iframe { animation: entrance .34s ease-out both; }
@media (max-width:690px) { .experience-video { grid-template-columns: minmax(0,1fr); } }

.experience-video .video-source { display: block; }

/* Editorial layout with a single action on the opening screen. */
@media (min-width:691px) {
  .header { background: #39251e; margin-bottom: 0; }
}
#especialidades { grid-template-columns: 1fr; gap: 28px; }
#especialidades .section-intro { max-width: 640px; }
#especialidades .cards { gap: 12px; }
#especialidades .cards article { padding: clamp(14px,1.8vw,24px); border: 0; border-top: 1px solid #bc9784; border-radius: 0; background: #fffaf5; }
.treat { background: #f1e4d9; }
.experience { background: #fcf6ef; }
.contact-section { background: #eee0d3; border-top: 1px solid var(--line); }
.contact-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(25px,6vw,78px); align-items: start; }
.contact-location address { margin-block: 14px 8px; }
.contact-location .map iframe { min-height: 230px; }
.contact-card { padding: clamp(20px,4vw,42px); background: #fffaf5; }
.contact-card h3 { font-size: clamp(1.85rem,3vw,2.65rem); }
#schedule { gap: 15px; }
.contact-field { display: grid; gap: 5px; }
.contact-field span, .contact-field small, #contact-help { color: var(--copy); font-size: .87rem; font-weight: 400; }
.contact-field :is(input,textarea,select) { width: 100%; min-width: 0; min-height: 46px; padding: 9px 11px; font: inherit; color: var(--ink); border: 1px solid #b99c88; border-radius: 6px; background: #fff; }
.contact-field textarea { resize: vertical; }
.contact-field :is(input,textarea):focus-visible { outline: 3px solid #a65b45; outline-offset: 3px; }
#contact-help { margin: -6px 0 0; }
.footer-credit img { opacity: .5; transition: opacity .25s; }
.footer-credit:hover img, .footer-credit:focus-visible img { opacity: 1; }
@media (max-width:690px) {
  .contact-location { grid-row: 2; }
}

h1, h2, h3 { font-weight: 400; }
h2 { letter-spacing: -.022em; }
.head nav a, .contact-field label { font-weight: 500; }
.footer-content { grid-template-columns: minmax(0,.63fr) minmax(0,1.37fr); }
.footer-directory { grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(14px,3vw,38px); }
.footer-sitemap ul { margin: 0; padding: 0; list-style: none; }
.footer-sitemap li + li { margin-top: 3px; }
.footer-group .footer-link { display: inline-flex; align-items: center; }
.footer-phone, .location-card strong { font-weight: 400; }
.footer-base { padding-inline-end: 175px; }
.floating { animation: booking-glow 2.1s ease-out 1s 2; }
@keyframes booking-glow {
  0%, 100% { box-shadow: 0 5px 15px #462b2933; }
  40% { box-shadow: 0 5px 15px #462b2933, 0 0 0 6px #a46a526b; }
  78% { box-shadow: 0 5px 15px #462b2933, 0 0 0 12px #a46a5200; }
}
@media (max-width:800px) {
  .footer-content { grid-template-columns: minmax(0,1fr); }
}
@media (max-width:690px) {
  .floating span + span { display: inline; }
  .footer-directory { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-sitemap { grid-column: 1/-1; }
  .footer-sitemap ul { display: flex; flex-wrap: wrap; gap: 0 14px; }
  .footer-sitemap li + li { margin-top: 0; }
  .site-footer { padding-bottom: max(70px,env(safe-area-inset-bottom)); }
  .footer-base { padding-inline-end: 0; }
}
@media (max-width:350px) { .footer-directory { grid-template-columns: minmax(0,1fr); } }
@media (max-width:690px) {
  .contact-location { display: contents; }
  .contact-location .section-intro { grid-row: 1; margin-bottom: 0; }
  .contact-card { grid-row: 2; }
  .contact-location .map { grid-row: 3; }
}

:root {
  --ink: #302018;
  --copy: #594439;
  --paper: #faf5ee;
  --line: #e3d2c2;
}
.section { padding-block: clamp(54px,7vw,96px); }
.button { border-radius: 999px; background: #864c3f; border-color: #864c3f; padding-inline: 21px; }
.button.outline { background: transparent; }
.header, .header.scrolled { background: #332219; }
.head { min-height: 70px; }
#especialidades { gap: 28px; }
#especialidades .section-intro { max-width: 660px; }
#especialidades .button { background: transparent; color: #714734; border-color: #b89178; }
#especialidades .cards { grid-template-columns: repeat(auto-fit,minmax(min(100%,170px),1fr)); gap: 0; border-block: 1px solid #c9ad96; }
#especialidades .cards article { background: transparent; min-height: 0; border: 0; padding: 21px 19px; box-shadow: none; }
#especialidades .cards article + article { border-left: 1px solid #e0cbbb; }
#especialidades .cards article:hover { transform: none; background: #f4e7db; }
#especialidades .cards h3 { font-size: 1.72rem; margin: 0 0 8px; }
.treat { background: #efdfd0; }
.accordion { padding-inline: 18px; border: 1px solid #d4b9a4; border-radius: 12px; background: #fff8f0; }
.accordion details:last-child { border-bottom: 0; }
.therapies { background: #f9eee3; }
.institute { background: #3b2920; }
.location-card { background: #4d3527; }
.experience-photos { gap: clamp(8px,1.4vw,18px); }
.experience-photos figure { border: 0; border-radius: 4px; }
.experience-photos figcaption { padding: 11px 2px; background: var(--paper); }
.contact-section { background: #ede0d2; }
.contact-card { border-radius: 18px; box-shadow: 0 14px 36px #5c351614; }
@media (max-width:900px) {
  #especialidades .cards { grid-template-columns: repeat(2,minmax(0,1fr)); border-bottom: 0; }
  #especialidades .cards article { border-bottom: 1px solid #e0cbbb; }
  #especialidades .cards article:nth-child(odd) { border-left: 0; }
}
@media (max-width:690px) {
  .head { min-height: 61px; }
  .header:not(.scrolled) .brand img { filter: none; }
  #especialidades .cards article { padding: 15px 10px; }
  #especialidades .cards h3 { font-size: 1.45rem; }
}

.hero {
  position: relative;
  isolation: isolate;
  color: #fff7ec;
  background: #3b281e;
}
.hero-carousel, .hero-carousel::after, .hero-slide { position: absolute; inset: 0; }
.hero-carousel { z-index: -1; }
.hero-carousel::after {
  content: "";
  background: linear-gradient(90deg,#25170fec 0%,#322016c9 25%,#3524186b 55%,#34231912 85%);
}
.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-image-in .48s ease-out both;
}
.hero-room { object-position: center 53%; }
.hero-portrait { object-position: center 40%; }
@keyframes hero-image-in { from { opacity: .45; } to { opacity: 1; } }
.hero-grid {
  display: grid;
  align-content: center;
  min-height: clamp(475px,49vw,665px);
  padding-block: 60px 84px;
}
.hero-copy { max-width: 640px; animation: entrance .65s ease-out both; }
.hero h1 {
  font: 600 clamp(3.15rem,6.4vw,6.5rem)/.94 "Cormorant Garamond",Georgia,serif;
  letter-spacing: -.055em;
}
.hero h1 em { color: #f4c6a1; font-style: normal; }
.hero-copy p { max-width: 34ch; margin: 19px 0 24px; color: #fff1e2; }
.hero .button { background: #f0c29f; border-color: #f0c29f; color: #3b271c; }
.hero .button:hover { background: #ffdbc0; }
.hero-slide-controls {
  position: absolute;
  bottom: 22px;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #f0cfac85;
  border-radius: 999px;
  background: #39241bcc;
}
.hero-slide-controls[hidden], .hero-slide[hidden] { display: none; }
.hero-slide-controls button {
  min-height: 38px;
  padding: 4px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff7ec;
  font: 600 .82rem var(--sans);
  cursor: pointer;
  transition: background-color .22s,color .22s;
}
.hero-slide-controls button[aria-pressed=true] { background: #fff0df; color: #482f23; }
@media (max-width:690px) {
  .hero-grid { min-height: 565px; align-content: end; padding-block: 90px 87px; }
  .hero-carousel::after { background: linear-gradient(0deg,#261810f5 8%,#302017c9 41%,#3e291940 74%,#35241814); }
  .hero-room { object-position: 60% center; }
  .hero-portrait { object-position: 34% center; }
  .hero h1 { font-size: clamp(2.65rem,10.1vw,4.3rem); }
  .hero-copy p { margin-block: 13px 18px; }
}

.hero-grid { min-height: clamp(510px,51vw,690px); }
.hero-carousel::after { background: linear-gradient(90deg,#25170fed,#322016b8 36%,#35241831 76%); }
.hero-slide-controls { right: max(22px,calc((100% - 1260px)/2)); border: 0; background: transparent; gap: 8px; padding: 0; }
.hero-slide-controls button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0 0 3px;
  border: 1px solid #fff0db8f;
  background: #302018b8;
  color: #fff7ec;
  font: 400 1.9rem/1 Arial,sans-serif;
}
.hero-slide-controls button:is(:hover,:focus-visible) { background: #fff0df; color: #432c20; }
.section-intro > .label { letter-spacing: .13em; }
.section-intro h2, .profile h2 { text-wrap: balance; }
#especialidades .cards {
  border: 0;
  gap: 1px;
  background: #e2cdbb;
  overflow: hidden;
  border-radius: 12px;
}
#especialidades .cards article, #especialidades .cards article + article { border: 0; background: #fff9f2; }
#especialidades .cards article:hover { background: #f1e1d2; }
.profile { display: grid; justify-content: center; text-align: center; }
.profile > div { max-width: 650px; }
.profile-training { text-align: left; }
.profile .doctor-logo { margin-inline: auto; }
@media (max-width:690px) {
  .hero-carousel::after { background: linear-gradient(0deg,#23160ff5,#302017bd 39%,#33201624 78%); }
  .hero-grid { min-height: 555px; padding-block-end: 85px; }
  .hero-slide-controls { right: max(18px,env(safe-area-inset-right)); }
}
main { overflow-x: clip; }

.head nav a { font-size: .9rem; font-weight: 400; letter-spacing: .015em; }
.head-cta { font-weight: 600; }
.hero-slide.hero-lenina { left: auto; width: 56%; object-position: center 26%; }
.profile-with-photo {
  grid-template-columns: minmax(0,.85fr) minmax(0,1fr);
  align-items: center;
  gap: clamp(28px,7vw,95px);
  text-align: left;
}
.profile-photo { width: min(100%,390px); justify-self: end; }
.profile-photo img { width: 100%; height: auto; border-radius: 12px; }
.profile-with-photo .doctor-logo { margin-inline: 0; }
@media (max-width:690px) {
  .head nav a { font-size: 1rem; font-weight: 400; }
  .hero-slide.hero-lenina { width: 100%; object-position: center 22%; }
  .profile-with-photo { grid-template-columns: minmax(0,1fr); }
  .profile-photo { justify-self: start; width: min(100%,325px); }
}

.header, .header.scrolled { background: #39271f; }
.head { gap: clamp(14px,3vw,36px); }
.head nav { gap: clamp(12px,2.1vw,30px); }
.head nav a { font-weight: 400; letter-spacing: .02em; }
.hero { background: #38251d; }
.hero-grid { min-height: clamp(505px,48vw,670px); }
.hero-slide.hero-lenina { width: 65%; object-position: 58% 27%; }
.hero-carousel:has(.hero-lenina:not([hidden]))::after {
  background: linear-gradient(90deg,#35231b 0 29%,#35231bf2 37%,#35231b61 56%,#35231b12 81%);
}
.hero-copy { max-width: 630px; }
.hero-copy .hero-location {
  margin: 0 0 16px;
  color: #f5cfb1;
  font-size: .77rem;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.hero h1 { font-family: var(--serif); font-weight: 400; letter-spacing: -.024em; }
.hero-copy > p:not(.hero-location) { font-size: clamp(1rem,1.4vw,1.15rem); }
.hero-slide-controls button { background: #38261dc9; border-color: #edcfb7a6; }
#especialidades .cards { background: transparent; gap: 10px; border-radius: 0; overflow: visible; }
#especialidades .cards article, #especialidades .cards article + article {
  display: flex;
  flex-direction: column;
  padding: clamp(14px,1.9vw,23px);
  border: 1px solid #e3d0c0;
  border-radius: 11px;
  background: #fffaf4;
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
#especialidades .cards article:is(:hover,:focus-within) { border-color: #bc927b; box-shadow: 0 10px 22px #67412c14; transform: translateY(-3px); }
#especialidades .cards article a { align-self: flex-start; margin-top: auto; padding-top: 13px; min-height: 38px; color: #754537; font-size: .85rem; text-underline-offset: 4px; }
#especialidades .cards article p { padding-bottom: 5px; }
.profile-photo { position: relative; padding: 9px; border: 1px solid #d2b39c; border-radius: 16px; background: #f0e2d4; }
.profile-photo img { border-radius: 9px; }
.contact-card { border-color: #d9bca7; }
@media (max-width:690px) {
  .head nav { gap: 0; }
  .hero-slide.hero-lenina { width: 100%; object-position: center 27%; }
  .hero-carousel:has(.hero-lenina:not([hidden]))::after { background: linear-gradient(0deg,#2b1c15f7 5%,#2b1c15ec 24%,#2b1c1550 56%,#2b1c1500 73%); }
  .hero-grid { min-height: 580px; padding-block-end: 82px; }
  .hero h1 { font-size: clamp(2.65rem,10.5vw,4.2rem); }
  .hero-copy .hero-location { margin-bottom: 10px; }
  #especialidades .cards article { padding: 14px; }
}


.head nav a {
  font-family: "Jost", var(--sans);
  font-size: .97rem;
  font-weight: 400;
  letter-spacing: .035em;
}
.head-cta { font-family: "Jost", var(--sans); font-weight: 500; letter-spacing: .025em; }
@media (max-width:690px) {
  .head nav a { font-size: 1.07rem; padding-block: 12px; }
}

.hero-slide.hero-lenina { inset: 0; width: 100%; object-position: center 30%; }
.hero-carousel:has(.hero-lenina:not([hidden]))::after {
  background: linear-gradient(90deg,#2f1f18e8,#35251bbf 28%,#35251b33 57%,transparent 76%);
}
@media (max-width:690px) {
  .hero-slide.hero-lenina { object-position: 75% top; }
}
@media (max-width:690px) {
  .hero-carousel:has(.hero-lenina:not([hidden]))::after {
    background: linear-gradient(0deg,#2b1c15 2%,#2b1c15eb 25%,#2b1c1550 55%,transparent 75%);
  }
}
@media (max-width:690px) {
  .experience-photos { grid-template-columns: minmax(0,1fr); }
}

.hero-slide.hero-lenina-alternate { left: auto; width: 60%; object-position: center 29%; }
.hero-carousel:has(.hero-lenina-alternate:not([hidden]))::after {
  background: linear-gradient(90deg,#332219 0 33%,#332219e8 40%,#33221933 60%,transparent 81%);
}

@media (max-width:690px) {
  .hero-slide.hero-lenina-alternate { width: 100%; object-position: center 24%; }
  .hero-carousel:has(.hero-lenina-alternate:not([hidden]))::after {
    background: linear-gradient(0deg,#2b1c15 2%,#2b1c15eb 25%,#2b1c1550 55%,transparent 75%);
  }
}

.quiz { background: #f5e9dd; border-block: 1px solid var(--line); }
.quiz-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(24px,6vw,79px); align-items: start; }
.quiz .section-intro { margin-bottom: 0; }
.quiz-note { font-size: .88rem; color: var(--copy); }
.quiz-panel { padding: clamp(20px,4vw,40px); border: 1px solid var(--line); border-radius: 16px; background: #fffaf4; }
.quiz-panel h3 { font-size: clamp(1.9rem,4vw,2.8rem); line-height: 1.05; }
#quiz-begin { margin-top: 16px; }
.quiz-panel [hidden] { display: none; }
#quiz-position { font-size: .87rem; margin: 0 0 4px; }
#quiz-progress { width: 100%; height: 9px; display: block; margin: 0 0 18px; accent-color: var(--bronze); }
#quiz-topic { margin-bottom: 8px; }
.quiz-answers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.quiz-answers .button.outline { margin: 0; }
.quiz-answers .button[aria-pressed=true] { background: #eddbcd; }
.quiz-back { min-height: 44px; width: fit-content; padding: 8px 0; color: #754537; border: 0; background: none; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.quiz-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.quiz-consent { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 9px; align-items: start; font-size: .89rem; font-weight: 400; }
.quiz-consent input { margin-top: 5px; accent-color: var(--bronze); }
@media (max-width:780px) { .quiz-layout { grid-template-columns: minmax(0,1fr); } }
@media (max-width:460px) { .quiz-fields { grid-template-columns: minmax(0,1fr); } }

.quiz-contact-details .contact-field { margin-bottom: 12px; }
#quiz-finish { gap: 11px; }
#quiz-finish > .quiz-note { margin-top: 0; }
.quiz-result { border-top: 1px solid var(--line); }
.quiz-result ol { margin: 0 0 14px; padding-inline-start: 23px; color: var(--copy); }
.quiz-result li + li { margin-top: 7px; }

.reading-progress {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  pointer-events: none;
  background: #dfb28e;
  transform: scaleX(var(--reading-progress,0));
  transform-origin: left;
}
.head nav a[aria-current=location] { color: #ffd9bb; }
.hero-slide, .hero-slide[hidden] {
  display: block;
  animation: none;
  opacity: 1;
  visibility: visible;
  transition: opacity .55s ease, visibility 0s;
}
.hero-slide[hidden] { opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility 0s .55s; }

#especialidades .section-intro {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  column-gap: 24px;
  max-width: none;
}
#especialidades .section-intro .label { grid-column: 1/-1; }
#especialidades .section-intro h2 { grid-column: 1; }
#especialidades .section-intro > p:not(.label) { grid-column: 1; max-width: 48ch; }
#especialidades .section-intro .button { grid-area: 2 / 2 / 4 / 3; justify-self: start; }
#especialidades .cards article, #especialidades .cards article + article {
  border-radius: 0;
  border: 0;
  border-top: 2px solid #cab09b;
  box-shadow: 0 5px 18px #6c463b0b;
}
#especialidades .cards article:is(:hover,:focus-within) { border-color: #925f49; }
#tratamentos .accordion { background: #fffaf5; padding-inline: clamp(14px,3vw,30px); }
.profile-with-photo { padding-inline: clamp(0px,3vw,34px); }
.profile-photo { width: min(100%,435px); padding: 0; border: 0; border-radius: 4px; }
.profile-photo img { border-radius: 4px; }
.profile-photo::before {
  content: "";
  position: absolute;
  inset: 9px 9px -9px -9px;
  z-index: -1;
  border: 1px solid #b88970;
  border-radius: 4px;
}
.profile-photo { isolation: isolate; }
.experience-photos figure { border: 1px solid var(--line); border-radius: 9px; }
.experience-photos figcaption { padding: 11px 13px; background: #fffaf4; }
.quiz { background: #ecdbcb; }
.quiz-panel { border-color: #e6cdbc; box-shadow: 0 16px 38px #4c352a15; }
#quiz-position { color: #744b39; }
#quiz-progress { border: 0; border-radius: 20px; overflow: hidden; }
@media (max-width:690px) {
  #especialidades .section-intro { display: block; }
  .profile-with-photo { padding-inline: 0; }
  .profile-photo { width: min(100% - 9px,360px); margin-left: 9px; }
}

.photo-frame { position: relative; overflow: hidden; isolation: isolate; }
.profile-photo .photo-frame { border-radius: 4px; }
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg,transparent 15%,#ffe4cc45 49%,transparent 78%);
  transform: translateX(-105%);
}
.photo-frame.photo-reveal::after { animation: photo-sheen .95s ease-out both; }
@keyframes photo-sheen { to { transform: translateX(105%); } }
.photo-frame img { transition: filter .4s ease; }
@media (hover:hover) {
  .gallery figure:hover .photo-frame img, .experience-photos figure:hover .photo-frame img { transform: none; filter: brightness(1.055) saturate(1.045); }
  .profile-photo:hover .photo-frame img { filter: brightness(1.045); }
}
@media (prefers-reduced-motion:reduce) {
  .photo-frame.photo-reveal::after { animation: none; }
}

.procedure-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.procedure-card { display:grid; align-content:center; gap:7px; min-height:104px; padding:14px; border:1px solid var(--line); border-radius:8px; background:#fffaf4; text-decoration:none; transition:background-color .24s,border-color .24s; }
.procedure-card span { color:#754537; font-size:.83rem; }
.procedure-card strong { font:400 1.8rem/.98 var(--serif); }
.procedure-card:is(:hover,:focus-visible) { background:#f2e2d5; border-color:#ba907a; }
@media(max-width:850px) { .procedure-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:370px) { .procedure-cards { grid-template-columns:minmax(0,1fr); } }

.procedure-card:has(img) { grid-template-rows:auto auto 1fr; align-content:start; }
.procedure-card img { display:block; width:100%; height:145px; margin-bottom:4px; border-radius:5px; object-fit:contain; background:#eee0d3; }
@media(max-width:690px) { .procedure-card img { height:120px; } }
