.atlas-page {
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.4;
}
.atlas-page :is(h1,h2,h3,p,figure) { margin: 0; }
.atlas-page img { display: block; }
.atlas-page a { text-decoration: none; }
.atlas-page :focus-visible { outline: 3px solid #aa3650; outline-offset: 4px; }

.catalog-cover {
  position: relative; isolation: isolate; display: grid; place-items: center;
  height: 100vh; height: 100svh;
  min-height: 200px; padding: 12px;
  background: #2e322f url("media/portada-fabrica.jpg") center / cover no-repeat;
}
.catalog-cover video {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.catalog-cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #121b1714, transparent 40%, #10161026);
}
.cover-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cover-link {
  position: relative; max-width: 100%; text-align: center;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.cover-link em { font-style: inherit; }
.catalog-cover .cover-link:focus-visible { outline: 3px solid white; outline-offset: 5px; box-shadow: 0 0 0 9px #202722; }

.catalog-cover--editorial {
  align-items: end;
  padding-bottom: calc(clamp(24px, 5vh, 54px) + env(safe-area-inset-bottom, 0px));
}
.catalog-cover--editorial::before {
  background: linear-gradient(0deg, #0d1612e6, #101913b8 14%, #10191355 30%, transparent 52%);
}
.catalog-cover--editorial .cover-link {
  padding: 5px 2px 12px; color: #fffaf0;
  font: 400 clamp(2.5rem, 5.2vw, 5.4rem)/1.07 "Instrument Serif", Georgia, serif;
  letter-spacing: -.024em; text-shadow: 0 2px 8px #10161159;
}
.catalog-cover--editorial .cover-link em { font-style: italic; }
.catalog-cover--editorial .cover-link::after {
  content: ""; display: block; position: absolute; bottom: 0; inset-inline: 8%;
  height: 1px; background: currentColor; transform: scaleX(.56);
  transition: transform .24s ease;
}
.catalog-cover--editorial .cover-link:is(:hover, :focus-visible)::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .catalog-cover--editorial .cover-link::after { transition: none; }
}

.site-header--film + main .catalog-cover::after {
  content: ""; pointer-events: none; position: absolute; z-index: -1; inset: 0 0 auto;
  height: clamp(110px, 20svh, 190px); background: linear-gradient(180deg, #0d1510d9, transparent);
}

.atlas-showroom, .atlas-profesionales { width: min(100%,1740px); margin-inline: auto; padding-inline: var(--shell); }
.atlas-showroom {
  max-width: 1560px;
  padding-block: clamp(48px, 5.5vw, 86px);
}
.atlas-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px 30px;
  margin-bottom: clamp(24px, 3vw, 44px);
}
.atlas-intro h2 { font: 500 clamp(48px, 5.8vw, 92px)/1 "DM Sans", Arial, sans-serif; letter-spacing: -.067em; }
.atlas-intro h2 em { color: var(--wine); font: italic 400 1.12em/.95 "Instrument Serif", Georgia, serif; letter-spacing: -.035em; white-space: nowrap; }
.showroom-search { flex: 0 1 300px; min-width: 0; }
.showroom-search label { display: block; margin-bottom: 6px; color: #594d43; font-size: 13px; font-weight: 560; }
.showroom-search > div { display: flex; align-items: center; min-height: 44px; border: 1px solid #b6ac9e; background: #fffdf8; }
.showroom-search > div:focus-within { outline: 2px solid var(--wine); outline-offset: 2px; }
.showroom-search input { flex: 1; min-width: 0; width: 100%; min-height: 44px; padding: 6px 12px; border: 0; background: transparent; color: var(--ink); font: inherit; }
.showroom-search input::placeholder { color: #6d645a; opacity: 1; }
.atlas-page .showroom-search input:focus-visible { outline: 0; }
.showroom-search button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; }
.showroom-search .search-glass { width: 15px; }
.showroom-search button:hover { background: #eee6da; }
.showroom-fallback { display: flex; gap: 8px 22px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.showroom-fallback a { display: inline-flex; align-items: center; min-height: 44px; color: var(--wine); text-decoration: underline; }
.atlas-familias {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.5vw, 24px);
  margin-bottom: clamp(20px, 2vw, 32px);
}
.atlas-familias[hidden] { display: none; }
.atlas-familias button {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
  min-width: 0;
  min-height: 76px;
  padding: 8px clamp(10px, 1.1vw, 18px) 8px 8px;
  border: 0;
  border-bottom: 2px solid #c8c0b2;
  background: #eeeee7;
  color: #302d29;
  text-align: left;
  font: 530 clamp(18px, 1.65vw, 26px)/1.12 "DM Sans", Arial, sans-serif;
  letter-spacing: -.035em;
  transition: background .18s, color .18s;
}
.atlas-familias button img { flex: none; width: clamp(62px, 6vw, 94px); height: clamp(58px, 5vw, 77px); object-fit: cover; }
.atlas-familias small { display: block; margin-top: 4px; color: #5c574d; font-size: 13px; font-weight: 430; letter-spacing: 0; }
.atlas-familias i { margin-left: auto; font: 400 20px/1 "DM Sans", sans-serif; }
.atlas-familias button:hover { background: #e9e2d6; }
.atlas-familias button[aria-pressed="true"] { color: #fff8ed; background: var(--wine); border-bottom-color: var(--wine); }
.atlas-familias button[aria-pressed="true"] small { color: #f1dfd7; }
.atlas-producto {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: clamp(20px,2.4vw,38px);
  min-width: 0;
  height: clamp(420px, 40vw, 625px);
  background: transparent;
  color: var(--ink);
}
.showroom-shot { display: block; position: relative; min-width: 0; min-height: 0; cursor: zoom-in; overflow: hidden; background: #dedbd4; }
.showroom-environment { grid-row: 1 / 3; }
.showroom-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .27s ease; }
.showroom-shot:is(:hover,:focus-visible) img { transform: scale(1.025); }
.showroom-shot > span {
  position: absolute;
  right: clamp(8px, 1vw, 16px);
  bottom: clamp(8px, 1vw, 16px);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 7px 10px;
  background: #272320ed;
  color: #fffaf0;
  font: 550 13px/1.2 "DM Sans", sans-serif;
}
.showroom-shot b { font: 400 17px/1 "DM Sans", sans-serif; }
.atlas-producto figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: clamp(20px, 2vw, 32px) 0 0;
  align-self: end;
}
.atlas-producto .showroom-eyebrow { margin:0 0 10px; color:#61594f; font-size:12px; font-weight:550; text-transform:uppercase; letter-spacing:.085em; }
.atlas-producto h3 { color:var(--wine); font: 400 clamp(44px, 4.6vw,72px)/1 "Instrument Serif", Georgia, serif; letter-spacing: -.025em; }
.atlas-producto #atlas-series { display: inline-flex; align-items: baseline; gap: 11px; }
.atlas-producto #atlas-series span { font: 400 .38em/1 "DM Sans", sans-serif; }
.atlas-producto #atlas-guia { max-width: 34ch; margin-top: 10px; color: #53574f; font-size: 16px; line-height:1.5; }
.atlas-producto #atlas-series-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color:var(--wine); border-bottom: 1px solid #a48382; font-size: 14px; font-weight: 570; }
.atlas-producto figcaption a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.atlas-page .atlas-producto a:focus-visible { outline-color: var(--wine); outline-offset: 3px; }
.atlas-page .atlas-producto .showroom-shot:focus-visible { outline-offset:-4px; }
.showroom-viewer { width: min(1060px,calc(100% - 36px)); height: min(835px,90vh); height: min(835px,90dvh); max-height: none; max-width: none; border: 0; margin: auto; padding: 0 clamp(16px,2vw,32px); background: #242822; color: #f4f3ea; }
.showroom-viewer[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.showroom-viewer::backdrop { background: #121411db; }
body:has(.showroom-viewer[open]) { overflow: hidden; }
.viewer-header,.viewer-footer,.viewer-paging { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.viewer-header,.viewer-footer { padding-block: clamp(10px,1.4vw,22px); }
.viewer-header h2 { font-size: clamp(20px,2.2vw,34px); letter-spacing: -.03em; font-weight: 500; }
.viewer-stage { min-height: 0; background: #1b1e19; }
.viewer-stage img { width: 100%; height: 100%; object-fit: contain; }
.viewer-footer p { font-size: 15px; }
.viewer-footer small { color: #cccdc3; font-size: 12px; }
.viewer-paging { gap: 8px; }
.showroom-viewer button { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 1px solid #ffffff73; background: none; color: inherit; font-size: 20px; }
.showroom-viewer button:hover { background: white; color: #20211e; }
.atlas-page .showroom-viewer button:focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .atlas-familias button { transition:none; }
  .showroom-shot img { transition: none; }
  .showroom-shot:is(:hover,:focus-visible) img { transform: none; }
}
.atlas-page main .atlas-profesionales {
  width:100%; max-width:none; margin:0; padding:clamp(42px,5vw,78px) max(var(--shell),calc((100vw - 1440px)/2));
  display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr); align-items:center; gap:clamp(28px,3.4vw,52px) clamp(34px,6vw,94px);
  background:#ece8de; color:#292c26; border-top:1px solid #d6cebf; scroll-margin-top:20px;
}
.atlas-profesionales .pro-brief h2 { font:490 clamp(48px,5.1vw,80px)/.99 "DM Sans",Arial,sans-serif; letter-spacing:-.067em; }
.atlas-profesionales .pro-brief h2 em { display:block; color:#742c40; font:italic 400 1.1em/.98 "Instrument Serif",Georgia,serif; letter-spacing:-.035em; }
.atlas-profesionales .pro-brief { min-width:0; }
.atlas-profesionales .pro-brief p { max-width:38ch; margin:clamp(24px,2.2vw,34px) 0 0; color:#53574d; font-size:clamp(17px,1.32vw,21px); line-height:1.6; letter-spacing:-.012em; text-wrap:pretty; }
.atlas-profesionales .pro-consulta { display:inline-flex; align-items:center; justify-content:space-between; min-height:49px; gap:25px; margin-top:clamp(23px,2.3vw,36px); padding:11px 18px; color:#fff9ee; background:#70283b; font-size:15px; font-weight:600; }
.atlas-profesionales .pro-consulta span { font-size:19px; font-weight:450; line-height:1; }
.atlas-profesionales .pro-consulta:hover { background:#522331; }
.atlas-profesionales .pro-library { display:grid; grid-template-columns:minmax(0,1fr); min-width:0; color:#302e28; }
.atlas-profesionales .pro-editions { display:flex; align-items:center; justify-content:center; isolation:isolate; min-width:0; min-height:clamp(240px,25vw,370px); padding:42px 8%; background:#e1dacb; }
.atlas-profesionales .pro-editions img { position:relative; flex:none; width:30%; max-width:174px; height:auto; aspect-ratio:320/453; object-fit:contain; box-shadow:4px 10px 18px #4c41352c; }
.atlas-profesionales .pro-editions img:first-child { transform:translateY(13px) rotate(-8deg); }
.atlas-profesionales .pro-editions img:nth-child(2) { z-index:1; margin-inline:-7%; transform:translateY(-12px); }
.atlas-profesionales .pro-editions img:last-child { transform:translateY(11px) rotate(8deg); }
.atlas-profesionales .pro-library-caption { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:7px 18px; border-bottom:1px solid #bdb3a3; padding:21px 0 19px; }
.atlas-profesionales .pro-library-caption > span { font:500 clamp(25px,2vw,34px)/1.12 "DM Sans",Arial,sans-serif; letter-spacing:-.045em; }
.atlas-profesionales .pro-library-caption small { grid-column:1; color:#5b594e; font-size:13px; line-height:1.5; }
.atlas-profesionales .pro-library-caption i { grid-area:1/2/3/3; display:grid; place-items:center; width:38px; height:38px; border:1px solid #a38e83; border-radius:50%; color:#702638; font:450 19px/1 "DM Sans",Arial,sans-serif; }
.atlas-profesionales .pro-library:is(:hover,:focus-visible) .pro-library-caption > span,.atlas-profesionales .pro-consulta:is(:hover,:focus-visible) { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:4px; }
.atlas-profesionales .pro-library:is(:hover,:focus-visible) .pro-library-caption i { border-color:#692638; background:#692638; color:#fff6eb; }
.atlas-page main .atlas-profesionales a:focus-visible { outline:2px solid #70283b; outline-offset:5px; }
@media (max-width: 760px) {
  .atlas-showroom { padding-block: 42px; }
  .atlas-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 20px; }
  .atlas-intro h2 { font-size: clamp(39px, 8.7vw, 62px); }
  .showroom-search { width: 100%; }
  .atlas-familias { gap: 7px; margin-bottom: 18px; }
  .atlas-familias button { display:flex; align-items:stretch; justify-content:center; padding:12px 7px; min-height:76px; font-size:clamp(14px,3.5vw,18px); line-height:1.25; }
  .atlas-familias button img { display:none; }
  .atlas-familias button > span { display:flex; flex-direction:column; justify-content:space-between; gap:5px; width:100%; }
  .atlas-familias small { font-size:12px; }
  .atlas-familias i { display: none; }
  .atlas-producto { height:auto; grid-template-columns:minmax(0,1fr); grid-template-rows:clamp(255px,78vw,510px) auto; column-gap:0; }
  .showroom-environment { grid-area:1/1; }
  .showroom-detail { grid-area:1/1; z-index:1; align-self:end; justify-self:end; width:32%; height:35%; margin:12px; border:4px solid var(--paper); }
  .showroom-shot > span { right:7px; bottom:7px; padding:6px 7px; gap:5px; font-size:12px; }
  .showroom-environment > span { left:12px; right:auto; bottom:12px; }
  .showroom-detail > span { right:0; bottom:0; padding:5px; font-size:12px; }
  .showroom-viewer { width: calc(100% - 16px); height: min(750px,88dvh); padding-inline: 12px; }
  .atlas-producto figcaption { grid-area:2/1; padding:22px 0 0; gap:12px 18px; }
  .atlas-producto h3 { font-size:clamp(42px,9vw,64px); }
  .atlas-producto #atlas-guia { margin-top:8px; font-size:16px; }
  .atlas-page main .atlas-profesionales { grid-template-columns:minmax(0,1fr); gap:32px; }
  .atlas-profesionales .pro-brief h2 { font-size:clamp(45px,8.6vw,65px); }
  .atlas-profesionales .pro-brief p { margin-top:22px; font-size:17px; }
  .atlas-profesionales .pro-editions { min-height:200px; padding:33px 8%; }
  .atlas-profesionales .pro-editions img { width:30%; max-width:150px; }
  .atlas-profesionales .pro-library-caption { padding-block:17px; }
  .atlas-profesionales .pro-library-caption > span { font-size:25px; }
}
