/* Mundo Dental: the site's own layer over system.css.
   World: the studio itself. Navy from the doctor's scrubs, peach from the clinic's Instagram posts,
   white marble from the consulting room, the gold line of the logo. Friendly and professional. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* palette roles: black and gold from the logo, white and a warm cream for the ground */
  --p-bg: #ffffff; --p-surface: #f7f1e6; --p-ink: #161514; --p-muted: #5d5a55;
  --p-accent: #c9a46a; --p-accent-ink: #161514; --p-action: #161514; --p-action-ink: #ffffff;
  --p-inv-bg: #141312; --p-inv-surface: #1f1d1b; --p-inv-ink: #ffffff; --p-inv-muted: #c9c3b8;
  --p-inv-accent: #d9b97d; --p-inv-accent-ink: #141312; --p-inv-action: #d4b06f; --p-inv-action-ink: #141312;
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-text: "Figtree", system-ui, sans-serif;
  --display-weight: 650; --display-tracking: -0.03em; --display-tracking-xl: -0.04em; --ly-scale: 1;

  --md-black: #161514;          /* buttons, ink */
  --md-dark: #141312;           /* dark bands */
  --md-cream: #f7f1e6;          /* warm ground for alternate sections and panels */
  --md-gold-soft: #ead8b1;      /* light gold: chips, highlights */
  --md-gold: #c9a46a;           /* the logo's gold */
  --md-gold-2: #c39a55;         /* the swoosh, icons on light grounds */
  --md-gold-text: #87642a;      /* gold that reads as text on white (5.3:1) */
  --md-white: #ffffff;
  --md-line: color-mix(in oklab, #161514 11%, transparent);
  --md-shadow: 0 1px 2px rgb(24 20 14 / .06), 0 12px 32px -12px rgb(24 20 14 / .22);
  --md-shadow-lg: 0 2px 4px rgb(24 20 14 / .06), 0 28px 60px -24px rgb(24 20 14 / .34);
  --md-ease: cubic-bezier(.16, 1, .3, 1);
  --md-pad: clamp(88px, 9vw, 136px);
  --md-foil: linear-gradient(135deg, #f4e2b0 0%, #d2ad6c 45%, #a77d3f 100%);
}

html { scroll-behavior: smooth; }
::selection { background: var(--md-gold-soft); color: var(--p-ink); }
body { font-family: var(--font-text); }
:where(h1, h2, h3) { font-family: var(--font-display); text-wrap: balance; }
h2 { font-weight: 650; letter-spacing: -0.03em; }
:focus-visible { outline: 2px solid var(--md-black); outline-offset: 3px; }
.ground-inverse :focus-visible { outline-color: var(--md-gold); }
html { scrollbar-color: color-mix(in oklab, var(--md-black) 45%, transparent) transparent; }

/* free the sections from the one-screen box: each grows with its content */
main > section.md-section, footer.closing.md-footer {
  height: auto; min-height: 0; padding: var(--md-pad) 0;
}
main > section.md-section > .wrap, footer.closing.md-footer > .wrap { height: auto; }
.md-peach { background: var(--md-cream); }
.md-white { background: var(--md-white); }

.md-head { display: grid; gap: var(--s-4); max-width: 640px; margin-bottom: clamp(36px, 4vw, 56px); }
.md-head p { font-size: clamp(17px, 1.1vw + 11px, 20px); line-height: 1.55; color: var(--muted); }
.md-head--row { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s-5) var(--s-7); }
.md-head--row > div { display: grid; gap: var(--s-4); max-width: 640px; }
@media (max-width: 767px) { .md-head--row { grid-template-columns: 1fr; } }
.md-h2 { font-size: clamp(34px, 2.6vw + 20px, 56px); line-height: 1.04; }

/* ------------------------------------------------------------------ logo */
.md-logo { fill: none; stroke: var(--md-gold); stroke-linecap: round; stroke-linejoin: round; }
.nav .nav__logo { gap: 10px; font: 650 22px/1 var(--font-display); letter-spacing: -0.02em; }
.md-badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--md-dark); flex: none; }
.md-badge svg { width: 30px; height: 30px; stroke-width: 30; }
@media (max-width: 639px) { .md-badge { width: 36px; height: 36px; } .md-badge svg { width: 27px; height: 27px; stroke-width: 32; } }

/* nav: white, with a soft shadow once the page moves */
.nav { background: color-mix(in oklab, var(--md-white) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px); transition: box-shadow .3s var(--md-ease); }
html.md-scrolled .nav { box-shadow: 0 8px 24px -16px rgb(24 20 14 / .35); }

/* buttons: friendly pills with a lift */
.btn { border-radius: 999px; font-weight: 600; letter-spacing: 0; }
.btn--primary { box-shadow: 0 6px 16px -8px color-mix(in oklab, var(--md-black) 70%, transparent); }
.btn--primary:hover { background: #2e2c29; }
.btn--secondary { background: transparent; border: 1.5px solid color-mix(in oklab, var(--md-black) 30%, transparent); color: var(--md-black); }
.btn--secondary:hover { border-color: var(--md-black); background: color-mix(in oklab, var(--md-black) 6%, transparent); }
.btn .m-arrow { transition: transform .25s var(--md-ease); }
.btn:hover .m-arrow { transform: translateX(3px); }
.link { color: var(--md-black); font-weight: 600; }

/* icons drawn in one stroke */
.md-ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.md-ic-wrap { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--md-cream); color: var(--md-gold-text); flex: none; }

/* ------------------------------------------------------------------ hero */
.md-hero { position: relative; height: auto; min-height: 100svh; padding: calc(var(--nav) + clamp(32px, 4vw, 64px)) 0 clamp(48px, 5vw, 80px); overflow: clip; background: var(--md-white); }
.md-hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; min-height: calc(100svh - var(--nav) - 140px); }
.md-hero h1 { font-size: clamp(44px, 4.4vw + 12px, 92px); line-height: .98; letter-spacing: -0.045em; font-weight: 700; color: var(--p-ink); }
.md-line { display: block; overflow: clip; padding-bottom: .22em; margin-bottom: -.16em; }
.md-line > span { display: inline-block; }
.md-mark { position: relative; white-space: nowrap; color: var(--md-gold-text); }
.md-swoosh { position: absolute; left: -2%; right: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.md-swoosh path { fill: none; stroke: var(--md-gold-2); stroke-width: 7; stroke-linecap: round; }
.md-lead { margin-top: clamp(20px, 2vw, 28px); font-size: clamp(17px, .5vw + 15px, 21px); line-height: 1.55; color: var(--p-muted); max-width: 46ch; }
.md-hero .btn-row { margin-top: clamp(28px, 2.6vw, 40px); }
.md-hero .btn { height: 52px; padding-inline: 28px; font-size: 17px; }
.md-points { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: clamp(32px, 3vw, 48px); padding-top: 24px; border-top: 1px solid var(--md-line); }
.md-points li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--p-ink); }
.md-points .md-ic { width: 20px; height: 20px; color: var(--md-gold-2); stroke-width: 2; }

.md-hero__media { position: relative; aspect-ratio: 5 / 5.6; max-height: calc(100svh - var(--nav) - 96px); justify-self: end; width: 100%; }
.md-hero__panel { position: absolute; inset: 7% 0 0 9%; border-radius: 40px; background: var(--md-cream); }
.md-hero__logo { position: absolute; z-index: 2; width: 36%; right: 12%; top: 4%; filter: drop-shadow(0 2px 8px rgb(0 0 0 / .45)); pointer-events: none; }
.md-hero__logo .md-write path { fill: none; stroke: #fff; stroke-width: 34; stroke-linecap: round; stroke-linejoin: round; }
.md-hero__photo { position: absolute; inset: 0 9% 7% 0; margin: 0; border-radius: 32px; overflow: hidden; box-shadow: var(--md-shadow-lg); }
.md-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.md-float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; background: var(--md-white); box-shadow: var(--md-shadow); max-width: 290px; }
.md-float b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--p-ink); }
.md-float small { display: block; font-size: 13px; color: var(--p-muted); line-height: 1.35; }
.md-float { z-index: 3; }
.md-float--a { right: 0; bottom: 3%; }
.md-float--b { left: -8%; top: 40%; }
.md-float--b .md-ic-wrap { background: var(--md-black); color: var(--md-gold); }

@media (max-width: 1023px) {
  .md-hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .md-hero__media { max-height: none; aspect-ratio: 4 / 4.2; max-width: 620px; justify-self: center; }
  .md-float--b { left: -2%; }
}
@media (max-width: 639px) {
  .md-hero { padding-top: calc(var(--nav) + 28px); }
  .md-hero__media { aspect-ratio: 1 / 1.08; margin-top: 8px; }
  .md-hero__panel { border-radius: 28px; }
  .md-hero__photo { border-radius: 24px; }
  .md-float { padding: 10px 14px 10px 10px; }
  .md-float .md-ic-wrap { width: 38px; height: 38px; border-radius: 12px; }
  .md-float--a { bottom: 2%; right: 0; max-width: 240px; }
  .md-float--b { display: none; }
  .md-hero .btn-row .btn { width: 100%; }
  .md-points { gap: 12px; flex-direction: column; }
}

/* the hero arrives once: the lines rise, the swoosh and the logo draw, the photo opens */
@media (prefers-reduced-motion: no-preference) {
  html.md-js .md-line > span { animation: md-rise .9s var(--md-ease) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
  html.md-js .md-hero .md-lead, html.md-js .md-hero .btn-row, html.md-js .md-points { animation: md-fade .8s var(--md-ease) both; }
  html.md-js .md-hero .md-lead { animation-delay: .38s; }
  html.md-js .md-hero .btn-row { animation-delay: .48s; }
  html.md-js .md-points { animation-delay: .6s; }
  html.md-js .md-swoosh path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: md-draw .9s var(--md-ease) .75s forwards; }
  html.md-js .md-hero__logo .md-write path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: md-draw 2.2s cubic-bezier(.45, 0, .2, 1) .45s forwards; }
  html.md-js .md-hero__logo .md-write path + path { animation-delay: 1s; }
  html.md-js .md-hero__panel { animation: md-panel 1s var(--md-ease) .1s both; }
  html.md-js .md-hero__photo { animation: md-open 1.1s var(--md-ease) .2s both; }
  html.md-js .md-float--a { animation: md-pop .7s var(--md-ease) 1.05s both; }
  html.md-js .md-float--b { animation: md-pop .7s var(--md-ease) 1.2s both; }
}
@keyframes md-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes md-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes md-draw { to { stroke-dashoffset: 0; } }
@keyframes md-panel { from { opacity: 0; transform: translate(18px, 18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes md-open { from { clip-path: inset(12% 10% 12% 10% round 32px); transform: scale(1.04); } to { clip-path: inset(0 round 32px); transform: none; } }
@keyframes md-pop { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ casos: before / after */
.md-casos { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.md-compare-wrap { display: grid; gap: 16px; }
.md-compare { --pos: 50%; position: relative; aspect-ratio: 900 / 390; border-radius: 28px; overflow: hidden; background: var(--md-gold-soft); box-shadow: var(--md-shadow-lg); user-select: none; touch-action: pan-y; }
.md-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.md-compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.md-compare__tag { position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .01em; background: rgb(255 255 255 / .92); color: var(--p-ink); box-shadow: 0 2px 8px rgb(24 20 14 / .15); pointer-events: none; }
.md-compare__tag--before { left: 16px; }
.md-compare__tag--after { right: 16px; background: var(--md-black); color: #fff; }
.md-compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgb(24 20 14 / .08); pointer-events: none; }
.md-compare__knob { position: absolute; top: 50%; left: var(--pos); width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; color: var(--md-black); display: grid; place-items: center; box-shadow: 0 6px 18px -4px rgb(24 20 14 / .45); pointer-events: none; transition: transform .2s var(--md-ease); }
.md-compare__knob svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.md-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.md-compare:hover .md-compare__knob, .md-compare.is-dragging .md-compare__knob { transform: scale(1.08); }
.md-compare__range:focus-visible ~ .md-compare__knob { outline: 3px solid var(--md-gold-2); outline-offset: 3px; }
.md-compare img { transition: opacity .35s var(--md-ease); }
.md-compare.is-swapping img { opacity: 0; }
.md-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.md-tab { height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid color-mix(in oklab, var(--md-black) 22%, transparent); background: transparent; color: var(--md-black); font: 600 15px/1 var(--font-text); cursor: pointer; transition: background .2s var(--md-ease), color .2s var(--md-ease), border-color .2s var(--md-ease); }
.md-tab:hover { border-color: var(--md-black); }
.md-tab[aria-pressed="true"] { background: var(--md-black); border-color: var(--md-black); color: #fff; }
.md-tabs__hint { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--p-muted); }
.md-tabs__hint .md-ic { width: 18px; height: 18px; color: var(--md-gold-2); }
.md-tile { position: relative; margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--md-shadow); min-height: 100%; background: var(--md-gold-soft); }
.md-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--md-ease); }
a.md-tile:hover img { transform: scale(1.04); }
.md-tile__cta { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 16px; background: rgb(255 255 255 / .94); color: var(--p-ink); font-weight: 600; font-size: 15px; box-shadow: var(--md-shadow); }
.md-tile__cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s var(--md-ease); }
a.md-tile:hover .md-tile__cta svg { transform: translate(2px, -2px); }
@media (max-width: 1023px) { .md-casos { grid-template-columns: 1fr; } .md-tile { min-height: 0; aspect-ratio: 16 / 10; } }
@media (max-width: 639px) {
  .md-compare { border-radius: 20px; aspect-ratio: 4 / 3; }
  .md-compare__knob { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .md-tabs__hint { margin-left: 0; width: 100%; }
  .md-tile { border-radius: 20px; aspect-ratio: 4 / 5; }
}

/* ------------------------------------------------------------------ carillas */
.md-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.md-fixes { display: grid; gap: 14px; margin-top: 8px; }
.md-fix { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 20px; background: var(--md-white); border: 1px solid var(--md-line); transition: transform .3s var(--md-ease), box-shadow .3s var(--md-ease), border-color .3s var(--md-ease); }
.md-fix:hover { transform: translateY(-2px); box-shadow: var(--md-shadow); border-color: transparent; }
.md-fix b { display: block; font: 600 18px/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--p-ink); }
.md-fix p { margin-top: 4px; color: var(--p-muted); font-size: 16px; line-height: 1.5; }
.md-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: 15px; color: var(--p-muted); }
.md-note .md-ic { color: var(--md-black); width: 20px; height: 20px; margin-top: 1px; }
.md-photo-stack { position: relative; }
.md-photo-stack::before { content: ""; position: absolute; inset: 8% -4% -4% 10%; border-radius: 36px; background: var(--md-cream); }
.develop { position: relative; margin: 0; border-radius: 32px; overflow: hidden; aspect-ratio: 900 / 803; box-shadow: var(--md-shadow-lg); }
.develop > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.md-chip { position: absolute; z-index: 2; left: -18px; bottom: 28px; display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 16px; background: var(--md-black); color: #fff; font-weight: 600; font-size: 15px; box-shadow: var(--md-shadow-lg); }
.md-chip .md-ic { width: 20px; height: 20px; color: var(--md-gold-soft); }
@media (max-width: 1023px) { .md-split { grid-template-columns: 1fr; } .md-photo-stack { max-width: 640px; } }
@media (max-width: 639px) { .md-chip { left: 12px; bottom: 12px; } .develop { border-radius: 24px; aspect-ratio: 4 / 4.4; } }

/* ------------------------------------------------------------------ proceso (navy band, pinned) */
#proceso { background: var(--md-cream); }
#proceso .mo-pc__visuals, #proceso .mo-pc__visual > img { border-radius: 28px; }
#proceso .mo-pc__visual { border-radius: 28px; overflow: hidden; }
#proceso .mo-pc__step h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.015em; }
#proceso .mo-pc__step h3::before { content: attr(data-step); display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 12px; border-radius: 50%; background: var(--md-black); color: var(--md-gold); font: 700 15px/1 var(--font-text); vertical-align: 3px; }
#proceso .mo-pc__step p { color: var(--muted); font-size: 17px; }
#proceso:not(.is-live) { height: auto; min-height: 0; padding: var(--md-pad) 0; }

/* ------------------------------------------------------------------ preguntas (accordion) */
.md-faq-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.md-faq-photo { margin: 28px 0 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--md-shadow); }
.md-faq-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.md-acc { display: grid; gap: 12px; }
.md-acc details { border-radius: 20px; background: var(--md-white); border: 1px solid var(--md-line); transition: background .3s var(--md-ease), border-color .3s var(--md-ease), box-shadow .3s var(--md-ease); interpolate-size: allow-keywords; }
.md-acc details[open] { background: var(--md-cream); border-color: transparent; }
.md-acc details:hover:not([open]) { box-shadow: var(--md-shadow); border-color: transparent; }
.md-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font: 600 clamp(17px, .3vw + 15px, 19px)/1.35 var(--font-display); letter-spacing: -0.01em; color: var(--p-ink); border-radius: 20px; }
.md-acc summary::-webkit-details-marker { display: none; }
.md-acc summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--md-cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .35s var(--md-ease), background-color .3s; }
.md-acc details[open] summary::after { transform: rotate(135deg); background-color: #fff; }
.md-acc details::details-content { height: 0; overflow: clip; transition: height .4s var(--md-ease), content-visibility .4s allow-discrete; }
.md-acc details[open]::details-content { height: auto; }
.md-acc details p { padding: 0 22px 22px; color: var(--p-ink); font-size: 16px; line-height: 1.6; max-width: 60ch; }
@media (max-width: 1023px) { .md-faq-grid { grid-template-columns: 1fr; } .md-faq-photo { aspect-ratio: 16 / 9; } }

/* ------------------------------------------------------------------ doctora */
.md-doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.md-doc__text p { font-size: clamp(17px, .4vw + 15px, 20px); line-height: 1.6; color: var(--ink); max-width: 46ch; }
.md-doc__text p + p { margin-top: 14px; }
.md-doc__name { margin-bottom: 20px; }
.md-doc__name small { display: block; margin-top: 10px; font: 500 clamp(18px, .5vw + 15px, 22px)/1.3 var(--font-text); color: var(--md-gold); letter-spacing: 0; }
.md-doc__photo { position: relative; margin: 0; }
.md-doc__photo .md-frame { border-radius: 32px; overflow: hidden; aspect-ratio: 853 / 947; box-shadow: var(--md-shadow-lg); }
.md-doc__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.md-doc__seal { position: absolute; right: -22px; top: 32px; width: 112px; height: 112px; border-radius: 50%; box-shadow: 0 0 0 4px var(--md-dark), var(--md-shadow-lg); }
.md-doc__ig { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; }
@media (max-width: 1023px) { .md-doc { grid-template-columns: 1fr; } .md-doc__photo { max-width: 560px; } }
@media (max-width: 639px) { .md-doc__seal { right: 12px; top: 12px; width: 80px; height: 80px; } }

/* ------------------------------------------------------------------ cita */
.md-cita { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.booking { background: var(--md-white); border-radius: 28px; padding: clamp(24px, 3vw, 40px); box-shadow: var(--md-shadow-lg); }
.booking__title { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; font: 600 20px/1.3 var(--font-display); color: var(--p-ink); }
.field :is(input, select, textarea) { border-radius: 14px; background: #f7f7fa; border-color: color-mix(in oklab, var(--md-black) 14%, transparent); transition: border-color .2s, box-shadow .2s, background .2s; }
.field :is(input, select, textarea):hover { border-color: color-mix(in oklab, var(--md-black) 35%, transparent); }
.field :is(input, select, textarea):focus { background: #fff; border-color: var(--md-black); box-shadow: 0 0 0 4px color-mix(in oklab, var(--md-black) 14%, transparent); outline: none; }
.booking .btn--primary { width: 100%; height: 52px; font-size: 17px; }
.cx-map { border-radius: 28px; box-shadow: var(--md-shadow-lg); border: 0; height: 100%; display: flex; flex-direction: column; background: var(--md-white); }
.cx-map__ground { flex: 1 1 auto; min-height: 340px; }
.cx-map__card .cx-title { font-family: var(--font-display); font-weight: 600; }
.cx-map__scale { color: var(--ink); }
.cx-map__dot { background: var(--md-gold-2) !important; }
@media (max-width: 1023px) { .md-cita { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ footer */
.md-footer { background: var(--md-dark); }
.md-cta { --bg: var(--md-cream); --ink: var(--p-ink); --muted: var(--p-muted); --action: var(--md-black); --action-ink: #fff; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding: clamp(32px, 4vw, 56px); border-radius: 32px; background: var(--md-cream); color: var(--p-ink); overflow: hidden; }
.md-cta h2 { color: var(--p-ink); font-size: clamp(30px, 2.4vw + 16px, 52px); line-height: 1.05; }
.md-cta p { margin-top: 12px; color: var(--p-muted); font-size: 18px; }
.md-cta .btn { height: 56px; padding-inline: 32px; font-size: 17px; background: var(--md-black); color: #fff; position: relative; z-index: 1; }
.md-cta__logo { position: absolute; right: -30px; bottom: -60px; width: 260px; fill: var(--md-black); opacity: .07; }
@media (max-width: 767px) { .md-cta { grid-template-columns: 1fr; } .md-cta .btn { width: 100%; } .md-cta__logo { width: 180px; } }
.md-footer .closing__links { margin-top: 0; }
.md-footer .footer__mark { display: inline-flex; align-items: center; gap: 14px; font: 650 30px/1 var(--font-display); letter-spacing: -0.02em; color: #fff; }
.md-footer .footer__mark .md-badge { width: 56px; height: 56px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.md-footer .footer__mark .md-badge svg { width: 38px; height: 38px; stroke-width: 22; }
.md-footer .footer__lede { font: 500 18px/1.45 var(--font-text); color: var(--p-inv-muted); letter-spacing: 0; max-width: 28ch; }
.md-footer .closing__links a:not(.md-social):hover { color: var(--md-gold-soft); }
.md-footer .btn--primary { box-shadow: none; }
.md-cta .btn--primary:hover { background: #2e2c29; color: #fff; }
.md-social { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / .08); color: #fff; transition: background .2s, transform .2s var(--md-ease); }
.md-social:hover { background: var(--md-gold-soft); color: var(--md-dark) !important; transform: translateY(-2px); }
.md-social svg { width: 18px; height: 18px; }

/* the phone bar takes the navy pill too */
.actionbar { background: rgb(255 255 255 / .92); backdrop-filter: blur(12px); }

/* ------------------------------------------------------------------ scroll reveals (pictures and lists only) */
@media (prefers-reduced-motion: no-preference) {
  html.md-js .md-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--md-ease), transform .9s var(--md-ease); transition-delay: calc(var(--d, 0) * 90ms); }
  html.md-js .md-reveal.is-in { opacity: 1; transform: none; }
  html.md-js .md-reveal-pic { clip-path: inset(10% 6% 10% 6% round 32px); transition: clip-path 1.1s var(--md-ease); }
  html.md-js .md-reveal-pic.is-in { clip-path: inset(0 0 0 0 round 32px); }
}

/* the kit sets every section's .wrap to a flex column: these wraps are grids */
html main > section > .wrap.wrap:is(.md-hero__grid, .md-split, .md-faq-grid, .md-doc) { display: grid; }
@media (max-width: 1023px) {
  html main > section > .wrap.wrap:is(.md-hero__grid, .md-split, .md-faq-grid, .md-doc) { grid-template-columns: 1fr; }
}

/* the credits toggle speaks Spanish */
.credits > summary::after { content: "Ver"; }
.credits[open] > summary::after { content: "Ocultar"; }
:where(h1, h2, h3, summary) { hyphens: manual; }
/* the hero grows with its content too (the kit fixes main > section to one screen) */
main > section.md-hero { height: auto; min-height: 100svh; padding: calc(var(--nav) + clamp(32px, 4vw, 64px)) 0 clamp(48px, 5vw, 80px); }
main > section.md-hero > .wrap { height: auto; }
@media (max-width: 1023px) { main > section.md-hero { min-height: 0; } }

/* ------------------------------------------------------------------ the logo as an image (the client's own mark, traced to vector) */
.md-logo-img { display: block; width: 40px; height: 40px; border-radius: 50%; flex: none; }
@media (max-width: 639px) { .md-logo-img { width: 36px; height: 36px; } }
.md-footer .footer__mark .md-logo-img { width: 56px; height: 56px; }

/* dark bands: buttons and links in gold */
.ground-inverse .btn--primary:hover { background: #e2c389; color: var(--md-dark); }
.ground-inverse .btn--secondary { color: #fff; border-color: rgb(255 255 255 / .3); }
.ground-inverse .btn--secondary:hover { border-color: var(--md-gold); background: rgb(201 164 106 / .1); }
.ground-inverse .link { color: var(--md-gold-soft); }
.md-dark { background: var(--md-dark); }
.md-gold-rule { display: block; width: 56px; height: 3px; border-radius: 2px; background: var(--md-foil); margin-bottom: 20px; }

/* ------------------------------------------------------------------ the veneer: grid of the drawing and the checklist */
.md-veneer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.md-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--md-line); justify-self: start; }
.md-switch button { height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; font: 600 15px/1 var(--font-text); color: var(--md-black); cursor: pointer; transition: background .25s var(--md-ease), color .25s var(--md-ease); }
.md-switch button[aria-pressed="true"] { background: var(--md-black); color: #fff; }

/* ------------------------------------------------------------------ are veneers for you: a checklist that answers */
.md-quiz { display: grid; grid-template-rows: 1fr auto; gap: 18px; padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: #fff; border: 1px solid var(--md-line); box-shadow: var(--md-shadow); }
.md-quiz legend { font: 600 20px/1.3 var(--font-display); letter-spacing: -0.01em; margin-bottom: 4px; padding: 0; }
.md-quiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.md-quiz__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.md-opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: 16px; background: var(--md-cream); cursor: pointer; font-weight: 500; font-size: 15px; line-height: 1.3; transition: background .25s var(--md-ease), box-shadow .25s var(--md-ease), transform .25s var(--md-ease); }
.md-opt:hover { transform: translateY(-1px); box-shadow: var(--md-shadow); }
.md-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.md-opt__box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--md-black) 30%, transparent); transition: background .2s, box-shadow .2s; }
.md-opt__box svg { width: 14px; height: 14px; fill: none; stroke: var(--md-gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .3s var(--md-ease); }
.md-opt:has(input:checked) { background: var(--md-black); color: #fff; }
.md-opt:has(input:checked) .md-opt__box { background: var(--md-black); box-shadow: inset 0 0 0 1.5px var(--md-gold); }
.md-opt:has(input:checked) .md-opt__box svg { stroke-dashoffset: 0; }
.md-opt:has(input:focus-visible) { outline: 2px solid var(--md-black); outline-offset: 3px; }
.md-quiz__result { display: grid; gap: 12px; padding: 18px 20px; border-radius: 18px; background: var(--md-cream); }
.md-quiz__result p { font-size: 16px; line-height: 1.5; }
.md-quiz__result strong { font-family: var(--font-display); font-size: 19px; font-weight: 650; letter-spacing: -0.01em; display: block; }
.md-quiz__result .btn { justify-self: start; }
.md-quiz__result[data-state="empty"] .btn { display: none; }
@media (max-width: 1023px) { .md-veneer-grid { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .md-quiz__opts { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ the shade guide */
.md-shade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.md-shade__photo { margin: 0; border-radius: 32px; overflow: hidden; aspect-ratio: 900 / 803; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8); }
.md-shade__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.md-shade__tool { margin-top: 32px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; align-items: center; padding: 24px; border-radius: 24px; background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.md-shade__preview { width: 150px; height: 170px; }
.md-shade__preview .md-shade__tooth { fill: var(--shade, #f2ece0); transition: fill .45s var(--md-ease); }
.md-shade__preview .md-shade__shine { fill: #fff; opacity: .55; }
.md-shade__preview .md-shade__edge { fill: none; stroke: rgb(0 0 0 / .18); stroke-width: 2; }
.md-shade__name { font: 650 28px/1 var(--font-display); color: var(--md-gold); letter-spacing: -0.02em; }
.md-shade__desc { margin-top: 6px; color: var(--p-inv-muted); font-size: 16px; }
.md-shade__swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.md-swatch { display: grid; justify-items: center; gap: 6px; width: 54px; padding: 8px 0 6px; border: 0; border-radius: 14px; background: transparent; color: #fff; font: 600 13px/1 var(--font-text); cursor: pointer; transition: background .2s var(--md-ease); }
.md-swatch span { width: 26px; height: 32px; border-radius: 9px 9px 12px 12px; background: var(--c); box-shadow: inset 0 -4px 6px rgb(0 0 0 / .08); transition: transform .25s var(--md-ease); }
.md-swatch:hover span { transform: translateY(-2px); }
.md-swatch[aria-pressed="true"] { background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1.5px var(--md-gold); }
@media (max-width: 1023px) { .md-shade { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .md-shade__tool { grid-template-columns: 1fr; justify-items: start; } .md-shade__preview { width: 120px; height: 136px; } }

/* ------------------------------------------------------------------ caring for veneers */
.md-care { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.md-care li { display: grid; align-content: start; gap: 14px; padding: 24px; border-radius: 24px; background: var(--md-cream); transition: transform .3s var(--md-ease), box-shadow .3s var(--md-ease); }
.md-care li:hover { transform: translateY(-3px); box-shadow: var(--md-shadow); }
.md-care .md-ic-wrap { width: 52px; height: 52px; border-radius: 16px; background: var(--md-black); color: var(--md-gold); }
.md-care .md-ic-wrap .md-ic { width: 26px; height: 26px; }
.md-care b { font: 600 19px/1.3 var(--font-display); letter-spacing: -0.01em; }
.md-care p { color: var(--muted); font-size: 16px; line-height: 1.5; }
.md-care-note { display: flex; gap: 12px; align-items: center; margin-top: 20px; padding: 16px 20px; border-radius: 18px; border: 1px dashed color-mix(in oklab, var(--md-gold) 70%, transparent); color: var(--p-ink); font-size: 16px; }
.md-care-note .md-ic { color: var(--md-gold-text); }
@media (max-width: 1023px) { .md-care { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .md-care { grid-template-columns: 1fr; } }

html main > section > .wrap.wrap.md-shade { display: grid; }
@media (max-width: 1023px) { html main > section > .wrap.wrap.md-shade { grid-template-columns: 1fr; } }


/* the logo at small sizes: the same traced mark, its strokes thickened so it reads at 40px */
.md-mark-badge { display: inline-grid; place-items: center; width: var(--s, 40px); height: var(--s, 40px); border-radius: 50%; background: #1c1c1e; flex: none; box-shadow: inset 0 0 0 1px rgb(201 164 106 / .35); }
.md-mark-badge svg { width: 100%; height: 100%; }
@media (max-width: 639px) { .nav .md-mark-badge { --s: 36px !important; } }
.md-doc__photo .md-doc__seal { width: 112px; height: 112px; inset: auto; right: -22px; top: 32px; object-fit: contain; }
@media (max-width: 639px) { .md-doc__photo .md-doc__seal { width: 80px; height: 80px; right: 12px; top: 12px; } }
h1, h2, h3, summary, legend { hyphens: manual; -webkit-hyphens: manual; }
@media (max-width: 639px) { .md-shade__swatches { gap: 4px; } .md-swatch { width: 48px; } }
/* hover fills, at the kit hover rule's own strength: gold on the dark bands, black inside the cream close */
html:not([data-motion="off"]) .ground-inverse .btn--primary:hover { background: #e2c389; color: var(--md-dark); }
html:not([data-motion="off"]) .ground-inverse .md-cta .btn--primary:hover { background: #2e2c29; color: #fff; }
/* the Instagram circle keeps its icon centred when the phone layout makes it a 44px tap target */
.md-footer .md-social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; }

/* ------------------------------------------------------------------ the phone and tablet menu
   The bar keeps a solid ground below 1024px: a backdrop-filter there makes the bar the containing block of
   the sheet (position: fixed), which pinned the sheet inside the 56px bar. */
.md-burger { position: relative; display: block; width: 18px; height: 12px; }
.md-burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--md-ease), top .3s var(--md-ease); }
.md-burger i:first-child { top: 1px; }
.md-burger i:last-child { top: 9px; }
.nav__toggle[aria-expanded="true"] .md-burger i:first-child { top: 5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .md-burger i:last-child { top: 5px; transform: rotate(-45deg); }
@media (min-width: 1024px) { .md-sheet-only { display: none !important; } }
@media (max-width: 1023px) {
  .nav { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__toggle { border-radius: 50%; border-color: var(--md-line); }
  .nav.is-open .nav__toggle { background: var(--md-black); border-color: var(--md-black); color: #fff; }
  .nav.is-open .nav__links { background: #fff; padding-top: 12px; }
  .nav.is-open .nav__item { border-bottom-color: var(--md-line); }
  .nav.is-open .nav__link { height: 68px; font: 600 28px/1 var(--font-display); letter-spacing: -0.025em; color: var(--p-ink); }
  .nav.is-open .nav__expand { height: 68px; }
  .nav.is-open .menu-card .t-card { font-weight: 600; font-size: 17px; }
  .nav.is-open .menu-card .t-small { color: var(--p-muted); }
  .nav.is-open .nav__actions { background: var(--md-cream); border-top: 0; grid-template-columns: 1fr 1fr; column-gap: 8px; }
  .nav.is-open .nav__actions .btn { grid-column: 1 / -1; height: 52px; font-size: 17px; }
  .nav.is-open .nav__actions .nav__link { height: 44px; border-radius: 999px; background: #fff; font-weight: 600; font-size: 15px; color: var(--md-black); }
  html:has(.nav.is-open) .actionbar { display: none; }
}
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  .nav.is-open .nav__links { animation: md-sheet .4s var(--md-ease) both; }
  .nav.is-open .nav__item { animation: md-fade .5s var(--md-ease) both; }
  .nav.is-open .nav__item:nth-child(2) { animation-delay: .04s; }
  .nav.is-open .nav__item:nth-child(3) { animation-delay: .08s; }
  .nav.is-open .nav__item:nth-child(4) { animation-delay: .12s; }
  .nav.is-open .nav__actions { animation: md-sheet-up .45s var(--md-ease) .08s both; }
}
@keyframes md-sheet { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes md-sheet-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* the footer opens straight on its links now that the closing card is gone */
main + footer.closing.md-footer { padding-top: clamp(64px, 7vw, 96px); padding-bottom: calc(clamp(32px, 4vw, 56px) + var(--bar, 0px)); }

/* ------------------------------------------------------------------ resina o porcelana: two cards, an hour scale, the prices */
.md-mat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.md-mat__card { display: grid; grid-template-rows: auto 1fr auto; gap: 28px; padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: var(--md-white); box-shadow: var(--md-shadow); transition: transform .35s var(--md-ease), box-shadow .35s var(--md-ease); }
.md-mat__card:hover { transform: translateY(-2px); box-shadow: var(--md-shadow-lg); }
.md-mat__card--dark { background: var(--md-dark); color: #fff; }
.md-mat__tag { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: var(--md-cream); color: var(--md-gold-text); font: 600 13px/1.2 var(--font-text); }
.md-mat__card--dark .md-mat__tag { background: rgb(201 164 106 / .16); color: var(--md-gold-soft); }
.md-mat__top { display: grid; justify-items: start; gap: 12px; }
.md-mat__top h3 { font: 650 clamp(26px, 1.2vw + 18px, 36px)/1.08 var(--font-display); letter-spacing: -0.025em; }
.md-mat__top p { color: var(--p-muted); font-size: 17px; line-height: 1.55; max-width: 40ch; }
.md-mat__card--dark .md-mat__top p { color: var(--p-inv-muted); }

.md-time { display: grid; gap: 10px; align-content: end; }
.md-time__row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; }
.md-time__label { font: 600 13px/1 var(--font-text); color: var(--p-muted); }
.md-mat__card--dark .md-time__label { color: var(--p-inv-muted); }
.md-time__track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.md-time__track i, .md-time__key i { display: block; height: 30px; border-radius: 9px; background: var(--md-foil); transform-origin: left center; }
.md-time__track i.o { background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--md-black) 14%, transparent); }
.md-mat__card--dark .md-time__track i.o { box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .14); }
.md-time__key { display: inline-flex; align-items: center; gap: 8px; margin-left: 68px; font-size: 13px; color: var(--p-muted); }
.md-time__key i { width: 18px; height: 12px; border-radius: 4px; }
.md-mat__card--dark .md-time__key { color: var(--p-inv-muted); }

.md-mat__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 22px; border-top: 1px solid var(--md-line); }
.md-mat__card--dark .md-mat__facts { border-top-color: rgb(255 255 255 / .12); }
.md-mat__facts dt { font-size: 14px; color: var(--p-muted); }
.md-mat__card--dark .md-mat__facts dt { color: var(--p-inv-muted); }
.md-mat__facts dd { margin: 4px 0 0; font: 600 clamp(17px, .4vw + 14px, 20px)/1.25 var(--font-display); letter-spacing: -0.01em; }
.md-mat__card--dark .md-mat__facts dd { color: #fff; }

.md-price { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; margin-top: 24px; padding: clamp(24px, 2.6vw, 36px); border-radius: 28px; background: var(--md-white); box-shadow: var(--md-shadow); }
.md-price__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.md-price__list li { display: grid; gap: 6px; align-content: start; padding: 0 24px; border-left: 1px solid var(--md-line); }
.md-price__list li:first-child { padding-left: 0; border-left: 0; }
.md-price__list span { font-size: 14px; color: var(--p-muted); }
.md-price__list b { font: 650 clamp(26px, 1.3vw + 16px, 36px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--p-ink); white-space: nowrap; }
.md-price__list b small { font: 500 15px/1 var(--font-text); letter-spacing: 0; color: var(--p-muted); }
.md-pay__title { font-size: 14px; color: var(--p-muted); margin-bottom: 10px; }
.md-pay__list { display: flex; flex-wrap: wrap; gap: 8px; }
.md-pay__list li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--md-cream); font-size: 14px; font-weight: 600; }
.md-pay__list .md-ic { width: 18px; height: 18px; color: var(--md-gold-text); }
.md-price__btn { height: 52px; padding-inline: 26px; font-size: 16px; }
.md-price__note { margin-top: 16px; font-size: 14px; color: var(--p-muted); }
@media (max-width: 1199px) { .md-price { grid-template-columns: minmax(0, 1fr) auto; } .md-price__list { grid-column: 1 / -1; } }
@media (max-width: 900px) { .md-mat { grid-template-columns: 1fr; } }
@media (max-width: 639px) {
  .md-price { grid-template-columns: 1fr; }
  .md-price__list { grid-template-columns: 1fr; }
  .md-price__list li { grid-auto-flow: column; justify-content: space-between; align-items: baseline; padding: 14px 0; border-left: 0; border-top: 1px solid var(--md-line); }
  .md-price__list li:first-child { padding-top: 0; border-top: 0; }
  .md-price__list b { font-size: 26px; }
  .md-price__btn { width: 100%; }
  .md-mat__facts { grid-template-columns: 1fr 1fr; }
}
/* the hours fill in, one block after the other, the first time each card shows */
@media (prefers-reduced-motion: no-preference) {
  html.md-js .md-mat__card .md-time__track i:not(.o) { transform: scaleX(0); transition: transform .6s var(--md-ease); }
  html.md-js .md-mat__card.is-in .md-time__track i:not(.o) { transform: none; }
  html.md-js .md-mat__card.is-in .md-time__track i:nth-child(1) { transition-delay: .45s; }
  html.md-js .md-mat__card.is-in .md-time__track i:nth-child(2) { transition-delay: .55s; }
  html.md-js .md-mat__card.is-in .md-time__track i:nth-child(3) { transition-delay: .65s; }
  html.md-js .md-mat__card.is-in .md-time__track i:nth-child(4) { transition-delay: .75s; }
  html.md-js .md-mat__card.is-in .md-time__row + .md-time__row i:nth-child(n) { transition-delay: calc(.85s + var(--k, 0) * .1s); }
  html.md-js .md-mat__card.is-in .md-time__row + .md-time__row i:nth-child(2) { --k: 1; }
  html.md-js .md-mat__card.is-in .md-time__row + .md-time__row i:nth-child(3) { --k: 2; }
}

/* ------------------------------------------------------------------ more treatments */
.md-trat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.md-trat__group { display: grid; align-content: start; gap: 18px; padding: clamp(24px, 2.4vw, 32px); border-radius: 24px; background: var(--md-cream); transition: transform .3s var(--md-ease), box-shadow .3s var(--md-ease); }
.md-trat__group:hover { transform: translateY(-3px); box-shadow: var(--md-shadow); }
.md-trat__group .md-ic-wrap { width: 52px; height: 52px; border-radius: 16px; background: var(--md-black); color: var(--md-gold); }
.md-trat__group .md-ic-wrap .md-ic { width: 26px; height: 26px; }
.md-trat__group h3 { font: 600 22px/1.25 var(--font-display); letter-spacing: -0.015em; }
.md-trat__group ul { display: grid; }
.md-trat__group li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--md-line); font-size: 16px; font-weight: 500; line-height: 1.35; }
.md-trat__group li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--md-foil); }
@media (max-width: 1023px) { .md-trat { grid-template-columns: 1fr; } }
/* icon beside its heading, the list full width below */
.md-trat__group h3 { display: flex; align-items: center; gap: 16px; }
.md-trat__group .md-ic-wrap { width: 48px; height: 48px; border-radius: 14px; }

/* ------------------------------------------------------------------ the doctor's training */
.md-creds { display: grid; margin-top: 28px; max-width: 520px; }
.md-creds li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid rgb(255 255 255 / .1); }
.md-creds li:last-child { border-bottom: 1px solid rgb(255 255 255 / .1); }
.md-creds .md-ic-wrap { background: rgb(201 164 106 / .14); color: var(--md-gold); }
.md-creds b { display: block; font: 600 17px/1.3 var(--font-display); color: #fff; }
.md-creds small { display: block; margin-top: 2px; font-size: 14px; color: var(--p-inv-muted); }
.md-doc__btns { margin-top: 28px; gap: 12px; }
.md-doc__btns .md-doc__ig { margin-top: 0; }
.md-g { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; flex: none; }
.md-g svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------------ opening hours, with today's state */
.md-hours { display: grid; gap: 10px; margin-top: 6px; }
.md-hours__now { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 12px; border-radius: 999px; background: var(--md-cream); color: var(--p-muted); font: 600 13px/1.2 var(--font-text); }
.md-hours__now[hidden] { display: none; }
.md-hours__dot { width: 8px; height: 8px; border-radius: 50%; background: #a99f8e; }
[data-hours][data-open="true"] .md-hours__now { background: #e6f2e8; color: #1f5a33; }
[data-hours][data-open="true"] .md-hours__dot { background: #2f9e55; box-shadow: 0 0 0 0 rgb(47 158 85 / .5); }
@media (prefers-reduced-motion: no-preference) { [data-hours][data-open="true"] .md-hours__dot { animation: md-live 2.4s ease-out infinite; } }
@keyframes md-live { 0% { box-shadow: 0 0 0 0 rgb(47 158 85 / .45); } 70%, 100% { box-shadow: 0 0 0 7px rgb(47 158 85 / 0); } }
.md-hours__list { display: grid; gap: 4px; font-size: 14px; }
.md-hours__list div { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; }
.md-hours__list dt { color: var(--p-muted); }
.md-hours__list dd { margin: 0; font-weight: 600; color: var(--p-ink); }
.md-hours__list .is-today dt { color: var(--p-ink); font-weight: 600; }

/* ------------------------------------------------------------------ form: a hint, and the material as a segmented choice */
.md-field-hint { font-size: 13px; font-weight: 400; color: var(--p-muted); }
.md-seg-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.md-seg-field legend { padding: 0; margin-bottom: var(--s-2); font-size: var(--t-small); font-weight: 500; }
.md-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: #f7f7fa; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--md-black) 14%, transparent); }
.md-seg label { position: relative; display: grid; place-items: center; height: 44px; border-radius: 12px; font: 600 15px/1 var(--font-text); color: var(--md-black); cursor: pointer; transition: background .25s var(--md-ease), color .25s var(--md-ease); }
.md-seg label:hover { background: #fff; }
.md-seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.md-seg label:has(input:checked) { background: var(--md-black); color: #fff; }
.md-seg label:has(input:focus-visible) { outline: 2px solid var(--md-black); outline-offset: 2px; }

/* footer: Instagram and TikTok side by side */
.md-socials { display: inline-flex; gap: 8px; }
/* a hint under one field never pushes its neighbour's input down */
.booking .form .field { align-content: start; }
.md-hours__list { max-width: 300px; }

/* ------------------------------------------------------------------ the smile in 3D (assets/smile3d.js, three.js)
   data-veneer="on" | "off" on .md-anatomy drives the scene. Until the scene loads (or without WebGL) a flat drawing
   of the same teeth stands in. */
.md-anatomy { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 20px; padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: var(--md-cream); overflow: hidden; }
.md-anatomy__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.md-anatomy__title { font: 600 20px/1.3 var(--font-display); letter-spacing: -0.01em; }
.md-smile-stage { position: relative; align-self: center; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; isolation: isolate; touch-action: pan-y;
  background: radial-gradient(60% 75% at 50% 42%, #4a3c32 0%, #2a221e 48%, #161312 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .05), 0 24px 44px -26px rgb(24 20 14 / .7); }
.md-smile-stage::before { content: ""; position: absolute; inset: auto 16% 4% 16%; height: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgb(226 186 116 / .28), transparent); pointer-events: none; }
.md-smile-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s ease; }
.md-smile-stage.is-3d canvas { opacity: 1; }
.md-smile-flat { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .5s ease; }
.md-smile-stage.is-3d .md-smile-flat { opacity: 0; visibility: hidden; }
.md-smile-flat .md-vens, .md-smile-flat .md-marks { transition: opacity .4s ease; }
.md-anatomy[data-veneer="off"] .md-smile-flat .md-vens, .md-anatomy[data-veneer="on"] .md-smile-flat .md-marks { opacity: 0; }
.md-smile-flat .md-v__line, .md-smile-flat .md-gleam { display: none; }
.md-smile-flat .md-mk circle { fill: var(--md-gold); stroke: #171413; stroke-width: 3; }
.md-smile-flat .md-mk text { font: 700 15px var(--font-text); fill: #171413; }

/* the numbered marks ride on the model (positioned by the scene every frame) */
.md-mk3 { position: absolute; left: 0; top: 0; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%;
  background: var(--md-gold); color: #171413; font: 700 14px/1 var(--font-text); pointer-events: none;
  box-shadow: 0 0 0 3px #171413, 0 8px 18px rgb(0 0 0 / .4); transition: opacity .3s ease, scale .5s cubic-bezier(.34, 1.56, .64, 1); }
.md-anatomy[data-veneer="on"] .md-mk3 { opacity: 0; scale: .3; }
.md-anatomy[data-veneer="off"] .md-mk3 { transition-delay: calc(var(--i) * .12s + .55s); }
@media (max-width: 639px) { .md-mk3 { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: 12px; } }

.md-notes-wrap { display: grid; }
.md-notes { grid-area: 1 / 1; display: flex; flex-wrap: wrap; gap: 8px; }
.md-notes li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 1px 2px rgb(24 20 14 / .06); }
.md-notes li > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--md-black); color: var(--md-gold); font: 700 13px/1 var(--font-text); }
.md-notes li > span svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.md-anatomy[data-veneer="on"] .md-notes--off, .md-anatomy[data-veneer="off"] .md-notes--on { visibility: hidden; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .md-notes { transition: opacity .35s ease, visibility .35s; }
  .md-anatomy[data-veneer="on"] .md-notes--on li, .md-anatomy[data-veneer="off"] .md-notes--off li { animation: md-fade .5s var(--md-ease) both; }
  .md-anatomy[data-veneer="on"] .md-notes--on li { animation-delay: calc(1.9s + var(--n, 0) * 90ms); }
  .md-notes li:nth-child(2) { --n: 1; } .md-notes li:nth-child(3) { --n: 2; }
  .md-anatomy[data-veneer="off"] .md-notes--off li { animation-delay: calc(.6s + var(--n, 0) * 90ms); }
}
@media (max-width: 639px) { .md-notes li { font-size: 13px; } }

/* the booking button carries WhatsApp's own mark */
.md-wa-btn { gap: 10px; }
.md-wa { width: 20px; height: 20px; color: #25d366; flex: none; }
.md-opt-tag { font-weight: 400; color: var(--p-muted); }

/* ------------------------------------------------------------------ copy update (nov 2026) */
/* a small label above a section title: "El proceso", "Conoce a tu dentista" */
.md-eyebrow { font: 600 13px/1.2 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--md-gold-text); }
.ground-inverse .md-eyebrow { color: var(--md-gold); }
.md-titled { display: grid; gap: 14px; }
.md-doc__text > p.md-eyebrow { margin-bottom: 14px; font-size: 13px; line-height: 1.2; color: var(--md-gold); }
/* the line under a title that sets the tone before the explanation */
.md-head .md-head__kicker { font: 600 clamp(19px, .6vw + 15px, 23px)/1.35 var(--font-display); letter-spacing: -0.01em; color: var(--p-ink); }
/* the doctor's closing line */
.md-doc__text .md-doc__sign { font-family: var(--font-display); font-style: italic; color: var(--md-gold); }
/* five facts per material: three across, two on the next row */
.md-mat__facts { row-gap: 20px; }
/* the price strip now holds two prices */
@media (min-width: 640px) { .md-price__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the treatments sit on the cream ground now, so their cards turn white */
.md-peach .md-trat__group { background: var(--md-white); }
