html { scroll-padding-top: 183px; }
html [hidden] { display: none !important; }
.md-saltar { position: fixed; z-index: 80; top: -4rem; left: 1rem; }
.md-saltar:focus { top: .5rem; background: white; color: #111c2d; padding: .65rem; border-radius: .5rem; }
.md-nav-row > div:first-child { min-width: 0; }
.md-nav-row > div:last-child, #md-menu-toggle { flex-shrink: 0; }
#md-menu { scrollbar-width: thin; }
#catalogo-filtros { top: 184px; }
.md-menu-panel {
  position: absolute;
  left: max(0px, calc((100vw - 1440px) / 2));
  top: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .25rem;
  width: min(480px, 100vw);
  max-height: calc(100dvh - 168px);
  overflow: auto;
  padding: .75rem;
  color: #111c2d;
  background: #fff;
  border: 1px solid #e1e6ef;
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0 10px 25px #111c2d22;
}
.md-menu-panel a { padding: .6rem .7rem; border-radius: .5rem; font-weight: 650; }
.md-menu-panel a:hover, .md-menu-panel a:focus-visible { background: #eff2f9; }
.md-menu-panel [aria-current] { background: #ebedf5; color: #111c2d; }
.md-menu-panel form { grid-column: 1 / -1; display: flex; gap: .4rem; padding: .15rem .4rem .45rem; }
.md-menu-panel form input { flex: 1; min-width: 0; padding: .5rem; border-radius: .45rem; border: 1px solid #cbd4e2; }
.md-menu-panel form button { background: #b5222c; padding: .4rem .6rem; border-radius: .45rem; color: white; font-weight: 650; }
.md-aviso {
  position: fixed;
  z-index: 70;
  bottom: 1rem;
  right: 1rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  border-radius: .75rem;
  padding: .8rem 1rem;
  color: #fff;
  background: #111c2d;
  box-shadow: 0 4px 18px #111c2d40;
  font-size: .88rem;
}
.md-privacidad { display: none; margin-top: .8rem; }
.md-privacidad:target, .md-privacidad[open] { display: block; }
#catalogo-filtros [data-filtro-material][aria-pressed=true] { color: #fff; background: #d31a24; }
#catalogo-filtros [data-filtro-color][aria-pressed=true] { outline: 2px solid #d31a24; outline-offset: 2px; }
[data-favorito][aria-pressed=true] { color: #c51e27; }
[data-favorito][aria-pressed=true] .material-symbols-outlined { font-variation-settings: 'FILL' 1; }
nav[aria-label="Paginación del Catálogo"] button:disabled { cursor: default; }
.md-detalle {
  width: min(520px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 1.25rem;
  color: #111c2d;
  background: #fff;
  box-shadow: 0 16px 48px #111c2d40;
}
.md-detalle::backdrop { background: #111c2d99; }
.md-detalle > img { width: 100%; max-height: 48vh; object-fit: cover; }
.md-detalle-cerrar { position: absolute; top: .75rem; right: .75rem; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px #111c2d30; }
.md-detalle-contenido { padding: 1.25rem; }
.md-detalle-contenido h2 { font-size: 1.25rem; font-weight: 800; }
#detalle-precio { margin: .35rem 0 .85rem; color: #b5222c; font-size: 1.2rem; font-weight: 800; }
.md-detalle-cta { display: inline-block; padding: .65rem .9rem; border-radius: .6rem; color: #fff; background: #b5222c; font-weight: 750; }
.md-boletin-form input[type=email] { min-width: 0; }

@media (min-width: 1024px) {
  #md-menu a { padding-inline: clamp(.3rem, .49vw, .75rem); }
}
@media (min-width: 1024px) and (max-width: 1320px) {
  .md-nav-row > div:last-child { display: none; }
}
@media (min-width: 1024px) and (max-width: 1120px) {
  #md-menu a, #md-menu-toggle { font-size: .72rem; }
  #md-menu-toggle { padding-inline: .65rem; }
}
@media (max-width: 880px) {
  #contenido-principal { overflow: hidden; }
}
@media (max-width: 600px) {
  .md-promo-row, .md-store-row, .md-nav-row { padding-inline: .9rem; }
  .md-promo-row { gap: .4rem; font-size: .65rem; line-height: 1.14; }
  .md-promo-row > div { min-width: 0; gap: .25rem; }
  .md-store-row { gap: .3rem; }
  .md-store-row > div:last-child { gap: .3rem; }
  .md-store-row > div:first-child a { gap: .35rem; }
  .md-store-row > div:first-child a > div + div { max-width: 145px; }
  .md-store-row > div:first-child a > div + div span:first-child { font-size: .82rem; white-space: normal; }
  .md-store-row > div:first-child a > div + div > span + span { font-size: .58rem; letter-spacing: .055em; }
  .md-store-row > div:last-child a { padding: .27rem; }
  .md-store-row > div:last-child a img { width: 1.65rem; height: 1.65rem; }
  #portada h1 { flex-wrap: wrap; }
  #portada h1 > span:first-child { font-size: clamp(1.75rem, 9vw, 2.3rem); }
  #portada h1 > span:last-child { font-size: clamp(1rem, 5vw, 1.4rem); }
  #departamentos > div:first-child { gap: .5rem; align-items: flex-start; }
  #departamentos > div:first-child > a { flex-shrink: 0; max-width: 110px; }
  #credito .term-btn { padding-inline: .3rem; }
  #detalle-mueble img { min-height: 95px; }
}
@media (max-width: 385px) {
  .md-store-row > div:first-child a > div + div { max-width: 126px; }
  .md-store-row > div:last-child { gap: 0; }
  .md-store-row > div:last-child a { padding: .18rem; }
  #departamentos > div:nth-child(2) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #credito .term-btn { font-size: .64rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
