.mam-page { background: var(--paper); color: var(--ink); }
.mam-wrap { max-width: 1740px; margin-inline: auto; padding: 0 var(--shell) clamp(50px, 6vw, 90px); }
.mam-path { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; padding: clamp(20px, 2.2vw, 36px) 0; font-size: .82rem; color: var(--muted); }
.mam-path a { text-underline-offset: .2em; }
.mam-lead { display: grid; grid-template-columns: 39% minmax(0,1fr); border-block: 1px solid var(--rule); }
.mam-cover-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(24px, 3.1vw, 52px) clamp(24px, 3.1vw, 52px) clamp(24px, 3.1vw, 52px) 0; }
.mam-page h1, .mam-page h2 { margin: 0; font-family: "DM Sans", Arial, sans-serif; font-weight: 550; letter-spacing: -.065em; line-height: .97; }
.mam-lead h1 { font-weight: 520; font-size: clamp(52px, 6.25vw, 108px); }
.mam-lead h1 em { display: block; color: var(--wine); font: italic 400 1.1em/.95 "Instrument Serif", Georgia, serif; letter-spacing: -.045em; }
.mam-lead p, .mam-custom p { max-width: 46ch; margin: 20px 0 27px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; }
.mam-lead p { max-width: 35ch; margin: clamp(16px, 1.6vw, 26px) 0 clamp(20px, 2.3vw, 35px); color: var(--muted); }
.mam-cover-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.mam-explore { display: inline-flex; gap: clamp(12px, 1.5vw, 28px); align-items: center; min-height: 45px; padding: 10px 15px; background: var(--ink); color: var(--paper); text-decoration: none; font-size: .9rem; font-weight: 650; }
.mam-explore:hover { background: var(--wine); }
.mam-pdf { display: inline-flex; align-items: baseline; gap: .4em; padding: 8px 0; text-decoration: none; border-bottom: 1px solid var(--ink); font-size: .85rem; }
.mam-pdf span { color: var(--muted); font-size: .72rem; }
.mam-cover-product { min-width: 0; margin: 0; align-self: stretch; display: flex; flex-direction: column; background: #e9eae5; }
.mam-cover-images, .mam-cover-product figcaption { display: grid; grid-template-columns: 5fr 4fr; }
.mam-cover-images { flex: 1; gap: 3px; }
.mam-cover-images img { display: block; width: 100%; height: clamp(320px, 30vw, 485px); min-height: 100%; object-fit: cover; }
.mam-cover-images img:first-child { object-position: 56% 54%; }
.mam-cover-images img:last-child { object-position: 61% 39%; }
.mam-cover-product figcaption { gap: 3px; background: #eeefe9; color: var(--muted); font-size: clamp(11px, .82vw, 14px); }
.mam-cover-product figcaption > * { padding: 10px clamp(12px, 1.3vw, 22px); }
.mam-cover-product figcaption a { color: var(--wine); font-weight: 650; text-decoration: none; }
.mam-cover-product figcaption a:hover { text-decoration: underline; }
.mam-link { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .7rem; border-bottom: 1px solid; padding-bottom: .3rem; font-weight: 600; text-decoration: none; color: var(--wine); }
.mam-link span:not([aria-hidden]) { font-size: .78rem; font-weight: 400; }
.mam-page section { margin-top: clamp(38px, 4.5vw, 74px); }
.mam-page h2 { font-size: clamp(32px, 3.8vw, 64px); }
.mam-filter { margin: clamp(18px, 2vw, 30px) 0 0; padding: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 15px 2rem; border-bottom: 1px solid var(--rule); }
.mam-filter[hidden], .mam-model[hidden] { display: none; }
.mam-filter-family { flex-basis: 100%; }
.mam-filter-glass { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.mam-filter-family > span, .mam-filter-glass label { font-size: .84rem; font-weight: 600; }
.mam-filter-family [role="group"] { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }
.mam-filter-family button[data-show] { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px; padding: 14px clamp(10px, 1.4vw, 24px); min-height: 79px; text-align: left; background: #eeefe8; border: 1px solid #d8dacf; }
.mam-filter-family button[data-show][aria-pressed="true"] { color: white; background: var(--wine); border-color: var(--wine); }
.mam-filter-family button[data-show]:hover { border-color: var(--wine); }
.mam-filter-family button strong { font-weight: 600; font-size: clamp(18px, 1.4vw, 24px); line-height: 1; letter-spacing: -.035em; }
.mam-filter-family button span { font-size: clamp(12px, .87vw, 15px); line-height: 1.35; }
.mam-filter select { padding: 8px 30px 8px 10px; min-height: 42px; color: inherit; background: #fff; font: inherit; border: 1px solid #8a8e85; border-radius: 0; }
.mam-filter-results { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.mam-filter button.mam-filter-reset { text-decoration: underline; text-underline-offset: .22em; font-size: .85rem; color: var(--wine); }
.mam-filter button.mam-filter-reset:disabled { color: var(--muted); opacity: .65; cursor: default; border-color: transparent; }
.mam-empty { padding: 20px 0; margin: 0; font-size: 1rem; }
.mam-empty a { color: var(--wine); text-underline-offset: .22em; }
.mam-compare { border-bottom: 1px solid var(--rule); scroll-margin-top: 25px; }
.mam-compare > summary { display: flex; align-items: center; justify-content: flex-start; gap: .8rem; min-height: 46px; list-style: none; color: var(--wine); font-size: .9rem; font-weight: 650; cursor: pointer; }
.mam-compare > summary::-webkit-details-marker { display: none; }
.mam-compare > summary::after { content: "+"; margin-left: auto; font-size: 1.15rem; }
.mam-compare[open] > summary::after { content: "−"; }
.mam-compare-count { font-weight: 450; color: var(--muted); }
.mam-compare-body { padding: 7px 0 20px; }
.mam-compare-body > label { display: block; margin-bottom: 5px; font-size: .86rem; font-weight: 650; }
.mam-compare-picker { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.mam-compare-picker select { min-width: 0; max-width: 100%; min-height: 42px; padding: 8px; font: inherit; color: var(--ink); background: white; border: 1px solid #8a8e85; }
.mam-compare-picker button { min-height: 42px; padding: 6px 16px; background: var(--wine); color: white; border: 0; }
.mam-compare-picker button:disabled { color: var(--muted); background: #e4e6de; cursor: default; }
.mam-compare-help, .mam-compare-notes { color: var(--muted); font-size: .86rem; }
.mam-compare-help { margin: 8px 0 2px; }
.mam-compare-swipe { display: none; }
.mam-compare-scroll { max-width: 100%; overflow: auto; margin-top: 18px; }
.mam-compare-table { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; font-size: .93rem; }
.mam-compare-table :is(th,td) { border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; padding: 10px clamp(7px, 1.15vw, 18px); overflow-wrap: anywhere; }
.mam-compare-table thead th { background: #242824; color: white; font-size: 1.1rem; font-weight: 600; }
.mam-compare-table tbody th { background: #edf0e8; font-weight: 550; }
.mam-compare-table td { background: #fbfcf8; }
.mam-compare-table td :is(a,button) { display: block; width: fit-content; padding: 4px 0; color: var(--wine); font-size: .87rem; line-height: 1.45; text-decoration: underline; text-underline-offset: .2em; }
.mam-compare-table td button { background: none; border: 0; }
.mam-compare-notes p { margin-bottom: 5px; }
.mam-compare-permalink { color: var(--wine); text-underline-offset: .22em; }
.mam-compare-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 13px; }
.mam-compare-contact { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 15px; background: var(--wine); color: white; text-decoration: none; font-weight: 600; }
.mam-compare-contact:hover { background: var(--ink); }
.mam-compare-toggle { min-height: 34px; margin-top: 4px; padding: 5px 10px; border: 1px solid var(--wine); background: transparent; color: var(--wine); text-align: left; font-size: .85rem; }
.mam-compare-toggle[aria-pressed="true"] { background: var(--wine); color: #fff; }
.mam-compare-toggle:disabled { color: var(--muted); border-color: var(--rule); cursor: default; }
.mam-filter button { padding: 8px 14px; border: 1px solid transparent; color: inherit; background: transparent; line-height: 1.3; }
.mam-filter button[aria-pressed="true"] { background: var(--wine); color: #fff; }
.mam-filter button:hover { border-color: #635d52; }
.mam-filter p { font-size: .85rem; margin: 0; white-space: nowrap; }
.mam-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 54px) clamp(14px, 1.5vw, 28px); align-items: start; margin-top: clamp(20px, 2.4vw, 36px); }
.mam-model { border-bottom: 1px solid var(--rule); scroll-margin-top: 4rem; min-width: 0; background: #fbfcf8; }
.mam-model:target { outline: 1px solid #635d52; outline-offset: 5px; }
.mam-model summary { display: block; cursor: pointer; list-style: none; }
.mam-model summary::-webkit-details-marker { display: none; }
.mam-model summary img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 4.55; background: #e7e9e2; object-fit: cover; object-position: 50% 52%; }
.mam-card-meta, .mam-card-desc, .mam-card-action, .mam-data { margin-inline: clamp(10px, 1.15vw, 20px); }
.mam-card-meta { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: .4rem; margin-top: 16px; margin-bottom: 7px; }
.mam-card-meta > span { font-size: .78rem; color: var(--muted); }
.mam-card-meta strong { font: 550 clamp(30px, 2.6vw, 43px)/1.06 "DM Sans", Arial, sans-serif; letter-spacing: -.055em; }
.mam-card-desc { display: block; min-height: 2.8em; line-height: 1.4; font-size: .93rem; }
.mam-card-action { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 44px; margin-top: 8px; border-top: 1px solid var(--rule); color: var(--wine); font-size: .86rem; font-weight: 650; }
.mam-model > summary:hover .mam-card-action > span:first-child { text-decoration: underline; text-underline-offset: .18em; }
.mam-indicator { position: relative; width: .78rem; height: .78rem; }
.mam-indicator::before, .mam-indicator::after { content: ""; position: absolute; background: currentColor; inset: calc(50% - .6px) 0 auto; height: 1.2px; }
.mam-indicator::after { transform: rotate(90deg); }
.mam-model[open] .mam-indicator::after { display: none; }
.mam-action-open, .mam-model[open] .mam-action-closed { display: none; }
.mam-model[open] .mam-action-open { display: inline; }
.mam-model[open] { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); align-items: start; gap: clamp(18px,3vw,52px); padding: clamp(16px,2.1vw,38px); border: 1px solid var(--rule); border-top: 3px solid var(--wine); background: #fff; }
.mam-model[open][hidden] { display: none; }
.mam-model[open]::details-content { display: contents; }
.mam-model[open] > summary { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; }
.mam-model[open] > summary > img { grid-column: 1 / -1; height: clamp(245px, 30vw, 445px); width: 100%; object-fit: contain; background: #e9eae4; }
.mam-model[open] > summary > .mam-card-meta { grid-column: 1; margin: 14px 0 4px; flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
.mam-model[open] .mam-card-meta strong { font-size: clamp(35px, 4vw, 64px); }
.mam-model[open] > summary > .mam-card-desc { grid-column: 1 / -1; grid-row: 3; min-height: 0; margin-inline: 0; color: var(--muted); }
.mam-model[open] > summary > .mam-card-action { grid-column: 2; grid-row: 2; min-height: 36px; margin: 0; padding: 0; gap: .55rem; border: 0; }
.mam-data { padding: 7px 0 18px; }
.mam-model[open] .mam-data { min-width: 0; padding: clamp(4px,.7vw,12px) 0 0; margin: 0; }
.mam-spec-heading { font-size: clamp(21px,2vw,35px); font-weight: 550; line-height: 1.05; letter-spacing: -.045em; margin: 0 0 15px; }
.mam-data dl { margin: 0; }
.mam-data dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .57rem 0; border-top: 1px solid var(--rule); font-size: .94rem; }
.mam-data dd { margin: 0; text-align: right; font-weight: 600; }
.mam-docs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 18px; border-top: 1px solid var(--rule); padding-top: 12px; font-size: .87rem; text-underline-offset: .21em; color: var(--wine); }
.mam-docs > a { padding-block: 6px; }
.mam-docs .mam-drawing { order: -2; display: inline-flex; align-items: center; gap: .7rem; background: var(--ink); color: #fff; padding: 9px 13px; text-decoration: none; font-weight: 550; }
.mam-docs a[href^="contacto.html"] { order: -1; font-weight: 600; }
.mam-docs .mam-compare-toggle { margin-top: 0; }
.mam-custom { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); align-items: stretch; margin-top: clamp(45px,7vw,92px); background: #eaeae1; }
.mam-custom > img { display: block; width: 100%; height: 100%; min-height: 0; max-height: 480px; object-fit: cover; object-position: 55% 57%; }
.mam-custom > div { align-self: center; padding: clamp(26px,4.3vw,74px); }
.mam-custom h2 { font-size: clamp(32px,4vw,70px); }
.mam-custom h2 em { color: var(--wine); font: italic 400 1.06em/.97 "Instrument Serif",Georgia,serif; letter-spacing: -.04em; }
.mam-custom p { max-width: 36ch; }
@media (max-width:700px) {
  .mam-custom { grid-template-columns: minmax(0,1fr); }
  .mam-custom > img { aspect-ratio: 1.9; height: auto; }
}
.mam-gallery { border-top: 1px solid var(--rule); }
.mam-gallery-open, .mam-gallery-fallback summary { padding: .65rem 0; border: 0; background: none; text-align: left; color: var(--wine); font: 600 .9rem/1.4 "DM Sans", Arial, sans-serif; text-decoration: underline; text-underline-offset: .2em; }
.mam-gallery-open span { display: block; color: var(--muted); font-size: .77rem; font-weight: 450; }
.mam-gallery-open { display: flex; align-items: center; gap: 12px; width: 100%; text-decoration: none; }
.mam-gallery-open[hidden] { display: none; }
.mam-gallery-preview { width: 84px; height: 56px; object-fit: cover; border: 1px solid var(--rule); }
.mam-gallery-open strong { font-size: .95rem; font-weight: 600; }
.mam-gallery-open:hover strong { text-decoration: underline; }
.mam-gallery-open::after { content: "↗"; margin-left: auto; font-size: 1.1rem; }
.mam-gallery-fallback ol { margin: 0 0 1rem; padding-left: 1.3rem; font-size: .85rem; }
.mam-page #mam-gallery-viewer { width: min(780px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 20px); padding: clamp(12px, 2vw, 22px); border: 0; background: var(--paper); color: var(--ink); overflow-y: auto; }
#mam-gallery-viewer::backdrop { background: #161a17db; }
.mam-view-top, .mam-view-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mam-view-top h2 { font-size: clamp(20px, 2.5vw, 32px); }
#mam-gallery-viewer button { min-width: 40px; min-height: 40px; border: 1px solid var(--rule); background: transparent; color: inherit; }
.mam-view-top [data-gallery-close] { padding: 0 .7rem; font-size: .88rem; }
.mam-view-top [data-gallery-close] span { margin-left: .4rem; font-size: 1.15rem; }
#mam-gallery-viewer figure { margin: 12px 0; }
.mam-full-image { width: 100%; height: min(56dvh, 550px); display: block; object-fit: contain; background: #e9eae4; }
#mam-gallery-viewer figcaption { display: flex; align-items: baseline; gap: 8px; justify-content: space-between; padding: 9px 0 0; font-size: .93rem; }
.mam-slide-count { font-size: .82rem; white-space: nowrap; color: var(--muted); }
.mam-view-controls > button { flex-shrink: 0; font-size: 1.15rem; }
.mam-thumbs { display: flex; min-width: 0; gap: 7px; overflow-x: auto; padding: 4px; }
.mam-thumbs button { flex: 0 0 44px; height: 44px; padding: 2px; }
.mam-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mam-thumbs button[aria-pressed="true"] { outline: 2px solid var(--wine); }
.mam-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body:has(#mam-gallery-viewer[open]) { overflow: hidden; }
@media (min-width: 721px) and (max-width: 1050px) {
  .mam-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .mam-model[open] { grid-template-columns: 1fr; gap: 20px; padding: 13px; }
  .mam-model[open] > summary > img { height: clamp(185px, 51vw, 275px); }
  .mam-model[open] .mam-card-meta strong { font-size: 36px; }
  .mam-spec-heading { font-size: 23px; }
  .mam-lead { grid-template-columns: 1fr; }
  .mam-cover-text { padding: 24px 0; }
  .mam-lead h1 { font-size: clamp(47px, 9.4vw, 63px); }
  .mam-lead h1 em { display: inline-block; }
  .mam-lead p { margin: 12px 0 20px; }
  .mam-cover-actions { gap: 5px 12px; }
  .mam-explore { gap: 10px; padding-inline: 12px; font-size: .85rem; }
  .mam-pdf { font-size: .8rem; }
  .mam-cover-images img { height: clamp(175px, 47vw, 280px); }
  .mam-cover-product figcaption > * { padding: 7px 10px; }
  .mam-filter { flex-direction: column; align-items: flex-start; }
  .mam-filter-results { margin-left: 0; }
  .mam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 14px; }
  .mam-card-desc { min-height: 4.2em; }
  .mam-filter-family { width: 100%; }
  .mam-filter-family [role="group"] { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
  .mam-filter-family button[data-show] { min-height: 63px; padding: 10px 12px; }
  .mam-compare-table { table-layout: auto; }
  .mam-compare-table th, .mam-compare-table td { min-width: 6.25rem; }
  .mam-compare-table tr > th:first-child { position: sticky; left: 0; min-width: 7rem; z-index: 1; overflow-wrap: normal; }
}
@media (max-width: 430px) {
  .mam-compare-swipe:not([hidden]) { display: block; margin: 10px 0 -8px; font-size: .8rem; color: var(--muted); }
}
@media (max-width: 370px) {
  .mam-grid { grid-template-columns: 1fr; }
  .mam-card-desc { min-height: 0; }
}
