/* Dr. Joel García · cream, copper and quiet editorial typography. No dependencies. */
:root {
  --paper: #f8f5ef;
  --surface: #fffcf7;
  --sand: #eee7dc;
  --ink: #34382f;
  --muted: #686257;
  --copper: #88482e;
  --copper-dark: #66331f;
  --olive: #3f473a;
  --line: #d9cfc1;
  --control-line: #887a66;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(.2,.65,.3,1);
  --header-height: 80px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); }
body:has(.header) { padding-top: var(--header-height); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(55px, 8vw, 100px); letter-spacing: -.055em; }
h2 { font-size: clamp(37px, 5vw, 61px); letter-spacing: -.04em; }
h3 { font-size: 26px; letter-spacing: -.025em; }
em { font-weight: 400; color: var(--copper); }
small { font-size: 13px; }
::selection { background: #e5d3c2; color: #34382f; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 5px; border-radius: 3px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.icon { display: inline-block; width: 21px; height: 21px; flex-shrink: 0; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 10px; left: 16px; z-index: 100; padding: 12px 18px; background: var(--ink); color: white; transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }
.eyebrow, .tiny { font-size: 11px; letter-spacing: .13em; line-height: 1.6; text-transform: uppercase; color: var(--copper); font-weight: 600; }
.eyebrow { margin-bottom: 22px; }
.section { padding-block: 76px; }
.section-row { display: grid; gap: 24px; margin-bottom: 32px; }
.section-row > p { color: var(--muted); font-size: 14px; }
.button, .text-link, .patient-link { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; }
.button { padding: 14px 20px; border: 1px solid transparent; border-radius: 4px; font-weight: 600; font-size: 14px; line-height: 1.4; transition: background .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.button.primary { background: var(--copper); color: #fffaf4; }
.button.secondary { background: transparent; border-color: var(--control-line); color: var(--copper); }
.button.light { background: var(--paper); color: var(--olive); }
.text-link, .patient-link { color: var(--copper); font-size: 14px; gap: 9px; }
.text-link { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: #b58a70; }
.patient-link { border-bottom: 1px solid var(--control-line); }
.text-link .icon, .patient-link .icon, .care-link .icon { transition: transform .25s var(--ease); }
/* The mobile menu remains usable as ordinary links when JavaScript is off. */
.header { position: fixed; top: 0; inset-inline: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); gap: 12px; transition: height .35s var(--ease); }
.header.is-scrolled { background: rgba(248,245,239,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); box-shadow: 0 3px 20px #34382f05; }
.header.is-scrolled .header-inner { height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand strong { display: block; font: 400 24px/1.15 var(--serif); letter-spacing: -.7px; }
.brand small { display: block; color: var(--copper); font-size: 8px; letter-spacing: .2em; margin-top: 5px; }
.monogram { border: 1px solid var(--control-line); border-radius: 22px 22px 3px 3px; width: 39px; height: 47px; display: grid; place-items: center; font: 24px/1 var(--serif); color: var(--copper); }
.desktop-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.header-app { background: var(--sand); border-color: var(--control-line); color: var(--copper); min-height: 44px; padding: 10px 12px; font-size: 12px; white-space: nowrap; }
.header-app .icon { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; }
.menu-toggle .icon { width: 25px; height: 25px; }
.menu-toggle .close-icon { display: none; }
.menu-toggle[aria-expanded=true] .menu-icon { display: none; }
.menu-toggle[aria-expanded=true] .close-icon { display: block; }
.nav-ready .menu-toggle { display: inline-flex; }
.mobile-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; padding-block: 12px 20px; background: var(--paper); border-bottom: 1px solid var(--line); max-height: calc(100dvh - 80px); overflow: auto; }
.mobile-nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; }
body:not(.nav-ready):has(.header) { padding-top: 190px; }
.hero { display: grid; gap: 46px; padding-block: 40px 58px; align-items: center; }
.hero .eyebrow { font-size: 10px; letter-spacing: .11em; margin-bottom: 24px; }
.hero .lead { font-size: 18px; line-height: 1.6; margin-top: 26px; }
.hero-note { margin-top: 12px; color: var(--muted); font-size: 14px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 30px; }
.hero-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; font-size: 11px; color: var(--muted); }
.hero-bottom > span + span { padding-left: 10px; border-left: 1px solid var(--control-line); }
.hero-portrait { position: relative; width: min(100%, 410px); margin-inline: auto; padding: 0 14px 0 0; }
.portrait-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); border-radius: 48% 48% 4px 4px; isolation: isolate; }
/* Wide framing of the supplied portrait, without the previous close-up zoom. */
.portrait-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-portrait figcaption { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-top: 17px; }
.hero-portrait figcaption > span { font: 20px/1.4 var(--serif); }
.hero-portrait figcaption small { color: var(--muted); font-size: 10px; }
.portrait-accent { position: absolute; right: -2px; bottom: 70px; width: 58px; height: 58px; display: grid; place-items: center; border: 5px solid var(--paper); background: var(--sand); border-radius: 50%; color: var(--copper); }
.portrait-accent .icon { width: 27px; height: 27px; }
.focus-strip { padding-block: 21px; border-block: 1px solid var(--line); }
.focus-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; }
.focus-strip span { font: 17px/1.3 var(--serif); }
.focus-strip .icon { width: 11px; height: 11px; color: var(--copper); }
.price-grid { display: grid; gap: 16px; align-items: start; }
.price-card { display: flex; flex-direction: column; min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); transition: border-color .25s, box-shadow .25s, transform .3s var(--ease); }
.price-card.featured { background: #f1e7db; border-color: var(--control-line); }
.price-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--copper); margin-bottom: 25px; min-height: 26px; }
.price-card-top .icon { width: 25px; height: 25px; }
.price-card h3 { font-size: 25px; }
.price { font: 42px/1.15 var(--serif); letter-spacing: -.04em; color: var(--copper); margin-block: 18px 12px; }
.price .from { display: block; font: 11px/1.5 var(--sans); letter-spacing: .04em; margin-bottom: 4px; color: var(--muted); }
.price small { font: 11px/1 var(--sans); color: var(--muted); letter-spacing: 0; }
.price-description { font-size: 14px; color: var(--muted); }
.price-card .disclosure { margin-top: 17px; border-bottom: 0; border-top: 1px solid var(--line); }
.price-card summary { min-height: 52px; padding-block: 14px; font-size: 13px; color: var(--copper); }
.price-card .disclosure-content { font-size: 13px; }
.price-card > .button { margin-top: 8px; width: 100%; }
.resource-note { color: var(--muted); font-size: 12px; margin-top: 23px; }
.care-heading { margin-top: 76px; margin-bottom: 32px; }
.care-grid { display: grid; gap: 0 40px; }
.care-grid article { display: grid; grid-template-columns: 25px minmax(0,1fr) 44px; gap: 10px; align-items: start; padding-block: 25px; border-top: 1px solid var(--line); }
.number { color: var(--copper); font-size: 11px; padding-top: 5px; }
.care-grid h3 { font-size: 25px; }
.care-grid p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.care-link { display: grid; place-items: center; width: 44px; height: 44px; color: var(--copper); border: 1px solid var(--control-line); border-radius: 50%; }
.mapa-section { background: var(--sand); padding-block: 76px; }
.mapa-grid { display: grid; gap: 44px; }
.mapa-intro { max-width: 470px; color: var(--muted); margin-block: 25px; }
.mapa-included { margin-block: 30px; border-top: 1px solid #c6b9a6; padding-top: 23px; }
.mapa-included strong { font: 29px/1.3 var(--serif); }
.mapa-included p { font-size: 14px; margin-block: 10px 5px; }
.mapa-included small { color: var(--muted); font-size: 12px; }
.disclosure { border-bottom: 1px solid var(--line); }
.disclosure summary { list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding-block: 21px; min-height: 64px; font-size: 16px; line-height: 1.45; font-weight: 500; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::marker { content: ''; }
.disclosure summary .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.disclosure[open] > summary .icon { transform: rotate(180deg); }
.disclosure-content { padding-bottom: 21px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.disclosure-content p + p { margin-top: 12px; }
.disclosure-content ul, .disclosure-content ol { margin: 0; padding-left: 20px; }
.disclosure-content li + li { margin-top: 9px; }
.disclosure-content ul + p, .disclosure-content ol + p { margin-top: 12px; }
.disclosure-content strong { color: var(--ink); font-weight: 600; }
.disclosure-content a { text-decoration: underline; text-underline-offset: 4px; color: var(--copper); }
.mapa-details .disclosure { border-color: #cfc3b2; }
.doctor-section { padding-block: 76px; }
.doctor-grid { display: grid; gap: 36px; }
.doctor-identity h2 { margin-bottom: 20px; }
.doctor-identity > p:not(.eyebrow) { font-size: 14px; color: var(--muted); }
.doctor-identity .license { margin-top: 10px; }
.doctor-bio { border-top: 1px solid var(--line); padding-top: 30px; }
.doctor-bio .bio-lead { font: 31px/1.3 var(--serif); color: var(--ink); margin-bottom: 20px; letter-spacing: -.02em; }
.doctor-bio > p { font-size: 15px; color: var(--muted); }
.credential { display: flex; align-items: flex-start; gap: 18px; border-block: 1px solid var(--line); padding-block: 23px; margin-top: 27px; }
.credential-icon { color: var(--copper); padding-top: 3px; }
.credential .eyebrow { margin-bottom: 10px; }
.credential h3 { font-size: 27px; margin-bottom: 9px; }
.doctor-identity > span { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); }
.credential strong { display: block; font-weight: 500; margin-block: 5px; }
.credential p, .credential small { color: var(--muted); font-size: 13px; }
.credential .text-link { font-size: 13px; margin-top: 10px; }
.resources { border-top: 1px solid var(--line); }
.filters { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 33px; }
.filters-ready .filters { display: flex; }
.filters button { border: 1px solid var(--control-line); border-radius: 40px; background: transparent; min-height: 44px; padding: 10px 15px; line-height: 1.3; font-size: 12px; transition: background .2s, color .2s, border-color .2s; }
.filters button.selected { background: var(--olive); color: var(--paper); border-color: var(--olive); }
.resource-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px 12px; }
.resource { min-width: 0; display: block; }
.resource-img { aspect-ratio: 4/5; background: #eee6da; border-radius: 3px; padding: 11px; display: grid; place-items: center; overflow: hidden; transition: background .3s; }
.resource-img picture { display: block; width: 100%; box-shadow: 0 5px 14px #49332212; transition: transform .4s var(--ease), box-shadow .4s; }
.resource-img img { width: 100%; height: auto; }
.resource .tiny { display: block; margin-top: 18px; font-size: 9px; letter-spacing: .1em; }
.resource h3 { display: flex; justify-content: space-between; gap: 6px; margin-top: 5px; font-size: 22px; line-height: 1.2; }
.resource h3 .icon { width: 15px; height: 15px; color: var(--copper); }
.resource h3 > span { padding-top: 3px; }
.follow-section { padding-block: 76px; background: var(--olive); color: var(--paper); }
.follow-grid { display: grid; gap: 42px; }
.follow-grid .eyebrow, .follow-grid em { color: #e6bc9e; }
.follow-grid p:not(.eyebrow) { color: #e4dfd4; }
.follow-grid h2 + p { font-size: 15px; margin-block: 24px; max-width: 430px; }
.follow-grid small { display: block; font-size: 12px; margin-top: 16px; color: #e4dfd4; }
.follow-grid :focus-visible { outline-color: #f8f5ef; }
.follow-list > div { display: grid; grid-template-columns: 24px minmax(0,1fr) 20px; align-items: center; gap: 10px; border-top: 1px solid #808779; padding-block: 23px; }
.follow-list > div:last-child { border-bottom: 1px solid #808779; }
.follow-list > div > span:first-child { font-size: 11px; color: #e6bc9e; }
.follow-list p { font: 24px/1.3 var(--serif); }
.follow-list .icon { width: 17px; height: 17px; color: #e6bc9e; }
.contact { display: grid; gap: 43px; }
.contact h2 { margin-bottom: 28px; }
.contact-phone { display: block; width: fit-content; font: 26px/1.4 var(--serif); margin-top: 19px; padding-block: 8px; }
.contact-details { display: grid; gap: 27px; align-content: start; }
.contact-details .tiny { margin-bottom: 8px; }
.contact-details p:not(.tiny), .contact-details a { font-size: 15px; }
.email { overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 5px; padding-block: 8px; }
.faq { padding-bottom: 76px; }
.faq .eyebrow { margin-bottom: 12px; }
.footer { padding-block: 32px; border-top: 1px solid var(--line); display: grid; gap: 30px; }
.footer strong { font: 25px/1.4 var(--serif); }
.footer p { font-size: 11px; color: var(--muted); margin-top: 8px; }
.footer > div:last-child { display: flex; align-items: center; gap: 12px 25px; flex-wrap: wrap; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; gap: 7px; }
.footer a .icon { width: 14px; height: 14px; }
.footer small { font-size: 11px; color: var(--muted); flex-basis: 100%; }
/* Native modal: browser focus trapping and Escape remain available. */
#image-dialog { border: 1px solid var(--line); padding: 0; border-radius: 6px; width: min(100% - 24px, 960px); max-width: none; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); color: var(--ink); background: var(--paper); box-shadow: 0 24px 100px #181a1655; }
#image-dialog[open] { display: flex; flex-direction: column; }
#image-dialog::backdrop { background: #22251fba; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.dialog-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.dialog-bar h2 { font: 500 14px/1.4 var(--sans); letter-spacing: 0; margin-right: auto; flex: 1 1 140px; }
.dialog-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; font-size: 12px; padding-inline: 8px; color: var(--copper); }
.dialog-bar button { background: transparent; border: 1px solid var(--control-line); border-radius: 50%; min-width: 44px; height: 44px; display: grid; place-items: center; }
.dialog-body { overflow: auto; overscroll-behavior: contain; padding: 6px; min-height: 0; }
.dialog-body img { width: 100%; height: auto; }
.privacy-body { max-width: 780px; margin: auto; padding: 45px 22px 80px; }
.privacy-body h1 { margin-block: 32px; font-size: 55px; }
.privacy-body h2 { margin-top: 30px; font-size: 30px; }
.privacy-body p { margin-top: 16px; }
.privacy-body a { text-decoration: underline; text-underline-offset: 5px; overflow-wrap: anywhere; }
/* Added only when IntersectionObserver is ready; all content is visible without JS. */
.reveal-ready { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-ready.is-visible, .reveal-ready:focus-within { opacity: 1; transform: none; }
@media (hover:hover) {
  .button:hover { transform: translateY(-2px); }
  .button.primary:hover { background: var(--copper-dark); box-shadow: 0 8px 22px #66331f18; }
  .button.secondary:hover { background: #eadfce; border-color: var(--copper); }
  .button.light:hover { background: #e8dece; }
  .header-app:hover { background: #e5d3c2; border-color: var(--copper); }
  .price-card:hover { border-color: #a58a72; box-shadow: 0 12px 36px #49332208; }
  .resource:hover .resource-img { background: #e4d9c9; }
  .resource:hover .resource-img picture { transform: translateY(-3px) scale(1.015); box-shadow: 0 9px 20px #49332220; }
  .text-link:hover .icon, .patient-link:hover .icon, .care-link:hover .icon { transform: translate(2px,-2px); }
  .filters button:not(.selected):hover { background: #eae0d2; }
  .disclosure summary:hover { color: var(--copper); }
  .desktop-nav > a:hover { color: var(--copper); }
  .menu-toggle:hover { background: var(--sand); }
}
@media (max-width:599px) {
  .header-inner { gap: 6px; }
  .brand .monogram { display: none; }
  .brand strong { font-size: 21px; }
  .brand small { font-size: 7px; letter-spacing: .17em; }
}
@media (min-width:600px) {
  .wrap { padding-inline: 32px; }
  .header-actions { gap: 10px; }
  .header-app { font-size: 13px; gap: 8px; padding-inline: 14px; }
  .header-app .icon { display: block; width: 16px; height: 16px; }
  .price-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
  .price-card { height: 100%; }
  .price-card h3 { min-height: 56px; }
  .price { min-height: 72px; display: flex; flex-wrap: wrap; align-content: end; align-items: baseline; gap: 0 5px; }
  .price .from { flex-basis: 100%; }
  .price-description { min-height: 46px; }
  .price-card > .button { margin-top: auto; }
  .price-card .disclosure { margin-bottom: 8px; }
  .resource-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px 24px; }
  .hero .eyebrow { font-size: 11px; }
  .focus-strip .wrap { gap: 24px; }
  .focus-strip span { font-size: 21px; }
  .contact-details { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-portrait { width: min(100%,440px); }
}
@media (min-width:1000px) {
  :root { --header-height: 96px; }
  .wrap { padding-inline: 48px; }
  body:not(.nav-ready):has(.header) { padding-top: var(--header-height); }
  .header.is-scrolled .header-inner { height: 74px; }
  .brand { gap: 13px; }
  .brand strong { font-size: 27px; }
  .monogram { width: 43px; height: 51px; }
  .desktop-nav { display: flex; align-items: center; gap: 27px; font-size: 13px; }
  .desktop-nav > a { min-height: 44px; display: inline-flex; align-items: center; transition: color .2s; }
  .desktop-nav .patient-link { margin-left: 9px; font-size: 13px; }
  .mobile-nav, .nav-ready .menu-toggle { display: none; }
  .hero { grid-template-columns: 1.14fr 1fr; gap: 65px; padding-block: 62px 76px; }
  .hero h1 { font-size: clamp(64px,6.2vw,78px); }
  .hero .lead { font-size: 20px; margin-top: 32px; }
  .hero-portrait { margin-right: 0; }
  .hero-bottom { margin-top: 44px; font-size: 12px; }
  .section { padding-block: 110px; }
  .section-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 42px; }
  .section-row > p { padding-bottom: 6px; }
  .price-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
  .price-card { padding: 24px 20px; }
  .price-card h3 { font-size: 25px; }
  .price { font-size: 40px; }
  .price-description { min-height: 68px; font-size: 13px; }
  .care-heading { margin-top: 100px; margin-bottom: 42px; }
  .care-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 62px; }
  .care-grid article { padding-block: 30px; grid-template-columns: 30px minmax(0,1fr) 44px; gap: 14px; }
  .mapa-section, .doctor-section, .follow-section { padding-block: 100px; }
  .mapa-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .mapa-grid .eyebrow { max-width: 340px; }
  .doctor-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .doctor-bio { border: 0; padding: 0; }
  .resource-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 44px 24px; }
  .resource-img { padding: 18px; }
  .resource h3 { font-size: 25px; }
  .resource .tiny { font-size: 10px; }
  .follow-grid, .contact { grid-template-columns: 1fr 1fr; gap: 80px; }
  .follow-list { align-self: center; }
  .contact-details { grid-template-columns: 1fr; padding-top: 6px; }
  .faq { padding-bottom: 100px; }
  .footer { display: flex; justify-content: space-between; gap: 40px; }
  .footer > div:last-child { justify-content: end; }
  .footer small { text-align: right; }
  .dialog-bar { padding: 13px 20px; }
  .dialog-body { padding: 16px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready { opacity: 1; transform: none; }
  .button:hover, .resource:hover .resource-img picture, .text-link:hover .icon, .patient-link:hover .icon, .care-link:hover .icon { transform: none; }
}
@media (forced-colors:active) {
  .button, .filters button, .menu-toggle, .care-link { border: 1px solid ButtonText; }
  .reveal-ready { opacity: 1; transform: none; }
}
