
/* Fichas de familias de bandas transportadoras */
.tipo .tipo-enlace{display:flex;flex:1;flex-direction:column;color:inherit;text-decoration:none}
.tipo .tipo-enlace:hover h3{text-decoration:underline;text-underline-offset:.18em}
.tipo-more{margin-top:auto;padding-top:12px;color:var(--navy);font-size:.9rem;font-weight:800}
.familias-back{padding:18px 0;background:var(--soft);border-bottom:1px solid var(--line)}
.familias-back a{color:var(--navy);font-weight:700;text-decoration:none}
.familias-back a:hover{text-decoration:underline;text-underline-offset:.18em}
.familias-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin:22px 0}
.familias-gallery figure{display:flex;align-items:center;justify-content:center;min-height:175px;margin:0;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff}
.familias-gallery img{display:block;max-width:100%;max-height:210px;width:auto;height:auto;object-fit:contain}
.familias-nota{padding:16px 18px;border-left:4px solid var(--navy);border-radius:0 8px 8px 0;background:var(--soft)}
@media(max-width:600px){.familias-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.familias-gallery figure{min-height:135px;padding:8px}.familias-gallery img{max-height:155px}}

.familias-gallery--cover{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.familias-gallery--cover figure{position:relative;display:block;aspect-ratio:4/3;min-height:0;margin:0;padding:0;overflow:hidden;isolation:isolate;line-height:0;border-radius:18px;clip-path:inset(0 round 18px);background:#f7f7f7}
.familias-gallery--cover img{display:block;width:100%;height:100%;min-height:0;max-width:none;max-height:none;object-fit:cover;object-position:center;border:0;border-radius:0}
@media(max-width:780px){.familias-gallery--cover{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.familias-gallery--cover figure{aspect-ratio:4/3;border-radius:16px;clip-path:inset(0 round 16px)}}

/* Galería de construcciones de malla metálica */
.malla-media{overflow:hidden;border-radius:18px;clip-path:inset(0 round 18px);background:#f2f3f4}
.malla-media img{filter:grayscale(1) contrast(1.06)}
.malla-gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.malla-gallery figure{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;min-height:0;margin:0;padding:0;overflow:hidden;border:0;border-radius:18px;clip-path:inset(0 round 18px);background:#f2f3f4;box-shadow:0 5px 16px rgba(7,16,73,.10)}
.malla-gallery figure img{display:block;width:100%;height:150px;max-width:none;max-height:none;object-fit:cover;object-position:center;filter:grayscale(1) contrast(1.06)}
.malla-gallery figcaption{min-height:46px;display:flex;align-items:center;padding:10px 12px;background:#fff;color:var(--navy);font-size:.82rem;font-weight:800;line-height:1.25}
@media(max-width:780px){.malla-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.malla-gallery figure{border-radius:16px;clip-path:inset(0 round 16px)}.malla-gallery figure img{height:132px}.malla-gallery figcaption{min-height:43px;font-size:.78rem;padding:8px 10px}}

/* Mantener el encuadre original a todo el ancho, sin bandas laterales. */
.tipos > :is(#goma, #pvc-pu, #malla-metalica) .tipo-enlace > img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:auto;
  object-fit:contain;
  background:transparent;
  border-radius:16px;
}
