/* Dentally — Especialidades Odontológicas (v2) */
:root {
  --navy: #113262;
  --navy-d: #0a2145;
  --navy-dd: #071733;
  --porcelain: #f4f1ea;
  --paper: #fbfaf6;
  --ice: #e2e9f2;
  --brass: #b08c52;
  --brass-l: #d8bd8a;
  --ink: #18202e;
  --mute: #5b6474;
  --line: #d9d4c8;
  --serif: "Literata", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(18px, 4.5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; font-family: var(--sans); font-size: 1.05rem; line-height: 1.62; color: var(--ink); background: var(--paper); overflow-x: clip; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
svg { fill: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.06; letter-spacing: -.02em; margin: 0; }
h1 em, h2 em { font-style: italic; color: var(--brass-l); }
p { margin: 0 0 1em; }
figure { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.motion [data-split] { visibility: hidden; }
.ln { padding: .16em 0 .06em; margin-top: -.16em; }

.kicker { margin: 0 0 1.3rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-l); }
.kicker--brass { color: var(--brass); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 1em 1.6em; border: 0; border-radius: 2px; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .3s, color .3s, transform .3s var(--ease); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--brass { background: var(--brass-l); color: var(--navy-dd); }
.btn--brass:hover { background: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-d); }
.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: .95rem; text-decoration: none; color: #dfe6f1; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link svg { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.link:hover svg { transform: translateX(5px); }
.link--navy { color: var(--navy); }

/* header: light over the dark hero, dark once scrolled */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 30px; height: 80px; padding: 0 var(--pad); color: #fff; transition: transform .45s var(--ease), background .3s, box-shadow .3s, color .3s; }
.header.is-scrolled { background: rgba(251, 250, 246, .95); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); color: var(--navy); }
.header.is-hidden { transform: translateY(-100%); }
.brand { position: relative; display: block; width: 150px; height: 33px; }
.brand img { position: absolute; inset: 0; width: 150px; transition: opacity .3s; }
.brand__dark { opacity: 0; }
.header.is-scrolled .brand__light, .header.menu-open .brand__light { opacity: 0; }
.header.is-scrolled .brand__dark, .header.menu-open .brand__dark { opacity: 1; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: .9rem; font-weight: 500; text-decoration: none; opacity: .85; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.hbtn { padding: .66em 1.2em; border: 1px solid currentColor; border-radius: 2px; font-size: .86rem; font-weight: 600; text-decoration: none; transition: background .25s, color .25s, border-color .25s; }
.header.is-scrolled .hbtn { background: var(--navy); color: #fff; border-color: var(--navy); }
.menu-btn { display: none; }

/* hero */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: 1fr auto; column-gap: clamp(28px, 5vw, 90px); min-height: 100svh; padding: 120px var(--pad) 40px; background: radial-gradient(80% 90% at 85% 30%, #17407a 0%, var(--navy-d) 55%, var(--navy-dd) 100%); color: #fff; overflow: hidden; }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(216, 189, 138, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(216, 189, 138, .08) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(70% 80% at 70% 40%, #000, transparent); mask-image: radial-gradient(70% 80% at 70% 40%, #000, transparent); pointer-events: none; }
.hero__txt { position: relative; z-index: 2; align-self: center; }
.hero h1 { font-size: clamp(3.2rem, 6.6vw, 7rem); font-weight: 300; max-width: 9.5ch; }
.hero__lead { max-width: 33rem; margin: 1.8rem 0 2.2rem; font-size: 1.1rem; color: #c6d1e2; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.hero__lab { position: relative; z-index: 2; align-self: center; justify-self: center; width: min(420px, 100%); }
.hero__lab video { width: 100%; aspect-ratio: 600 / 700; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(216, 189, 138, .35), 0 60px 80px -40px rgba(0, 0, 0, .7); }
.ticket { position: absolute; left: -64px; bottom: 34px; display: grid; gap: 6px; min-width: 210px; padding: 16px 18px; background: var(--porcelain); color: var(--ink); font-family: var(--mono); font-size: .78rem; box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6); }
.ticket::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 6px; background: radial-gradient(circle at 6px -2px, transparent 6px, var(--porcelain) 6.5px) 0 0 / 12px 6px repeat-x; }
.ticket__k { margin-bottom: 4px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.ticket__row { display: flex; justify-content: space-between; gap: 16px; border-top: 1px dashed var(--line); padding-top: 6px; }
.ticket__row b { font-weight: 400; color: var(--mute); }
.ticket__row i { font-style: normal; font-weight: 500; }
.chip { display: inline-block; padding: 1px 8px; border-radius: 3px; background: #efe8d8; box-shadow: inset 0 0 0 1px #d8cdb4; font-family: var(--mono); font-size: .78rem; font-style: normal; color: var(--ink); }
.chip--bl1 { background: #f7f4ec; }
.facts { position: relative; z-index: 2; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin: 50px 0 0; border-top: 1px solid rgba(216, 189, 138, .25); }
.facts div { padding: 22px 24px 0 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid rgba(216, 189, 138, .18); }
.facts dt { display: flex; align-items: center; gap: 6px; font-family: var(--serif); font-size: 2rem; font-weight: 300; }
.facts dt svg { width: 18px; height: 18px; color: var(--brass-l); }
.facts dd { margin: 0; font-size: .88rem; color: #a9b6cb; }

/* DSD project */
.project { background: var(--porcelain); }
.project__pin { display: grid; grid-template-columns: 1.35fr .65fr; grid-template-rows: auto 1fr; gap: 20px clamp(28px, 4vw, 70px); min-height: 100svh; padding: 110px var(--pad) 60px; align-content: center; }
.project__head { grid-column: 1 / -1; }
.project h2 { font-size: clamp(2.3rem, 4.4vw, 4.2rem); color: var(--navy); max-width: 16ch; }
.dsd { position: relative; align-self: center; }
.dsd img { width: 100%; border-radius: 2px; }
.dsd__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dsd__lines path, .dsd__lines rect, .dsd__lines circle { fill: none; stroke: #f3d9a4; stroke-width: 2.4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .45)); }
.dsd__lines .l1 path { stroke-dasharray: 8 6; }
.dsd__lines text { fill: #fff8e6; font-family: var(--mono); font-size: 17px; letter-spacing: .5px; paint-order: stroke; stroke: rgba(10, 33, 69, .7); stroke-width: 4px; }
.no-motion .dsd__lines g, .dsd__lines g { opacity: 1; }
.dsteps { list-style: none; margin: 0; padding: 0; align-self: center; }
.dsteps li { display: grid; grid-template-columns: 44px 1fr; padding: 14px 0; border-top: 1px solid var(--line); opacity: .35; transition: opacity .5s; }
.dsteps li.is-on, .no-motion .dsteps li { opacity: 1; }
.dsteps span { grid-row: span 2; font-family: var(--mono); font-size: .78rem; color: var(--brass); padding-top: 5px; }
.dsteps b { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--navy); }
.dsteps p { margin: 2px 0 0; font-size: .93rem; color: var(--mute); }

/* treatments accordion */
.treat { padding: 140px var(--pad); }
.treat__head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 60px; align-items: end; margin-bottom: 50px; }
.treat__head .kicker { grid-column: 1 / -1; margin: 0; }
.treat h2 { font-size: clamp(2.3rem, 4.4vw, 4.2rem); color: var(--navy); }
.treat__head p:last-child { margin: 0; color: var(--mute); max-width: 34rem; }
.acc { border-top: 1px solid var(--navy); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn { display: grid; grid-template-columns: 70px 1fr 40px; align-items: center; width: 100%; padding: 26px 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--navy); }
.acc__n { font-family: var(--mono); font-size: .8rem; color: var(--brass); }
.acc__t { font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 3rem); font-weight: 300; line-height: 1.1; transition: transform .5s var(--ease); }
.acc__btn:hover .acc__t { transform: translateX(10px); }
.acc__plus { position: relative; width: 22px; height: 22px; justify-self: end; }
.acc__plus::before, .acc__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.acc__plus::after { transform: rotate(90deg); }
.is-open .acc__plus::after { transform: rotate(0); }
.acc__body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; height: 0; overflow: hidden; padding-left: 70px; }
.is-open .acc__body { height: auto; padding-bottom: 36px; }
.acc__body ul { list-style: none; margin: 0; padding: 0; }
.acc__body li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--mute); font-size: .96rem; }
.acc__body li b { display: block; font-weight: 600; color: var(--ink); font-size: 1.04rem; }
.acc__media { max-width: 420px; }
.acc__media img, .acc__media video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.acc__media figcaption { margin-top: 8px; font-family: var(--mono); font-size: .72rem; color: var(--mute); }

/* cases: horizontal track */
.cases { background: var(--navy-d); color: #fff; }
.cases__pin { display: grid; grid-template-columns: .7fr 1.3fr; grid-template-rows: 1fr auto; gap: 10px clamp(28px, 4vw, 60px); min-height: 100svh; padding: 110px 0 40px var(--pad); align-items: center; overflow: hidden; }
.cases__head h2 { font-size: clamp(2.2rem, 3.8vw, 3.6rem); margin-bottom: 1.2rem; }
.cases__head p { color: #a9b6cb; max-width: 26rem; }
.cases__progress { position: relative; height: 2px; margin-top: 30px; max-width: 260px; background: rgba(255, 255, 255, .15); }
.cases__progress i { position: absolute; inset: 0; background: var(--brass-l); transform-origin: left; transform: scaleX(var(--p, .25)); }
.cases__view { overflow: hidden; align-self: stretch; display: flex; align-items: center; }
.cases__track { display: flex; gap: 26px; padding-right: var(--pad); }
.case { flex: 0 0 min(760px, 70vw); display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); box-shadow: 0 0 0 1px rgba(216, 189, 138, .18); }
.case figure img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.case__body { padding: 30px; }
.case__n { margin: 0 0 8px; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-l); }
.case h3 { font-size: 1.7rem; margin-bottom: 14px; }
.case__body > p:not(.case__n) { font-size: .93rem; color: #c6d1e2; }
.spec { margin: 18px 0 0; font-family: var(--mono); font-size: .76rem; }
.spec div { display: grid; grid-template-columns: 80px 1fr; gap: 10px; padding: 9px 0; border-top: 1px dashed rgba(216, 189, 138, .3); }
.spec dt { color: var(--brass-l); text-transform: uppercase; letter-spacing: .1em; }
.spec dd { margin: 0; color: #e4eaf3; }
.cases__note { grid-column: 1 / -1; margin: 0; padding-right: var(--pad); font-size: .78rem; color: #7f8ea7; }

/* doctor */
.doctor { display: grid; grid-template-columns: .55fr 1fr .5fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: 140px var(--pad); }
.doctor__photo img { width: 100%; aspect-ratio: 440 / 760; object-fit: cover; object-position: 50% 20%; }
.doctor h2 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); color: var(--navy); }
.doctor__role { margin: 10px 0 1.6rem; font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; color: var(--brass); }
.doctor__txt > p:not(.kicker):not(.doctor__role) { color: var(--mute); max-width: 36rem; }
.doctor__q { margin: 1.8rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.doctor__q p { font-family: var(--serif); font-size: 1.45rem; font-style: italic; color: var(--navy); margin-bottom: 8px; }
.doctor__q cite { font-style: normal; font-size: .82rem; color: var(--mute); }
.doctor__side { align-self: end; }
.doctor__side img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* reviews */
.reviews { padding: 110px 0; background: var(--ice); overflow: hidden; }
.reviews__score { display: flex; align-items: center; gap: 24px; padding: 0 var(--pad); margin-bottom: 40px; }
.score { margin: 0; font-family: var(--serif); font-size: 6rem; font-weight: 300; line-height: 1; color: var(--navy); }
.score__t { margin: 0; display: flex; flex-direction: column; gap: 4px; color: var(--mute); font-size: .9rem; }
.stars { display: inline-flex; gap: 2px; color: var(--brass); }
.stars svg { width: 17px; height: 17px; }
.marquee { overflow: hidden; }
.marquee__track { display: flex; gap: 20px; width: max-content; padding-right: 20px; }
.marquee blockquote { flex: 0 0 420px; margin: 0; padding: 30px; background: var(--paper); }
.marquee p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; color: var(--navy); }
.marquee cite { font-family: var(--mono); font-style: normal; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }
.no-motion .marquee__track { flex-wrap: wrap; width: auto; padding: 0 var(--pad); }

/* visit */
.visit { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: 130px var(--pad); }
.visit h2 { font-size: clamp(2.2rem, 4vw, 3.8rem); color: var(--navy); margin-bottom: 1.4rem; }
.visit address { font-style: normal; margin-bottom: 1.4rem; color: var(--mute); }
.hours { width: 100%; max-width: 460px; border-collapse: collapse; margin-bottom: 1.2rem; }
.hours th, .hours td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-family: var(--mono); font-size: .86rem; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--brass); font-weight: 600; }
.visit__notes { font-size: .88rem; color: var(--mute); }
.visit__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 1.6rem; }
.visit__map { position: relative; min-height: 460px; background: var(--ice); }
.visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
.visit__maplink { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--navy); color: #fff; font-weight: 600; font-size: .9rem; text-decoration: none; }
.visit__maplink svg { width: 20px; height: 20px; }

.footer { display: grid; justify-items: center; gap: 14px; padding: 70px var(--pad) 90px; background: var(--navy-dd); color: #8f9db5; text-align: center; font-size: .88rem; }
.footer img { width: 150px; }
.footer p { margin: 0; }
.footer__s a { color: #fff; }
.fab { display: none; }

/* responsive */
@media (max-width: 980px) {
  .header { height: 70px; gap: 14px; }
  .hbtn { display: none; }
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 46px; height: 46px; margin-left: auto; padding: 0 12px; border: 1px solid currentColor; border-radius: 2px; background: none; color: inherit; cursor: pointer; }
  .menu-btn span { display: block; height: 1.5px; background: currentColor; transition: transform .3s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0; padding: 10px var(--pad) 26px; background: var(--paper); color: var(--navy); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .25); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .3s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 15px 0; font-family: var(--serif); font-size: 1.5rem; border-bottom: 1px solid var(--line); opacity: 1; }
  .header.menu-open { background: var(--paper); color: var(--navy); }

  .hero { grid-template-columns: 1fr; padding-top: 110px; min-height: 0; }
  .hero__lab { margin-top: 50px; width: min(360px, 82%); justify-self: end; }
  .ticket { left: -22%; bottom: 20px; min-width: 180px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid rgba(216, 189, 138, .18); }
  .project__pin { grid-template-columns: 1fr; padding: 100px var(--pad); min-height: 0; }
  .dsteps li { opacity: 1; }
  .dsd__lines text { font-size: 26px; }
  .treat { padding: 100px var(--pad); }
  .treat__head { grid-template-columns: 1fr; }
  .acc__btn { grid-template-columns: 44px 1fr 30px; }
  .acc__body { grid-template-columns: 1fr; gap: 20px; padding-left: 0; }
  .cases__pin { grid-template-columns: 1fr; padding: 100px 0 60px; min-height: 0; }
  .cases__head { padding: 0 var(--pad); }
  .cases__progress { display: none; }
  .cases__view { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cases__view::-webkit-scrollbar { display: none; }
  .cases__track { padding: 0 var(--pad); }
  .case { flex-basis: 84vw; grid-template-columns: 1fr; scroll-snap-align: start; }
  .cases__note { padding: 0 var(--pad); }
  .doctor { grid-template-columns: 1fr 1fr; padding: 100px var(--pad); }
  .doctor__txt { grid-column: 1 / -1; grid-row: 1; }
  .reviews { padding: 90px 0; }
  .visit { grid-template-columns: 1fr; padding: 100px var(--pad); }
  .visit__map { min-height: 340px; }
  .fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .5); }
  .fab svg { width: 26px; height: 26px; }
}
@media (max-width: 620px) {
  .hero h1 { font-size: clamp(2.8rem, 13vw, 3.6rem); }
  .ticket { left: -30%; font-size: .72rem; min-width: 160px; padding: 12px 14px; }
  .facts dt { font-size: 1.6rem; }
  .marquee blockquote { flex-basis: 300px; padding: 22px; }
  .score { font-size: 4.4rem; }
}
