/* ══ HERO ══ */
.page-hero{background:linear-gradient(135deg,#1e2530 0%,#2d3548 55%,#3a1b18 100%);color:#fff;padding:48px 20px 44px;text-align:center;position:relative;overflow:hidden}
.page-hero::before{content:'';position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");pointer-events:none}
.hero-label{display:inline-block;background:rgba(192,57,43,.25);border:1px solid rgba(192,57,43,.4);color:#fca5a5;font-size:12px;font-weight:700;letter-spacing:.5px;padding:4px 12px;border-radius:20px;margin-bottom:14px;position:relative}
.page-hero h1{font-size:clamp(22px,4vw,34px);font-weight:800;margin-bottom:10px;position:relative}
.page-hero h1 span{color:#fca5a5}
.page-hero p{font-size:14.5px;color:rgba(255,255,255,.7);max-width:560px;margin:0 auto;position:relative}

/* ══ STATS ══ */
.stats-bar{background:var(--white);border-bottom:1px solid var(--border)}
.stats-bar-w{max-width:1240px;margin:0 auto;padding:0 20px;display:grid;grid-template-columns:repeat(4,1fr)}
@media(max-width:700px){.stats-bar-w{grid-template-columns:repeat(2,1fr)}}
.stat-item{padding:16px;text-align:center;border-right:1px solid var(--border)}.stat-item:last-child{border-right:none}
.stat-item .si-icon{font-size:20px;margin-bottom:3px}
.stat-item .si-title{font-size:12.5px;font-weight:700;color:var(--text)}
.stat-item .si-sub{font-size:11px;color:var(--muted)}

/* ══ LAYOUT ══ */
.page-body{max-width:1240px;margin:28px auto;padding:0 20px;display:grid;grid-template-columns:1fr 300px;gap:28px;align-items:start}
@media(max-width:960px){.page-body{grid-template-columns:1fr}}

/* ══ MAIN: CABECERA + GRID ══ */
.main-col{display:flex;flex-direction:column;gap:20px}

.cat-header{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.cat-header-left h2{font-size:19px;font-weight:800;color:var(--text)}
.cat-header-left p{font-size:13px;color:var(--muted);margin-top:2px}
.cat-header-badge{background:#fef2f2;border:1px solid #fecaca;color:var(--red);font-size:12px;font-weight:700;padding:5px 12px;border-radius:20px;white-space:nowrap}

/* Filtro / orden */
.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.toolbar-search{position:relative;flex:1;min-width:180px}
.toolbar-search input{width:100%;padding:8px 34px 8px 12px;border:1.5px solid var(--border);border-radius:var(--radius-s);font-size:13px;outline:none;background:var(--bg);transition:border-color .2s}
.toolbar-search input:focus{border-color:var(--red);background:var(--white)}
.toolbar-search span{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:14px;color:var(--muted);pointer-events:none}
.toolbar-count{font-size:13px;color:var(--muted);white-space:nowrap}

/* ── GRID DE SUBCATEGORÍAS ── */
.subcat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}
@media(max-width:540px){.subcat-grid{grid-template-columns:repeat(2,1fr);gap:10px}}

.subcat-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .18s,box-shadow .18s,border-color .18s;display:flex;flex-direction:column}
.subcat-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.13);border-color:#fecaca}

.subcat-img{position:relative;overflow:hidden;background:#f0f0f0;aspect-ratio:4/3}
.subcat-img img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.subcat-card:hover .subcat-img img{transform:scale(1.06)}
.subcat-img .badge-vd{position:absolute;top:8px;left:8px;background:var(--red);color:#fff;font-size:10.5px;font-weight:700;padding:3px 8px;border-radius:20px;letter-spacing:.3px}

.subcat-body{padding:12px 14px 14px;flex:1;display:flex;flex-direction:column;gap:6px}
.subcat-body h3{font-size:13px;font-weight:700;color:var(--text);line-height:1.35}
.subcat-body .subcat-meta{font-size:11.5px;color:var(--muted);display:flex;align-items:center;gap:4px}
.subcat-body .subcat-cta{margin-top:auto;padding-top:8px;display:flex;align-items:center;justify-content:space-between}
.subcat-body .cta-link{font-size:12px;font-weight:700;color:var(--red);display:flex;align-items:center;gap:3px}
.subcat-body .cta-link:hover{text-decoration:underline}
.subcat-body .cta-arrow{font-size:13px;color:#ccc;transition:color .2s}
.subcat-card:hover .cta-arrow{color:var(--red)}

/* Sin resultados */
.no-results{display:none;background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:40px;text-align:center;color:var(--muted)}
.no-results .nr-icon{font-size:36px;margin-bottom:10px}
.no-results p{font-size:14px}

/* CTA box */
.cta-box{background:linear-gradient(135deg,#1e2530,#2d3548);color:#fff;border-radius:var(--radius);padding:26px 24px;display:flex;flex-direction:column;gap:14px}
.cta-box h3{font-size:16px;font-weight:700}
.cta-box p{font-size:13px;color:rgba(255,255,255,.7)}
.cta-btns{display:flex;gap:10px;flex-wrap:wrap}
.cta-btn-wa{background:var(--green);color:#fff;padding:10px 18px;border-radius:var(--radius-s);font-size:13px;font-weight:700;display:flex;align-items:center;gap:6px;transition:background .2s}.cta-btn-wa:hover{background:#1ebe5d}
.cta-btn-mail{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.25);padding:10px 18px;border-radius:var(--radius-s);font-size:13px;font-weight:600;transition:background .2s}.cta-btn-mail:hover{background:rgba(255,255,255,.2)}

/* ══ SIDEBAR ══ */
.sidebar{display:flex;flex-direction:column;gap:20px}

.card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.card-head{padding:16px 20px 14px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:10px}
.card-head .ch-icon{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0;background:#fee2e2}
.card-head h3{font-size:14.5px;font-weight:700}
.card-head p{font-size:12px;color:var(--muted)}
.card-body{padding:16px 20px}

/* Otras categorías */
.other-cats a{display:flex;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid var(--bg);font-size:13px;color:var(--text);transition:color .18s}
.other-cats a:last-child{border-bottom:none}
.other-cats a:hover{color:var(--red)}
.other-cats a .oc-icon{font-size:16px;width:22px;text-align:center}
.other-cats a .oc-arr{margin-left:auto;font-size:12px;color:#ccc;transition:color .18s}
.other-cats a:hover .oc-arr{color:var(--red)}
.other-cats a.current{color:var(--red);font-weight:700}

/* Datos de contacto sidebar */
.contact-list li{display:flex;align-items:flex-start;gap:10px;padding:9px 0;border-bottom:1px solid var(--bg)}.contact-list li:last-child{border-bottom:none}
.cl-icon{font-size:16px;width:22px;text-align:center;margin-top:1px;flex-shrink:0}
.cl-label{font-size:11px;color:var(--muted);font-weight:500}
.cl-val{font-size:13px;font-weight:600;color:var(--text)}.cl-val a{color:var(--red)}.cl-val a:hover{text-decoration:underline}

/* WhatsApp btn */
.wa-big-btn{display:flex;align-items:center;justify-content:center;gap:8px;background:var(--green);color:#fff;border-radius:var(--radius-s);padding:11px;font-size:13.5px;font-weight:700;width:100%;transition:background .2s,transform .15s}.wa-big-btn:hover{background:#1ebe5d;transform:translateY(-1px)}

/* Links útiles */
.links-list a{display:flex;align-items:center;gap:7px;padding:8px 0;border-bottom:1px solid var(--bg);font-size:13px;color:var(--muted);transition:color .18s}.links-list a:last-child{border-bottom:none}.links-list a:hover{color:var(--red)}

/* Newsletter */
.nl-form{display:flex;flex-direction:column;gap:10px}
.nl-input{padding:9px 14px;border:1.5px solid var(--border);border-radius:var(--radius-s);font-size:13.5px;outline:none;background:var(--bg);transition:border-color .2s}.nl-input:focus{border-color:var(--red);background:var(--white)}
.nl-btn{padding:10px;background:var(--red);color:#fff;border:none;border-radius:var(--radius-s);font-size:14px;font-weight:700;cursor:pointer;transition:background .2s}.nl-btn:hover{background:var(--red-d)}
.other-cats, .links-list{
    background: #fff;
}