:root {
  color-scheme: light;
  --ink: #1b1712;
  --muted: #64594b;
  --paper: #f6ecdd;
  --gold: #9a681f;
  --line: #dbc5a6;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); font: 1rem/1.45 var(--sans); background: #faf5ed; }
body.art { background: linear-gradient(#faf0e170, #faf0e170), var(--paper) url("papel.webp") top center / 1200px auto repeat; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
:focus-visible { outline: 3px solid #965d14; outline-offset: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.08; font-weight: 500; margin: 0; }
h1 { font-size: clamp(2.55rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
p { margin: .65em 0; }
.muted { color: var(--muted); }
.skip { position: fixed; top: -5rem; z-index: 9; padding: .7em 1em; background: white; }
.skip:focus { top: .5rem; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 64px; padding: .3rem clamp(1.15rem, 4.2vw, 4rem); color: #fffaf0; background: #24211c; }
.masthead a { text-decoration: none; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .65rem; font: clamp(1rem, 2.4vw, 1.85rem)/1 var(--serif); letter-spacing: .055em; }
.brand img { width: clamp(36px, 5vw, 51px); height: auto; }
.brand small { display: block; margin-top: .25rem; font: .63rem/1.15 var(--sans); letter-spacing: .38em; }
.masthead nav { margin-left: auto; display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1.8rem); font-size: .89rem; }
.masthead nav a { position: relative; white-space: nowrap; }
.masthead nav a[aria-current] { color: #f7c05c; }
.masthead nav a[aria-current]::after { content: ""; position: absolute; bottom: -.65rem; inset-inline: 0; border-bottom: 2px solid #f7c05c; }
.icon { border: 0; background: none; color: #ffcb68; font-size: 1.5rem; padding: 0; line-height: 1; }
.search { margin-left: .4rem; }
.shell { margin: 0 auto; width: min(94%, 1300px); }
.crumbs { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; padding: .95rem .65rem .8rem; font-size: .88rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--gold); }
.button { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: .4em; min-height: 44px; padding: .65em 1em; border: 1px solid #ba8d48; border-radius: .65em; background: #fbf4e9; color: #211b14; text-decoration: none; font-size: .9rem; font-weight: 600; }
.button:hover { background-color: #f1dfc0; }
.gold { background: linear-gradient(#f3d185, #dbaa51); border-color: #dfb66c; }
.green, .green:hover { color: #fff; background: #176020; border-color: #176020; }
.inactive { opacity: .75; }
.ficha { max-width: 1150px; }
.ficha-grid { display: grid; grid-template-columns: 1.65fr 1fr; column-gap: 2.8%; }
.muestra { position: relative; display: grid; place-items: center; aspect-ratio: 1.17; overflow: hidden; border-radius: .64rem; background: radial-gradient(ellipse at 24% 0%, #ffdeb0 0%, transparent 35%), radial-gradient(ellipse at 79% 0%, #ffe1b7 0%, transparent 31%), linear-gradient(167deg, #785b42, #c0a082 70%, #8d6b50); box-shadow: 0 .38rem .75rem #7356312b; }
.main-art { width: 76%; height: 82%; object-fit: contain; filter: drop-shadow(.2rem .45rem .45rem #2e1e13a0); }
.gallery-prev, .gallery-next, .enlarge { position: absolute; color: #fff; border: 1px solid #fff; background: #211b15cb; }
.gallery-prev, .gallery-next { top: 50%; transform: translateY(-50%); border-radius: 100%; width: 2.15rem; height: 2.15rem; line-height: 1; font-size: 1.7rem; }
.gallery-prev { left: .7rem; }.gallery-next { right: .7rem; }
.enlarge { right: .7rem; bottom: .7rem; padding: .3rem .7rem; border-radius: .65rem; font-size: .83rem; text-decoration: none; }
.dots { display: flex; justify-content: center; gap: .75rem; padding: .8rem; }
.dots button { border-radius: 100%; border: 0; width: .86rem; height: .86rem; padding: 0; background: #cbb9a1; }
.dots button[aria-pressed=true] { background: #ab7826; }
.ficha-meta { padding: .2rem 0 .7rem; font-family: var(--serif); font-size: clamp(1rem, 1.65vw, 1.25rem); line-height: 1.2; }
.code { font: 600 .93rem var(--sans); letter-spacing: .09em; margin: .27rem 0; }
.ficha-meta h1 { font-size: clamp(2.15rem, 4.05vw, 3.1rem); }
.ficha-meta h1::after { content: ""; width: 3.5rem; border-top: 2px solid #af8031; display: block; margin: .65rem 0 .7rem; }
.subtitle { font-style: italic; font-size: 1.2em; }
.details { margin: .7rem 0; font: .84rem/1.22 var(--sans); }
.details div { display: grid; grid-template-columns: minmax(7rem, 1fr) 1fr; gap: .55rem; align-items: center; padding: .44rem 0; border-bottom: 1px solid #d7bf984d; }
.details dt { font-weight: 650; }.details dd { margin: 0; }
.details dt span { display: inline-block; min-width: 1.55rem; color: var(--gold); font-size: 1.2rem; }
.price { border: 1px solid #dbb777; border-radius: .85rem; padding: .8rem clamp(.8rem, 4vw, 2.55rem); background: linear-gradient(130deg, #f7ecd8, #e6cb9b); }
.price strong { display: block; font: 500 clamp(2.4rem, 5vw, 3.9rem)/1 var(--serif); color: var(--gold); margin: .2rem 0; }
.price small { display: block; color: #655037; font: .78rem/1.2 var(--sans); }
.thumbnails { display: grid; grid-template-columns: repeat(var(--detail-count), minmax(0, 1fr)) minmax(7rem, .65fr); align-items: center; gap: .75rem; margin: .45rem 0 2rem; }
.thumbnail img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: .72rem; box-shadow: 0 .4rem .7rem #5d441e21; }
.narrative { display: grid; grid-template-columns: 1.26fr 1fr; gap: 4%; margin: 0 .85rem 1.8rem; font: clamp(1rem, 1.48vw, 1.18rem)/1.2 var(--serif); }
.narrative h2 { font-size: clamp(1.5rem, 3vw, 2.35rem); }.narrative p { margin: .4rem 0; }
.narrative section + section { border-left: 1px solid #af8031; padding-left: 9%; }
.symbol { display: flex; align-items: center; gap: 1rem; }
.symbol img { width: 4.25rem; height: auto; }
.context { position: relative; margin: 0; overflow: hidden; border-radius: .75rem; }
.context > img:first-child { width: 100%; height: auto; aspect-ratio: 2.6; object-fit: cover; }
.context-work { position: absolute; width: 18%; height: 54%; object-fit: contain; left: 50%; top: 35%; transform: translate(-50%, -50%); filter: drop-shadow(.12rem .2rem .25rem #2e1e1380); }
.context figcaption { position: absolute; right: 1rem; bottom: .65rem; color: #fff; background: #221c17db; padding: .2rem .5rem; font-size: .75rem; border-radius: .2rem; }
.actions { margin: 1.25rem 4.5%; display: grid; grid-template-columns: 1.2fr 1.08fr .85fr; gap: clamp(.4rem, 2vw, 1.5rem); }
.ficha-foot { display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; gap: .7rem; padding: 1rem .4rem; border-block: 1px solid var(--line); font-size: .85rem; }
.ficha-foot button { color: #6a441b; background: transparent; border: 0; text-decoration: underline; }
.share-status:empty { display: none; }
.request { margin: 2.5rem auto; max-width: 760px; padding: clamp(1.1rem, 4vw, 2rem); border: 1px solid var(--line); background: #fffaf2cf; border-radius: .75rem; scroll-margin-top: 1rem; }
.request form { display: grid; gap: .9rem; }
.request label, .filters label { font-size: .9rem; font-weight: 600; }
.request input:not([type=checkbox]), .request select, .request textarea, .filters :is(input,select) { display: block; width: 100%; margin-top: .25em; padding: .6em .7em; border: 1px solid #ac9474; border-radius: .35rem; background: #fffdf8; }
.form-row { display: flex; flex-wrap: wrap; gap: .8rem; }.form-row label { flex: 1 1 7rem; }
.checkbox { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: .35rem; }
.request form button { justify-self: start; }
.request-status { padding: .9rem; margin: 1rem auto; max-width: 760px; border: 1px solid var(--line); background: #fffaf0; }
.atrium { position: relative; display: grid; align-items: center; min-height: min(76vh, 850px); overflow: hidden; background: #7e6954; color: white; }
.atrium > img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.atrium::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, #221608cb 0%, #2e241990 35%, transparent 85%); }
.atrium-copy, .atrium small { position: relative; z-index: 1; }.atrium-copy { margin: 4rem max(5%, calc((100vw - 1280px)/2)); }
.atrium h1 { font-size: clamp(3.5rem, 9vw, 8.5rem); }
.atrium small { position: absolute; bottom: 1rem; right: 1.5rem; background: #21190ecd; padding: .35em .7em; border-radius: .2rem; }
.rooms, .catalogue, .editorial { padding-block: 3rem; }.rooms h2 { margin-bottom: 1.5rem; }
.room-list, .catalogue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.room-card, .catalogue-grid > a { display: block; border: 1px solid #e3d7c5; border-radius: .65rem; background: #fffbf5; text-decoration: none; overflow: hidden; }
.room-card:hover, .catalogue-grid > a:hover { border-color: #ad7a35; }
.room-card figure { position: relative; margin: 0; }.room-card figure > img:first-child { width: 100%; height: auto; }
.room-card .room-featured { position: absolute; right: .7rem; bottom: .65rem; width: 23%; aspect-ratio: 1; padding: .25rem; object-fit: contain; background: #faf4e9; border: 1px solid #c1a987; border-radius: .3rem; box-shadow: 0 2px 4px #37271940; }
.room-card h3, .room-card p { margin: .75rem 1rem; }.room-card h3 { font-size: 1.55rem; }.room-card p { margin-bottom: 1.2rem; color: var(--muted); }
.room-shell { padding-bottom: 2rem; }.room-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .65rem; margin: .25rem 0 1.25rem; }
.panorama { position: relative; overflow: hidden; margin-inline: auto; width: min(100%, 1000px); border-radius: .7rem; aspect-ratio: 1.5; background: #e3d5c4; }
.scene { position: absolute; inset: 0; animation: appear .25s ease-out; }
@keyframes appear { from { opacity: .6; } to { opacity: 1; } }
.architecture { position: absolute; width: 100%; height: 100%; object-fit: fill; }
.hotspot { position: absolute; left: var(--x); top: 52%; transform: translate(-50%, -50%); width: var(--width); height: var(--height); }
.hotspot img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(.1em .2em .3em #3d2c2380); }
.hotspot:hover { outline: 1px solid #865620; outline-offset: .26rem; }
.scale-marker { position: absolute; bottom: 36%; left: 15%; display: flex; align-items: center; padding-left: .28rem; border-left: 1px solid #6d5436; height: var(--height); font-size: .68rem; color: #523d25; }
.floor { position: absolute; top: 78%; inset-inline: 0; display: flex; justify-content: center; gap: 1.1rem; transform: translateY(-50%); }
.scene[data-node="1"] .floor { top: 83%; }
.scene[data-node="2"] .floor { top: 88%; }
.floor button { border: 1px solid #fff; width: 2.8rem; height: 2.8rem; border-radius: 50%; color: #fff; background: #31251fcb; font-size: 1.5rem; }
.scene-label { position: absolute; right: .5rem; bottom: .4rem; margin: 0; padding: .15rem .45rem; color: #fff; background: #31251fd9; font-size: .72rem; border-radius: .2rem; pointer-events: none; }
.node-bar { display: flex; gap: .5rem; justify-content: space-between; align-items: center; padding: .65rem 0 1.3rem; }
.node-bar button { border: 1px solid var(--line); border-radius: .3rem; background: #fffbf5; padding: .4rem .65rem; }
.node-bar button[aria-pressed=true] { background: #ead1a7; }.node-bar [role=status] { color: var(--muted); font-size: .8rem; }
.carousel { display: flex; overflow-x: auto; gap: .7rem; padding: .5rem .25rem .8rem; }
.carousel > a { flex: 0 0 9rem; display: grid; gap: .2rem; grid-template-rows: 5rem auto 1fr; padding: .55rem; border: 1px solid var(--line); background: #fffaf2; border-radius: .5rem; text-decoration: none; }
.carousel img { width: 100%; height: 100%; object-fit: contain; }.carousel small { color: var(--muted); }.carousel span { line-height: 1.2; }
.carousel [aria-current=true] { border-color: #9a681f; background: #f0ddc0; }
.focus-art { position: absolute; inset: 0; display: grid; align-items: center; grid-template-columns: 1.3fr 1fr; gap: 1rem; background: #29211ce8; color: #fffaf0; padding: 1.4rem; }
.focus-art img { width: 100%; height: 100%; max-height: 47vh; min-height: 0; object-fit: contain; }
.focus-art nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.focus-art .button { font-size: .79rem; }
.next-room { text-align: right; }
.filters { display: grid; grid-template-columns: auto 1fr auto minmax(9rem, .6fr); gap: .7rem; align-items: center; margin: 1.3rem 0; }
.catalogue-grid img { width: 100%; height: 13rem; padding: .8rem; object-fit: contain; background: #eee2d2; }
.catalogue-grid h2 { padding: 0 .85rem .85rem; font-size: 1.65rem; }.catalogue-grid small { display: block; padding: .5rem .85rem .2rem; color: var(--muted); }
.taller-vistas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: .75rem; margin: 1.2rem 0; }
.taller-vistas img { width: 100%; height: auto; border-radius: .5rem; }
.footer { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem 1.5rem; padding: 1.5rem; color: #fff9ec; background: #24211c; font-size: .84rem; }
dialog { color: white; background: #211c18; border: 0; padding: 0; width: min(94vw, 1120px); max-width: none; }
dialog::backdrop { background: #000c; }.viewer-bar { display: flex; justify-content: end; gap: .5rem; padding: .6rem; }
.viewer-bar button { background: #fff9ef; border: 0; border-radius: .3rem; padding: .35rem .7rem; color: #211c18; }
.viewer-photo { overflow: auto; height: min(75vh, 840px); }
.viewer-photo img { width: 100%; height: 100%; object-fit: contain; }
.viewer-photo.zoomed img { width: 200%; max-width: none; height: auto; min-height: 100%; }
.masthead nav.open { position: absolute; top: 64px; right: .8rem; z-index: 5; display: grid; padding: 1rem 1.5rem; background: #24211c; border-radius: .45rem; }
.masthead:has(nav.open) .search { margin-left: auto; }
@media (max-width: 920px) {
  .masthead nav { display: none; position: absolute; top: 64px; right: .8rem; z-index: 5; padding: 1rem 1.5rem; background: #24211c; border-radius: .45rem; }
  .masthead nav.open { display: grid; }.search { margin-left: auto; }
}
@media (max-width: 680px) {
  .ficha-grid, .narrative { grid-template-columns: 1fr; }.ficha-grid { row-gap: .7rem; }.narrative { gap: 1.3rem; }
  .narrative section + section { border-left: 0; border-top: 1px solid var(--line); padding: 1rem 0 0; }
  .thumbnails { grid-template-columns: repeat(var(--detail-count),minmax(0,1fr)); gap: .4rem; }.thumbnails .button { grid-column: 1 / -1; justify-self: start; }
  .actions { grid-template-columns: 1fr; margin-inline: 0; }.context figcaption { font-size: .63rem; }
  .room-list, .catalogue-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; }
  .room-card h3, .catalogue-grid h2 { font-size: 1.32rem; }.catalogue-grid img { height: 8rem; }
  .filters { grid-template-columns: 1fr; gap: .3rem; }
  .panorama:has(.focus-art:not([hidden])) { min-height: 440px; }.focus-art { grid-template-columns: 1fr; grid-template-rows: minmax(0,1fr) auto; gap: .6rem; padding: .7rem .7rem 1.8rem; }
  .floor button { width: 2.4rem; height: 2.4rem; }
  .node-bar { flex-wrap: wrap; }.node-bar button { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; } }
