/* Cabecera con buscador */
.cat-hero{padding-bottom:clamp(1.75rem,1.25rem + 2vw,2.75rem)}
.cat-hero-inner{max-width:48rem}
.cat-search{display:flex;align-items:center;gap:.5rem;max-width:40rem;margin-top:1.75rem;padding:.375rem .375rem .375rem .875rem;border-radius:var(--radius-xl);background:var(--glass);box-shadow:var(--shadow-frame);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);transition:box-shadow .15s var(--ease-out)}
.cat-search:focus-within{box-shadow:0 0 0 3px var(--ring-50),var(--shadow-frame)}
.cat-search-icon{flex-shrink:0;width:1.125rem;height:1.125rem;color:var(--muted-foreground)}
.cat-search-input{flex:1;min-width:0;height:2.5rem;padding:0;border:0;outline:none;background:transparent;color:var(--foreground);font:inherit;font-size:1rem}
.cat-search-input::placeholder{color:var(--muted-foreground)}
.cat-search .btn{flex-shrink:0}
.cat-kbd{flex-shrink:0}
.cat-search:focus-within .cat-kbd{opacity:0}
.cat-hero-stats{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;margin-top:1.25rem;color:var(--muted-foreground);font-size:.875rem}
.cat-hero-stats span{display:inline-flex;align-items:center;gap:.375rem}
.cat-hero-stats b{color:var(--foreground);font-weight:600}
.cat-hero-stats svg{width:.875rem;height:.875rem}

/* Filtros */
.cat-page{padding-block:1.5rem clamp(3rem,2rem + 4vw,5rem)}
.cat-toolbar{display:flex;flex-direction:column;gap:.875rem;margin-bottom:1.5rem}
.cat-chips{display:flex;gap:.5rem;margin-inline:calc(var(--gutter) * -1);padding:.25rem var(--gutter);overflow-x:auto;scroll-padding-inline:var(--gutter);scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,transparent,#000 var(--gutter),#000 calc(100% - var(--gutter)),transparent);mask-image:linear-gradient(90deg,transparent,#000 var(--gutter),#000 calc(100% - var(--gutter)),transparent)}
.cat-chips::-webkit-scrollbar{display:none}
.cat-chip{display:inline-flex;align-items:center;gap:.375rem;flex-shrink:0;height:2.125rem;padding:0 .375rem 0 .75rem;border-radius:999px;background:var(--card);box-shadow:inset 0 0 0 1px var(--border);color:var(--muted-foreground);font-size:.8125rem;font-weight:500;white-space:nowrap;transition:color .15s var(--ease-out),box-shadow .15s var(--ease-out),background-color .15s var(--ease-out)}
.cat-chip svg{width:.875rem;height:.875rem}
.cat-chip:hover{color:var(--foreground);box-shadow:inset 0 0 0 1px color-mix(in oklab,var(--foreground) 24%,transparent)}
.cat-chip:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.cat-chip[aria-current=page]{background:var(--primary);color:var(--primary-foreground);box-shadow:none}
.cat-chip-count{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;box-sizing:border-box;min-width:1.375rem;height:1.375rem;padding:0 .3125rem;border-radius:999px;background:var(--muted);color:var(--muted-foreground);font-size:.6875rem;font-variant-numeric:tabular-nums;line-height:normal;white-space:nowrap}
@supports (text-box:trim-both cap alphabetic){.cat-chip-count{display:inline-block;padding-top:calc((1.375rem - .71875em) / 2);padding-bottom:0;text-align:center;vertical-align:middle;text-box:trim-both cap alphabetic}}
.cat-chip[aria-current=page] .cat-chip-count{background:color-mix(in oklab,var(--primary-foreground) 18%,transparent);color:var(--primary-foreground)}
@media (min-width:1024px){
  .cat-chips{flex-wrap:wrap;margin-inline:0;padding:0;overflow:visible;-webkit-mask-image:none;mask-image:none}
}

.cat-controls{display:flex;flex-wrap:wrap;align-items:center;gap:.625rem}
.cat-segment{display:inline-flex;margin:0;padding:.1875rem;border:0;border-radius:var(--radius-lg);background:var(--muted)}
.cat-segment-item{position:relative;display:flex}
.cat-segment-item input{position:absolute;opacity:0;pointer-events:none}
.cat-segment-item span{display:inline-flex;align-items:center;justify-content:center;gap:.375rem;width:100%;height:1.875rem;padding:0 .75rem;border-radius:calc(var(--radius-lg) - .1875rem);color:var(--muted-foreground);font-size:.8125rem;font-weight:500;white-space:nowrap;cursor:pointer;transition:color .15s var(--ease-out),background-color .15s var(--ease-out),box-shadow .15s var(--ease-out)}
.cat-segment-item span svg{width:.875rem;height:.875rem}
.cat-segment-item span:hover{color:var(--foreground)}
.cat-segment-item input:checked+span{background:var(--card);color:var(--foreground);box-shadow:var(--shadow-sm),0 0 0 1px var(--border)}
.cat-segment-item input:focus-visible+span{outline:2px solid var(--ring);outline-offset:1px}
.cat-sort{position:relative;display:inline-flex;align-items:center;margin-left:auto}
.cat-sort-icon{position:absolute;left:.625rem;width:.875rem;height:.875rem;color:var(--muted-foreground);pointer-events:none}
.cat-sort-select{width:auto;padding-left:2rem;font-size:.8125rem}
.js .cat-apply{display:none}
@media (max-width:639.98px){
  .cat-segment{flex:1 1 100%}
  .cat-segment-item{flex:1}
  .cat-sort{flex:1;margin-left:0}
  .cat-sort-select{width:100%}
}

/* Resultados */
.cat-results{position:relative;min-height:12rem}
.cat-results-body{transition:opacity .15s var(--ease-out)}
.cat-results .cat-results-body{transition:opacity .2s var(--ease-out)}
.cat-results[aria-busy=true] .cat-results-body{opacity:.6}
.cat-summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem .75rem;min-height:2rem;margin-bottom:1rem}
.cat-count{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;font-size:.875rem}
.cat-count b{font-weight:600}
.cat-grid>li{display:flex;min-width:0}
.cat-grid>li[hidden]{display:none}
.cat-grid>li>.cat-card{flex:1}

.cat-card{position:relative;min-width:0}
.cat-card:focus-within{box-shadow:0 0 0 2px var(--ring),var(--shadow-md)}
.cat-card-title{flex:1}
.cat-card-link{color:inherit;outline:none}
.cat-card-link::after{content:'';position:absolute;inset:0;z-index:1;border-radius:inherit}
.cat-card-group{margin-top:.125rem;color:var(--muted-foreground);font-size:.8125rem;line-height:1.4}
.cat-thumb{flex-shrink:0;width:2.5rem;height:2.5rem;border:1px solid var(--border);border-radius:var(--radius-lg);object-fit:cover;background:var(--muted)}
.cat-star{display:inline-flex;flex-shrink:0;color:var(--warning)}
.cat-star svg{width:1rem;height:1rem;fill:currentColor}
.cat-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.375rem .875rem;color:var(--muted-foreground);font-size:.8125rem}
.cat-card-meta li{display:inline-flex;align-items:center;gap:.3125rem}
.cat-card-meta svg{width:.875rem;height:.875rem}
.cat-auto svg{color:var(--success)}
.cat-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:.125rem .375rem;min-width:0}
.cat-price-from{color:var(--muted-foreground);font-size:.75rem;font-weight:500}
.cat-price-unit{color:var(--muted-foreground);font-size:.75rem}
.cat-card-go{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:2rem;height:2rem;border-radius:999px;background:var(--muted);color:var(--foreground);transition:transform .2s var(--ease-out),background-color .2s var(--ease-out),color .2s var(--ease-out)}
.cat-card-go svg{width:1rem;height:1rem}
.cat-card:hover .cat-card-go,.cat-card:focus-within .cat-card-go{transform:translateX(2px);background:var(--primary);color:var(--primary-foreground)}

.cat-filter-empty{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:2.5rem 1rem;color:var(--muted-foreground);font-size:.875rem}
.cat-filter-empty[hidden]{display:none}
.cat-spin{width:1rem;height:1rem;animation:spin 1s linear infinite}
.cat-pagination{margin-top:1.5rem;border-radius:var(--radius-xl);background:var(--card);box-shadow:var(--shadow-ring);overflow:hidden}
.cat-note{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1rem;margin-top:1.5rem;padding:1rem 1.125rem;border-radius:var(--radius-xl);background:var(--surface-muted);box-shadow:inset 0 0 0 1px var(--border);color:var(--muted-foreground);font-size:.875rem;line-height:1.55}
.cat-note p{flex:1 1 16rem}
.cat-note-actions{display:flex;flex-wrap:wrap;gap:.5rem}

/* Ficha del servicio */
.cat-hero-detail .breadcrumb{margin-bottom:1.5rem}
.cat-hero-detail .breadcrumb ol{row-gap:.25rem}
.cat-hero-head{display:flex;align-items:flex-start;gap:1rem;max-width:52rem}
.cat-hero-tile,.cat-hero-img{flex-shrink:0;width:3.5rem;height:3.5rem;border-radius:var(--radius-xl)}
.cat-hero-tile svg{width:1.5rem;height:1.5rem}
.cat-hero-img{border:1px solid var(--border);object-fit:cover;background:var(--muted)}
.cat-hero-badges{display:flex;flex-wrap:wrap;gap:.375rem;margin-bottom:.75rem}
.cat-detail-title{font-size:clamp(1.75rem,1.2rem + 2.2vw,2.75rem);overflow-wrap:anywhere}
.cat-hero-head .page-hero-lead{margin-top:.75rem}
.cat-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(12.5rem,1fr));gap:.625rem;max-width:52rem;margin-top:1.75rem}
.cat-facts li{display:flex;align-items:center;gap:.75rem;padding:.75rem .875rem;border-radius:var(--radius-lg);background:var(--glass);box-shadow:var(--shadow-ring)}
.cat-facts svg{flex-shrink:0;width:1.125rem;height:1.125rem;color:var(--muted-foreground)}
.cat-facts small{display:block;color:var(--muted-foreground);font-size:.75rem;line-height:1.3}
.cat-facts b{display:block;font-size:.875rem;font-weight:600;line-height:1.35}
@media (max-width:479.98px){.cat-hero-tile,.cat-hero-img{width:2.75rem;height:2.75rem}}

.cat-detail{padding-block:2rem clamp(3rem,2rem + 4vw,5rem)}
.cat-detail-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:1.25rem;align-items:start}
.cat-detail-main{display:flex;flex-direction:column;gap:1.25rem;min-width:0}
@media (max-width:999.98px){.cat-buy{order:-1}}
@media (min-width:1000px){
  .cat-detail-grid{grid-template-columns:minmax(0,1fr) 23rem;gap:2rem}
  .cat-buy{position:sticky;top:5.5rem}
}
.cat-description{color:color-mix(in oklab,var(--foreground) 86%,transparent);font-size:.9375rem;line-height:1.75;overflow-wrap:anywhere}

.cat-reqs{display:flex;flex-direction:column}
.cat-reqs li{display:flex;gap:.875rem;padding:.875rem 0;border-top:1px solid var(--border)}
.cat-reqs li:first-child{padding-top:0;border-top:0}
.cat-reqs li:last-child{padding-bottom:0}
.cat-req-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:2.25rem;height:2.25rem;border-radius:var(--radius-md);background:var(--muted);color:var(--foreground)}
.cat-req-icon svg{width:1rem;height:1rem}
.cat-req-name{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .5rem;font-size:.9375rem;font-weight:500}
.cat-reqs .hint{margin-top:.125rem}

.cat-steps{display:grid;gap:.75rem}
@media (min-width:720px) and (max-width:999.98px),(min-width:1240px){.cat-steps{grid-template-columns:repeat(3,minmax(0,1fr))}}
.cat-steps li{position:relative;display:flex;flex-direction:column;gap:.75rem;padding:1rem;border-radius:var(--radius-lg);background:var(--surface-muted);box-shadow:inset 0 0 0 1px var(--border)}
.cat-step-num{position:absolute;top:1rem;right:1rem;color:var(--muted-foreground);font-family:var(--font-mono);font-size:.6875rem;letter-spacing:.1em}
.cat-steps b{display:block;font-size:.9375rem;font-weight:600;line-height:1.35}
.cat-steps p{margin-top:.25rem;color:var(--muted-foreground);font-size:.8125rem;line-height:1.55}

.cat-buy{display:flex;flex-direction:column;gap:1.25rem;min-width:0;padding:1.5rem;border-radius:1.25rem;background:var(--glass);box-shadow:var(--shadow-frame);-webkit-backdrop-filter:blur(18px) saturate(1.15);backdrop-filter:blur(18px) saturate(1.15)}
.cat-buy-price{display:flex;flex-direction:column;gap:.125rem}
.cat-buy-label{color:var(--muted-foreground);font-size:.8125rem;font-weight:500}
.cat-buy-amount{font-size:clamp(2rem,1.6rem + 1.6vw,2.5rem);font-weight:600;letter-spacing:-.045em;line-height:1.1;overflow-wrap:anywhere}
.cat-buy-unit{color:var(--muted-foreground);font-size:.875rem}
.cat-buy-hint{display:flex;align-items:flex-start;gap:.375rem;margin-top:.625rem;color:var(--muted-foreground);font-size:.8125rem;line-height:1.5}
.cat-buy-hint svg{flex-shrink:0;width:.875rem;height:.875rem;transform:translateY(3px)}
.cat-buy-locked{display:inline-flex;align-items:center;gap:.5rem;margin-top:.25rem;font-size:1.0625rem;font-weight:600}
.cat-buy-locked svg{width:1.125rem;height:1.125rem;color:var(--muted-foreground)}
.cat-buy-kv{border-top:1px solid var(--border);font-size:.875rem}
.cat-qty{display:flex;flex-direction:column;gap:.5rem}
.cat-qty-title{font-size:.8125rem;font-weight:600}
.cat-qty-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.375rem}
.cat-qty-list li{display:flex;justify-content:space-between;gap:.5rem;padding:.5rem .625rem;border-radius:var(--radius-md);background:var(--muted);font-size:.8125rem}
.cat-qty-list b{font-weight:600}
.cat-calc-row{display:flex;align-items:center;gap:.75rem}
.cat-calc-row .input{flex:0 0 7rem;width:7rem}
.cat-calc-row output{margin-left:auto;font-size:1.125rem;font-weight:600;letter-spacing:-.02em}
.cat-buy-actions{display:flex;flex-direction:column;gap:.5rem}
.cat-trust{display:flex;flex-direction:column;gap:.5rem;padding-top:1rem;border-top:1px solid var(--border);color:var(--muted-foreground);font-size:.8125rem}
.cat-trust li{display:flex;align-items:center;gap:.5rem}
.cat-trust svg{flex-shrink:0;width:.875rem;height:.875rem;color:var(--success)}

.cat-related{margin-top:clamp(2.5rem,2rem + 2vw,3.5rem)}
.cat-related-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:1.25rem}
.cat-related-title{font-size:clamp(1.25rem,1.1rem + .6vw,1.5rem);font-weight:600;letter-spacing:-.03em}

@media (prefers-reduced-motion:reduce){
  .cat-card-go,.cat-chip,.cat-segment-item span,.cat-results-body{transition:none}
  .cat-spin{animation:none}
}
/* Ficha */
.cat-hero-head{align-items:center;gap:clamp(1rem,.5rem + 2vw,2rem);max-width:64rem}
.cat-hero-tile,.cat-hero-img{width:clamp(6rem,4rem + 6vw,10rem);height:clamp(6rem,4rem + 6vw,10rem);border-radius:1.25rem}
.cat-hero-tile svg{width:clamp(2.25rem,1.5rem + 2vw,3.5rem);height:clamp(2.25rem,1.5rem + 2vw,3.5rem)}
.cat-hero-img{box-shadow:var(--shadow-md)}
@media (max-width:479.98px){.cat-hero-head{align-items:flex-start}.cat-hero-tile,.cat-hero-img{width:5rem;height:5rem;border-radius:1rem}.cat-hero-tile svg{width:2rem;height:2rem}}
