:root {
  color-scheme: light;
  --paper: #f8f6f0;
  --ink: #2c302a;
  --subtle: #65675e;
  --line: #dedbd0;
  --accent: #874c36;
  --tint: #f1e8dc;
  --serif: "Baskerville", "Iowan Old Style", Georgia, serif;
  font: 15px/1.45 "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a { font: inherit; color: inherit; }
button { cursor: pointer; }
a { text-underline-offset: .25em; }
button:focus-visible, a:focus-visible { outline: 3px solid #25666c; outline-offset: 3px; }
[hidden] { display: none !important; }
.masthead, main { width: min(1540px, 100%); margin: 0 auto; padding-inline: clamp(18px, 3.8vw, 66px); }
.masthead { height: 65px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand strong { font: 600 25px/1 var(--serif); letter-spacing: -.05em; }
.brand-mark { width: 21px; height: 21px; background: conic-gradient(var(--accent) 25%, #dbc7ad 0 50%, var(--accent) 0 75%, #dbc7ad 0); }
.brand-divider { height: 16px; width: 1px; background: var(--line); }
.location { color: var(--subtle); font-size: 13px; }
.download { font-weight: 550; text-decoration: none; font-size: 13px; border-bottom: 1px solid var(--line); }
.download span { padding-left: 4px; }
main { padding-bottom: 35px; }
.intro { padding: clamp(22px,3vw,43px) 0 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; justify-content: space-between; }
h1 { margin: 0; font: 400 clamp(36px,4.2vw,67px)/1.07 var(--serif); letter-spacing: -.052em; }
.workspace { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(283px, .87fr); gap: clamp(24px, 3.4vw, 55px); align-items: start; }
.view-options { display: flex; flex-wrap: wrap; column-gap: 12px; }
.view-options > :first-child { flex: 3 1 270px; }
.view-options > :last-child { flex: 1 1 144px; }
.camera-options { border: 0; min-width: 0; margin: 0 0 10px; padding: 0; }
.camera-options legend { padding: 0; margin-bottom: 5px; font-size: 12px; color: var(--subtle); }
#photos[data-camera="entrada"] .frame canvas { aspect-ratio: 1672 / 941; object-fit: contain; }
figure { margin: 0; min-width: 0; }
.frame { position: relative; overflow: hidden; background: #e6e1d6; border-radius: 5px; }
.frame canvas { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photos.is-comparing { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.photo-badge { position: absolute; left: 10px; top: 10px; border-radius: 3px; background: rgba(253,251,246,.94); padding: 4px 8px; font-size: 12px; font-weight: 600; }
figcaption { padding: 7px 1px 2px; font-size: 12px; color: var(--subtle); }
.photo-tools { display: flex; align-items: center; gap: 22px; margin: 17px 0 22px; }
.compare { background: var(--ink); color: white; border: 0; border-radius: 4px; padding: 10px 17px; font-weight: 550; }
.compare:hover { background: #41483d; }
.link-button, .swap { border: 0; background: transparent; padding: 3px 0; color: var(--subtle); }
.link-button { text-decoration: underline; text-underline-offset: .2em; }
.selection { display: grid; grid-template-columns: .75fr 1fr 1.4fr 1fr; gap: 9px; border-block: 1px solid var(--line); padding-block: 13px; }
.selection div { display: grid; gap: 3px; align-content: start; }
.selection span { font-size: 11px; color: var(--subtle); }
.selection strong { font-size: 14px; font-weight: 550; }
.examples { margin: 12px 0; font-size: 13px; }
.examples summary { cursor: pointer; color: var(--subtle); }
.example-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding-top: 9px; }
.example-grid a { font-size: 12px; }
.example-grid img { display: block; width: 100%; height: auto; border-radius: 3px; margin-bottom: 4px; }
.example-grid .wide-example { grid-column: 1 / -1; }
.note { color: var(--subtle); font-size: 12px; margin: 12px 0 0; }
.materials { border-top: 1px solid var(--line); }
.group { padding: 15px 0 17px; border-bottom: 1px solid var(--line); }
.group:first-child { padding-top: 10px; }
.group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
h2 { margin: 0; font: 400 26px/1.2 var(--serif); letter-spacing: -.045em; }
.group-heading a, .product { font-size: 12px; color: var(--subtle); font-weight: 520; }
.group p { margin: 4px 0 10px; font-size: 12px; color: var(--subtle); }
.choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 9px; }
.choice { background: transparent; color: var(--ink); border: 1px solid #d5d0c4; border-radius: 4px; min-height: 39px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 5px; line-height: 1.15; font-size: 13px; }
.choice[aria-pressed=true] { border-color: var(--accent); background: var(--tint); box-shadow: inset 0 0 0 1px var(--accent); }
.choice:hover:enabled { border-color: var(--accent); }
.choice:disabled { opacity: .43; cursor: default; }
.chip { width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto; border: 1px solid #0002; background-size: cover; }
#wood { grid-template-columns: repeat(4, minmax(0,1fr)); }
.choices.finishes .choice { flex-direction: column; min-height: 56px; gap: 5px; font-size: 12px; }
.choices.finishes .chip { width: 35px; height: 13px; border-radius: 3px; }
.choices.tile-grid { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 5px; }
.tile-grid .choice { flex-direction: column; min-height: 47px; font-size: 11px; gap: 3px; }
.tile-grid .chip { width: 23px; height: 23px; }
.swatch-label { grid-column: 1 / -1; margin: 4px 0 1px; color: var(--subtle); font-size: 12px; }
.layout-options { margin: 8px 0 11px; padding: 0; border: 0; min-width: 0; }
.layout-options legend { margin-bottom: 4px; padding: 0; font-size: 12px; color: var(--subtle); }
.glass-options { margin: 14px 0 0; }
#glass { grid-template-columns: repeat(2, minmax(0,1fr)); margin: 0; }
#glass .choice { flex-direction: column; padding: 4px 4px 7px; }
#glass img { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 2px; }
.floor-picker { display: flex; padding: 3px; gap: 3px; background: #eae6db; border-radius: 5px; }
.floor-picker button { flex: 1; background: transparent; color: var(--ink); border: 0; border-radius: 3px; padding: 7px 3px; font-size: 13px; }
.floor-picker button[aria-pressed=true] { background: var(--paper); box-shadow: 0 1px 3px #0002; font-weight: 600; }
.floor-ref { font-size: 12px; color: var(--subtle); display: inline-block; margin-top: 6px; }
@media (min-width: 881px) { .view-panel { position: sticky; top: 10px; } }
.swap { font-size: 12px; margin-top: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
#error { color: #962e20; }
@media (min-width: 1350px) { .group { padding-block: 20px; } .group:first-child { padding-top: 14px; } }
@media (max-width: 880px) {
  .workspace { display: block; }
  .view-panel { display: contents; }
  .photos { position: sticky; top: 0; z-index: 2; background: var(--paper); }
  .note { margin-bottom: 18px; }
  .materials { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:22px; }
  .group, .group:first-child { padding-top: 14px; }
  .photo-tools { margin-block: 10px 13px; }
  .frame canvas { max-height: min(42vh, 370px); object-fit: contain; }
  .frame { background: #ece9e1; }
}
@media (max-width: 520px) {
  .masthead { height: 54px; }
  .materials { display:block; }
  .intro { padding: 19px 0 15px; }
  .frame canvas { max-height: none; }
  .photos { box-shadow: 0 3px 4px #28201812; }
  .selection { grid-template-columns: .7fr 1fr 1.3fr 1fr; gap: 4px; }
  .selection strong { font-size: 12px; }
  .group { padding-block: 13px; }
  .photos.is-comparing { gap: 5px; }
  .photo-badge { left: 4px; top: 4px; padding: 3px 5px; font-size: 10px; }
  figcaption { font-size: 11px; }
}

.format-picker { margin: 12px 0 8px; border: 1px solid #d5cdbf; border-radius: 6px; }
.format-picker summary { display: flex; align-items: center; gap: 10px; padding: 5px 10px; cursor: pointer; list-style: none; }
.format-picker summary::-webkit-details-marker { display: none; }
.format-picker summary::after { content: "⌄"; margin-left: auto; }
.format-picker[open] summary::after { transform: rotate(180deg); }
.format-picker summary img { width: 43px; height: 43px; border-radius: 3px; }
.format-picker summary strong, .format-picker summary small { display: block; }
.format-picker summary small { color: #665c50; font-size: 11px; }
.format-picker summary strong { font-size: 14px; }
.format-grid { max-height: 340px; overflow-y: auto; padding: 0 7px 8px; }
.format-family { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
.format-family h3 { grid-column: 1/-1; margin: 12px 2px 3px; font-size: 12px; }
.format-family button { display: grid; justify-items: center; align-content: start; gap: 2px; padding: 3px 1px 5px; background: #f5f2eb; color: var(--ink); border: 1px solid transparent; border-radius: 4px; font: inherit; font-size: 11px; line-height: 1.2; }
.format-family button img { width: 39px; height: 39px; mix-blend-mode: multiply; }
.format-family button small { font-size: 10px; color: #64584a; }
.format-family button[aria-pressed=true] { border-color: #77543c; background: #eee2d5; }

.enlarge { position: absolute; inset: 0; width: 100%; background: transparent; border: 0; cursor: zoom-in; }
.enlarge span { position: absolute; right: 9px; bottom: 9px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 4px; background: #272a26b8; color: white; font: 20px/1 system-ui; }
.enlarge:focus-visible { outline-offset: -4px; }
.photo-badge { pointer-events: none; }
#photo-viewer { padding: 0; border: 0; background: #201f1d; color: white; width: min(96vw, 2400px); max-width: 100vw; height: 93dvh; max-height: 100dvh; border-radius: 6px; }
#photo-viewer[open] { display: flex; flex-direction: column; }
#photo-viewer::backdrop { background: #161513dc; }
.viewer-toolbar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; }
.viewer-toolbar strong { flex: 1; font-weight: 500; }
.viewer-toolbar button { border: 1px solid #827b6f; background: transparent; color: white; border-radius: 4px; padding: 4px 9px; }
.viewer-toolbar button[aria-pressed=true] { color: #24211d; background: var(--paper); }
#viewer-scroll { flex: 1; min-height: 0; overflow: auto; }
#detail-photo { display: block; width: 100%; height: 100%; object-fit: contain; }
.native-size #detail-photo { width: auto; height: auto; margin: 0 auto; }

.kitchen-links { display: flex; align-items: center; gap: clamp(9px, 2vw, 24px); }
@media (max-width: 430px) { .masthead .location, .masthead .brand-divider { display: none; } }
