/* Fase 4.2 — tapas por medidas y fotografías de referencia */
.mafared-tapa-filtro {margin:-3px 0 22px;padding:16px 18px;display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,1.2fr);gap:6px 15px;align-items:center;background:#eef7ff;border:1px solid #c8e4f7;border-radius:16px;}
.mafared-tapa-filtro[hidden]{display:none!important;}
.mafared-tapa-filtro label{font-weight:850;color:#0a3f70;font-size:.89rem;}
.mafared-tapa-filtro select{width:100%;min-height:45px;border:1px solid #bddcf1;border-radius:10px;background:white;color:#104c7c;font-size:.87rem;font-weight:700;font-family:inherit;padding:9px 12px;cursor:pointer;}
.mafared-tapa-filtro p{grid-column:1/-1;margin:5px 0 0;color:#567b98;font-size:.79rem;line-height:1.5;}
.tarjeta-producto .imagen-producto{position:relative;}
.mafared-referencia-foto{position:absolute;bottom:10px;left:10px;right:10px;text-align:center;background:rgba(255,255,255,.94);border:1px solid #d8e8f3;border-radius:8px;color:#365d79;font-size:.66rem;font-weight:760;line-height:1.35;padding:5px 7px;}
@media(max-width:680px){.mafared-tapa-filtro{grid-template-columns:1fr;padding:13px;gap:10px;}.mafared-tapa-filtro p{margin:0;}.mafared-referencia-foto{font-size:.60rem;left:5px;right:5px;bottom:5px;}}


/* Ajuste visual Fase 4.3.2 — uniformidad de imágenes en tapas y tapones */
.tarjeta-producto[data-categoria="tapas"] .imagen-producto{height:290px;padding:18px 20px;display:flex;justify-content:center;align-items:center;background:linear-gradient(180deg,#eef7ff 0%,#f8fbfe 100%);}
.tarjeta-producto[data-categoria="tapas"] .imagen-producto img{width:82%;height:82%;max-width:none;max-height:none;object-fit:contain;object-position:center center;}
.tarjeta-producto[data-tipo-tapa="tapones"] .imagen-producto img{width:74%;height:74%;}
.tarjeta-producto[data-categoria="tapas"] .info-producto h3{min-height:2.8em;}
@media(max-width:760px){.tarjeta-producto[data-categoria="tapas"] .imagen-producto{height:250px;padding:16px;}.tarjeta-producto[data-categoria="tapas"] .imagen-producto img{width:80%;height:80%;}.tarjeta-producto[data-tipo-tapa="tapones"] .imagen-producto img{width:72%;height:72%;}}
