/* equipo-v2.css — tablero unificado (Paula · v2 · 9-oct-2026).
   Usa SOLO los tokens de styles.css de Paula (crema / negro / lima #d4e600).
   Sobre el fondo crema el acento legible es --accent del .main-content (#7a8a00). */

/* ── Wordmark oficial Vector89 (Cormorant italic + DM Sans caps) ── */
.sb-logo { gap: 0; }
.eq-wm { font-family: var(--font-title); font-style: italic; font-weight: 500; font-size: 25px; letter-spacing: -.3px; color: #f0f0f0; line-height: 1; }
.eq-wm b { color: #d4e600; font-weight: 600; }
.eq-wm-sub { font-family: var(--font); font-size: 8.5px; letter-spacing: 2.6px; color: var(--muted); margin-top: 5px; font-weight: 600; }

/* ── Sidebar ── */
.eq-sb-group { font-size: 9.5px; letter-spacing: 1.8px; text-transform: uppercase; color: rgba(240,240,240,.3); padding: 14px 12px 6px; font-weight: 600; }
.sb-nav { gap: 1px; }
.nav-item { padding: 9px 12px; }
.eq-nav-badge { margin-left: auto; font-size: 10px; font-weight: 700; background: var(--red); color: #fff; border-radius: 999px; padding: 1px 6px; line-height: 1.4; }
.eq-nav-new { margin-left: auto; font-size: 9px; font-weight: 700; letter-spacing: .6px; color: #111; background: #d4e600; border-radius: 4px; padding: 1px 5px; }
.eq-mty-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.eq-mty-line b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: .5px; font-size: 13px; }

/* ── Barra superior con filtro ── */
.eq-topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: rgba(248,247,244,.93); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.eq-crumb { font-size: 12px; color: var(--muted); }
.eq-crumb b { color: var(--text); font-weight: 600; }
.eq-spacer { flex: 1; }
.eq-seg { display: inline-flex; background: #ecebe6; border-radius: 999px; padding: 3px; flex-shrink: 0; }
.eq-seg button { border: none; background: none; padding: 6px 14px; border-radius: 999px; font-family: var(--font); font-size: 12.5px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; }
.eq-seg button.on { background: #111; color: #d4e600; }
.eq-seg .n { font-size: 10.5px; opacity: .7; margin-left: 4px; }
.eq-seg--dark { background: rgba(255,255,255,.08); }
.eq-seg--dark button { color: rgba(240,240,240,.6); padding: 6px 11px; }
.eq-seg--dark button.on { background: #d4e600; color: #111; }
.eq-strip { margin: 12px 28px 0; padding: 9px 14px; border-radius: var(--radius-sm); background: #fff8e6; border: 1px solid #f0d58a; color: #6b4e00; font-size: 12.5px; line-height: 1.45; }
.eq-strip code, .eq-aviso code { font-size: 11.5px; background: rgba(0,0,0,.05); padding: 0 4px; border-radius: 4px; word-break: break-all; }

/* ── Avisos de endpoint ── */
.eq-aviso { border-radius: var(--radius); padding: 13px 16px; font-size: 13px; line-height: 1.5; margin-bottom: 16px; }
.eq-aviso--pend { background: #f3f2ee; border: 1px dashed rgba(0,0,0,.2); color: #444; }
.eq-aviso--err { background: #fbe9e9; border: 1px solid rgba(192,48,48,.25); color: #8a2020; }
.eq-link { background: none; border: none; color: var(--blue); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.eq-muted { color: var(--muted); }
.eq-rojo { color: var(--red); }
.eq-vacio { padding: 18px; color: var(--muted); font-size: 13px; }
.eq-ro { font-size: 10.5px; font-weight: 600; letter-spacing: .4px; color: var(--muted); border: 1px dashed rgba(0,0,0,.18); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.eq-btn-sec { border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 7px 14px; font-family: var(--font); font-size: 12.5px; font-weight: 500; color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; }
.eq-btn-sec:hover { border-color: rgba(0,0,0,.25); }
.eq-btn-dark { background: #111; color: #d4e600; border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.eq-ph { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.eq-lbl { font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 22px 0 10px; }
.eq-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.eq-card-sub { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.eq-note { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.eq-tag-new { display: inline-block; margin-left: 6px; font-size: 9.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; background: #d4e600; color: #111; vertical-align: 1px; }

/* ── Tabs (pills negras con lima) ── */
.eq-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.eq-tab { border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 7px 15px; font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--text); cursor: pointer; white-space: nowrap; }
.eq-tab.on { background: #111; color: #d4e600; border-color: #111; }
.eq-tabs--sm .eq-tab { padding: 6px 13px; font-size: 12.5px; }

/* ── Inicio ── */
.inicio-hero { padding: 6px 2px 18px; margin-bottom: 0; }
.hero-role { letter-spacing: 1.2px; }
.eq-junta { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--border); border-left: 4px solid #d4e600; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 14px; }
.eq-junta--load { color: var(--muted); font-size: 13px; border-left-color: var(--border); }
.eq-junta-ic { font-size: 22px; }
.eq-junta-tx { flex: 1; min-width: 0; }
.eq-junta-k { font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.eq-junta-k b { color: var(--accent); }
.eq-junta-t { font-size: 15px; font-weight: 600; margin-top: 2px; }
.eq-junta-f { font-size: 13px; color: #333; margin-top: 2px; }
.eq-junta-n { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.eq-mty { white-space: nowrap; font-size: 11px; font-weight: 600; color: var(--accent); }
.eq-pasadas { margin: -6px 0 16px; font-size: 12.5px; }
.eq-pasadas summary { cursor: pointer; color: var(--muted); padding: 4px 2px; }
.eq-pasada { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 6px; }
.eq-minuta { white-space: pre-line; margin-top: 6px; line-height: 1.5; color: #333; }
#eq-todos:empty { display: none; }
.eq-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 6px; }
.eq-kpi { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 16px 14px; min-width: 0; }
.eq-kpi[role=button] { cursor: pointer; }
.eq-kpi .v { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.eq-kpi .v small { font-size: 14px; color: var(--muted); font-weight: 400; }
.eq-kpi .l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.eq-kpi.dark { background: #111; color: #f0f0f0; border-color: #111; }
.eq-kpi.dark .v { color: #d4e600; }
.eq-kpi.dark .v small, .eq-kpi.dark .l { color: rgba(240,240,240,.55); }
.eq-cgrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.eq-cc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.eq-cc.otro { opacity: .6; }
.eq-cc-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.eq-cc-n { min-width: 0; flex: 1; }
.eq-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.eq-cc-name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-cc-meta { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-own { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #f0efe9; color: var(--muted); white-space: nowrap; }
.eq-own.me { background: #d4e600; color: #111; }
.eq-steps { display: flex; gap: 3px; }
.eq-steps i { flex: 1; height: 5px; border-radius: 3px; background: #ebeae5; }
.eq-steps i.ok { background: #111; }
.eq-steps i.now { background: #d4e600; }
.eq-cc-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); }
.eq-cc-foot b { color: var(--text); font-weight: 600; }
.eq-cc-foot b.eq-rojo { color: var(--red); }
#v89-kanban-week h2 { font-size: 10.5px !important; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted) !important; font-weight: 600 !important; margin-top: 22px !important; }

/* ── Control ── */
.eq-band { border-radius: 12px; padding: 18px 20px; margin-bottom: 6px; color: #f0f0f0; background: #111; position: relative; overflow: hidden; }
.eq-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(212,230,0,.22), transparent 65%); pointer-events: none; }
.eq-band-top { display: flex; gap: 14px; align-items: center; position: relative; z-index: 1; }
.eq-light { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.l-verde { background: #3cc46f; box-shadow: 0 0 0 4px rgba(60,196,111,.18); }
.l-ambar { background: #e6a817; box-shadow: 0 0 0 4px rgba(230,168,23,.2); }
.l-rojo { background: #e24a4a; box-shadow: 0 0 0 4px rgba(226,74,74,.2); }
.eq-band-frase { font-size: 18px; font-weight: 600; }
.eq-band-sub { font-size: 12.5px; color: rgba(240,240,240,.6); margin-top: 2px; }
.eq-band-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 16px; position: relative; z-index: 1; }
.eq-bk { background: rgba(255,255,255,.06); border-radius: 8px; padding: 10px 12px; }
.eq-bk b { display: block; font-size: 20px; font-weight: 600; color: #d4e600; font-variant-numeric: tabular-nums; }
.eq-bk span { font-size: 11px; color: rgba(240,240,240,.55); }
.eq-att .eq-row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border); }
.eq-att .eq-row:first-child { border-top: none; }
.eq-att .eq-row.otro { opacity: .6; }
.eq-txt { flex: 1; font-size: 13px; line-height: 1.35; min-width: 0; }
.eq-txt small { display: block; font-size: 11.5px; color: var(--muted); }
.eq-ok-card { padding: 14px 16px; font-size: 13px; color: var(--success); }
.eq-htable { width: 100%; border-collapse: collapse; }
.eq-htable th { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 600; text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.eq-htable td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 13px; }
.eq-htable tr:last-child td { border-bottom: none; }
.eq-htable tr.otro td { opacity: .55; }
.eq-cli { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.eq-slots { display: flex; gap: 5px; flex-wrap: wrap; }
.eq-slot { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 3px 8px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.s-ok { background: #e7f5ec; color: var(--success); }
.s-prog { background: #f3f2ee; color: #555; border-color: var(--border); }
.s-err { background: #fbe9e9; color: var(--red); }
.eq-none { color: var(--muted); font-size: 11.5px; }
.eq-ver { font-size: 12px; color: var(--blue); text-decoration: none; font-weight: 500; white-space: nowrap; }
.eq-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.eq-legend span { display: inline-flex; align-items: center; gap: 6px; }
.eq-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.eq-mes { padding: 14px; --ctl-bg: #fff; --ctl-muted: var(--muted); --ctl-line: var(--border); max-width: 100%; overflow: hidden; }
.eq-mes .ctl th.hoy { background: #d4e600; color: #111; }
.eq-mes .ctl td.hoy { background: rgba(212,230,0,.12); }
.eq-mes tr.eq-otro td { opacity: .5; }
.eq-cli-own { font-weight: 400; color: var(--muted); font-size: 11px; }

/* ── Videos ── */
.eq-vtabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: thin; }
.eq-vtab { flex-shrink: 0; border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 7px 14px; font-family: var(--font); font-size: 12.5px; font-weight: 500; color: var(--text); cursor: pointer; white-space: nowrap; }
.eq-vtab.on { background: #111; color: #d4e600; border-color: #111; }
.eq-vtab.otro { opacity: .6; }
.eq-vtab small { font-weight: 400; }
.eq-vbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; font-size: 12.5px; }
.eq-vbar select { margin-left: 6px; height: 32px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; font-family: var(--font); font-size: 13px; max-width: 100%; }
.eq-sync { font-size: 12px; }
.eq-sync.ok { color: var(--success); } .eq-sync.err { color: var(--red); }
.eq-vtitle { background: none; border: none; padding: 0; font: inherit; font-weight: 500; color: var(--text); text-align: left; cursor: pointer; }
.eq-vtitle:hover { text-decoration: underline; }
.eq-badge { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.b-gris { background: #f0efe9; color: #555; } .b-azul { background: #e8f1f7; color: var(--blue); }
.b-morado { background: #efe9f8; color: #6b46c1; } .b-verde { background: #e7f5ec; color: var(--success); }
.eq-mini { border: 1px solid var(--border); background: #fff; border-radius: 6px; padding: 4px 9px; font-family: var(--font); font-size: 11.5px; font-weight: 600; cursor: pointer; margin: 2px 4px 2px 0; white-space: nowrap; }
.eq-mini.ok { background: #111; color: #d4e600; border-color: #111; }
.eq-ideas { margin-top: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 16px; }
.eq-ideas summary { cursor: pointer; padding: 13px 0; font-weight: 600; font-size: 13.5px; }
.eq-ideas .eq-aviso { margin: 0 0 14px; }
.eq-idea { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--border); font-size: 13px; }
.eq-idea.used { opacity: .55; }
.eq-idea-tx { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.eq-idea-tx a { color: var(--blue); text-decoration: none; }
.eq-idea-tx small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.eq-modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 900; display: flex; align-items: center; justify-content: center; padding: 16px; }
.eq-modal-box { background: #fff; border-radius: 12px; max-width: 640px; width: 100%; max-height: 86vh; overflow: auto; padding: 22px 22px 26px; position: relative; }
.eq-modal-box h3 { font-size: 18px; margin: 4px 30px 6px 0; }
.eq-modal-x { position: absolute; top: 12px; right: 12px; border: none; background: #f0efe9; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.eq-guion { white-space: pre-line; line-height: 1.6; font-size: 14px; margin-top: 12px; }

/* ── Guía ── */
.eq-glayout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 24px; align-items: start; max-width: 1080px; }
.eq-gtemas { min-width: 0; max-width: 720px; }
.eq-gindex { position: sticky; top: 70px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; }
.eq-gindex-t { font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); padding: 8px 10px 10px; }
.eq-gindex ol { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.eq-gindex a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-size: 13px; line-height: 1.35; }
.eq-gindex a:hover { background: var(--accent-dim); }
.eq-gindex a.active { background: var(--accent-dim); color: var(--accent); font-weight: 500; }
.eq-gnum { font-variant-numeric: tabular-nums; font-size: 11px; color: var(--muted); min-width: 16px; }
.eq-gindex a.active .eq-gnum { color: var(--accent); }
.eq-gintro { border-left: 3px solid #7a8a00; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 20px; margin-bottom: 16px; }
.eq-ghello { font-family: var(--font-title); font-style: italic; font-size: 30px; line-height: 1.1; }
.eq-gintro p { color: var(--muted); font-size: 13px; line-height: 1.55; flex: 1; min-width: 220px; }
.eq-tema { overflow: hidden; scroll-margin-top: 70px; margin-bottom: 16px; }
.eq-tema-body { padding: 20px 22px 22px; }
.eq-tema-k { font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.eq-tema h2 { font-size: 18px; font-weight: 600; margin-bottom: 12px; line-height: 1.3; }
.eq-tema ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.eq-tema li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.55; }
.eq-tema li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: #7a8a00; }
.eq-prompt { display: block; font-family: var(--font); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 6px; font-style: italic; color: #333; font-size: 13px; }
.eq-video { position: relative; aspect-ratio: 16/9; background: #111; overflow: hidden; display: block; width: 100%; }
.eq-video-poster { position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% 10%, rgba(212,230,0,.22), transparent 55%), linear-gradient(135deg, #1b1b1b 0%, #111 60%); }
.eq-video-poster::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 32px 32px; }
.eq-video-title { position: absolute; left: 22px; right: 22px; bottom: 20px; color: #f0f0f0; z-index: 1; }
.vt-brand { font-family: var(--font-title); font-style: italic; font-size: 15px; color: #d4e600; }
.vt-h { font-size: clamp(17px, 2.4vw, 24px); font-weight: 600; line-height: 1.2; margin-top: 4px; }
.vt-voice { font-size: 11px; color: rgba(240,240,240,.6); margin-top: 8px; }
.eq-play { position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%); width: 60px; height: 60px; border-radius: 50%; background: rgba(212,230,0,.35); display: grid; place-items: center; z-index: 2; }
.eq-play::before { content: ""; margin-left: 5px; border-left: 18px solid rgba(17,17,17,.7); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.eq-btn-guia { display: inline-flex; align-items: center; gap: 8px; background: #111; color: #fff; text-decoration: none; border-radius: var(--radius-sm); padding: 10px 16px; font-size: 13px; font-weight: 600; }
.eq-btn-guia span { color: #d4e600; }
.eq-gchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.eq-gchip { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 500; }
.eq-mini-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 13px; }
.eq-mini-table td { padding: 8px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.eq-mini-table td:first-child { font-weight: 600; width: 42%; padding-right: 12px; font-variant-numeric: tabular-nums; }
.eq-mini-table tr:last-child td { border-bottom: 0; }
.eq-galerta { background: rgba(192,48,48,.06); border: 1px solid rgba(192,48,48,.18); color: #8a2020; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; line-height: 1.5; margin-bottom: 18px; }

/* ── Registro › Horas por cliente (mockup horas-paula.html) ── */
.hx-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }
.hx-stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hx-stat:nth-child(1) { border-left: 3px solid #7a8a00; } .hx-stat:nth-child(2) { border-left: 3px solid #0073a8; } .hx-stat:nth-child(3) { border-left: 3px solid #1a8a4a; }
.hx-stat .vl { font-size: 30px; font-weight: 300; font-variant-numeric: tabular-nums; line-height: 1; }
.hx-stat:nth-child(1) .vl { color: #7a8a00; } .hx-stat:nth-child(2) .vl { color: #0073a8; } .hx-stat:nth-child(3) .vl { color: #1a8a4a; }
.hx-stat .lb { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }
.hx-stat .sub { font-size: 11.5px; color: var(--muted); }
.hx-form { padding: 20px; margin-bottom: 18px; }
.hx-form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.hx-hint { font-size: 12px; color: var(--muted); }
.hx-grid { display: grid; grid-template-columns: 150px minmax(150px,1.1fr) minmax(150px,1.1fr) 132px minmax(160px,1.6fr) auto; gap: 10px; align-items: end; }
.hx-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hx-field label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.hx-opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.hx-field input, .hx-field select { height: 38px; width: 100%; min-width: 0; padding: 0 11px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); font-size: 13.5px; outline: none; }
.hx-field input:focus, .hx-field select:focus { border-color: var(--accent); }
.hx-step { display: flex; height: 38px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.hx-step button { width: 34px; flex: none; background: none; border: none; color: var(--muted); font-size: 17px; cursor: pointer; font-family: var(--font); }
.hx-step input { border: none !important; height: 36px; text-align: center; padding: 0 2px; font-variant-numeric: tabular-nums; font-weight: 600; background: transparent; -moz-appearance: textfield; }
.hx-step input::-webkit-outer-spin-button, .hx-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hx-btn { height: 38px; background: #d4e600; color: #111; border: none; border-radius: var(--radius-sm); padding: 0 16px; font-size: 13px; font-weight: 600; font-family: var(--font); cursor: pointer; white-space: nowrap; width: 100%; }
.hx-btn:disabled { opacity: .6; }
.hx-flash { font-size: 12px; color: var(--success); margin-top: 10px; }
.hx-flash.err { color: var(--red); }
.hx-flash:empty { display: none; }
.hx-cols { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 18px; align-items: start; }
.hx-panel { overflow: hidden; }
.hx-panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.hx-panel-title { font-weight: 700; font-size: .92rem; }
.hx-panel-head .grow { flex: 1; }
.hx-range { font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; }
.hx-arrow { background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 12px; color: var(--muted); font-size: 14px; cursor: pointer; }
.hx-day { border-top: 1px solid var(--border); }
.hx-panel-head + .hx-day { border-top: none; }
.hx-day-head { display: grid; grid-template-columns: 118px 1fr auto; align-items: center; gap: 14px; padding: 12px 18px 10px; }
.hx-day-name { font-weight: 700; font-size: .88rem; display: flex; align-items: center; gap: 6px; }
.hx-today { font-size: 9.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 0 6px; line-height: 15px; }
.hx-meter { position: relative; height: 6px; border-radius: 99px; background: rgba(0,0,0,.06); overflow: hidden; }
.hx-meter i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: #7a8a00; }
.hx-meter b { position: absolute; top: 0; bottom: 0; right: 0; background: var(--warning); }
.hx-day-tot { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hx-day-tot strong { color: var(--text); }
.hx-over { font-size: 11.5px; font-weight: 600; color: var(--warning); background: rgba(176,122,0,.09); border: 1px solid rgba(176,122,0,.3); border-radius: 999px; padding: 1px 9px; }
.hx-full { font-size: 11.5px; font-weight: 600; color: var(--success); }
.hx-rows { padding: 0 10px 10px; }
.hx-row { display: grid; grid-template-columns: minmax(0,1fr) 150px minmax(0,1.5fr) 58px 26px; align-items: center; gap: 12px; padding: 7px 8px; border-radius: var(--radius-sm); }
.hx-row:nth-child(even) { background: #fbfaf7; }
.hx-client { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .86rem; font-weight: 500; }
.hx-client span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hx-task { justify-self: start; font-size: 11.5px; font-weight: 500; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.hx-note { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-h { text-align: right; font-weight: 700; font-size: .86rem; font-variant-numeric: tabular-nums; }
.hx-del { background: none; border: none; cursor: pointer; color: var(--muted); font-size: .85rem; opacity: .55; padding: 2px; }
.hx-del:hover { color: var(--red); opacity: 1; }
.hx-empty { padding: 2px 18px 14px; font-size: .82rem; color: var(--muted); }
.hx-foot { padding: 12px 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.hx-foot strong { color: var(--warning); }
.hx-month { padding: 6px 18px 4px; }
.hx-bar { display: grid; grid-template-columns: minmax(0,108px) 1fr 52px; align-items: center; gap: 10px; padding: 7px 0; }
.hx-bar-name { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-bar-track { height: 8px; border-radius: 99px; background: rgba(0,0,0,.06); overflow: hidden; }
.hx-bar-track i { display: block; height: 100%; border-radius: 99px; }
.hx-bar-val { text-align: right; font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hx-bar.zero .hx-bar-name, .hx-bar.zero .hx-bar-val { color: var(--muted); font-weight: 400; }
.hx-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 8px 18px 0; padding: 14px 0 16px; border-top: 1px solid var(--border); }
.hx-total .lb { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.hx-total .vl { font-size: 26px; font-weight: 300; font-variant-numeric: tabular-nums; }
.hx-total .vl small { font-size: 13px; color: var(--muted); margin-left: 3px; }
.hx-split { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 18px 16px; }
.hx-split span { font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }
.hx-split b { color: var(--text); }
@media (min-width: 641px) { .hx-row .hx-meta { display: contents; } }

/* Agentes: el iframe ya no ocupa toda la ventana (hay barra arriba). */
#pg-agentes { height: calc(100vh - 57px) !important; }

/* ── Responsive ── */
@media (max-width: 1180px) {
  .hx-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .hx-grid .f-note { grid-column: span 3; }
}
@media (max-width: 980px) { .hx-cols { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .eq-kpis, .eq-band-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .eq-cgrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .eq-topbar { display: none; }
  .mobile-topbar { gap: 10px; }
  .eq-strip { margin: 12px 16px 0; }
  .eq-cgrid { grid-template-columns: minmax(0,1fr); }
  .hero-greeting { font-size: 38px; }
  .eq-junta { flex-wrap: wrap; }
  .eq-junta .eq-btn-dark { width: 100%; text-align: center; }
  .eq-ph .eq-spacer { display: none; }
  .eq-week-grid { grid-template-columns: minmax(0,1fr) !important; gap: 6px !important; }
  .eq-week-day { min-height: 0 !important; display: grid; grid-template-columns: 96px minmax(0,1fr); column-gap: 10px; align-items: start; }
  .eq-week-day > div:first-child { grid-column: 1; grid-row: 1 / span 9; margin: 4px 0 0 !important; }
  .eq-week-day > div:not(:first-child) { grid-column: 2; min-width: 0; }
  .eq-week-empty { display: none !important; }
  .eq-htable thead { display: none; }
  .eq-htable, .eq-htable tbody, .eq-htable tr, .eq-htable td { display: block; width: 100%; }
  .eq-htable tr { padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .eq-htable tr:last-child { border-bottom: none; }
  .eq-htable td { border: none; padding: 3px 0; }
  .eq-htable td[data-l] { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .eq-htable td[data-l]::before { content: attr(data-l); display: inline-block; min-width: 74px; font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
  .eq-vtable td[data-l="#"] { display: none; }
  .eq-glayout { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .eq-gindex { position: sticky; top: calc(54px + env(safe-area-inset-top)); z-index: 5; padding: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
  .eq-gindex-t { display: none; }
  .eq-gindex ol { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .eq-gindex ol::-webkit-scrollbar { display: none; }
  .eq-gindex a { white-space: nowrap; border: 1px solid var(--border); border-radius: 999px; padding: 7px 12px; font-size: 12.5px; }
  .eq-tema { scroll-margin-top: 130px; }
  .eq-tema-body { padding: 18px 16px 20px; }
  .eq-video-title { left: 16px; right: 16px; bottom: 14px; }
  .eq-video-title .vt-h { display: none; }
  .eq-btn-guia { width: 100%; justify-content: center; }
  #pg-agentes { height: calc(100vh - 54px) !important; }
}
@media (max-width: 640px) {
  .hx-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hx-stats .hx-stat:last-child { grid-column: span 2; }
  .hx-stat { padding: 12px 14px; }
  .hx-grid { grid-template-columns: 1fr 1fr; }
  .hx-grid .f-note, .hx-grid .f-btn, .hx-grid .f-client, .hx-grid .f-task { grid-column: span 2; }
  .f-date { order: 1; } .f-hours { order: 2; } .f-client { order: 3; } .f-task { order: 4; } .f-note { order: 5; } .f-btn { order: 6; }
  .hx-day-head { grid-template-columns: 1fr auto; gap: 6px 10px; padding: 12px 14px 8px; }
  .hx-day-head .hx-meter { grid-column: 1 / -1; grid-row: 2; }
  .hx-row { grid-template-columns: minmax(0,1fr) auto 22px; grid-template-areas: "c h d" "t t t"; gap: 4px 8px; padding: 8px; }
  .hx-row .hx-client { grid-area: c; } .hx-row .hx-h { grid-area: h; } .hx-row .hx-del { grid-area: d; }
  .hx-row .hx-meta { grid-area: t; display: flex; gap: 8px; align-items: center; min-width: 0; }
}
@media (max-width: 400px) {
  .eq-seg--dark button { padding: 6px 9px; font-size: 12px; }
}

/* Semana sin diseños: en móvil los días vacíos se esconden; que no quede el título solo. */
@media (max-width: 760px) {
  .eq-week-grid:not(:has(.eq-week-day:not(.eq-week-empty)))::after { content: "Sin diseños en esta semana."; font-size: 12.5px; color: var(--muted); padding: 4px 2px; }
}
