/* ============================================
   ABRIL · v2 (tablero unificado, 9-oct-2026)
   Estilo de Abril: oscuro + acento rosa #c47d8a. Solo usa las variables de
   styles.css; aquí viven las piezas nuevas (cartera, Control, Guía, Horas).
   ============================================ */
:root {
  --a2-lime: #bdde6e;            /* «89» del wordmark oficial de Vector89 */
  --a2-cream: #f1f0ec;
  --a2-ok: var(--success);
  --a2-err: var(--red);
  --a2-warn: var(--amber);
  --a2-field: rgba(255,255,255,0.04);
  --a2-track: rgba(255,255,255,0.06);
  --a2-option-bg: #1a1a24;
}
html, body { overflow-x: hidden; }
.main-content { min-width: 0; }

/* ---------- Wordmark oficial (Cormorant italic + DM Sans caps) ---------- */
.a2-wm { font-family: var(--font-title); font-style: italic; font-weight: 500; font-size: 25px; letter-spacing: -0.3px; line-height: 1; color: var(--a2-cream); }
.a2-wm b, .a2-wm-mini b { color: var(--a2-lime); font-weight: 600; }
.a2-wm-sub { font-family: var(--font); font-size: 8.5px; font-weight: 600; letter-spacing: 2.6px; color: var(--muted); margin-top: 5px; }
.mobile-logo.a2-wm-mini { color: var(--a2-cream); }

/* ---------- Sidebar: grupos, insignias ---------- */
.a2-sb-group { font-size: 9.5px; letter-spacing: 1.8px; text-transform: uppercase; color: rgba(226,226,232,0.32); padding: 14px 12px 6px; font-weight: 600; }
.a2-badge { margin-left: auto; font-size: 10px; font-weight: 700; background: var(--red); color: #fff; border-radius: 999px; padding: 1px 7px; line-height: 16px; }
.a2-badge.ambar { background: var(--amber); color: #18181f; }
.a2-new { margin-left: auto; font-size: 8.5px; font-weight: 700; letter-spacing: .6px; color: #fff; background: var(--accent); border-radius: 4px; padding: 1px 5px; }
.sb-mty { font-size: 11px; color: var(--muted); margin-top: 5px; }
.sb-mty-time { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .5px; }

/* ---------- Barra superior (desktop) + filtro de cartera ---------- */
.a2-topbar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 12px 32px; background: rgba(13,13,18,0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.a2-crumb { font-size: 12px; color: var(--muted); }
.a2-crumb b { color: var(--text); font-weight: 600; }
.a2-spacer { flex: 1; }
.a2-seg { display: inline-flex; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.a2-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; }
.a2-seg button.on { background: var(--accent); color: #fff; }
.a2-seg .n { font-size: 10.5px; opacity: .75; margin-left: 4px; }
.mobile-topbar .a2-seg { display: none; }
/* Con la barra arriba, el sticky de las pestañas de Videos queda debajo de ella. */
#client-tabs-section { top: 53px !important; }

/* ---------- Comunes ---------- */
.a2-ph { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.a2-ro { font-size: 10.5px; font-weight: 600; letter-spacing: .4px; color: var(--muted); border: 1px dashed rgba(255,255,255,0.18); border-radius: 999px; padding: 3px 9px; }
.a2-btn { border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 999px; padding: 7px 14px; font-family: var(--font); font-size: 12.5px; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.a2-btn:hover { border-color: var(--accent); color: #fff; }
.a2-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.a2-lbl { font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 24px 0 10px; }
.a2-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.a2-aviso { display: flex; gap: 10px; align-items: flex-start; background: rgba(212,148,90,0.10); border: 1px solid rgba(212,148,90,0.35); border-left: 4px solid var(--amber); color: var(--text); border-radius: var(--radius); padding: 12px 14px; font-size: 13px; line-height: 1.5; margin: 0 0 16px; }
.a2-aviso b { color: var(--amber); }
.a2-aviso small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; word-break: break-word; }
.a2-aviso.err { background: rgba(196,90,90,0.10); border-color: rgba(196,90,90,0.4); border-left-color: var(--red); }
.a2-aviso.err b { color: #e58a8a; }
.a2-cargando { padding: 22px; text-align: center; color: var(--muted); font-size: 13px; }
.a2-vacio { padding: 22px; text-align: center; color: var(--muted); font-size: 13px; }
.a2-narrow { max-width: 680px; }
.a2-own { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.06); color: var(--muted); white-space: nowrap; }
.a2-own.me { background: var(--accent-dim); color: var(--accent); }
.a2-ajena { opacity: .5; }
.ab-vid .a2-own { margin-left: 6px; font-size: 9px; padding: 0 6px; }
.a2-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #18181f; flex-shrink: 0; }
.a2-light { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.a2-l-verde { background: #3cc46f; box-shadow: 0 0 0 4px rgba(60,196,111,.18); }
.a2-l-ambar { background: #e6a817; box-shadow: 0 0 0 4px rgba(230,168,23,.2); }
.a2-l-rojo  { background: #e24a4a; box-shadow: 0 0 0 4px rgba(226,74,74,.2); }
.a2-l-gris  { background: #6b7280; box-shadow: 0 0 0 4px rgba(107,114,128,.2); }

/* ---------- Pestañas (Control) y sub-pestañas (Registro) ---------- */
.a2-tabs, .a2-subtabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.a2-tab, .a2-subtab { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); font-family: var(--font); font-size: 13px; font-weight: 500; cursor: pointer; transition: background var(--transition), color var(--transition), border-color var(--transition); }
.a2-tab:hover, .a2-subtab:hover { border-color: var(--accent); color: var(--text); }
.a2-tab.on, .a2-subtab.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.a2-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: var(--accent-dim); color: var(--accent); vertical-align: 1px; }
.a2-subtab.on .a2-tag-new { background: rgba(0,0,0,.18); color: inherit; }

/* ---------- Inicio: próxima junta ---------- */
.a2-junta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: linear-gradient(135deg, rgba(196,125,138,0.16), rgba(196,125,138,0.04)); border: 1px solid rgba(196,125,138,0.35); border-radius: 12px; padding: 16px 18px; margin: 4px 0 18px; }
.a2-junta-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.a2-junta-main { flex: 1; min-width: 200px; }
.a2-junta-k { font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.a2-junta-t { font-size: 16px; font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.a2-junta-h { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.a2-junta-h b { color: var(--text); font-weight: 600; }
.a2-junta-notas { font-size: 12.5px; color: var(--muted); margin-top: 6px; white-space: pre-line; overflow-wrap: anywhere; }
.a2-junta details { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.a2-junta summary { cursor: pointer; color: var(--text); }
.a2-junta-min { white-space: pre-line; margin-top: 6px; line-height: 1.5; overflow-wrap: anywhere; }

/* ---------- Inicio: tarjetas de cartera ---------- */
.a2-cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.a2-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; }
.a2-cc.ajena { opacity: .55; }
.a2-cc-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.a2-cc-top > div { min-width: 0; }
.a2-cc-name { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a2-cc-meta { font-size: 11.5px; color: var(--muted); }
.a2-cc-top .a2-own { margin-left: auto; }
.a2-bar { height: 5px; border-radius: 3px; background: var(--a2-track); overflow: hidden; }
.a2-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.a2-cc-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.a2-cc-foot b { color: var(--text); font-weight: 600; }

/* ---------- Control › Hoy ---------- */
.a2-band { border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; background: #111118; border: 1px solid var(--border); position: relative; overflow: hidden; }
.a2-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(196,125,138,.25), transparent 65%); pointer-events: none; }
.a2-band-top { display: flex; gap: 14px; align-items: center; position: relative; z-index: 1; }
.a2-band-frase { font-size: 18px; font-weight: 600; }
.a2-band-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.a2-band-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; position: relative; z-index: 1; }
.a2-bk { background: rgba(255,255,255,.05); border-radius: 8px; padding: 10px 12px; }
.a2-bk b { display: block; font-size: 20px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.a2-bk span { font-size: 11px; color: var(--muted); }
.a2-att .a2-row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border); }
.a2-att .a2-row:first-child { border-top: none; }
.a2-att .a2-txt { flex: 1; font-size: 13px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.a2-att small { display: block; font-size: 11.5px; color: var(--muted); }
.a2-att .a2-row.ajena { opacity: .55; }
.a2-htable { width: 100%; border-collapse: collapse; }
.a2-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); }
.a2-htable td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 13px; }
.a2-htable tr:last-child td { border-bottom: none; }
.a2-htable tr.ajena td { opacity: .55; }
.a2-cli { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.a2-slots { display: flex; gap: 5px; flex-wrap: wrap; }
.a2-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; }
.a2-s-ok { background: rgba(92,184,138,.14); color: #7fd4a6; }
.a2-s-prog { background: rgba(255,255,255,.05); color: var(--muted); border-color: var(--border); }
.a2-s-err { background: rgba(196,90,90,.16); color: #ee8f8f; }
.a2-s-no { background: transparent; color: #ee8f8f; border: 1px dashed rgba(238,143,143,.7); }
.a2-s-none { color: var(--muted); font-size: 11.5px; font-weight: 400; }
.a2-ver { font-size: 12px; color: var(--blue); text-decoration: none; font-weight: 500; white-space: nowrap; }
.a2-ver:hover { text-decoration: underline; }
.a2-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.a2-legend span { display: inline-flex; align-items: center; gap: 6px; }
.a2-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.a2-note { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.5; }

/* ---------- Control › Mes (ControlTabla compartido, en tonos de Abril) ---------- */
#a2-mes-cuerpo { --ctl-bg: var(--card); --ctl-muted: var(--muted); --ctl-line: var(--border); background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; min-width: 0; }
#a2-mes-cuerpo .ctl th.hoy { background: var(--accent); color: #fff; }
#a2-mes-cuerpo .ctl td.hoy { background: rgba(196,125,138,.10); }
#a2-mes-cuerpo tr.a2-ajena-row td { opacity: .45; }

/* ---------- Pipeline (cola de Paula, en oscuro) ---------- */
#pipeline-abril-body .pcola-wrap { background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow-x: auto; }
#pipeline-abril-body .pcola-head { display: grid; grid-template-columns: 1fr 110px 1fr 1fr; gap: 12px; padding: 8px 14px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); min-width: 700px; }
#pipeline-abril-body .pcola-row { display: grid; grid-template-columns: 1fr 110px 1fr 1fr; gap: 12px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--border); min-width: 700px; }
#pipeline-abril-body .pcola-row:last-child { border-bottom: none; }
#pipeline-abril-body .pcola-row:hover { background: rgba(255,255,255,.03); }
#pipeline-abril-body .pcola-row.tiene-copy { background: rgba(92,184,138,.08); }
#pipeline-abril-body .pcola-row.ajena { opacity: .5; }
#pipeline-abril-body .pcola-name { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text); min-width: 0; }
#pipeline-abril-body .pcola-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
#pipeline-abril-body .pcola-date { font-size: 12.5px; color: var(--text); font-variant-numeric: tabular-nums; }
#pipeline-abril-body .pcola-link { font-size: 12px; color: var(--blue); text-decoration: none; }
#pipeline-abril-body .pcola-in { width: 100%; min-width: 0; background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 5px 7px; font: inherit; font-size: 12px; color: var(--text); }
#pipeline-abril-body .pcola-in:hover { border-color: var(--border); }
#pipeline-abril-body .pcola-in:focus { outline: none; border-color: var(--accent); background: var(--a2-field); }
#pipeline-abril-body .pcola-in::placeholder { color: rgba(136,136,170,.6); }
#pipeline-abril-body .pcola-copy { min-width: 700px; padding: 14px; border-bottom: 1px solid var(--border); background: #14141a; }
#pipeline-abril-body .pcola-copy.tiene-copy { background: rgba(92,184,138,.06); }
#pipeline-abril-body .pcola-copytxt { font-size: 13px; line-height: 1.65; white-space: pre-wrap; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; overflow-wrap: break-word; }
.a2-pp-nav { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 14px; }
.a2-pp-nav button { background: transparent; border: 1px solid var(--border); color: var(--text); width: 30px; height: 30px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.a2-pp-nav button:disabled { opacity: .3; cursor: default; }
.a2-pp-title { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; flex-wrap: wrap; }
.a2-pp-title b { font-size: 14px; font-weight: 700; }
.a2-pp-title span { font-size: 11px; color: var(--muted); }
.a2-pp-title i { flex: 1; border-bottom: 1px solid var(--border); min-width: 20px; }
.a2-toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 99999; padding: 9px 16px; border-radius: 8px; font-size: 12.5px; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.4); transition: opacity .25s; background: var(--card); color: var(--text); border: 1px solid var(--border); max-width: calc(100vw - 32px); }
.a2-toast.err { background: #3a1c1c; color: #fecaca; border-color: rgba(196,90,90,.6); }

/* ---------- Historias ---------- */
.a2-hist-banner { display: flex; gap: 10px; flex-wrap: wrap; }
.a2-hist-banner a, .a2-hist-banner button { flex: 1; min-width: 170px; display: block; padding: 13px 14px; border-radius: 10px; font-family: inherit; font-size: 13px; font-weight: 600; text-align: center; text-decoration: none; border: 1px solid var(--border); color: var(--text); background: rgba(255,255,255,.04); cursor: pointer; }
.a2-hist-banner a.hoy { background: var(--accent); border-color: var(--accent); color: #fff; }
.a2-hist-row { display: flex; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.a2-hist-row.ajena { opacity: .5; }
.a2-hist-name { font-size: 13px; font-weight: 600; flex: 1 1 160px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a2-hist-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.a2-hl { display: inline-flex; align-items: center; justify-content: center; font-size: 12px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); text-decoration: none; white-space: nowrap; }
.a2-hl:hover { border-color: var(--accent); color: #fff; }
.a2-hl.vacia { color: rgba(136,136,170,.55); border-style: dashed; }
.a2-hl-ed { background: none; border: none; padding: 4px 6px; font-size: 12px; cursor: pointer; opacity: .55; }
.a2-hl-ed:hover { opacity: 1; }
.a2-modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.a2-modal-box { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px 20px; width: 100%; max-width: 420px; box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.a2-modal-box input { width: 100%; background: var(--a2-field); border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 13px; color: var(--text); outline: none; margin: 12px 0 14px; }
.a2-modal-box input:focus { border-color: var(--accent); }

/* ---------- Proyectos (project-workspace.css de Paula, en oscuro) ---------- */
.a2-proy-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.pw-badge, .pw-chip { background: var(--accent-dim); color: var(--accent); }
.pw-badge.is-done { background: rgba(92,184,138,.15); color: #7fd4a6; }
.pw-chip { background: rgba(255,255,255,.05); color: var(--muted); }
.pw-button:hover { background: var(--accent-dim); color: #fff; }
.pw-button.pw-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.pw-button.pw-danger { color: #ee8f8f; }
.pw-message { color: #7fd4a6; margin-bottom: 10px; }
.pw-empty { border-color: rgba(255,255,255,.15); }
.pw-dialog { border-color: var(--border); }
.pw-field input, .pw-field textarea, .pw-field select { border-color: var(--border); background: var(--a2-field); }
.pw-field select option { background: var(--a2-option-bg); }
.pw-edit-piece, .pw-editor-footer { border-color: var(--border); }
.pw-piece .pw-block, .pw-edit-piece { background: rgba(255,255,255,.03); }

/* ---------- Guía ---------- */
.a2-guia-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; max-width: 1080px; }
.a2-guia-temas { min-width: 0; max-width: 720px; }
.a2-guia-index { position: sticky; top: 64px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; }
.a2-guia-index-title { font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); padding: 8px 10px 10px; }
.a2-guia-index ol { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.a2-guia-index 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; }
.a2-guia-index a:hover { background: var(--accent-dim); }
.a2-guia-index a.active { background: var(--accent-dim); color: var(--accent); font-weight: 500; }
.a2-guia-num { font-variant-numeric: tabular-nums; font-size: 11px; color: var(--muted); min-width: 16px; }
.a2-guia-index a.active .a2-guia-num { color: var(--accent); }
.a2-guia-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; }
.a2-guia-intro { border-left: 3px solid var(--accent); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 20px; }
.a2-guia-hello { font-family: var(--font-title); font-style: italic; font-size: 30px; line-height: 1.1; }
.a2-guia-intro p { color: var(--muted); font-size: 13px; line-height: 1.55; flex: 1; min-width: 200px; }
.a2-tema { overflow: hidden; scroll-margin-top: 70px; }
.a2-tema-body { padding: 20px 22px 22px; }
.a2-tema-k { font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.a2-tema h2 { font-size: 18px; font-weight: 600; margin-bottom: 12px; line-height: 1.3; }
.a2-tema ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.a2-tema li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.55; }
.a2-tema li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.a2-tema li b { font-weight: 600; }
.a2-prompt { display: block; padding: 10px 12px; margin-top: 6px; font-style: italic; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; }
.a2-video { position: relative; aspect-ratio: 16 / 9; background: #0b0b10; overflow: hidden; display: block; width: 100%; }
.a2-video-poster { position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% 10%, rgba(196,125,138,0.28), transparent 55%), linear-gradient(135deg, #1b1b22 0%, #0d0d12 60%); }
.a2-video-poster::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 32px 32px; }
.a2-video-title { position: absolute; left: 22px; right: 22px; bottom: 20px; color: var(--a2-cream); z-index: 1; }
.a2-video-title .vt-brand { font-family: var(--font-title); font-style: italic; font-size: 15px; color: var(--accent); }
.a2-video-title .vt-h { font-size: clamp(17px, 2.4vw, 24px); font-weight: 600; line-height: 1.2; margin-top: 4px; }
.a2-video-soon { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 2; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.15); color: var(--a2-cream); font-size: 12.5px; font-weight: 600; letter-spacing: .4px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.a2-btn-guia { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; text-decoration: none; border-radius: var(--radius-sm); padding: 10px 16px; font-size: 13px; font-weight: 600; }
.a2-btn-guia:hover { opacity: .88; }
.a2-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.a2-chip { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 500; }
.a2-mini { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 13px; }
.a2-mini td { padding: 8px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.a2-mini td:first-child { font-weight: 600; width: 42%; padding-right: 12px; font-variant-numeric: tabular-nums; }
.a2-mini tr:last-child td { border-bottom: 0; }
.a2-guia-aviso { background: rgba(196,90,90,0.10); border: 1px solid rgba(196,90,90,0.3); color: #f0b4b4; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; line-height: 1.5; margin-bottom: 18px; }

/* ---------- Registro › Horas por cliente (mockup horas-abril.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: 10px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; min-width: 0; }
.hx-stat .ic { font-size: 1.5rem; }
.hx-stat .lb { font-size: .72rem; color: var(--muted); margin-bottom: 2px; }
.hx-stat .vl { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.hx-stat .sub { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.hx-form { margin-bottom: 18px; padding: 20px 24px; }
.hx-form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.hx-sub { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.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-field input, .hx-field select { height: 38px; width: 100%; min-width: 0; padding: 0 11px; background: var(--a2-field); 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-field select option { background: var(--a2-option-bg); color: var(--text); }
.hx-field input[type=date] { color-scheme: dark; }
.hx-field input::placeholder { color: var(--muted); }
.hx-step { display: flex; height: 38px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--a2-field); overflow: hidden; }
.hx-step:focus-within { border-color: var(--accent); }
.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 button:hover { color: var(--accent); background: var(--accent-dim); }
.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; white-space: nowrap; background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 0 16px; cursor: pointer; font-family: var(--font); font-size: .85rem; font-weight: 600; }
.hx-btn:disabled { opacity: .5; cursor: wait; }
.hx-flash { font-size: 12px; color: var(--success); margin-top: 10px; }
.hx-flash.err { color: #ee8f8f; }
.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 { padding: 0; 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: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 6px 14px; cursor: pointer; color: var(--text); font-size: 1rem; font-family: var(--font); }
.hx-day { border-top: 1px solid var(--border); }
.hx-day:first-of-type { 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: var(--a2-track); overflow: hidden; }
.hx-meter i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--accent); }
.hx-meter b { position: absolute; top: 0; bottom: 0; right: 0; background: var(--amber); border-radius: 0 99px 99px 0; }
.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); font-weight: 700; }
.hx-over { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--amber); background: rgba(212,148,90,0.14); border: 1px solid rgba(212,148,90,0.35); 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: var(--bg); }
.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); line-height: 1.5; }
.hx-foot strong { color: var(--amber); font-weight: 600; }
.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: var(--a2-track); 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); font-weight: 600; }
@media (min-width: 641px) { .hx-row .hx-meta { display: contents; } }
@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; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .a2-cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .a2-band-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .a2-topbar { display: none; }
  .mobile-topbar .a2-seg { display: inline-flex; }
  .mobile-topbar .a2-seg button { padding: 5px 9px; font-size: 11.5px; }
  .mobile-topbar .a2-seg .n { display: none; }
  .mobile-topbar .mobile-logo { flex: 1; margin-left: 10px; font-size: 20px; }
  #client-tabs-section { top: 0 !important; }
  .page.a2-agentes { height: calc(100vh - 54px - env(safe-area-inset-top)) !important; }
  .a2-cgrid { grid-template-columns: 1fr; }
  .a2-guia-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .a2-guia-index { top: 0; z-index: 5; padding: 8px; box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
  .a2-guia-index-title { display: none; }
  .a2-guia-index ol { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .a2-guia-index ol::-webkit-scrollbar { display: none; }
  .a2-guia-index a { white-space: nowrap; border: 1px solid var(--border); border-radius: 999px; padding: 7px 12px; font-size: 12.5px; }
  .a2-tema-body { padding: 18px 16px 20px; }
  .a2-video-title { left: 16px; right: 16px; bottom: 14px; }
  .a2-video-title .vt-h { display: none; }
  .a2-btn-guia { width: 100%; justify-content: center; }
  .a2-guia-hello { font-size: 26px; }
  /* Tabla de Hoy → tarjetas */
  .a2-htable thead { display: none; }
  .a2-htable, .a2-htable tbody, .a2-htable tr, .a2-htable td { display: block; width: 100%; }
  .a2-htable tr { padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .a2-htable tr:last-child { border-bottom: none; }
  .a2-htable td { border: none; padding: 3px 0; }
  .a2-htable td[data-l] { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .a2-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; }
  /* Semana del Inicio: una columna en teléfono */
  #v89-kanban-week div[style*="repeat(7"] { grid-template-columns: 1fr !important; gap: 6px !important; }
  #v89-kanban-week div[style*="repeat(7"] > div { min-height: 0 !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-form { padding: 16px; }
  .hx-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .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-step button { width: 40px; }
  .hx-btn { width: 100%; height: 42px; }
  .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-rows { padding: 0 6px 8px; }
  .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; }
  .hx-hint { width: 100%; }
  .hx-panel-head { padding: 12px 14px; }
  .hx-month { padding: 6px 14px 4px; } .hx-total { margin: 8px 14px 0; } .hx-split { padding: 0 14px 14px; }
  .hx-foot { padding: 12px 14px; }
  .a2-junta { padding: 14px; }
  .a2-band { padding: 16px; }
}
@media (max-width: 480px) {
  .a2-tab, .a2-subtab { padding: 6px 12px; font-size: 12.5px; }
}

/* Agentes: el iframe ocupa el alto visible debajo de la barra superior. */
.page.a2-agentes { padding: 0; height: calc(100vh - 53px); overflow: hidden; }

/* Inicio en teléfono: los 3 contadores en una fila compacta. */
@media (max-width: 768px) {
  .inicio-stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; margin-bottom: 18px !important; }
  .istat-card { padding: 12px 10px !important; min-width: 0; }
  .istat-num { font-size: 24px !important; }
  .istat-label { font-size: 10.5px !important; line-height: 1.3; }
}
/* Historias: botones del mismo ancho para que las columnas queden alineadas. */
.a2-hist-links .a2-hl { min-width: 104px; }
@media (max-width: 768px) { .a2-hist-links .a2-hl { min-width: 0; } }
