﻿/* ─── Hero ────────────────────────────────────────────────────────────────── */
.her-hero{background:url('/img/hero/fondo_hero1.png') center center/cover no-repeat;border-bottom:1px solid var(--gray-border);padding:3rem 1.5rem 2.75rem;position:relative}
.her-hero::before{content:'';position:absolute;inset:0;background:rgba(255,255,255,.82)}
.her-hero__inner{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:1fr auto;gap:2rem;align-items:center;position:relative;z-index:1}
.her-hero__tag{display:inline-flex;align-items:center;gap:.5rem;font-size:.64rem;font-weight:700;color:var(--primary);text-transform:uppercase;letter-spacing:.1em;background:rgba(191,9,9,.07);border:1px solid rgba(191,9,9,.2);border-radius:20px;padding:.25rem .85rem;margin-bottom:.9rem}
.her-hero__tag::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--primary)}
.her-hero__title{font-size:clamp(1.55rem,3vw,2.2rem);font-weight:900;color:var(--dark);line-height:1.18;margin:0 0 .85rem}
.her-hero__title em{font-style:normal;color:var(--primary)}
.her-hero__desc{font-size:.92rem;color:#4b5563;line-height:1.65;max-width:600px;margin:0 0 1.4rem}
.her-hero__actions{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}
.btn-her-outline{display:inline-flex;align-items:center;gap:.45rem;padding:.55rem 1.1rem;border:1.5px solid var(--gray-border);border-radius:6px;font-size:.85rem;font-weight:600;color:#374151;background:#fff;text-decoration:none;transition:border-color .18s,color .18s}
.btn-her-outline:hover{border-color:var(--primary);color:var(--primary)}
.her-hero__meta{display:flex;flex-direction:column;align-items:flex-end;gap:.5rem;flex-shrink:0}
.her-hero__stat{background:#fff;border:1px solid var(--gray-border);border-radius:10px;padding:1rem 1.35rem;text-align:center;min-width:130px;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.her-hero__stat-num{font-size:2rem;font-weight:900;color:var(--primary);line-height:1}
.her-hero__stat-label{font-size:.7rem;color:#6b7280;font-weight:500;text-transform:uppercase;letter-spacing:.05em;margin-top:.2rem}

/* ─── Search bar sticky ───────────────────────────────────────────────────── */
.her-searchbar{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.97);border-bottom:1px solid var(--gray-border);backdrop-filter:blur(6px);padding:.55rem 1.5rem}
.her-sb-row{max-width:1200px;margin:0 auto;display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
#herFilterPanel{max-width:1200px;margin-left:auto;margin-right:auto}
.her-sb-row+.her-sb-row{margin-top:.35rem}
.her-searchbar__wrap{flex:1;min-width:220px;position:relative}
.her-searchbar__wrap i{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);color:#9ca3af;font-size:.8rem;pointer-events:none}
.her-searchbar__input{width:100%;padding:.42rem .75rem .42rem 2.1rem;border:1.5px solid var(--gray-border);border-radius:7px;font-size:.84rem;font-family:inherit;background:#f9fafb;transition:border-color .18s}
.her-searchbar__input:focus{outline:none;border-color:var(--primary);background:#fff}
.her-searchbar__info{font-size:.78rem;font-weight:600;color:#6b7280;white-space:nowrap;padding:.28rem .65rem;background:#f3f4f6;border-radius:20px}
.her-searchbar__info strong{color:var(--primary);font-weight:800}

/* ─── Active chips ────────────────────────────────────────────────────────── */
.her-chips{display:flex;flex-wrap:wrap;gap:.35rem;margin-bottom:.6rem}
.her-chip{display:inline-flex;align-items:center;gap:.35rem;padding:.2rem .55rem;background:#fef2f2;border:1px solid rgba(191,9,9,.2);border-radius:20px;font-size:.73rem;font-weight:600;color:#7f1d1d}
.her-chip-close{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border:none;border-radius:50%;background:rgba(191,9,9,.15);color:#7f1d1d;cursor:pointer;padding:0;font-size:.6rem;flex-shrink:0;transition:background .15s}
.her-chip-close:hover{background:var(--primary);color:#fff}

/* ─── Layout ──────────────────────────────────────────────────────────────── */
.her-layout{max-width:1200px;margin:0 auto;padding:1.25rem 1.5rem 3rem}

/* ─── Content area ────────────────────────────────────────────────────────── */
.her-content-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem;flex-wrap:wrap;gap:.5rem}
.her-count-txt{font-size:.8rem;color:#6b7280}
.her-count-txt strong{color:var(--primary);font-weight:800}

/* ─── Category section ────────────────────────────────────────────────────── */
.her-cat-section{margin-bottom:2rem}
.her-cat-section-hd{display:flex;align-items:center;gap:.65rem;margin-bottom:.85rem;padding-bottom:.55rem;border-bottom:2px solid var(--gray-border)}
.her-cat-sec-icon{width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:1.2rem;flex-shrink:0}
.her-cat-sec-title{flex:1;font-size:1rem;font-weight:800;color:var(--dark)}
.her-cat-sec-count{font-size:.75rem;font-weight:600;color:#6b7280;background:#f3f4f6;border-radius:20px;padding:.15rem .6rem;white-space:nowrap}

/* ─── Subsection ──────────────────────────────────────────────────────────── */
.her-subsection{margin-bottom:1rem}
.her-sub-title{font-size:.8rem;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.07em;margin-bottom:.55rem;border-left:3px solid var(--primary);padding-left:.5rem}

/* ─── Tools grid ──────────────────────────────────────────────────────────── */
.her-tools-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:.75rem;margin-bottom:.75rem}

/* ─── Tool card ───────────────────────────────────────────────────────────── */
.her-tool-card{display:flex;flex-direction:column;background:#fff;border:1.5px solid var(--gray-border);border-radius:10px;padding:1rem 1.1rem .9rem;text-decoration:none;color:inherit;transition:box-shadow .22s,transform .18s,border-color .22s;position:relative;overflow:hidden;animation:herCardUp .22s ease both}
.her-tool-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--tool-color,var(--primary));opacity:0;transition:opacity .2s;border-radius:10px 0 0 10px}
.her-tool-card:hover{box-shadow:0 6px 20px rgba(0,0,0,.09);transform:translateY(-2px);border-color:rgba(0,0,0,.12)}
.her-tool-card:hover::before{opacity:1}
.her-tool-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:.4rem;margin-bottom:.5rem}
.her-tool-card__head-left{display:flex;flex-direction:column;gap:.25rem;flex:1;min-width:0}
.her-tool-icon{font-size:1.5rem;line-height:1;flex-shrink:0}
.her-tool-badge{display:inline-flex;align-items:center;font-size:.62rem;font-weight:700;border-radius:10px;padding:.08rem .42rem;white-space:nowrap;width:fit-content}
.her-tool-badge--free{background:#dcfce7;color:#15803d}
.her-tool-badge--freemium{background:#dbeafe;color:#1d4ed8}
.her-tool-badge--paid{background:#fee2e2;color:#bf0909}
.her-tool-cat{font-size:.68rem;font-weight:600;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.her-tool-name{font-size:.88rem;font-weight:800;color:var(--dark);line-height:1.3;margin-bottom:.3rem}
.her-tool-desc{font-size:.78rem;color:#6b7280;line-height:1.5;flex:1;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.her-tool-footer{display:flex;align-items:center;justify-content:space-between;margin-top:.65rem;padding-top:.55rem;border-top:1px dashed var(--gray-border)}
.her-tool-foot-label{display:flex;align-items:center;gap:.3rem;font-size:.68rem;font-weight:600;color:#9ca3af}
.her-tool-arrow{font-size:.65rem;color:#d1d5db;transition:transform .18s,color .18s}
.her-tool-card:hover .her-tool-arrow{transform:translateX(3px);color:var(--tool-color,var(--primary))}

/* ─── Empty state ─────────────────────────────────────────────────────────── */
.her-empty{text-align:center;padding:4rem 1rem;color:#9ca3af}
.her-empty i{font-size:2.5rem;display:block;margin-bottom:.75rem;color:#d1d5db}

/* ─── Animación cards ─────────────────────────────────────────────────────── */
@keyframes herCardUp{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media(max-width:960px){
  .her-hero__inner{grid-template-columns:1fr}
  .her-hero__meta{flex-direction:row;align-items:flex-start;justify-content:flex-start}
}
@media(max-width:700px){
  .her-layout{padding:1rem .75rem 2rem}
  .her-tools-grid{grid-template-columns:1fr}
}
.inv-pag-jump input:focus{outline:none;border-color:var(--primary)}

/* ─── A11Y: contraste de bordes de controles interactivos (WCAG 1.4.11 AA) ─── */
.btn-her-outline,
.her-searchbar__input {
  border-color: var(--control-border);
}