/* ORBEX Command Center · pantalla principal. Usa solo los tokens de tokens.css. */
#vista-hub.cc, .cc { position: fixed; inset: 0; z-index: 20; display: grid; grid-template-columns: 280px minmax(0, 1fr); background: var(--o-pearl); color: var(--o-ink); font-family: var(--o-font); font-size: var(--o-t-body); line-height: 1.5; overflow: hidden; -webkit-font-smoothing: antialiased; }
.cc[hidden] { display: none; }
.cc *, .cc *::before, .cc *::after { box-sizing: border-box; }
.cc button { font: inherit; color: inherit; cursor: pointer; } .cc a { color: inherit; }
.cc :focus-visible { outline: 2px solid var(--o-copper); outline-offset: 2px; border-radius: 8px; }
.cc .num { font-variant-numeric: tabular-nums; }

/* ---------- menú lateral ---------- */
.cc-side { background: linear-gradient(180deg, var(--o-navy) 0%, #0A2C52 62%, #0C3560 100%); color: #E8EFF8; display: flex; flex-direction: column; padding: 22px 16px 0; position: relative; overflow: hidden auto; }
.cc-logo { display: block; padding: 0 0 18px; text-decoration: none; } .cc-logo svg { display: block; margin: 0 auto; }
.cc-nav { display: grid; gap: 4px; position: relative; z-index: 1; }
.cc-nav a, .cc-nav span.off { display: flex; align-items: center; gap: 12px; padding: 12px 14px; white-space: nowrap; border-radius: 14px; text-decoration: none; font-weight: 500; font-size: 15px; color: #E3EBF6; border: 1px solid transparent; }
.cc-nav a:hover { background: rgba(255,255,255,.08); }
.cc-nav a[aria-current="page"] { background: linear-gradient(90deg, var(--o-copper), #B35F2A); color: #fff; font-weight: 600; box-shadow: 0 8px 20px rgba(200,107,50,.32); }
.cc-nav span.off { opacity: .5; cursor: default; } .cc-nav span.off em { margin-left: auto; font-style: normal; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.12); padding: 2px 6px; border-radius: 99px; }
.cc-nav .sep { height: 1px; background: rgba(255,255,255,.14); margin: 12px 14px; }
.cc svg.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cc-side-art { flex: 1; min-height: 160px; margin: 18px -16px 0; position: relative; background:
  linear-gradient(180deg, transparent 0%, rgba(9,35,65,.0) 30%, rgba(9,35,65,.5) 100%),
  repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 46px),
  repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 38px),
  linear-gradient(160deg, rgba(200,107,50,.22), transparent 55%); mask-image: linear-gradient(180deg, transparent, #000 40%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); }

/* ---------- encabezado ---------- */
.cc-main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.cc-head { display: flex; align-items: center; gap: 18px; padding: 18px 28px 6px; flex-wrap: wrap; position: relative; }
.cc-welcome { flex: 1 1 320px; min-width: 0; } .cc-welcome h1 { margin: 0; font-size: var(--o-t-hero); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; } .cc-welcome h1 b { font-weight: 800; }
.cc-welcome p { margin: 4px 0 0; color: var(--o-mute); font-size: 17px; } .cc-welcome p i { font-style: normal; margin: 0 8px; color: var(--o-copper); }
.cc-search { position: relative; display: flex; align-items: center; gap: 10px; background: var(--o-white); border: 1px solid var(--o-line); border-radius: 14px; padding: 0 12px; height: 46px; flex: 0 1 380px; box-shadow: var(--o-shadow-1); }
.cc-search input { border: 0; outline: 0; background: transparent; flex: 1; font: inherit; color: var(--o-ink); min-width: 0; height: 100%; } .cc-search input::placeholder { color: var(--o-mute); }
.cc-search kbd { font: 600 11px var(--o-font); background: var(--o-pearl); border: 1px solid var(--o-line); border-radius: 7px; padding: 3px 7px; color: var(--o-mute); }
.cc-ic svg.i, .cc-iconbtn svg.i, .cc-ic svg, .cc-iconbtn svg { stroke: var(--o-mute); width: 20px; height: 20px; stroke: var(--o-mute); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cc-iconbtn { position: relative; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--o-line); background: var(--o-white); display: grid; place-items: center; box-shadow: var(--o-shadow-1); }
.cc-iconbtn .dot { position: absolute; top: 9px; right: 11px; min-width: 9px; height: 9px; border-radius: 99px; background: var(--o-copper); border: 2px solid #fff; }
.cc-menu-btn { display: none; }
.cc-user { display: flex; align-items: center; gap: 10px; background: transparent; border: 0; padding: 4px 6px; border-radius: 14px; text-align: left; }
.cc-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(145deg, var(--o-blue), var(--o-navy)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px; border: 3px solid #fff; box-shadow: var(--o-shadow-2); }
.cc-ut b { display: block; font-size: 15px; } .cc-ut small { display: block; color: var(--o-mute); font-size: 12.5px; }
.cc-chev { width: 10px; height: 10px; border-right: 2px solid var(--o-ink); border-bottom: 2px solid var(--o-ink); transform: rotate(45deg) translateY(-3px); margin-left: 4px; }
.cc-bellwrap, .cc-userwrap { position: relative; }
.cc-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 340px; max-width: 90vw; background: var(--o-white); border: 1px solid var(--o-line); border-radius: 16px; box-shadow: var(--o-shadow-3); padding: 8px; z-index: 40; }
.cc-pop h3 { margin: 6px 10px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--o-mute); } .cc-pop .it { display: flex; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 13.5px; } .cc-pop .it:hover { background: var(--o-pearl); } .cc-pop .it .d { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--o-blue); } .cc-pop .it .d.bad { background: var(--o-bad); } .cc-pop .it .d.warn { background: var(--o-warn); }
.cc-pop-user { width: 230px; display: grid; gap: 2px; } .cc-pop-user .cc-mail { padding: 8px 10px; color: var(--o-mute); font-size: 12.5px; word-break: break-all; } .cc-pop-user a, .cc-pop-user button { text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 10px; text-decoration: none; font-weight: 600; } .cc-pop-user a:hover, .cc-pop-user button:hover { background: var(--o-pearl); }
.cc-res { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--o-white); border: 1px solid var(--o-line); border-radius: 16px; box-shadow: var(--o-shadow-3); padding: 8px; z-index: 40; max-height: 60vh; overflow: auto; } .cc-res a { display: block; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-size: 13.5px; } .cc-res a:hover { background: var(--o-pearl); } .cc-res small { color: var(--o-mute); margin-left: 6px; }

/* ---------- cuerpo ---------- */
.cc-body { padding: 14px 28px 40px; overflow-y: auto; flex: 1; display: grid; gap: 20px; align-content: start; }
.cc-grid4 { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 20px; } .cc-grid3 { display: grid; grid-template-columns: 1.3fr 1.05fr 1.15fr; gap: 20px; } .cc-grid-b { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 20px; }
.cc-card { background: var(--o-white); border: 1px solid var(--o-line); border-radius: var(--o-r-xl); box-shadow: var(--o-shadow-2); padding: 20px 22px; min-width: 0; }
.cc-card h2 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; } .cc-card .sub { color: var(--o-mute); font-size: 13.5px; margin-top: 2px; }
.cc-card .hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; } .cc-card .hd a { color: var(--o-blue); font-weight: 600; font-size: 13.5px; text-decoration: none; white-space: nowrap; } .cc-card .hd a:hover { text-decoration: underline; }
.cc-kpi { display: flex; gap: 14px; align-items: flex-start; } .cc-kpi .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--o-copper-soft); flex: none; } .cc-kpi .ic svg { width: 28px; height: 28px; stroke: var(--o-copper); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cc-kpi .l { color: var(--o-ink); font-size: 14.5px; } .cc-kpi .v { font-size: 31px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 2px 0 4px; overflow-wrap: anywhere; } .cc-kpi .var { font-size: 13.5px; font-weight: 700; } .cc-kpi .var.up { color: var(--o-ok); } .cc-kpi .var.down { color: var(--o-bad); } .cc-kpi .var.flat { color: var(--o-mute); font-weight: 500; }
.cc-hero { background: linear-gradient(135deg, var(--o-navy) 0%, var(--o-blue) 100%); color: #fff; border: 0; position: relative; overflow: hidden; box-shadow: 0 14px 34px rgba(9,35,65,.28); } .cc-hero .ic { background: rgba(255,255,255,.12); } .cc-hero .ic svg { stroke: #fff; } .cc-hero .l { color: #DCE7F5; } .cc-hero .var.up { color: #8EE2B6; } .cc-hero .var.flat { color: #B9C8DC; }
.cc-hero svg.sw { position: absolute; right: 0; bottom: 0; width: 56%; height: 38%; opacity: .95; pointer-events: none; } .cc-hero > div { position: relative; z-index: 1; } .cc-hero .var.down { color: #FFB8AD; }
.pend { color: var(--o-mute); font-style: italic; font-weight: 600; } .cc-hero .pend { color: #C9D7EA; } .pend b { font-style: normal; }
.cc-meta .v { color: var(--o-ink); } .cc-bar { height: 10px; background: var(--o-line); border-radius: 99px; overflow: hidden; margin-top: 10px; } .cc-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--o-copper), #E0924F); }
.cc-chart svg { width: 100%; height: auto; display: block; } .cc-chart text { font: 500 13px var(--o-font); fill: var(--o-mute); } .cc-chart .gl { stroke: var(--o-line); }
.cc-proj { display: grid; gap: 14px; } .cc-pr { display: grid; grid-template-columns: 86px 1fr; gap: 14px; align-items: center; } .cc-pr .th { height: 64px; border-radius: 12px; background: linear-gradient(135deg, #0E3560, #164F91); position: relative; overflow: hidden; } .cc-pr .th::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 2px, transparent 2px 12px), repeating-linear-gradient(0deg, rgba(255,255,255,.10) 0 2px, transparent 2px 14px); mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); }
.cc-pr .t { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; } .cc-pr .t b { font-weight: 700; } .cc-pr .t span { color: var(--o-ink); font-weight: 700; } .cc-pr .pbar { height: 8px; background: var(--o-line); border-radius: 99px; overflow: hidden; margin-top: 8px; } .cc-pr .pbar i { display: block; height: 100%; background: var(--o-blue); border-radius: 99px; } .cc-pr small { color: var(--o-mute); }
.cc-ind { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; } .cc-ind table { width: 100%; border-collapse: collapse; font-size: 13.5px; } .cc-ind svg { width: 100%; height: auto; max-width: 160px; } .cc-ind td { color: var(--o-ink); padding: 11px 8px; border-bottom: 1px solid var(--o-line); } .cc-ind tr:last-child td { border-bottom: 0; } .cc-ind td:last-child { text-align: right; font-weight: 700; } .cc-ind .box { background: var(--o-surface-2); border: 1px solid var(--o-line); border-radius: 14px; padding: 4px 12px; min-width: 0; }
.cc-quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cc-q { background: var(--o-white); border: 1px solid var(--o-line); border-radius: var(--o-r-lg); padding: 16px 12px; text-align: center; text-decoration: none; box-shadow: var(--o-shadow-1); display: grid; gap: 6px; justify-items: center; transition: transform .15s, box-shadow .15s; } .cc-q:hover { transform: translateY(-2px); box-shadow: var(--o-shadow-2); }
.cc-q .ic svg { width: 36px; height: 36px; stroke: var(--o-copper); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; } .cc-q b { font-size: 15.5px; } .cc-q small { color: var(--o-mute); font-size: 12.5px; line-height: 1.35; }
.cc-q.on { background: linear-gradient(145deg, var(--o-navy), var(--o-blue)); color: #fff; border: 0; box-shadow: 0 12px 28px rgba(9,35,65,.28); } .cc-q.on .ic svg { stroke: #fff; } .cc-q.on small { color: #C9D7EA; }
.cc-q.off { opacity: .55; pointer-events: none; }
.cc-tasks { display: grid; } .cc-tk { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--o-line); } .cc-tk:last-child { border-bottom: 0; } .cc-tk i { width: 18px; height: 18px; border: 1.5px solid var(--o-line-strong); border-radius: 5px; flex: none; } .cc-tk span { flex: 1; min-width: 0; } .cc-tk time { color: var(--o-mute); font-size: 13px; white-space: nowrap; }
.cc-chip { display: inline-block; background: var(--o-copper-soft); color: var(--o-copper-deep); font-weight: 700; font-size: 12.5px; padding: 3px 11px; border-radius: 99px; margin-left: 8px; vertical-align: 2px; }
.cc-ev { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--o-line); align-items: center; } .cc-ev:last-child { border-bottom: 0; } .cc-ev .dt { width: 52px; flex: none; text-align: center; background: var(--o-copper-soft); border-radius: 12px; padding: 5px 0; color: var(--o-copper-deep); } .cc-ev .dt small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; } .cc-ev .dt b { font-size: 20px; line-height: 1.1; } .cc-ev b.t { display: block; font-size: 14.5px; } .cc-ev small.m { color: var(--o-mute); }
.cc-spot { background: linear-gradient(160deg, var(--o-navy), var(--o-blue)); color: #fff; border: 0; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; position: relative; overflow: hidden; } .cc-spot::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 2px, transparent 2px 22px), repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 2px, transparent 2px 24px), radial-gradient(circle at 85% 18%, rgba(200,107,50,.55), transparent 55%); } .cc-spot > * { position: relative; }
.cc-spot h3 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; } .cc-spot p { margin: 4px 0 14px; color: #D7E2F1; } .cc-btn { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: var(--o-copper); color: #fff; border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 20px rgba(200,107,50,.4); }
.cc-empty { color: var(--o-mute); padding: 10px 0; font-size: 14px; }
.cc-note { color: var(--o-mute); font-size: 12.5px; }

/* ---------- adaptación ---------- */
@media (max-width: 1280px) { .cc-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cc-grid3, .cc-grid-b { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cc-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  #vista-hub.cc, .cc { grid-template-columns: minmax(0, 1fr); } .cc-side { position: fixed; left: 0; top: 0; bottom: 0; width: 282px; z-index: 60; transform: translateX(-102%); transition: transform .2s; box-shadow: var(--o-shadow-3); } .cc.nav-open .cc-side { transform: none; } .cc-menu-btn { display: grid; }
  .cc-head { padding: 14px max(16px, env(safe-area-inset-right, 0px)) 4px max(16px, env(safe-area-inset-left, 0px)); gap: 12px; } .cc-welcome { order: 2; flex-basis: 100%; } .cc-welcome h1 { font-size: 24px; } .cc-search { order: 3; flex: 1 1 100%; } .cc-user .cc-ut, .cc-chev { display: none; }
  .cc-body { padding: 12px max(16px, env(safe-area-inset-right, 0px)) 36px max(16px, env(safe-area-inset-left, 0px)); }
  .cc-grid3, .cc-grid-b, .cc-ind { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) { .cc-grid4 { grid-template-columns: minmax(0, 1fr); } .cc-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cc-pr { grid-template-columns: 64px 1fr; } .cc-kpi .v { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .cc *, .cc *::before { transition: none !important; } }

/* ---- imágenes de proyectos (renders aportados) ---- */
.cc-pr .th[style*="background-image"] { background-size: cover; background-position: center; } .cc-pr .th[style*="background-image"]::after { display: none; }
.cc-spot.con-img { background: linear-gradient(180deg, rgba(9,35,65,.05) 0%, rgba(9,35,65,.82) 100%), var(--spimg) center / cover no-repeat; } .cc-spot.con-img::before { display: none; }
.cc-avatar.foto { background-size: cover; background-position: center top; }
/* pie del menú: edificio al atardecer, como la referencia */
.cc-side-art { background: linear-gradient(180deg, var(--o-navy) 0%, rgba(9,35,65,.55) 45%, rgba(9,35,65,.10) 100%), url(/design/img/torres-atardecer.jpg) 30% 100% / cover no-repeat !important; mask-image: none !important; -webkit-mask-image: none !important; }

/* ---- línea gráfica del avatar en el panel principal ---- */
.cc-avatar { box-shadow: 0 0 0 2px var(--o-white), 0 0 0 4px var(--o-copper) !important; border: 0 !important; margin: 4px; }
.cc-hero::after { content: ""; position: absolute; right: -70px; top: -80px; width: 230px; height: 230px; border-radius: 50%; border: 2px solid var(--o-copper); opacity: .45; pointer-events: none; }
.cc-hero::before { content: ""; position: absolute; right: -20px; top: -30px; width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--o-copper); opacity: .3; pointer-events: none; }
.cc-spot::after { content: ""; position: absolute; right: -60px; top: -70px; width: 200px; height: 200px; border-radius: 50%; border: 2px solid var(--o-copper); opacity: .55; pointer-events: none; }

/* ---- menú por áreas, selector de empresa y pantallas de módulos nuevos ---- */
.cc-area { margin: 0 0 6px; } .cc-area summary { list-style: none; cursor: pointer; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9FB4D0; padding: 12px 14px 6px; display: flex; justify-content: space-between; align-items: center; } .cc-area summary::-webkit-details-marker { display: none; } .cc-area summary::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid #9FB4D0; border-bottom: 1.6px solid #9FB4D0; transform: rotate(45deg); transition: transform .15s; } .cc-area:not([open]) summary::after { transform: rotate(-45deg); }
.cc-area a { padding: 9px 14px !important; font-size: 14px !important; } .cc-area .i { width: 19px !important; height: 19px !important; }
.cc-emp { display: flex; align-items: center; gap: 8px; background: var(--o-white); border: 1px solid var(--o-line); border-radius: 14px; padding: 0 6px 0 12px; height: 46px; box-shadow: var(--o-shadow-1); } .cc-emp span { color: var(--o-mute); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; } .cc-emp select { border: 0; background: transparent; font: 600 14px var(--o-font); color: var(--o-ink); height: 100%; padding-right: 6px; cursor: pointer; outline: 0; max-width: 190px; }
.cc-bc { color: var(--o-mute); font-size: 13px; } .cc-bc a { color: var(--o-blue); text-decoration: none; } .cc-bc b { color: var(--o-ink); }
.cc-mh { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; } .cc-mh h1 { margin: 0; font-size: var(--o-t-h1); font-weight: 800; letter-spacing: -.01em; } .cc-mh p { margin: 4px 0 0; color: var(--o-mute); max-width: 74ch; }
.cc-sts { display: flex; gap: 6px; flex-wrap: wrap; } .cc-st { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--o-line); background: var(--o-white); color: var(--o-mute); } .cc-st.ok { background: var(--o-ok-soft); color: var(--o-ok); border-color: transparent; } .cc-st.pend { background: var(--o-copper-soft); color: var(--o-copper-deep); border-color: transparent; }
.cc-demo { background: var(--o-copper-soft); color: var(--o-ink); border: 1px solid #EBCBB0; border-radius: 12px; padding: 9px 14px; font-size: 13px; } .cc-demo b:first-child { color: var(--o-copper-deep); letter-spacing: .08em; margin-right: 6px; }
.cc-grid-2 { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; } .cc-scroll { overflow-x: auto; }
.cc-t { width: 100%; border-collapse: collapse; font-size: 13.5px; } .cc-t th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--o-mute); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--o-line); white-space: nowrap; } .cc-t td { padding: 11px 10px; border-bottom: 1px solid var(--o-line); } .cc-t tr:last-child td { border-bottom: 0; } .cc-t td.pend { color: var(--o-mute); font-style: italic; }
.cc-secs { display: grid; gap: 12px; } .cc-secs div { border-left: 3px solid var(--o-copper); padding-left: 12px; } .cc-secs b { display: block; } .cc-secs small { color: var(--o-mute); font-size: 13px; }
.cc-ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; } .cc-kpi .v.pv { font-size: 18px; font-style: italic; color: var(--o-mute); font-weight: 700; }
@media (max-width: 1100px) { .cc-grid-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) { .cc-emp { order: 3; flex: 1 1 100%; } .cc-emp select { max-width: none; flex: 1; } }
.cc-t td, .cc-t td b, .cc-ul li, .cc-secs b { color: var(--o-ink); } .cc-t td.pend { color: var(--o-mute); } .cc-welcome h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cc-est{margin-left:auto;font-style:normal;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:2px 8px;border-radius:99px;background:rgba(255,255,255,.1);color:#9FB4D0}.cc-est.ok{background:rgba(52,168,110,.22);color:#8FE0B5}.cc-est.demo{background:rgba(200,107,50,.28);color:#F4C29F}

/* ---------- Panel ejecutivo: «Lo importante hoy», «Mi día» y las cinco situaciones ---------- */
.cc-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; } .cc-top .cc-sit { grid-column: 1 / -1; }
.cc-sec { margin: 28px 0 14px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--o-mute); }
.cc-recs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cc-rec { border: 1px solid var(--o-line); border-left: 4px solid var(--o-blue); border-radius: var(--o-r-md); padding: 12px 14px; background: var(--o-surface-2, #f8fafc); } .cc-rec.alta { border-left-color: var(--o-bad); } .cc-rec.media { border-left-color: var(--o-copper); }
.cc-rec .t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .cc-rec p { margin: 6px 0; font-size: 14px; line-height: 1.45; } .cc-rec summary { cursor: pointer; color: var(--o-blue); font-size: 13px; font-weight: 600; }
.cc-det { margin-top: 8px; font-size: 13px; line-height: 1.5; } .cc-det ul { margin: 4px 0 8px; padding-left: 18px; } .cc-det p { margin: 2px 0 8px; } .cc-det b { display: block; margin-top: 6px; } .cc-nota { color: var(--o-mute); font-style: italic; }
.cc-more { display: inline-block; margin-top: 6px; color: var(--o-blue); font-size: 13px; font-weight: 600; text-decoration: none; }
.cc-cal { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; } .cc-cal.real { background: var(--o-ok-soft); color: var(--o-ok); } .cc-cal.est { background: var(--o-warn-soft); color: var(--o-warn); } .cc-cal.pen { background: var(--o-line); color: var(--o-mute); }
.cc-pend { margin-top: 12px; font-size: 13px; color: var(--o-mute); } .cc-pend summary { cursor: pointer; }
.cc-dia .cc-mini { padding: 8px 0; border-top: 1px solid var(--o-line); } .cc-dia .cc-mini:first-of-type { border-top: 0; } .cc-mini h3 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--o-mute); display: flex; gap: 8px; align-items: center; }
.cc-mini ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .cc-mini li { font-size: 14px; display: grid; } .cc-mini li small { color: var(--o-mute); } .cc-mini li.venc b { color: var(--o-bad); } .cc-mini a { color: inherit; text-decoration: none; }
.cc-sit { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } .cc-s { padding: 16px 16px 14px; } .cc-s h2 { font-size: 15px; display: flex; align-items: center; gap: 8px; } .cc-s h2 .i { width: 18px; height: 18px; fill: none; stroke: var(--o-copper); stroke-width: 1.8; }
.cc-s .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--o-ok); flex: none; margin-top: 6px; } .cc-s.atencion .dot { background: var(--o-copper); } .cc-s.riesgo .dot { background: var(--o-bad); } .cc-s.sin_acceso .dot { background: var(--o-line-strong); }
.cc-s ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; } .cc-s li a { display: grid; text-decoration: none; color: inherit; } .cc-s li .l { font-size: 12px; color: var(--o-mute); } .cc-s li .v { font-size: 20px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; } .cc-s li .v.pen { font-size: 15px; color: var(--o-mute); } .cc-s li.mal .v { color: var(--o-bad); } .cc-s li small { color: var(--o-mute); font-size: 12px; line-height: 1.35; }
@media (max-width: 1700px) { .cc-sit { grid-template-columns: repeat(6, minmax(0, 1fr)); } .cc-sit > .cc-s { grid-column: span 2; } .cc-sit > .cc-s:nth-child(n+4) { grid-column: span 3; } }
@media (max-width: 1100px) { .cc-top { grid-template-columns: minmax(0, 1fr); } .cc-sit { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cc-sit > .cc-s, .cc-sit > .cc-s:nth-child(n+4) { grid-column: auto; } }
@media (max-width: 620px) { .cc-sit { grid-template-columns: minmax(0, 1fr); } }
.cc-hoy .hd { flex-wrap: wrap; }
.cc-est.fi{background:rgba(88,140,230,.24);color:#b9d1ff}.cc-est.pa{background:rgba(214,160,40,.24);color:#ffd98a}.cc-est.bl{background:rgba(220,90,90,.24);color:#ffb3b3}
.cc-est{font-size:0 !important;width:9px;height:9px;padding:0 !important;border-radius:50% !important;flex:none;margin-left:auto;background:#9FB4D0}.cc-est.ok{background:#4ad08a !important}.cc-est.fi{background:#6ea2ff !important}.cc-est.pa{background:#f0b83a !important}.cc-est.bl{background:#ff7a7a !important}
.cc-ley{display:grid;gap:5px;margin:14px 16px 4px;font-size:11px;color:#9FB4D0}.cc-ley i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:7px}.cc-ley i.ok{background:#4ad08a}.cc-ley i.fi{background:#6ea2ff}.cc-ley i.pa{background:#f0b83a}.cc-ley i.bl{background:#ff7a7a}

/* ---- Refinamiento Executive Hybrid (13/11, tarde): indicadores primero y tarjetas más sobrias. Reversible: borrar este bloque. ---- */
.cc-head { align-items: center; } .cc-welcome { flex: 1 1 260px; } .cc-search { flex: 0 1 300px; }
.cc-kpis { margin-bottom: 4px; }
.cc-sec { margin: 22px 0 12px; font-size: 12px; letter-spacing: .14em; color: var(--o-mute); display: flex; align-items: center; gap: 12px; }
.cc-sec::before { content: ""; width: 22px; height: 2px; background: var(--o-copper); border-radius: 2px; flex: none; }
.cc-sec::after { content: ""; flex: 1; height: 1px; background: var(--o-line); }
.cc-top { margin-bottom: 8px; }
/* recomendaciones: fondo blanco, trazo fino; el color solo en un punto de prioridad, no en el borde completo */
.cc-rec { background: var(--o-white); border: 1px solid var(--o-line); border-left: 1px solid var(--o-line); border-radius: var(--o-r-lg); box-shadow: var(--o-shadow-1); padding: 14px 16px 12px 18px; position: relative; }
.cc-rec::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--o-blue); }
.cc-rec.alta::before { background: var(--o-copper); } .cc-rec.media::before { background: var(--o-blue); } .cc-rec.baja::before { background: var(--o-line-strong); }
.cc-rec.alta, .cc-rec.media, .cc-rec.baja { border-left: 1px solid var(--o-line); }
.cc-rec .t strong, .cc-rec .t b { font-size: 15px; font-weight: 700; color: var(--o-navy); } .cc-rec p { color: var(--o-ink); }
/* Mi día: vencidas en tono cobre profundo, no rojo de alarma; el rojo queda para lo crítico */
.cc-mini li.venc b { color: var(--o-copper-deep); }
.cc-mini h3 { color: var(--o-navy); font-size: 11.5px; letter-spacing: .12em; }
/* tarjetas de situación: cabecera azul profundo y número protagonista */
.cc-s h2 { color: var(--o-navy); } .cc-s li .v { color: var(--o-navy); }
@media (min-width: 1100px) { .cc-head { flex-wrap: nowrap; gap: 14px; } .cc-welcome { flex: 1 1 auto; } .cc-welcome h1 { font-size: 27px; } .cc-search { flex: 0 1 230px; } .cc-user .cc-ut { max-width: 120px; } }
.cc-kpi .v.pv, .cc-hero .v { font-size: 26px; }
@media (min-width: 1100px) { .cc-user .cc-ut, .cc-user .cc-chev { display: none; } .cc-search { flex: 0 1 280px; } }
@media (min-width: 1700px) { .cc-user .cc-ut, .cc-user .cc-chev { display: revert; } }

.cc-cal.sim { background: #F8ECE2; color: #8A4A1F; box-shadow: inset 0 0 0 1px #C86B32; }
