:root {
  color-scheme: light;
  --ink: #102820;
  --ink-deep: #0c211b;
  --text: #163229;
  --muted: #4b6157;
  --paper: #f9f8f2;
  --white: #fff;
  --line: #dce1d8;
  --sage: #e9efe6;
  --gold: #f1d785;
  --display: Georgia, 'Times New Roman', serif;
  --body: 'Avenir Next', Avenir, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 1rem; line-height: 1.55; }
img { display: block; max-width: 100%; }
button, select { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
svg { display: inline-block; vertical-align: middle; width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid #a97a28; outline-offset: 5px; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 10; padding: .7rem 1rem; background: var(--gold); color: var(--ink); transform: translateY(-200%); }
.skip:focus { transform: none; }
.shell { width: min(100% - 112px, 1280px); margin-inline: auto; }
.header { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid #ecece4; }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 25px; position: relative; }
.brand { display: inline-flex; gap: 11px; align-items: center; white-space: nowrap; color: inherit; text-decoration: none; }
.brand-mark { width: 46px; height: 32px; stroke-width: 2.15; }
.brand strong { display: block; font-size: 1.345rem; line-height: 1.04; font-weight: 720; letter-spacing: -.05em; }
.brand small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.4; margin-top: 4px; }
#nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.9rem); }
#nav a, .footer-main > a:not(.brand) { text-decoration: none; font-weight: 630; font-size: .91rem; }
#nav a:hover, .footer-main > a:not(.brand):hover { text-decoration: underline; text-underline-offset: .3em; }
.menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: .7rem 1.25rem; text-decoration: none; font-size: .9375rem; font-weight: 720; line-height: 1.25; border-radius: 7px; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.header-cta,.button-dark { background: var(--ink); color: white; }
.header-cta:hover,.button-dark:hover { background: #285140; }
.button-gold { background: var(--gold); color: var(--ink-deep); }
.button-gold:hover { background: #ffe9a2; }
.button-outline { border-color: #b5c2b882; color: white; }
.button-outline:hover { background: #ffffff20; border-color: #e1e7df; }
.button-light { background: #fff; border-color: #bccaba; }
.button-light:hover { background: #f6f9f4; border-color: #849a8a; }
.hero { position: relative; isolation: isolate; min-height: 585px; background: var(--ink-deep); color: white; overflow: hidden; }
.hero-media { position: absolute; z-index: -2; inset: 0 0 0 36%; background: url(portada.webp) 56% center / cover no-repeat; }
.hero-media video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 56% center; pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#0d231b 0%,#10271f 30%,#10271ff0 39%,#10271f58 62%,#10271f13 100%), linear-gradient(0deg,#0d231bb3,transparent 29%); }
.hero-inner { position: relative; min-height: inherit; display: flex; align-items: center; padding-block: 82px 105px; }
.hero-copy { width: min(570px, 63%); position: relative; z-index: 1; }
h1,h2,h3,p { margin-top: 0; }
h1,h2 { font-family: var(--display); font-weight: 400; line-height: .97; letter-spacing: -.063em; }
h1 { font-size: clamp(4rem, 7.35vw, 7.1rem); margin-bottom: 24px; }
h1 em { color: var(--gold); font-weight: 400; }
h2 { font-size: clamp(2.65rem, 4.75vw, 4.6rem); margin-bottom: 0; }
h3 { line-height: 1.22; letter-spacing: -.035em; font-size: 1.35rem; margin-bottom: .55rem; }
.hero-description { max-width: 405px; color: #edf2ec; font-size: 1.09rem; margin-bottom: 31px; }
.actions { display: flex; gap: 11px; flex-wrap: wrap; }
.viewfinder { position: absolute; right: 2%; top: 16%; bottom: 19%; width: 43%; pointer-events: none; opacity: .68; }
.viewfinder i { position: absolute; width: 26px; height: 26px; border: 1px solid #f5e4ab; }
.viewfinder i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.viewfinder i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.viewfinder i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.viewfinder i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.viewfinder span { position: absolute; width: 60px; height: 60px; border: 1px solid #f5e4ab90; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.motion { position: absolute; bottom: 40px; right: 2%; background: #0c211be8; min-height: 42px; padding: .4rem .7rem; color: white; border: 1px solid #ffffff80; border-radius: 5px; font-size: .81rem; display: inline-flex; align-items: center; gap: 8px; z-index: 1; }
.motion > span:first-child { display: inline-block; width: 8px; height: 10px; border-inline: 2px solid var(--gold); }
.quick { display: grid; grid-template-columns: 1.1fr 1fr 1fr; position: relative; z-index: 2; background: #fff; border: 1px solid var(--line); margin-top: -25px; border-radius: 11px; box-shadow: 0 13px 38px #142e2010; }
.quick a { display: flex; align-items: center; gap: 13px; padding: 21px clamp(12px, 2.28vw, 34px); text-decoration: none; min-width: 0; }
.quick a + a { border-left: 1px solid var(--line); }
.quick a:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.quick-icon { display: grid; place-items: center; background: var(--sage); border-radius: 50%; width: 43px; height: 43px; flex-shrink: 0; }
.quick small,.quick strong { display: block; }
.quick small { color: var(--muted); font-size: .82rem; }
.quick strong { font-size: clamp(.88rem,1.31vw,1.035rem); }
.section { padding-block: clamp(70px,7.6vw,116px); }
.section-heading { margin-bottom: 35px; }
.services { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.service { display: flex; flex-direction: column; gap: 35px; padding: clamp(20px, 2.65vw, 36px); border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: transform .25s, box-shadow .25s; }
@media (hover:hover) { .service:hover { transform: translateY(-5px); box-shadow: 0 12px 30px #17352b0f; } }
.service > svg { width: 39px; height: 39px; padding: 8px; box-sizing: content-box; color: var(--ink); background: var(--sage); border-radius: 50%; }
.service > div { flex: 1; display: flex; flex-direction: column; }
.service p { margin-bottom: 18px; color: var(--muted); }
.service a { margin-top: auto; font-size: .94rem; font-weight: 680; text-underline-offset: .22em; text-decoration-color: #8da197; }
.center { background: var(--sage); }
.center-inner { display: grid; grid-template-columns: .9fr 1.35fr; gap: 45px; align-items: center; }
.center-text p,.location-info p { margin-block: 22px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2,1fr); min-height: clamp(260px,29vw,425px); gap: 10px; }
.gallery a { position: relative; display: block; overflow: hidden; border-radius: 9px; min-height: 0; }
.gallery .gallery-main { grid-row: span 2; }
.gallery img { position: absolute; width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.gallery a:hover img { transform: scale(1.045); }
.gallery span { position: absolute; left: 12px; bottom: 12px; padding: .25rem .58rem; border-radius: 4px; background: #11241cdc; color: white; font-size: .85rem; font-weight: 650; }
.patient,.location { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px,6vw,95px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; list-style: none; user-select: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 690; font-size: 1.01rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 3px; top: 14px; font-size: 1.55rem; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-bottom: 1.2rem; color: var(--muted); max-width: 50ch; }
.booking { background: var(--ink); color: white; }
.booking-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.booking-inner p { margin: 18px 0 0; color: #e3ebe4; }
.location { align-items: center; }
.location-info address { font-style: normal; margin-top: 22px; }
.location-info p { margin-top: 12px; }
.map { position: relative; border-radius: 9px; min-height: 340px; overflow: hidden; background: var(--sage); display: grid; place-items: center; }
.map img,.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map img { object-fit: cover; }
.map .button { position: relative; box-shadow: 0 3px 16px #10282045; }
footer { color: var(--ink); background: var(--sage); }
.footer-main,.footer-demo { display: flex; align-items: center; flex-wrap: wrap; gap: 19px; }
.footer-main { padding-block: 23px; }
.footer-main .brand { margin-right: auto; }
.footer-demo { justify-content: space-between; gap: 5px 20px; border-top: 1px solid #cad7ca; padding-block: 16px; font-size: .82rem; color: #456052; }
.footer-demo p { margin: 0; }
dialog { padding: 0; color: white; background: var(--ink-deep); border: 1px solid #86988e; border-radius: 10px; max-width: min(calc(100% - 24px), 1090px); max-height: 90vh; }
dialog::backdrop { background: #06140edc; }
.dialog-close { position: absolute; top: 9px; right: 9px; background: var(--ink); border: 1px solid #c8d8cc; color: white; border-radius: 5px; padding: .42rem .65rem; }
dialog figure { margin: 0; }
dialog img { max-height: 74vh; object-fit: contain; }
dialog figcaption { padding: 10px 16px; }
@media (max-width: 980px) {
  .shell { width: min(100% - 64px,1280px); }
  .hero { min-height: 535px; }
  .hero-copy { width: min(560px,78%); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 68px; gap: 10px; justify-content: start; }
  .brand-mark { width: 34px; }
  .brand { gap: 7px; }
  .brand strong { font-size: 1.16rem; }
  .brand small { font-size: .71rem; }
  .header-cta { margin-left: auto; min-height: 42px; padding: .48rem .62rem; font-size: .84rem; }
  .menu-toggle { display: block; margin-left: auto; padding: 6px 4px; color: var(--ink); background: none; border: 0; text-decoration: underline; text-underline-offset: .22em; font-weight: 640; font-size: .84rem; }
  .menu-toggle:not([hidden]) ~ .header-cta { margin-left: 0; }
  #nav { gap: 0; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 0 0 8px 8px; padding: 4px 12px; box-shadow: 0 10px 20px #132e2315; }
  #nav a { padding: 11px 6px; }
  .menu-toggle:not([hidden]) + #nav:not(.open) { display: none; }
  .hero { min-height: 600px; }
  .hero-inner { align-items: end; padding-block: 180px 62px; }
  .hero-media { inset: 0 0 19% 0; background-position: 54% top; }
  .hero-media video { object-position: 54% top; }
  .hero::after { background: linear-gradient(0deg,#0d231b 3%,#0d231b 22%,#0d231be8 41%,#0d231b48 77%,#0d231b26 100%); }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(3.25rem, 12vw, 6.15rem); margin-bottom: 17px; }
  .hero-description { font-size: 1rem; margin-bottom: 21px; }
  .viewfinder { width: auto; left: 4%; right: 4%; top: 5%; bottom: 54%; }
  .viewfinder span { width: 43px; height: 43px; }
  .motion { bottom: auto; right: 5%; top: 7%; }
  .quick { grid-template-columns: 1fr; }
  .quick a { padding: 12px 17px; }
  .quick a + a { border-left: 0; border-top: 1px solid var(--line); }
  .quick-icon { width: 36px; height: 36px; }
  .services,.center-inner,.patient,.location { grid-template-columns: 1fr; }
  .section-heading { margin-bottom: 22px; }
  .service { gap: 14px; flex-direction: row; }
  .service > svg { width: 27px; height: 27px; }
  .center-inner { gap: 25px; }
  .map { min-height: 286px; }
}
@media (max-width: 375px) {
  .header-inner { gap: 5px; }
  .header-cta,.menu-toggle { font-size: .78rem; }
  .brand strong { font-size: 1.02rem; }
  .brand small { font-size: .66rem; }
  .hero .actions .button { padding-inline: .68rem; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-media video { visibility: hidden; }
}
