/* categoria.css — página de categoría (/categoria/*.html). Va después de base.css */
main { max-width: 1100px; margin: 0 auto; padding: 1.4rem 1.5rem 3rem; }
.breadcrumb { font-size: 0.8rem; color: var(--gris-500); margin-bottom: 1.2rem; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb a:hover { color: var(--naranja-dark); }
h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 1rem; }
.intro { max-width: 68ch; margin-bottom: 1.8rem; }
.intro p { color: var(--gris-700); font-size: 0.96rem; margin-bottom: 0.8rem; }
.intro p:first-child { color: var(--tinta); font-size: 1.05rem; }

.filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; align-items: end; background: var(--gris-100); border: 1px solid var(--borde); border-radius: var(--radio-md); padding: 1rem; margin-bottom: 1rem; }
.filtros label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.78rem; font-weight: 600; color: var(--gris-700); }
.filtros input, .filtros select { width: 100%; border: 1.5px solid var(--borde); border-radius: var(--radio-sm); padding: 0.55rem 0.65rem; font-size: 0.9rem; font-family: inherit; color: var(--tinta); background: #fff; }
.filtros input:focus, .filtros select:focus { outline: none; border-color: var(--naranja); }
.btn-limpiar { border: 1.5px solid var(--borde); background: #fff; border-radius: var(--radio-full); padding: 0.6rem 1rem; font-size: 0.82rem; font-weight: 700; font-family: inherit; color: var(--tinta); cursor: pointer; }
.btn-limpiar:hover { border-color: var(--tinta); }
.count { font-size: 0.88rem; color: var(--gris-700); margin-bottom: 1rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.1rem; }
@media (max-width: 480px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; } }
.prod-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio-md); overflow: hidden; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.prod-card[hidden] { display: none; }
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--sombra-hover); }
.prod-img { aspect-ratio: 1; background: var(--gris-100); overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-body { padding: 0.85rem 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.prod-nombre { font-size: 0.9rem; font-weight: 700; line-height: 1.3; }
.prod-mat { font-size: 0.78rem; color: var(--gris-500); }
.pills { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; padding-top: 0.45rem; }
.pill { background: var(--gris-100); border: 1px solid var(--borde); border-radius: var(--radio-sm); padding: 0.15rem 0.5rem; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; color: var(--gris-700); }
.vacio, .vacia { background: var(--gris-100); border-radius: var(--radio-md); padding: 1.2rem 1.3rem; color: var(--gris-700); font-size: 0.95rem; max-width: 68ch; }
.vacio { margin-top: 1rem; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; background: var(--tinta); color: #fff; border-radius: var(--radio-md); padding: 1.5rem 1.7rem; margin-top: 2.5rem; }
.cta h2 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; margin-bottom: 0.25rem; }
.cta p { color: rgba(255,255,255,0.78); font-size: 0.9rem; max-width: 46ch; }
.otras { margin-top: 2.5rem; }
.otras h2 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; margin-bottom: 0.8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip { border: 1.5px solid var(--borde); border-radius: var(--radio-full); padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: border-color 0.15s, background 0.15s; }
.chip:hover { border-color: var(--naranja); background: var(--naranja-soft); color: var(--naranja-dark); }
.link-catalogo { display: inline-block; margin-top: 1.4rem; font-size: 0.88rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.link-catalogo:hover { color: var(--naranja-dark); }
@media (prefers-reduced-motion: reduce) { .prod-card { transition: none; } .prod-card:hover { transform: none; } }
