/* HEY FERCHO ANALYTICS · V5.1.4 / FASE 2.4
   Pulido visual, accesibilidad y responsive. No cambia métricas ni acceso. */
:root{
 --v524-lime:#CFFF71;--v524-lime-deep:#355811;--v524-ink:#1A1A1B;
 --v524-text:#343C34;--v524-secondary:#586357;--v524-muted:#636C63;
 --v524-bg:#F4F6F2;--v524-line:#DDE4D9;
 --v524-soft:#F5FAEE;--v524-surface:#FFFFFF;
 --v524-shadow:0 7px 28px rgba(16,22,15,.055);
 --v524-shadow-hover:0 15px 39px rgba(16,22,15,.105);
}
/* Text on bright backgrounds must never be white; subtle body text stays legible. */
body.signed-in{color:var(--v524-text);background:var(--v524-bg)}
body.signed-in .content{background:var(--v524-bg)}
body.signed-in .page-head p,body.signed-in .panel-sub,
body.signed-in .v523-heading p,body.signed-in .v523-card-head p,
body.signed-in .v523-post-kicker,body.signed-in .v523-post-metrics,
body.signed-in .v523-data-disclaimer,body.signed-in .v523-note,
body.signed-in .v523-source-note,body.signed-in .v51-description,
body.signed-in .v51-feature-card p,body.signed-in .v51-note,
body.signed-in .v524-helper,body.signed-in .meta-v4-footnote,
body.signed-in .v523-post-link{color:var(--v524-secondary)}
body.signed-in .footer,body.signed-in .kpi-meta,
body.signed-in .v523-stat small,body.signed-in .v51-stat p{color:var(--v524-secondary)}
body.signed-in .v523-eyebrow,body.signed-in .v51-screen-kicker,
body.signed-in .eyebrow{color:var(--v524-lime-deep)}
body.signed-in .kpi:first-child strong,body.signed-in .kpi:first-child small,
body.signed-in .v523-stat:first-child span,body.signed-in .v523-stat:first-child small{
 color:#243512!important
}
/* Crisp repeatable surfaces and consistent rhythm. */
body.signed-in .page{max-width:1580px}
body.signed-in .card,body.signed-in .v523-post-card,body.signed-in .v523-stat,
body.signed-in .v51-stat,body.signed-in .v522-tool,body.signed-in .v522-admin-kpi{
 border-color:var(--v524-line);box-shadow:var(--v524-shadow)
}
body.signed-in .card,body.signed-in .v523-stat,body.signed-in .v51-stat{
 border-radius:16px
}
body.signed-in .v523-post-card:hover,body.signed-in .kpi:hover,
body.signed-in .v523-delta-card:hover,body.signed-in .v523-stat:hover,
body.signed-in .v51-report-card:hover{
 box-shadow:var(--v524-shadow-hover);border-color:#C6DDB7
}
body.signed-in .v523-stat:hover{transform:translateY(-2px)}
body.signed-in .v523-stat{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
body.signed-in .v51-history-row,body.signed-in .v523-bar-row,
body.signed-in .v523-commercial-summary>span{font-variant-numeric:tabular-nums}
body.signed-in .v523-post-body h3{min-height:38px;line-height:1.55}
body.signed-in .v523-post-cover{background-size:200% 200%}
/* Efficient motion: bars grow only when inserted, no fake metric counts. */
body.signed-in .v51-fill,body.signed-in .v523-bar-fill,
body.signed-in .v51-funnel-fill,body.signed-in .fill{
 transform-origin:left center;animation:v524-reveal-bar .48s cubic-bezier(.2,.75,.2,1) both
}
@keyframes v524-reveal-bar{from{transform:scaleX(.03);opacity:.45}to{transform:scaleX(1);opacity:1}}
@keyframes v524-card-rise{from{opacity:.35;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
body.signed-in .v524-enter{animation:v524-card-rise .28s ease-out both}
body.signed-in .v524-enter:nth-child(2){animation-delay:.035s}
body.signed-in .v524-enter:nth-child(3){animation-delay:.065s}
body.signed-in .v524-enter:nth-child(4){animation-delay:.09s}
/* Accessible navigation and controls, not dependent on hover. */
.v524-skip{position:fixed;z-index:9000;left:13px;top:10px;padding:12px 17px;
 background:var(--v524-lime);color:var(--v524-ink);border-radius:10px;
 font-size:13px;font-weight:850;transform:translateY(-160%);transition:transform .15s}
.v524-skip:focus{transform:translateY(0)}
.v524-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;
 margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;
 white-space:nowrap!important;border:0!important}
body.signed-in :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{
 outline:3px solid #528C21!important;outline-offset:3px!important
}
body.signed-in .sidebar :is(button,a):focus-visible{
 outline:3px solid var(--v524-lime)!important;outline-offset:2px!important
}
body.signed-in .v523-search:focus-within,body.signed-in .v523-sort:focus-within select,
body.signed-in .v523-compare-controls select:focus-visible,
body.signed-in .field-tag:focus-within{
 border-color:#528C21!important;box-shadow:0 0 0 3px #9CD9483D
}
body.signed-in .v523-search input:focus-visible{outline:none!important}
body.signed-in .v523-segments button,body.signed-in .v51-network-pill,
body.signed-in .v523-month,body.signed-in .v523-post-link,
body.signed-in .btn,body.signed-in .v511-notif-tab{
 transition:background-color .18s,border-color .18s,box-shadow .18s,color .18s,transform .18s
}
body.signed-in .v523-segments button.selected,body.signed-in .v51-network-pill.selected{
 box-shadow:inset 0 0 0 1px #1A1A1B
}
body.signed-in .v523-post-link{display:inline-flex;align-items:center;gap:5px;min-height:32px;color:#315614}
body.signed-in .v523-post-link:hover{color:#1A1A1B;text-decoration:underline}
body.signed-in .v523-month{min-height:40px}
/* Navigation text and separators tuned for 4.5:1+ contrast on dark and light. */
body.signed-in .sidebar #workspaceNav .nav-btn:not(.active){color:#D6DDD2}
body.signed-in .sidebar #workspaceNav .nav-caption{color:#ADB9A9}
body.signed-in .sidebar #accountToggle .hf-account-intro small{color:#C7D0C3}
body.signed-in .breadcrumb,body.signed-in .v51-breadcrumb-sep{color:#626C60}
body.signed-in .breadcrumb strong{color:#283028}
body.signed-in .v523-table-wrap th,body.signed-in .meta-v4-table th{color:#4D574C}
body.signed-in .v523-table-wrap td{color:#2E362E}
/* Practical feedback and data states */
body.signed-in .v523-state,body.signed-in .v51-empty{
 border:1px dashed #BBD59F;background:#F6FAF0;color:#42523C;border-radius:15px;
 line-height:1.7
}
body.signed-in .v523-state h3,body.signed-in .v523-state strong{color:#25331E}
body.signed-in .v523-data-disclaimer{background:#F0F7E7;border-left:3px solid #B2D96B;
 border-radius:10px;padding:11px 15px;margin:16px 0 20px}
body.signed-in .v523-post-link:focus-visible,body.signed-in .v523-month:focus-visible{border-radius:6px}
body.signed-in .v523-mini-kpis,body.signed-in .v51-stat-grid{row-gap:12px}
/* Shorter mobile scroll and better target sizes. */
@media (max-width:900px){
 body.signed-in .topbar{padding-inline:15px}
 body.signed-in .v51-menu-toggle{min-width:44px;min-height:44px}
 body.signed-in .v5-bell{min-width:44px;min-height:44px}
 body.signed-in .page-head{gap:14px}
 body.signed-in #workspaceNav .nav-btn{min-height:46px}
 body.signed-in .v523-compare-grid,body.signed-in .v523-report-extras{gap:12px}
}
@media(max-width:600px){
 body.signed-in .page{padding:23px 14px 54px}
 body.signed-in .page-head h1{font-size:clamp(26px,7vw,34px)}
 body.signed-in .page-head p{font-size:12px}
 body.signed-in .kpis{gap:9px}
 body.signed-in .kpi{padding:15px 13px}
 body.signed-in .kpi-value{font-size:clamp(23px,6.6vw,30px)}
 body.signed-in .v523-content-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 body.signed-in .v523-post-cover{height:145px}
 body.signed-in .v523-segments{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.signed-in .v523-segments button{min-height:44px}
 body.signed-in .v523-filter-bar .v523-sort{max-width:100%;flex-wrap:wrap}
 body.signed-in .v523-mini-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 body.signed-in .v523-stat{padding:13px;min-height:114px}
 body.signed-in .v523-stat strong{font-size:clamp(22px,6vw,29px)}
 body.signed-in .v523-stat span{font-size:10px}
 body.signed-in .v523-delta-card{padding:16px}
 body.signed-in .v523-report-buttons{display:grid;grid-template-columns:1fr}
 body.signed-in .v523-report-buttons .btn{min-height:45px;white-space:normal;line-height:1.4;text-align:center}
 body.signed-in .v523-months{max-height:200px}
 body.signed-in .v523-month{min-height:44px}
 body.signed-in .v51-report-card{padding:19px}
 .v511-notif-card{padding:17px 15px}
}
@media(max-width:380px){
 body.signed-in .kpi-value{font-size:24px}
 body.signed-in .v523-mini-kpis{grid-template-columns:1fr}
 body.signed-in .v51-stat-grid{grid-template-columns:1fr 1fr}
 body.signed-in .v523-post-cover{height:122px}
}
/* Print/PDF: only relevant page content; no transient UI and no truncated graphics. */
@media print{
 .v524-skip,.v511-toast,.v511-overlay,.v511-drawer,.v51-mobile-shade,.v524-visually-hidden{display:none!important}
 .v523-post-card,.v523-delta-card,.card{break-inside:avoid}
 .v523-months{max-height:none!important;overflow:visible!important}
 body.signed-in .v523-data-disclaimer{background:#fff!important;border-color:#1A1A1B!important}
}
/* Motion choices respected across the full product. */
@media(prefers-reduced-motion:reduce){
 html,body{scroll-behavior:auto!important}
 *,*::before,*::after{scroll-behavior:auto!important;animation:none!important;
 transition:none!important}
 body.signed-in :is(.v523-post-card,.v523-stat,.kpi,.v51-report-card):hover{transform:none!important}
}
