:root {
  color-scheme: light;
  color: #251c17;
  background: #f8f3eb;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
[hidden] { display: none !important; }
.ancho { width: min(92%, 1240px); margin-inline: auto; }
.cabecera { background: #251c17; color: #f7deb2; }
.marca { padding-block: 19px; font-family: Georgia, serif; letter-spacing: .08em; font-size: 1.35rem; }
.marca span { margin-right: .3em; font-size: .85rem; }
.intro { padding-block: clamp(26px, 5vw, 62px) 25px; }
.tipo { color: #795023; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; font-size: .86rem; }
h1 { margin-top: .15em; margin-bottom: .2em; font: 500 clamp(2.1rem, 6vw, 4.2rem)/1.08 Georgia, serif; }
.intro > p:last-child { max-width: 53ch; color: #584b41; }
.filtros { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.filtros label { font-weight: 650; font-size: .9rem; }
input, select { display: block; width: 100%; min-width: 0; height: 48px; margin-top: 4px; padding-inline: 12px; border: 1px solid #c7b9a8; border-radius: 8px; background: #fffdfa; color: #251c17; font: inherit; font-size: 1rem; }
:focus-visible { outline: 3px solid #96601e; outline-offset: 3px; }
.resultados { padding-block: 17px; color: #594e44; }
.productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 15px; }
.card { background: #fffdfa; border: 1px solid #e3d8ca; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.foto { aspect-ratio: 4/5; background: #f0e8dc; display: grid; place-items: center; overflow: hidden; }
.foto img { width: 100%; height: 100%; min-height: 0; object-fit: contain; display: block; }
.placeholder { padding: 10px; text-align: center; color: #6b5846; }
.datos { display: flex; flex: 1; flex-direction: column; padding: 12px; }
.codigo { color: #5d4b3b; font-size: .86rem; }
h2 { margin-block: 4px 6px; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.25; }
.precio { color: #7b4d1e; font-size: 1.05rem; font-weight: 700; padding-bottom: 10px; }
.precio small { font-size: .82rem; font-weight: 500; }
.contacto { display: grid; place-items: center; min-height: 44px; margin-top: auto; padding: 6px; text-align: center; font-weight: 650; font-size: .88rem; color: #fff; background: #20543d; border-radius: 7px; text-decoration: none; }
.contacto:hover { background: #16442f; }
.vacio { padding: 20px; border: 1px solid #e3d8ca; border-radius: 10px; }
.pie { margin-block: 36px 22px; padding-top: 14px; border-top: 1px solid #e3d8ca; color: #554637; }
.salto { position: absolute; top: 4px; left: 4px; padding: 8px; background: #fff; color: #251c17; transform: translateY(-150%); }
.salto:focus { transform: none; }
@media (max-width: 540px) {
  .productos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .filtros { grid-template-columns: 1fr; gap: 8px; }
  .datos { padding: 9px; }
}
