/* Hoy · el cuadro de mando (opción 5 elegida por el CEO, 23-sep-2026).
   Rejilla de piezas: "día · ocupación · te necesita" / "mes cobrado · hoy · te necesita" / "siguiente · asistente y mañana · reseñas". */
#fndHome .hy-home{background:var(--hy-ground);padding:26px 26px 30px;color:var(--hy-ink);font-family:'Epilogue',system-ui,sans-serif;font-size:13px;font-variant-numeric:tabular-nums}
.hy-home *{box-sizing:border-box}
.hy-home h1,.hy-home h2,.hy-home h3,.hy-home p{margin:0}
.hy-home button,.hy-home summary{font:inherit}
.hy-home button{cursor:pointer;color:inherit}
.hy-home button:focus-visible,.hy-home summary:focus-visible,.hy-home .hy-heading h1[tabindex]:focus-visible{outline:3px solid var(--hy-focus);outline-offset:3px}
.hy-home svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}

/* cabecera */
.hy-heading{display:flex;align-items:center;gap:20px;margin-bottom:20px;flex-wrap:wrap}
.hy-heading h1{font-size:29px;line-height:1.12;font-weight:600;letter-spacing:-.035em}
.hy-heading p{font-size:12px;color:var(--hy-muted);margin-top:8px}
.hy-heading>.hy-link{margin-left:auto;color:var(--hy-positive)}
.hy-counts{display:flex;gap:15px;flex-wrap:wrap;color:var(--hy-muted);font-size:12px}
.hy-counts b{font-weight:600;color:var(--hy-ink);margin-right:3px}

/* enlaces y filas comunes */
.hy-link{display:inline-flex;gap:7px;align-items:center;font-size:13px;font-weight:600;text-align:left;line-height:1.4;background:transparent;border:0;padding:8px 0;min-height:36px;flex-shrink:0;color:var(--hy-positive)}
.hy-link:hover{text-decoration:underline;text-underline-offset:4px}
.hy-link svg{width:14px;height:14px}
.hy-row{display:flex;align-items:center;gap:8px 12px;padding:11px 0;border-bottom:1px solid var(--hy-line);flex-wrap:wrap}
.hy-row:last-child{border-bottom:0}
.hy-row-copy{flex:1 1 60%;min-width:0}
.hy-row-copy strong{display:block;font-size:13px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.hy-row-copy span{display:block;font-size:12px;line-height:1.6;margin-top:3px;color:var(--hy-muted);overflow-wrap:anywhere}
.hy-row-number{font-size:13px;font-weight:600;white-space:nowrap}
.hy-row .hy-link{margin-left:auto}
.hy-row-warn .hy-row-copy strong{color:var(--hy-warning)}
.hy-empty{font-size:13px;line-height:1.7;color:var(--hy-muted);padding:16px 0}
.hy-notice{font-size:12px;line-height:1.7;color:var(--hy-warning);padding:8px 0}
.hy-more>summary,.hy-data>summary{cursor:pointer;color:var(--hy-muted);font-size:12px;line-height:1.6;padding:10px 0}

/* rejilla */
.hq-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-areas:"a b b c" "d d e c" "f g g h";gap:16px;align-items:stretch}
.hq-grid.hq-no-money{grid-template-areas:"a b b c" "f g g c" "h h h h"}
.hq-grid.hq-only-money{grid-template-areas:"d d d e" "h h h h"}
.hq-a{grid-area:a}.hq-b{grid-area:b}.hq-c{grid-area:c}.hq-d{grid-area:d}.hq-e{grid-area:e}.hq-f{grid-area:f}.hq-g{grid-area:g}.hq-h{grid-area:h}
.hq-t{background:var(--hy-surface);border-radius:14px;padding:20px 22px;min-width:0;display:flex;flex-direction:column}
.hq-hd{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:12px}
.hq-hd>span{font-size:12.5px;color:var(--hy-muted);font-weight:500}
.hq-hd>b{font-size:12px;font-weight:600}
.hq-up{color:var(--hy-positive)}.hq-down{color:var(--hy-warning)}
.hq-pct{font-size:20px!important;letter-spacing:-.02em}
.hq-big{font-size:34px;font-weight:600;letter-spacing:-.035em;line-height:1.1;overflow-wrap:anywhere}
.hq-mid{font-size:24px;font-weight:600;letter-spacing:-.03em;line-height:1.2}
.hq-sub{font-size:12px;color:var(--hy-muted);line-height:1.6;margin-top:6px}
.hq-note{font-size:12px;color:var(--hy-muted);line-height:1.6;margin-top:auto;padding-top:10px}
.hq-empty{font-size:13px;color:var(--hy-muted);line-height:1.7}
.hq-mini{background:none;border:0;padding:4px 0;font-size:12px;font-weight:600;color:var(--hy-positive)}
.hq-mini:hover{text-decoration:underline}
.hq-mini svg{display:none}
.hq-t>.hy-link{margin-top:auto;align-self:flex-start}

/* el día */
.hq-ring{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.hq-ring svg{width:112px;height:112px;stroke:none}
.hq-ring-n{font:600 26px 'Epilogue',system-ui,sans-serif;fill:var(--hy-ink)}
.hq-ring-s{font:500 11px 'Epilogue',system-ui,sans-serif;fill:var(--hy-muted)}
.hq-legend{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--hy-muted)}
.hq-legend i{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:6px;vertical-align:0}
.hq-legend b{color:var(--hy-ink);font-weight:600;margin-right:2px}

/* ocupación por profesional */
.hq-bars{display:flex;flex-direction:column;gap:2px}
.hq-bar-btn{width:100%;display:grid;grid-template-columns:minmax(80px,120px) minmax(0,1fr) 48px;grid-template-areas:"n m p" ". s s";gap:4px 12px;align-items:center;background:none;border:0;border-radius:8px;padding:8px 6px;margin:0 -6px;text-align:left;width:calc(100% + 12px)}
.hq-bar-btn:hover{background:var(--hy-soft)}
.hq-bar-name{grid-area:n;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hq-bar-btn .hq-meter{grid-area:m}
.hq-bar-btn>b{grid-area:p;text-align:right;font-weight:600;font-size:13px}
.hq-bar-btn>small{grid-area:s;font-size:11.5px;color:var(--hy-muted)}
.hq-meter{display:block;height:10px;background:var(--hy-soft);border-radius:6px;overflow:hidden}
.hq-meter i{display:block;height:100%;background:linear-gradient(90deg,#1FB5A1,#5AD1C1);border-radius:6px}

/* cobrado hoy */
.hq-cash-bar{display:flex;height:10px;border-radius:6px;overflow:hidden;background:var(--hy-soft);margin:14px 0 6px;gap:2px}
.hq-cash-bar i{display:block;height:100%}
.hq-cash{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column}
.hq-cash li{display:grid;grid-template-columns:14px minmax(0,1fr) auto 84px;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--hy-soft);font-size:12.5px}
.hq-cash li:last-child{border-bottom:0}
.hq-cash li>i{width:9px;height:9px;border-radius:3px}
.hq-cash li small{color:var(--hy-muted);font-size:12px}
.hq-cash li b{text-align:right;font-weight:600}
.hq-cash li.zero{color:var(--hy-muted)}.hq-cash li.zero b{font-weight:500}
.hq-cash-bar .paid,.hq-cash .paid>i{background:#1FB5A1}
.hq-cash-bar .due,.hq-cash .due>i{background:var(--hy-warning)}
.hq-cash-bar .open,.hq-cash .open>i{background:#9ccfc4}
.hq-cash-bar .next,.hq-cash .next>i{background:#d6e4e0}

/* te necesita */
.hq-c.hq-warn{background:var(--hy-warning-bg)}
.hq-hd-warn{color:var(--hy-warning)!important;font-weight:600!important}
.hq-c.hq-warn .hq-big{color:var(--hy-warning)}
.hq-needs{display:flex;flex-direction:column;margin-top:14px}
.hq-needs>span:empty{display:none}
.hq-need{display:flex;justify-content:space-between;align-items:center;gap:10px;background:none;border:0;border-bottom:1px solid rgba(129,84,28,.14);border-radius:6px;padding:9px 6px;margin:0 -6px;font-size:12.5px;text-align:left;min-height:40px}
.hq-need:last-of-type{border-bottom:0}
.hq-need:hover{background:rgba(255,255,255,.55)}
.hq-need b{font-size:15px;font-weight:600}
.hq-resolver{margin-top:auto;align-self:stretch;border:0;border-radius:10px;min-height:42px;font-size:13px;font-weight:600;color:#fff!important;background:#81541c}
.hq-c:not(.hq-warn) .hq-resolver{background:var(--hy-positive)}
.hq-resolver:hover{filter:brightness(1.08)}
.hq-needs+.hq-resolver{margin-top:16px}

/* mes cobrado */
.hy-money-definition{font-size:12px;color:var(--hy-muted);line-height:1.6;margin:-4px 0 8px}
.hy-money-total{display:flex;align-items:baseline;gap:6px 16px;flex-wrap:wrap}
.hy-money-total>strong{font-size:30px;font-weight:600;letter-spacing:-.035em;overflow-wrap:anywhere}
.hy-money-total>span{font-size:12px;color:var(--hy-muted);line-height:1.6}
.hy-chart-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:10px}
.hy-legend{display:flex;gap:12px;flex-wrap:wrap}
.hy-legend button{display:flex;align-items:center;gap:6px;font-size:12px;min-height:34px;padding:6px 0;background:none;border:0;color:var(--hy-muted)}
.hy-legend button[aria-pressed=false]{text-decoration:line-through;opacity:.65}
.hy-legend i{width:12px;height:0;border-top:2px solid var(--hy-accent)}
.hy-legend i.previous{border-top:2px dashed var(--hy-comparison)}
.hy-chart-modes{display:flex;gap:2px;background:var(--hy-soft);padding:3px;border-radius:7px}
.hy-chart-modes button{font-size:12px;min-height:30px;padding:6px 10px;background:none;border:0;border-radius:5px;color:var(--hy-muted)}
.hy-chart-modes button[aria-pressed=true]{background:var(--hy-surface);color:var(--hy-ink);box-shadow:0 1px 2px rgba(22,34,31,.08)}
.hy-chart-figure{margin:8px 0 0}
.hy-chart{height:190px;position:relative;min-width:0;isolation:isolate}
.hy-chart>canvas{position:absolute;inset:0;width:100%!important;height:100%!important;visibility:hidden}
.hy-chart-fallback{position:absolute;inset:0}
.hy-chart[data-chart-ready=true]>canvas{visibility:visible}
.hy-chart[data-chart-ready=true]>.hy-chart-fallback{display:none}
.hy-home svg.hy-fallback-svg{width:100%;height:100%;stroke:none;fill:none;overflow:visible}
.hy-graph-grid{stroke:var(--hy-line);stroke-width:1;vector-effect:non-scaling-stroke}
.hy-graph-line{stroke:var(--hy-accent);stroke-width:2.5;fill:none;vector-effect:non-scaling-stroke}
.hy-graph-line.previous{stroke:var(--hy-comparison);stroke-width:1.7;stroke-dasharray:5 5}
.hy-graph-dot,.hy-graph-bar{fill:var(--hy-accent)}
.hy-graph-dot.previous,.hy-graph-bar.previous{fill:var(--hy-comparison)}
.hy-graph-axes{position:absolute;inset:0;font-size:10px;color:var(--hy-muted);pointer-events:none;white-space:nowrap}
.hy-graph-axes>span{position:absolute;line-height:1}
.hy-graph-y{transform:translate(-100%,-50%)}
.hy-graph-x{top:94%;transform:translateX(-50%)}
.hy-graph-x.first{transform:none}.hy-graph-x.last{transform:translateX(-100%)}
.hy-graph-empty{position:absolute;left:20%;right:8%;top:38%;padding:10px 12px;background:var(--hy-surface);font-size:12px;text-align:center;line-height:1.7;z-index:1;color:var(--hy-muted);pointer-events:none}
.hq-foot{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-top:4px}
.hq-foot>.hy-data{flex:1;min-width:200px}
.hy-data table{width:100%;border-collapse:collapse;font-size:12px}
.hy-data caption{text-align:left;color:var(--hy-muted);margin:8px 0}
.hy-data th,.hy-data td{border-bottom:1px solid var(--hy-line);padding:7px 5px;text-align:right}
.hy-data th:first-child{text-align:left}
.hy-data th{font-weight:600}

/* cobrado hoy */
.hq-warn-link{color:var(--hy-warning)!important;margin-top:auto}
.hq-warn-txt{color:var(--hy-warning);font-weight:600}

/* lo siguiente */
.hq-nexts{display:flex;flex-direction:column;gap:2px}
.hq-next{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:8px;align-items:baseline;background:none;border:0;border-radius:6px;padding:6px;margin:0 -6px;text-align:left;font-size:12.5px}
.hq-next:hover{background:var(--hy-soft)}
.hq-next-t{font-weight:600}
.hq-next-n{min-width:0;overflow-wrap:anywhere;font-weight:500}
.hq-next-n small{display:block;font-size:11.5px;color:var(--hy-muted);margin-top:2px;font-weight:400}
.hq-chip{font-style:normal;font-size:10.5px;font-weight:600;padding:2px 7px;border-radius:10px;white-space:nowrap}
.hq-chip.warn{background:var(--hy-warning-bg);color:var(--hy-warning)}

/* asistente y mañana */
.hq-g{flex-direction:row;gap:22px}
.hq-half{flex:1;min-width:0;display:flex;flex-direction:column}
.hq-half+.hq-half{border-left:1px solid var(--hy-line);padding-left:22px}
.hq-half>.hy-link{margin-top:auto;align-self:flex-start}
.hq-live{font-size:12px;color:var(--hy-positive);margin-top:6px!important}
.hq-live:empty{display:none}

/* reseñas */
.hy-home svg.hq-star{width:20px;height:20px;color:#d9953a;fill:#d9953a;vertical-align:-2px}

/* panel lateral de «Te necesita» */
.hq-scrim{position:fixed;inset:0;background:rgba(22,34,31,.28);z-index:80}
.hq-panel{position:fixed;top:0;right:0;bottom:0;width:min(460px,100vw);background:var(--hy-surface);z-index:81;box-shadow:-20px 0 50px -24px rgba(22,34,31,.45);display:flex;flex-direction:column;animation:hqIn .22s cubic-bezier(.2,.8,.25,1)}
.hq-panel[hidden],.hq-scrim[hidden]{display:none}
@keyframes hqIn{from{transform:translateX(30px);opacity:0}to{transform:none;opacity:1}}
.hq-panel-head{display:flex;justify-content:space-between;align-items:center;padding:20px 22px 14px;border-bottom:1px solid var(--hy-line)}
.hq-panel-head h2{font-size:18px;font-weight:600;letter-spacing:-.02em}
.hq-close{width:36px;height:36px;border:0;border-radius:9px;background:var(--hy-soft);display:grid;place-items:center}
.hq-panel-body{overflow-y:auto;padding:4px 22px 24px;flex:1}
#hyConversations:empty{display:none}
.hy-task-group{border-bottom:1px solid var(--hy-line);min-width:0}
.hy-task-group>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:14px 0;cursor:pointer;min-height:64px}
.hy-task-group>summary::-webkit-details-marker{display:none}
.hy-task-group>summary:hover .hy-task-copy>strong{color:var(--hy-accent)}
.hy-task-count{display:block;min-width:26px;font-size:19px;line-height:1.5;font-weight:500}
.hy-task-warn .hy-task-count{color:var(--hy-warning)}
.hy-task-copy{flex:1;min-width:0;overflow-wrap:anywhere}
.hy-task-copy>strong{display:block;font-size:14px;line-height:1.45;font-weight:600}
.hy-task-copy>small{display:block;font-size:12px;color:var(--hy-muted);line-height:1.6;margin-top:3px}
.hy-task-group>summary>b{font-size:13px;font-weight:600;max-width:40%;text-align:right}
.hy-task-group>summary>svg{width:14px;height:14px;color:var(--hy-muted);transition:transform .15s}
.hy-task-group[open]>summary>svg{transform:rotate(90deg)}
.hy-task-body{padding:0 0 12px 38px}

/* anchos */
@media(max-width:1180px){
  .hq-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"a c" "b b" "d d" "e f" "g g" "h h"}
  .hq-grid.hq-no-money{grid-template-areas:"a c" "b b" "f g" "h h"}
  .hq-grid.hq-only-money{grid-template-areas:"d d" "e h"}
}
@media(max-width:700px){
  #fndHome .hy-home{padding:18px 13px 22px}
  .hy-heading{gap:12px;margin-bottom:16px}
  .hy-heading h1{font-size:26px}
  .hy-counts{order:3;flex-basis:100%;font-size:11.5px;gap:12px}
  .hq-grid,.hq-grid.hq-no-money,.hq-grid.hq-only-money{grid-template-columns:1fr;grid-template-areas:"c" "a" "b" "f" "d" "e" "g" "h";gap:12px}
  .hq-t{padding:18px}
  .hq-g{flex-direction:column;gap:14px}
  .hq-half+.hq-half{border-left:0;border-top:1px solid var(--hy-line);padding:14px 0 0}
  .hy-chart{height:200px}
  .hq-bar-btn{grid-template-columns:minmax(70px,95px) minmax(0,1fr) 44px}
  .hy-task-body{padding-left:0}
  .hq-panel{width:100vw}
}
@media(prefers-reduced-motion:reduce){.hq-panel{animation:none}.hy-task-group>summary>svg{transition:none}}
