/* Diseño del Panel de control: el tema de CORE («La hoja») en dorado (Stanislav, 17-11-2026).
   Fuentes: CORE Texto (Inter modificada) y Core Display (Bricolage Grotesque), licencia OFL 1.1. */
@font-face { font-family: "CORE Texto"; src: url("/fonts/core/CoreTexto-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "CORE Texto"; src: url("/fonts/core/CoreTexto-Variable-Italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Core Display"; src: url("/fonts/core/CoreDisplay-Variable.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
    --pc-or: #B8903F;
    --pc-or2: #E8C878;
    --pc-or-icon: #D4AF37;
    --pc-grad: linear-gradient(135deg, #E8C878 0%, #C9A04E 50%, #A67C2E 100%);
    --pc-fondo: radial-gradient(520px 420px at 0% 0%, rgba(201, 160, 78, .26), rgba(201, 160, 78, 0) 70%),
                linear-gradient(170deg, #2A2214 0%, #17130D 50%, #0F0D0A 100%);
    --pc-hoja: #F3F4F6;
    --pc-card: #FFFFFF;
    --pc-borde: #ECECEF;
    --pc-texto: #1A1A1A;
    --pc-texto-2: #626D7E;
    --pc-sb-texto: #E6E0D2;
    --pc-sb-titulo: #9A8B6E;
    --pc-sombra: 0 1px 2px rgba(20, 26, 40, .05), 0 8px 24px -16px rgba(20, 26, 40, .18);
}

html, body, .fi-body, .fi-body * { font-family: "CORE Texto", Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.fi-body { font-size: 14px; color: var(--pc-texto); background: var(--pc-fondo) !important; background-attachment: fixed !important; }

/* ---------- barra lateral ---------- */
.fi-sidebar { background: transparent !important; border: 0 !important; box-shadow: none !important; width: 252px; }
.fi-sidebar-header { background: transparent !important; border: 0 !important; box-shadow: none !important; height: 72px; padding: 0 16px !important; }
.fi-sidebar-nav { padding: 4px 0 18px 14px !important; scrollbar-width: none; }
.fi-sidebar-nav::-webkit-scrollbar { display: none; }
.fi-sidebar-group-label, .fi-sidebar-group-btn span {
    color: var(--pc-sb-titulo) !important; font-size: 10.5px !important; font-weight: 700 !important;
    letter-spacing: .09em !important; text-transform: uppercase !important;
}
.fi-sidebar-item-btn {
    min-height: 40px; padding: 9px 12px !important; border-radius: 13px !important;
    color: var(--pc-sb-texto) !important; font-size: 14px !important; gap: 12px !important;
    transition: background .18s, color .18s;
}
.fi-sidebar-item-btn .fi-sidebar-item-label { color: inherit !important; font-weight: 400; }
.fi-sidebar-item-btn svg, .fi-sidebar-item-icon { color: #BDB29B !important; width: 18px; height: 18px; }
.fi-sidebar-item-btn:hover { background: rgba(255, 255, 255, .07) !important; color: #FFFFFF !important; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background: var(--pc-hoja) !important; color: #14161B !important; font-weight: 600 !important;
    border-radius: 15px 0 0 15px !important; margin-right: 0 !important;
}
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-label { font-weight: 600 !important; color: #14161B !important; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn svg { color: var(--pc-or-icon) !important; }
.fi-sidebar .fi-badge { background: var(--pc-or) !important; color: #1A1408 !important; border: 0 !important; border-radius: 999px !important; font-weight: 700; }
.fi-sidebar-group-collapse-btn svg { color: var(--pc-sb-titulo) !important; }

/* ---------- la hoja (contenido) ---------- */
.fi-main-ctn { background: var(--pc-hoja) !important; border-radius: 30px 0 0 0; min-height: 100vh; box-shadow: rgba(120, 95, 40, .35) 0 30px 60px -30px; }
.fi-topbar, .fi-topbar-ctn, .fi-topbar > nav { background: transparent !important; box-shadow: none !important; border: 0 !important; }
.fi-header-heading { font-size: 24px !important; font-weight: 700 !important; letter-spacing: -.01em; color: var(--pc-texto) !important; }
.fi-breadcrumbs-item-label { color: var(--pc-texto-2) !important; }

/* tarjetas, tablas y secciones */
.fi-section, .fi-ta-ctn, .fi-wi-stats-overview-stat, .fi-wi-chart, .fi-fo-repeater-item, .fi-in-entry-wrp {
    background: var(--pc-card) !important; border: 1px solid var(--pc-borde) !important;
    border-radius: 14px !important; box-shadow: var(--pc-sombra) !important; --tw-ring-shadow: 0 0 #0000 !important;
}
.fi-section-header-heading { font-weight: 600 !important; font-size: 15px !important; }
.fi-ta-header-cell { font-size: 12px !important; text-transform: none; color: var(--pc-texto-2) !important; font-weight: 600 !important; }
.fi-ta-row:hover { background: #FBF7EE !important; }

/* campos */
.fi-input-wrp { border-radius: 12px !important; }
.fi-input-wrp:focus-within { --tw-ring-color: rgba(201, 160, 78, .45) !important; }

/* botones */
.fi-btn.fi-color-primary:not(.fi-outlined) { background: var(--pc-grad) !important; color: #1A1408 !important; border: 0 !important; border-radius: 10px !important; box-shadow: 0 6px 16px -8px rgba(166, 124, 46, .7) !important; }
.fi-btn { border-radius: 10px !important; font-weight: 600; }

/* ---------- pantalla de entrada ---------- */
.fi-simple-layout { background: var(--pc-fondo) !important; background-attachment: fixed !important; }
.fi-simple-main { background: #FFFFFF !important; border-radius: 22px !important; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6) !important; }
.fi-simple-header-heading { font-family: "Core Display", "CORE Texto", sans-serif !important; font-weight: 700 !important; }

.fi-sidebar-nav-groups { gap: 6px !important; }
.fi-sidebar-group-label { padding-left: 8px; }
.fi-main { padding: 22px 28px !important; }
.fi-topbar { min-height: 56px; }

/* ---------- widgets al estilo CORE ---------- */
.pc-card { background: #fff; border: 1px solid var(--pc-borde); border-radius: 14px; box-shadow: var(--pc-sombra); padding: 16px 18px; }
.pc-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pc-card-title { font-weight: 600; font-size: 15px; }
.pc-ico { width: 28px; height: 28px; border-radius: 8px; background: #FBF4E4; color: #A67C2E; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.pc-muted { color: var(--pc-texto-2); font-size: 12.5px; margin-left: auto; }
.pc-list { display: flex; flex-direction: column; gap: 6px; }
.pc-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; background: #F7F7F9; text-decoration: none; color: inherit; }
.pc-row:hover { background: #FBF7EE; }
.pc-row .pc-muted { margin-left: auto; }
.pc-num { min-width: 64px; font-weight: 700; font-size: 15px; color: #14161B; }
.pc-row-main { display: flex; flex-direction: column; }
.pc-row-main small { color: var(--pc-texto-2); font-size: 12px; }
.pc-row.is-warn { background: #FFF4E5; } .pc-row.is-warn .pc-num { color: #C2410C; }
.pc-row.is-bad { background: #FDECEC; } .pc-row.is-bad .pc-num { color: #DC2626; }

/* recuadro negro «Vigilando ahora» (como CORE) */
.pc-hero { position: relative; overflow: hidden; background: #14161B; color: #F2F3F5; border-radius: 16px; padding: 18px 20px; min-height: 100%;
  background-image: radial-gradient(260px 200px at 100% 0%, rgba(201,160,78,.45), rgba(201,160,78,0) 70%); }
.pc-hero-head { font-size: 13px; opacity: .85; display: flex; align-items: center; gap: 8px; }
.pc-dot { width: 8px; height: 8px; border-radius: 50%; background: #C9A04E; box-shadow: 0 0 0 4px rgba(201,160,78,.18); }
.pc-hero-num { font-size: 52px; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 10px; line-height: 1; }
.pc-hero-num span { font-size: 16px; font-weight: 500; opacity: .8; letter-spacing: 0; }
.pc-hero-list { display: flex; flex-direction: column; gap: 6px; }
.pc-hero-row { display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.06); border-radius: 10px; padding: 9px 12px; color: inherit; text-decoration: none; }
.pc-hero-row:hover { background: rgba(255,255,255,.11); }
.pc-hero-row b { min-width: 34px; font-size: 18px; color: #E8C878; }
.pc-hero-row span { display: flex; flex-direction: column; font-size: 13.5px; }
.pc-hero-row small { opacity: .55; font-size: 11.5px; }
.pc-big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 8px; }
.pc-big small { font-size: 13px; font-weight: 500; color: var(--pc-texto-2); }
.pc-pair { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--pc-borde); font-size: 13.5px; }
.pc-bars { display: flex; gap: 18px; align-items: flex-end; margin-top: 12px; }
.pc-bar-col { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--pc-texto-2); }
.pc-bar-pair { display: flex; gap: 3px; align-items: flex-end; height: 72px; }
.pc-bar-pair i, .pc-ley { display: inline-block; width: 12px; border-radius: 4px 4px 2px 2px; background: #C9A04E; }
.pc-bar-pair i.g, .pc-ley.g { background: #CBD2DC; }
.pc-ley { height: 8px; width: 8px; border-radius: 2px; }
.pc-hbar { display: grid; grid-template-columns: 130px 1fr 90px; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; color: inherit; text-decoration: none; }
.pc-hbar-track { height: 10px; background: #F1F2F5; border-radius: 6px; overflow: hidden; }
.pc-hbar-track i { display: block; height: 100%; background: linear-gradient(90deg, #E8C878, #A67C2E); border-radius: 6px; }
.pc-hbar b { text-align: right; }

.fi-btn.fi-color-primary:not(.fi-outlined) svg { color: #1A1408 !important; }
.pc-hero-row b { color: #E8C878 !important; }

/* ---------- Dirección (tramo 8) ---------- */
.pc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pc-grid-2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.pc-kpi { position: relative; }
.pc-kpi .pc-big { font-size: 26px; }
.pc-kpi-label { font-size: 12.5px; color: var(--pc-texto-2); font-weight: 600; }
.pc-kpi-sub { font-size: 12px; color: var(--pc-texto-2); }
.pc-sem { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 6px; vertical-align: middle; }
.pc-sem.verde { background: #16A34A; } .pc-sem.ambar { background: #F59E0B; } .pc-sem.rojo { background: #DC2626; }
.pc-tabla-wrap { overflow-x: auto; }
.pc-tabla { width: 100%; border-collapse: collapse; font-size: 13px; }
.pc-tabla th { text-align: right; font-size: 11.5px; color: var(--pc-texto-2); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--pc-borde); white-space: nowrap; }
.pc-tabla th:first-child, .pc-tabla td:first-child { text-align: left; }
.pc-tabla td { text-align: right; padding: 6px 8px; border-bottom: 1px solid #F3F3F5; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pc-tabla tr.total td { font-weight: 700; border-top: 1px solid var(--pc-borde); background: #FBF7EE; }
.pc-tabla td.actual, .pc-tabla th.actual { background: #FBF4E4; }
.pc-tabla td.neg { color: #DC2626; } .pc-tabla td.pos { color: #15803D; }
.pc-tabla td.ok { background: #E8F6EC; color: #15803D; font-weight: 600; text-align: center; }
.pc-tabla td.falta { background: #FDECEC; color: #DC2626; font-weight: 600; text-align: center; }
.pc-tabla input { width: 92px; text-align: right; border: 1px solid var(--pc-borde); border-radius: 6px; padding: 2px 6px; font-size: 12.5px; background: #fff; }
.pc-tabla input.estimada { color: var(--pc-texto-2); font-style: italic; }
.pc-nota { font-size: 12.5px; color: var(--pc-texto-2); background: #FBF7EE; border-left: 3px solid #C9A04E; padding: 8px 12px; border-radius: 8px; margin: 8px 0; }
.pc-sel { border: 1px solid var(--pc-borde); border-radius: 10px; padding: 6px 10px; background: #fff; font-size: 13.5px; }
.pc-seccion-titulo { font-weight: 700; font-size: 14px; margin: 4px 0 8px; }
.pc-hero .pc-pair { border-top-color: rgba(255,255,255,.12); }

/* Entrada: el logo es blanco y la tarjeta también; en la entrada se oscurece. */
.fi-simple-main .fi-logo img, .fi-simple-layout .fi-logo img { filter: brightness(0) saturate(100%); opacity: .88; }
