/* =========================================================================
   GESPLAN · Sistema visual (M02 · diseño V3 "Visual")
   Se carga después de Color Admin y custom.css. Todo va bajo body.gp para
   ganar especificidad sin tocar la plantilla.
   ========================================================================= */

@font-face { font-family: "Galano Grotesque"; src: url("../fonts/galano/GalanoGrotesqueRegular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Galano Grotesque"; src: url("../fonts/galano/GalanoGrotesqueMedium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Galano Grotesque"; src: url("../fonts/galano/GalanoGrotesqueSemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Galano Grotesque"; src: url("../fonts/galano/GalanoGrotesqueBold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
    --gp-primary: #054993;
    --gp-primary-700: #043b77;
    --gp-primary-50: #eaf1f9;
    --gp-primary-100: #d3e2f2;
    --gp-navy: #0F2750;
    --gp-ink: #061431;
    --gp-slate: #4a6590;

    --gp-text: #0D0D0D;
    --gp-text-2: #4D4D4D;
    --gp-muted: #7A7A7A;
    --gp-line: #E4E7EC;
    --gp-line-strong: #D7D7D7;
    --gp-bg: #F2F4F8;
    --gp-white: #FFFFFF;

    --gp-ok: #22A05A;   --gp-ok-soft: #E3F4EA;
    --gp-warn: #E39A1F; --gp-warn-soft: #FDF0DB;
    --gp-risk: #DD3F3F; --gp-risk-soft: #FBE5E5;

    --gp-radius: 14px;
    --gp-radius-sm: 8px;
    --gp-shadow: 0 1px 2px rgba(6, 20, 49, .05), 0 4px 16px rgba(6, 20, 49, .05);
    --gp-topbar-h: 60px;
    --gp-max: 1360px;
    --gp-font: "Galano Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Base ---------- */
body.gp {
    font-family: var(--gp-font);
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--gp-text);
    background: var(--gp-bg);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
body.gp h1, body.gp h2, body.gp h3, body.gp h4, body.gp h5, body.gp h6 { font-family: var(--gp-font); color: var(--gp-ink); font-weight: 600; }
body.gp a { color: var(--gp-primary); }
body.gp .text-primary, body.gp .txt-proyecta { color: var(--gp-primary) !important; }
body.gp .bg-proyecta { background-color: var(--gp-primary) !important; }
body.gp .gp-label {
    font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gp-slate);
}

/* Contenedor principal: sin la cabecera fija de Color Admin */
body.gp #page-container { padding-top: 0; min-height: 100vh; display: flex; flex-direction: column; }
body.gp #content.content {
    margin-left: 0 !important;
    padding: 0 28px 48px !important;
    max-width: var(--gp-max);
    width: 100%;
    margin-right: auto;
    margin-left: auto !important;
    min-height: 0;
    flex: 1;
}
body.gp #content .main { padding-top: 24px; }

/* Barra de progreso de carga (Pace): bajo la barra superior */
body.gp .pace .pace-progress { top: var(--gp-topbar-h); background: #6fa3e0; height: 2px; }
body.gp .pace .pace-activity { display: none; }

/* Cargador de página */
body.gp #page-loader { background: var(--gp-bg); }
body.gp #page-loader .spinner { border-color: var(--gp-primary-100); border-top-color: var(--gp-primary); }

/* ---------- Barra superior ---------- */
.gp-topbar { background: var(--gp-navy); color: #fff; position: sticky; top: 0; z-index: 1030; }
.gp-topbar__in { max-width: var(--gp-max); margin: 0 auto; padding: 0 28px; height: var(--gp-topbar-h); display: flex; align-items: center; gap: 28px; }
.gp-brand { display: flex; align-items: center; gap: 10px; color: #fff !important; font-weight: 700; letter-spacing: .16em; font-size: 15px; text-decoration: none !important; flex-shrink: 0; }
.gp-brand img { width: 30px; height: 30px; }
.gp-menu { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.gp-menu > li { position: relative; }
.gp-menu a.gp-menu__link {
    display: flex; align-items: center; gap: 6px;
    color: #b9c7de !important; padding: 8px 12px; border-radius: 8px;
    font-weight: 500; font-size: 14.5px; white-space: nowrap; text-decoration: none !important;
}
.gp-menu a.gp-menu__link:hover { color: #fff !important; background: rgba(255, 255, 255, .06); }
.gp-menu .is-active > a.gp-menu__link, .gp-menu a.gp-menu__link.is-active { color: #fff !important; background: rgba(255, 255, 255, .12); }
.gp-menu .dropdown-toggle::after { border-top-color: currentColor; margin-left: 4px; vertical-align: 2px; }
.gp-topbar__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.gp-user { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none !important; padding: 4px 6px 4px 4px; border-radius: 99px; }
.gp-user:hover { background: rgba(255, 255, 255, .06); }
.gp-user__name { font-size: 14px; font-weight: 500; line-height: 1.2; }
.gp-user__name small { display: block; font-size: 11.5px; color: #9fb0cc; font-weight: 400; }
.gp-avatar {
    width: 32px; height: 32px; border-radius: 50%; background: var(--gp-primary); color: #fff;
    display: inline-grid; place-items: center; font-size: 12px; font-weight: 600;
    border: 2px solid rgba(255, 255, 255, .25); flex-shrink: 0; letter-spacing: 0;
}
.gp-burger { display: none; width: 38px; height: 38px; border: 0; border-radius: 8px; background: none; color: #fff; align-items: center; justify-content: center; cursor: pointer; }
.gp-burger:hover { background: rgba(255, 255, 255, .08); }
body.gp .gp-topbar .dropdown-menu {
    border: 1px solid var(--gp-line); border-radius: 10px; box-shadow: 0 12px 32px rgba(6, 20, 49, .14);
    padding: 6px; margin-top: 8px; min-width: 200px;
}
body.gp .gp-topbar .dropdown-item { border-radius: 6px; padding: 8px 12px; font-size: 14px; color: var(--gp-text); display: flex; gap: 10px; align-items: center; }
body.gp .gp-topbar .dropdown-item:hover { background: var(--gp-primary-50); color: var(--gp-primary); }
body.gp .gp-topbar .dropdown-item.is-active { color: var(--gp-primary); font-weight: 600; }
body.gp .gp-topbar .dropdown-divider { margin: 6px 0; border-color: var(--gp-line); }
.gp-header-message { max-width: var(--gp-max); margin: 12px auto 0; padding: 0 28px; }

/* ---------- Banda azul (cabecera de cliente / página) ---------- */
/* .card-banner es la cabecera que ya usan las páginas (componente header-cliente y dashboards) */
body.gp .card.card-banner {
    margin: -24px calc(50% - 50vw) 22px;
    border: 0; border-radius: 0; box-shadow: none;
    background: linear-gradient(120deg, var(--gp-primary) 0%, var(--gp-navy) 100%);
    position: relative; overflow: hidden;
}
body.gp .card.card-banner::before {
    content: ""; position: absolute; inset: 0;
    background: url("../img/gesplan/fondo-azul.jpg") center / cover;
    opacity: .35; mix-blend-mode: screen; pointer-events: none;
}
body.gp .card-banner .card-body {
    background: none; position: relative;
    width: 100%; max-width: var(--gp-max); margin: 0 auto; padding: 28px 28px 30px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
}
body.gp #content .card-banner .page-header {
    text-align: left;
    color: #fff; font-size: 28px; font-weight: 600; margin: 0; line-height: 1.2; order: 1; flex: 1 1 320px;
}
body.gp .card-banner #logo {
    order: 2; float: none !important; max-height: 72px; max-width: 220px; width: auto;
    background: #fff; border: 0; border-radius: 12px; padding: 8px 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
}
body.gp .card-banner .card-body > div { order: 3; flex-basis: 100%; margin-top: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
body.gp .card-banner .btn {
    background: rgba(255, 255, 255, .1) !important; color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .28) !important; margin: 0 !important;
}
body.gp .card-banner .btn:hover { background: rgba(255, 255, 255, .2) !important; }
body.gp .card-banner .btn.btn-proyecta-ter { background: #fff !important; color: var(--gp-primary) !important; border-color: #fff !important; }
body.gp .card-banner + h3:empty { display: none; }

/* Cabecera simple de página (pantallas sin banda) */
body.gp #content .main > .page-header,
body.gp #content h1.page-header { font-size: 26px; font-weight: 600; color: var(--gp-ink); margin: 4px 0 20px; }
body.gp .page-header small { color: var(--gp-muted); font-size: 15px; font-weight: 500; }
body.gp #content .card-banner .page-header small { color: #c9d8ee; }
body.gp .breadcrumb { background: none; padding: 0; margin: 20px 0 0; font-size: 13px; }
body.gp .breadcrumb-item a { color: var(--gp-muted); }

/* Títulos de sección (h4.title de las vistas actuales) */
body.gp h4.title {
    border-bottom: 0; padding: 0; margin: 28px 0 14px;
    font-size: 17px; font-weight: 600; color: var(--gp-ink);
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
body.gp h4.title::before, body.gp h4.title::after { display: none; }
body.gp h4.title .buttons { float: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
body.gp h4.title .buttons form { display: flex !important; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 !important; max-width: 100%; }
body.gp h4.title .buttons form select { max-width: 100%; }

/* ---------- Tarjetas y paneles ---------- */
body.gp .card, body.gp .panel {
    background: var(--gp-white);
    border: 1px solid #edf0f4;
    border-radius: var(--gp-radius);
    box-shadow: var(--gp-shadow);
}
body.gp .card { margin-bottom: 16px; }
body.gp .card-header, body.gp .panel-heading {
    background: none; border-bottom: 1px solid var(--gp-line);
    padding: 16px 20px; color: var(--gp-ink); font-weight: 600;
}
body.gp .panel-heading .panel-title { font-size: 16px; font-weight: 600; color: var(--gp-ink); }
body.gp .panel-inverse > .panel-heading { background: var(--gp-navy); border-radius: var(--gp-radius) var(--gp-radius) 0 0; }
body.gp .panel-inverse > .panel-heading .panel-title { color: #fff; }
body.gp .card-body, body.gp .panel-body { padding: 20px; }
body.gp .panel-footer, body.gp .card-footer { background: #fafbfd; border-top: 1px solid var(--gp-line); border-radius: 0 0 var(--gp-radius) var(--gp-radius); }
body.gp .card.card-plan .card-body { padding: 16px 18px; }
body.gp .card.card-icon { margin-top: 0; }
body.gp .card.card-icon .card-body { padding: 18px 18px 14px; }
body.gp .card-icon .icon { position: static; background: none; padding: 0; margin-bottom: 8px; }
body.gp .card-icon .icon svg { width: 22px !important; height: 22px; color: var(--gp-primary); }
body.gp .col-plan { padding: 0 8px !important; }

/* Dato clave/valor de las fichas */
body.gp .dato .key { font-size: 12.5px; font-weight: 500; color: var(--gp-muted); margin-bottom: 4px; letter-spacing: 0; }
body.gp .dato .value { font-size: 15px; font-weight: 600; color: var(--gp-ink); border-bottom: 0; padding-left: 0; }
body.gp p.key { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gp-slate); }

/* Tarjetas de cliente del dashboard (widget-cliente) */
body.gp .widget.widget-stats.widget-cliente {
    background: var(--gp-white) !important;
    border: 1px solid #edf0f4; border-radius: var(--gp-radius);
    box-shadow: var(--gp-shadow) !important;
    color: var(--gp-text); padding: 20px; transition: box-shadow .15s, transform .15s;
}
body.gp .widget.widget-stats.widget-cliente:hover { box-shadow: 0 10px 28px rgba(6, 20, 49, .10) !important; transform: translateY(-1px); }
body.gp .widget-cliente .stats-icon { display: none; }
body.gp .widget-cliente .stats-number { color: var(--gp-ink); font-size: 19px; font-weight: 600; line-height: 1.3; min-height: 50px; letter-spacing: 0; }
body.gp .widget-cliente .stats-title { color: var(--gp-muted); font-size: 13.5px; text-transform: none; letter-spacing: 0; }
body.gp .widget-cliente #logo { max-height: 64px; border: 0; padding: 0; background: none; }
body.gp .widget-cliente .stats-progress { background: var(--gp-line); height: 1px; margin: 16px 0 14px !important; }
body.gp .widget-cliente #acciones { row-gap: 8px; }
body.gp .widget-cliente #acciones > div { flex: 1 1 0; min-width: 110px; max-width: none; padding: 0 4px; }
body.gp .widget-cliente #acciones .btn { width: 100%; justify-content: center; white-space: nowrap; font-size: 13px; padding: 8px 10px; }

/* ---------- Botones ---------- */
body.gp .btn {
    font-family: var(--gp-font); font-weight: 600; font-size: 14px;
    border-radius: var(--gp-radius-sm); padding: 8px 15px;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    box-shadow: none !important; line-height: 1.3;
}
body.gp .btn svg { margin: 0 !important; }
body.gp .btn-sm { font-size: 13px; padding: 6px 12px; }
body.gp .btn-xs { font-size: 12px; padding: 4px 9px; border-radius: 6px; }
body.gp .btn-lg { font-size: 15px; padding: 11px 18px; }
body.gp .btn-block { display: flex; width: 100%; }
body.gp .btn-primary, body.gp .btn-proyecta { background: var(--gp-primary); border-color: var(--gp-primary); color: #fff; }
body.gp .btn-primary:hover, body.gp .btn-proyecta:hover,
body.gp .btn-primary:focus, body.gp .btn-proyecta:focus { background: var(--gp-primary-700); border-color: var(--gp-primary-700); color: #fff; }
body.gp .btn-proyecta-sec, body.gp .btn-secondary, body.gp .btn-default, body.gp .btn-white {
    background: #fff; border: 1px solid var(--gp-line-strong); color: var(--gp-ink);
}
body.gp .btn-proyecta-sec:hover, body.gp .btn-secondary:hover, body.gp .btn-default:hover, body.gp .btn-white:hover { background: var(--gp-bg); color: var(--gp-ink); border-color: #c5cbd4; }
body.gp .btn-proyecta-ter, body.gp .btn-info { background: var(--gp-primary-50); border-color: var(--gp-primary-50); color: var(--gp-primary); }
body.gp .btn-proyecta-ter:hover, body.gp .btn-info:hover { background: var(--gp-primary-100); border-color: var(--gp-primary-100); color: var(--gp-primary-700); }
body.gp .btn-success { background: var(--gp-ok); border-color: var(--gp-ok); color: #fff; }
body.gp .btn-warning { background: var(--gp-warn-soft); border-color: var(--gp-warn-soft); color: #9a6200; }
body.gp .btn-warning:hover { background: #fbe2b6; border-color: #fbe2b6; color: #7d4f00; }
body.gp .btn-danger { background: #fff; border: 1px solid #f0c4c4; color: var(--gp-risk); }
body.gp .btn-danger:hover { background: var(--gp-risk-soft); color: #b62f2f; border-color: #eab0b0; }
body.gp .btn-outline-primary { border: 1px solid var(--gp-line-strong); color: var(--gp-ink); background: #fff; }
body.gp .btn-outline-primary:hover { background: var(--gp-bg); color: var(--gp-ink); border-color: #c5cbd4; }
body.gp .btn-link { color: var(--gp-primary); font-weight: 500; }

/* ---------- Formularios ---------- */
body.gp label, body.gp .col-form-label { font-weight: 600; color: var(--gp-text-2); font-size: 13.5px; }
body.gp .form-control, body.gp .custom-select {
    font-family: var(--gp-font); font-size: 14.5px; color: var(--gp-text);
    border: 1px solid var(--gp-line-strong); border-radius: var(--gp-radius-sm);
    min-height: 40px; padding: 8px 12px; background-color: #fff; box-shadow: none;
}
body.gp textarea.form-control { min-height: 90px; }
body.gp .form-control:focus, body.gp .custom-select:focus { border-color: var(--gp-primary); box-shadow: 0 0 0 3px var(--gp-primary-100); }
body.gp .form-control[readonly], body.gp .form-control:disabled { background: #f6f7f9; color: var(--gp-text-2); }
body.gp .form-group { margin-bottom: 18px; }
body.gp .input-group-text { background: #f6f7f9; border-color: var(--gp-line-strong); color: var(--gp-text-2); }
body.gp .select2-container--default .select2-selection--single,
body.gp .select2-container--default .select2-selection--multiple { border: 1px solid var(--gp-line-strong); border-radius: var(--gp-radius-sm); min-height: 40px; }
body.gp .select2-container--default.select2-container--focus .select2-selection--multiple,
body.gp .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--gp-primary); }
body.gp .select2-container--default .select2-selection--multiple .select2-selection__choice { background: var(--gp-primary-50); border: 0; color: var(--gp-primary); border-radius: 6px; font-weight: 500; }
body.gp .parsley-error { border-color: var(--gp-risk) !important; background: #fff !important; }
body.gp .parsley-errors-list { color: var(--gp-risk); font-size: 12.5px; }
body.gp label.requerido::after { color: var(--gp-risk); }
body.gp .switcher input:checked + label::before { background: var(--gp-primary); border-color: var(--gp-primary); box-shadow: none; }

/* ---------- Tablas ---------- */
body.gp .table { color: var(--gp-text); }
body.gp .table thead th, body.gp .table > thead > tr > th {
    font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--gp-muted); border-bottom: 1px solid var(--gp-line); border-top: 0; padding: 12px 16px; background: none;
}
body.gp .table td { border-top: 1px solid var(--gp-line); padding: 12px 16px; vertical-align: middle; }
body.gp .table-striped tbody tr:nth-of-type(odd) { background: #fafbfd; }
body.gp .table-hover tbody tr:hover { background: #f3f6fb; }
body.gp .dataTables_wrapper .dataTables_filter input, body.gp .dataTables_wrapper .dataTables_length select { border: 1px solid var(--gp-line-strong); border-radius: var(--gp-radius-sm); }
body.gp .page-item.active .page-link { background: var(--gp-primary); border-color: var(--gp-primary); }
body.gp .page-link { color: var(--gp-primary); border-radius: 6px; margin: 0 2px; }

/* Cabecera de tabla hecha con filas (.th de las listas de planes) */
body.gp .row.th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gp-muted); margin: 0 0 8px; padding: 0 0 8px; }

/* ---------- Progreso ---------- */
body.gp .progress { height: 16px; border-radius: 99px; background: #e8ebf0; box-shadow: none; overflow: hidden; }
body.gp .progress .progress-bar {
    background: var(--gp-primary) !important; background-image: none !important; animation: none; border-radius: 99px;
    font-size: 10.5px; font-weight: 600; line-height: 16px; color: #fff; white-space: nowrap; overflow: visible; min-width: 0;
}
body.gp .progress.progress-striped .progress-bar { background-image: none !important; }

/* ---------- Pestañas ---------- */
body.gp .nav-tabs, body.gp .nav-tabs.nav-tabs-inverse {
    background: none; border-bottom: 1px solid var(--gp-line); padding: 0 12px; border-radius: 0;
}
body.gp .nav-tabs .nav-link, body.gp .nav-tabs.nav-tabs-inverse .nav-link {
    color: var(--gp-muted); font-weight: 600; font-size: 13.5px; border: 0; border-bottom: 2px solid transparent;
    background: none; border-radius: 0; padding: 12px 14px;
}
body.gp .nav-tabs .nav-link:hover { color: var(--gp-ink); }
body.gp .nav-tabs .nav-link.active, body.gp .nav-tabs.nav-tabs-inverse .nav-link.active, body.gp .nav-tabs .nav-item.show .nav-link {
    color: var(--gp-primary); background: none; border-bottom-color: var(--gp-primary);
}
body.gp .panel-with-tabs .panel-heading { padding: 0; background: none; }
body.gp .tab-overflow { overflow-x: auto; }
body.gp .tab-overflow .nav-tabs { flex-wrap: nowrap; white-space: nowrap; }
body.gp .tab-overflow .prev-button, body.gp .tab-overflow .next-button { background: #fff; }

/* ---------- Listas de actividades/planes (ajustes de base; rediseño completo en paso 2) ---------- */
body.gp .panel-actividad { border-radius: 0; border: 0; border-bottom: 1px solid var(--gp-line); box-shadow: none; margin: 0; }
body.gp .panel-actividad:first-of-type { border-top-left-radius: var(--gp-radius); border-top-right-radius: var(--gp-radius); }
body.gp .panel-actividad .panel-body { padding: 0 10px; }
body.gp .panel-actividad .panel-body > .row:first-child { padding-top: 8px; padding-bottom: 6px; border-radius: 8px; }
body.gp .panel-plan { border-radius: var(--gp-radius-sm) 0 0 var(--gp-radius-sm); border-left-width: 6px; box-shadow: none; margin-bottom: 6px; }
body.gp .panel-plan:hover { background: #f7f9fc; }

/* ---------- Varios ---------- */
body.gp .badge { font-weight: 600; border-radius: 6px; padding: 4px 8px; }
body.gp .alert { border-radius: var(--gp-radius-sm); border: 0; }
body.gp .modal-content { border: 0; border-radius: var(--gp-radius); box-shadow: 0 24px 60px rgba(6, 20, 49, .25); }
body.gp .modal-header { border-bottom: 1px solid var(--gp-line); padding: 18px 22px; }
body.gp .modal-header .modal-title { font-weight: 600; color: var(--gp-ink); }
body.gp .modal-footer { border-top: 1px solid var(--gp-line); }
body.gp .modal-header .close { color: var(--gp-ink); opacity: .6; }
body.gp hr { border-color: var(--gp-line); }
body.gp .btn-scroll-to-top { background: var(--gp-primary); border-color: var(--gp-primary); }

/* Notificaciones (gritter) */
body.gp .gritter-item-wrapper { border-radius: 12px; overflow: hidden; box-shadow: 0 12px 32px rgba(6, 20, 49, .2); }
body.gp .gritter-success { background-color: var(--gp-ok) !important; }
body.gp .gritter-danger { background-color: var(--gp-risk) !important; }
body.gp .gritter-warning { background-color: var(--gp-warn) !important; }
body.gp .gritter-info { background-color: var(--gp-primary) !important; }
body.gp .gritter-title { font-family: var(--gp-font); font-weight: 600; text-shadow: none; }
body.gp .gritter-item p { font-family: var(--gp-font); }

/* Pie */
body.gp #footer.footer, body.gp .gp-footer {
    margin: 0; padding: 16px 28px; border-top: 1px solid var(--gp-line); background: var(--gp-white);
    color: var(--gp-muted); font-size: 12.5px; line-height: 1.4;
}
.gp-footer__in { max-width: var(--gp-max); margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .gp-menu a.gp-menu__link { padding: 8px 9px; }
    .gp-user__name { display: none; }
}
@media (max-width: 991.98px) {
    .gp-burger { display: inline-flex; }
    .gp-menu {
        display: none; position: absolute; top: var(--gp-topbar-h); left: 0; right: 0;
        background: var(--gp-navy); flex-direction: column; align-items: stretch;
        padding: 8px 16px 16px; box-shadow: 0 12px 24px rgba(0, 0, 0, .2); max-height: calc(100vh - var(--gp-topbar-h)); overflow-y: auto;
    }
    .gp-topbar.is-open .gp-menu { display: flex; }
    .gp-menu a.gp-menu__link { padding: 12px 10px; }
    body.gp .gp-menu .dropdown-menu { position: static !important; transform: none !important; float: none; background: rgba(255, 255, 255, .04); border: 0; box-shadow: none; margin: 0 0 6px 12px; }
    body.gp .gp-menu .dropdown-item { color: #c9d4e6; }
    body.gp .gp-menu .dropdown-item:hover, body.gp .gp-menu .dropdown-item.is-active { background: rgba(255, 255, 255, .08); color: #fff; }
}
@media (max-width: 767.98px) {
    .gp-topbar__in { padding: 0 16px; gap: 12px; }
    .gp-brand span { display: none; }
    body.gp #content.content { padding: 0 16px 32px !important; }
    body.gp .card-banner .card-body { padding: 22px 16px; }
    body.gp .card-banner .page-header { font-size: 22px; }
    body.gp .card-banner #logo { max-height: 52px; max-width: 160px; }
    body.gp h4.title { font-size: 16px; }
    body.gp .gp-footer, body.gp #footer.footer { padding: 14px 16px; }
    .gp-header-message { padding: 0 16px; }
    /* Las filas de Bootstrap se apilan: evitar que los bloques se peguen */
    body.gp .col-plan { margin-bottom: 12px; }
}

/* =========================================================================
   Pantallas de acceso (login, recuperar y restablecer contraseña)
   ========================================================================= */
body.gp-auth {
    margin: 0; min-height: 100vh; font-family: var(--gp-font); color: var(--gp-text);
    background: var(--gp-navy) url("../img/gesplan/fondo-azul.jpg") center / cover fixed;
    -webkit-font-smoothing: antialiased;
}
.gp-auth__wrap {
    min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) 420px;
    gap: 56px; align-items: center; max-width: 1080px; margin: 0 auto; padding: 32px 28px;
}
.gp-auth__intro { color: #fff; }
.gp-auth__intro img { width: 128px; margin-bottom: 36px; }
.gp-auth__intro .gp-label { color: #a9c4e4; }
.gp-auth__intro h2 { color: #fff; font-size: 38px; line-height: 1.15; font-weight: 600; margin: 10px 0 14px; }
.gp-auth__intro p { color: #d3e0f2; font-size: 16px; max-width: 440px; margin: 0 0 28px; }
.gp-auth__pills { display: flex; gap: 10px; flex-wrap: wrap; }
.gp-auth__pills span { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; padding: 7px 12px; border-radius: 99px; font-size: 13px; }
.gp-auth__pills i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.gp-auth__card { background: #fff; border-radius: 18px; padding: 36px 34px 30px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.gp-auth__card h1 { font-size: 22px; font-weight: 600; color: var(--gp-ink); margin: 6px 0 8px; }
.gp-auth__card .gp-intro { color: var(--gp-muted); font-size: 14.5px; margin: 0 0 22px; }
.gp-field { margin-bottom: 14px; }
.gp-field label { display: block; font-size: 13px; font-weight: 600; color: var(--gp-text-2); margin-bottom: 6px; }
.gp-input { width: 100%; font: inherit; font-size: 15px; padding: 11px 13px; border: 1px solid #d7dbe2; border-radius: 9px; color: var(--gp-text); background: #fff; }
.gp-input:focus { outline: none; border-color: var(--gp-primary); box-shadow: 0 0 0 3px var(--gp-primary-100); }
.gp-row-sb { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; margin: 4px 0 22px; color: var(--gp-text-2); }
.gp-row-sb label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; }
.gp-row-sb a, .gp-auth__card a { color: var(--gp-primary); }
.gp-btn-primary { width: 100%; display: flex; justify-content: center; font: inherit; font-weight: 600; font-size: 15px; padding: 12px; border: 0; border-radius: 9px; background: var(--gp-primary); color: #fff; cursor: pointer; }
.gp-btn-primary:hover { background: var(--gp-primary-700); }
.gp-auth__back { display: block; text-align: center; margin-top: 18px; font-size: 14px; }
.gp-alert { border-radius: 9px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 16px; }
.gp-alert--error { background: var(--gp-risk-soft); color: #a52a2a; }
.gp-alert--ok { background: var(--gp-ok-soft); color: #17703f; }
.gp-alert ul { margin: 0; padding-left: 18px; }
.gp-auth__foot { text-align: center; color: var(--gp-muted); font-size: 12px; margin-top: 22px; }
@media (max-width: 900px) {
    .gp-auth__wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; align-content: center; }
    .gp-auth__intro img { width: 100px; margin-bottom: 14px; }
    .gp-auth__intro h2 { font-size: 26px; }
    .gp-auth__intro p, .gp-auth__pills { display: none; }
}
@media (max-width: 480px) {
    .gp-auth__wrap { padding: 20px 16px; }
    .gp-auth__card { padding: 26px 20px 22px; }
}

/* =========================================================================
   Panel de seguimiento (dashboard visual · M02 paso 2)
   ========================================================================= */
body.gp .gp-muted { color: var(--gp-muted); font-size: 13px; }
body.gp .gp-mt { margin-top: 28px; }
body.gp .gp-label--light { color: #a9c4e4; }

/* Banda con saludo y tarjetas que se solapan */
body.gp .card.card-banner.gp-hero--lift .card-body { padding-bottom: 96px; align-items: flex-end; }
body.gp .card-banner .card-body > div.gp-hero__text { display: block; flex: 1 1 360px; order: 1; margin: 0 !important; }
body.gp .gp-hero__text .page-header { margin: 6px 0 0 !important; }
body.gp .gp-hero__sub { color: #d3e0f2; margin: 6px 0 0; font-size: 15px; }
body.gp .card-banner .card-body > .gp-hero__filter,
body.gp .card-banner .card-body > div.gp-hero__client { order: 2; flex: 0 1 auto; display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; margin: 0 !important; }
body.gp .gp-hero__client #logo { order: 0; }
body.gp .gp-select-ghost {
    font: inherit; font-size: 14px; font-weight: 600; color: #fff; cursor: pointer;
    background: rgba(255, 255, 255, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--gp-radius-sm);
    padding: 9px 36px 9px 14px; appearance: none; max-width: 280px;
}
body.gp .gp-select-ghost option { color: var(--gp-text); }
body.gp .gp-lift { margin-top: -96px; position: relative; }

body.gp .gp-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 28px 0 12px; flex-wrap: wrap; }
body.gp .gp-section-head h2 { font-size: 17px; font-weight: 600; margin: 0; }
body.gp .gp-section-head--in { margin-top: 0; }
body.gp .gp-grid { display: grid; gap: 18px; }
body.gp .gp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.gp .gp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.gp .gp-grid--main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
body.gp .gp-grid .card { margin-bottom: 0; }
body.gp .gp-card-pad { padding: 18px 22px; }

/* Salud global */
body.gp .gp-health { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; padding: 22px; margin-bottom: 0; }
body.gp .gp-health__gauge { display: flex; flex-direction: column; align-items: center; gap: 8px; }
body.gp .gp-gauge { position: relative; width: 220px; height: 128px; }
body.gp .gp-gauge svg { display: block; }
body.gp .gp-gauge__val { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; }
body.gp .gp-gauge__val b { font-size: 38px; color: var(--gp-ink); line-height: 1; display: block; font-weight: 600; }
body.gp .gp-gauge__val small { color: var(--gp-muted); font-size: 13px; }
body.gp .gp-lights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body.gp .gp-light { border-radius: 12px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
body.gp .gp-light__dot { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
body.gp .gp-light b { font-size: 30px; line-height: 1; display: block; color: var(--gp-ink); font-weight: 600; }
body.gp .gp-light span { font-size: 13.5px; color: var(--gp-text-2); }
body.gp .gp-light--ok { background: var(--gp-ok-soft); }
body.gp .gp-light--ok .gp-light__dot { background: radial-gradient(circle at 35% 30%, #6fd497, var(--gp-ok)); box-shadow: 0 0 18px rgba(34, 160, 90, .45); }
body.gp .gp-light--warn { background: var(--gp-warn-soft); }
body.gp .gp-light--warn .gp-light__dot { background: radial-gradient(circle at 35% 30%, #ffd07a, var(--gp-warn)); box-shadow: 0 0 18px rgba(227, 154, 31, .45); }
body.gp .gp-light--risk { background: var(--gp-risk-soft); }
body.gp .gp-light--risk .gp-light__dot { background: radial-gradient(circle at 35% 30%, #ff8d8d, var(--gp-risk)); box-shadow: 0 0 18px rgba(221, 63, 63, .45); }
body.gp .gp-duo { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
body.gp .gp-duo__row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--gp-text-2); }
body.gp .gp-duo__t { height: 8px; background: #edf0f4; border-radius: 99px; overflow: hidden; }
body.gp .gp-duo__t i { display: block; height: 100%; border-radius: 99px; }
body.gp .gp-duo__row b { color: var(--gp-ink); text-align: right; }
body.gp .gp-note { font-size: 13px; margin: 12px 0 0; padding: 7px 12px; border-radius: 8px; font-weight: 500; }
body.gp .gp-note--ok { background: var(--gp-ok-soft); color: #17703f; }
body.gp .gp-note--risk { background: var(--gp-risk-soft); color: #a52a2a; }

/* Indicadores */
body.gp a.gp-kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
body.gp a.gp-kpi:hover, body.gp a.gp-plan:hover { box-shadow: 0 10px 28px rgba(6, 20, 49, .10); transform: translateY(-1px); }
body.gp .gp-kpi__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
body.gp .gp-kpi__name { font-size: 14px; font-weight: 600; color: var(--gp-ink); line-height: 1.3; }
body.gp .gp-kpi__plan { font-size: 12px; color: var(--gp-muted); margin-top: 2px; line-height: 1.3; }
body.gp .gp-kpi__mid { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
body.gp .gp-kpi__val { display: flex; align-items: baseline; gap: 6px; }
body.gp .gp-kpi__val b { font-size: 28px; line-height: 1; color: var(--gp-ink); font-weight: 600; }
body.gp .gp-kpi__val span { color: var(--gp-muted); font-size: 14px; }
body.gp .gp-years { display: flex; gap: 4px; height: 42px; align-items: flex-end; }
body.gp .gp-years span { width: 14px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
body.gp .gp-years i { width: 100%; background: var(--gp-primary-100); border-radius: 3px 3px 0 0; display: block; }
body.gp .gp-years span.is-current i { background: var(--gp-primary); }
body.gp .gp-years small { position: absolute; bottom: -15px; font-size: 9.5px; color: var(--gp-muted); }
body.gp .gp-bullet { position: relative; height: 10px; background: #edf0f4; border-radius: 99px; margin-top: 8px; }
body.gp .gp-bullet__f { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
body.gp .gp-bullet__t { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--gp-ink); border-radius: 2px; }
body.gp .gp-bullet-legend { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--gp-muted); margin-top: 6px; }

/* Estado (pastilla) */
body.gp .gp-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
body.gp .gp-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
body.gp .gp-pill--ok { color: var(--gp-ok); background: var(--gp-ok-soft); }
body.gp .gp-pill--warn { color: #b9760c; background: var(--gp-warn-soft); }
body.gp .gp-pill--risk { color: var(--gp-risk); background: var(--gp-risk-soft); }

/* Tarjetas de plan */
body.gp a.gp-plan { padding: 18px 20px; display: grid; grid-template-columns: 26px minmax(0, 1fr) 84px; gap: 14px; align-items: center; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
body.gp .gp-plan__name { font-weight: 600; color: var(--gp-ink); line-height: 1.3; }
body.gp .gp-plan__meta { font-size: 12.5px; color: var(--gp-muted); margin-top: 2px; }
body.gp .gp-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
body.gp .gp-tag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: #eef0f3; color: var(--gp-text-2); white-space: nowrap; }
body.gp .gp-tag--risk { background: var(--gp-risk-soft); color: var(--gp-risk); }
body.gp .gp-tag--warn { background: var(--gp-warn-soft); color: #b9760c; }
body.gp .gp-tl { display: flex; flex-direction: column; gap: 4px; background: var(--gp-ink); padding: 5px; border-radius: 99px; width: 26px; align-items: center; }
body.gp .gp-tl i { width: 14px; height: 14px; border-radius: 50%; background: #26365a; display: block; }
body.gp .gp-tl i.r.on { background: #ff5a5a; box-shadow: 0 0 8px #ff5a5a; }
body.gp .gp-tl i.a.on { background: #ffb53b; box-shadow: 0 0 8px #ffb53b; }
body.gp .gp-tl i.g.on { background: #3fd07f; box-shadow: 0 0 8px #3fd07f; }
body.gp .gp-tl--big { width: 44px; padding: 7px; gap: 7px; }
body.gp .gp-tl--big i { width: 28px; height: 28px; }
body.gp .gp-donut { position: relative; flex-shrink: 0; }
body.gp .gp-donut svg { transform: rotate(-90deg); display: block; width: 100%; height: 100%; }
body.gp .gp-donut b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; color: var(--gp-ink); font-weight: 600; }

/* Pendientes */
body.gp .gp-list-label { margin: 6px 0 2px; }
body.gp .gp-list-label ~ .gp-list-label { margin-top: 18px; }
body.gp a.gp-todo { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--gp-line); color: inherit; text-decoration: none; }
body.gp a.gp-todo:hover .gp-todo__t { color: var(--gp-primary); }
body.gp .gp-todo__dot { width: 10px; height: 10px; border-radius: 50%; }
body.gp .gp-todo__t { font-weight: 600; font-size: 14px; color: var(--gp-ink); line-height: 1.3; }
body.gp .gp-todo__s { font-size: 12px; color: var(--gp-muted); line-height: 1.35; margin-top: 2px; }
body.gp .gp-todo__d { font-size: 12.5px; font-weight: 600; white-space: nowrap; text-align: right; color: var(--gp-text-2); }

/* Calendario por semanas */
body.gp .gp-weeks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
body.gp .gp-week { border-radius: 10px; background: #f6f8fb; padding: 12px; min-height: 140px; }
body.gp .gp-week.is-current { background: var(--gp-primary-50); outline: 2px solid var(--gp-primary); }
body.gp .gp-week__h { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--gp-muted); margin-bottom: 10px; }
body.gp .gp-week__h b { color: var(--gp-ink); font-size: 13.5px; }
body.gp a.gp-due { display: block; font-size: 12.5px; line-height: 1.3; padding: 7px 9px; border-radius: 6px; margin-bottom: 6px; background: #fff; border-left: 3px solid var(--c); color: var(--gp-ink); font-weight: 500; text-decoration: none; }
body.gp a.gp-due small { display: block; color: var(--gp-muted); font-size: 11px; margin-top: 2px; font-weight: 400; }
body.gp a.gp-due:hover { box-shadow: 0 2px 8px rgba(6, 20, 49, .08); }
body.gp .gp-week__empty, body.gp .gp-week__more { font-size: 12.5px; color: var(--gp-muted); margin: 0; }

@media (max-width: 1200px) {
    body.gp .gp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.gp .gp-grid--main { grid-template-columns: minmax(0, 1fr); }
    body.gp .gp-weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    body.gp .gp-health { grid-template-columns: minmax(0, 1fr); justify-items: center; }
    body.gp .gp-health > div:last-child { width: 100%; }
}
@media (max-width: 640px) {
    body.gp .card.card-banner.gp-hero--lift .card-body { padding-bottom: 60px; }
    body.gp .gp-lift { margin-top: -40px; }
    body.gp .gp-grid--4, body.gp .gp-grid--2, body.gp .gp-weeks, body.gp .gp-lights { grid-template-columns: minmax(0, 1fr); }
    body.gp .gp-hero__filter, body.gp .gp-hero__filter select { width: 100%; max-width: none; }
    body.gp .gp-card-pad { padding: 16px; }
}

/* =========================================================================
   Ficha de plan visual (M02 paso 2b)
   ========================================================================= */
body.gp .gp-mt-s { margin-top: 18px; }
body.gp .gp-mt-xs { margin-top: 14px !important; }
body.gp .gp-text-risk { color: var(--gp-risk) !important; }
body.gp .gp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.gp .gp-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
body.gp .gp-select-sm { width: auto; min-height: 34px; padding: 5px 30px 5px 10px; font-size: 13px; }

/* Cabecera */
body.gp .card-banner .card-body.gp-plan-hero { flex-wrap: nowrap; align-items: flex-start; gap: 22px; }
body.gp .card-banner .card-body > div.gp-plan-hero__light { order: 0; flex: 0 0 auto; position: relative; display: block; margin: 0 !important; }
body.gp .card-banner .card-body > div.gp-plan-hero__text { order: 1; flex: 1 1 auto; display: block; margin: 0 !important; min-width: 0; }
body.gp .card-banner .card-body > div.gp-plan-hero__actions { order: 2; flex: 0 0 auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin: 0 !important; }
body.gp #content .gp-plan-hero .page-header { font-size: 26px; margin: 6px 0 10px !important; }
body.gp .gp-plan-hero__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; color: #d3e0f2; font-size: 14px; }
body.gp .gp-plan-hero__meta b { color: #fff; font-weight: 600; }
body.gp a.gp-hero-link { color: #d3e0f2; text-decoration: underline; text-underline-offset: 3px; }
body.gp a.gp-hero-link:hover { color: #fff; }
body.gp .gp-hero-state--ok { color: #8fe3b0; }
body.gp .gp-hero-state--warn { color: #ffd27a; }
body.gp .gp-hero-state--risk { color: #ff9c9c; }
body.gp .gp-light-btn { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 99px; }
body.gp .gp-light-btn:focus-visible { outline: 3px solid #a9c4e4; outline-offset: 3px; }
body.gp .gp-light-picker {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; background: #fff; border-radius: 12px;
    padding: 10px; min-width: 200px; box-shadow: 0 16px 40px rgba(6, 20, 49, .25);
}
body.gp .gp-light-picker .gp-label { padding: 4px 6px 8px; }
body.gp .gp-light-option { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font: inherit; font-size: 14px; color: var(--gp-ink); cursor: pointer; text-align: left; }
body.gp .gp-light-option:hover { background: var(--gp-primary-50); }
body.gp .gp-light-option.is-current { font-weight: 600; background: #f3f5f8; }
body.gp .gp-light-option__dot { width: 16px; height: 16px; border-radius: 50%; }
body.gp .gp-light-option__dot--ok { background: var(--gp-ok); }
body.gp .gp-light-option__dot--warn { background: var(--gp-warn); }
body.gp .gp-light-option__dot--risk { background: var(--gp-risk); }

/* Cifras */
body.gp .gp-metric { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
body.gp .gp-metric__l { font-size: 13px; color: var(--gp-muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
body.gp .gp-metric__v { font-size: 30px; font-weight: 600; color: var(--gp-ink); line-height: 1.15; }
body.gp .gp-metric__v small { font-size: 14px; color: var(--gp-muted); font-weight: 500; }
body.gp .gp-metric__v--empty { font-size: 20px; color: var(--gp-text-2); }
body.gp .gp-metric__row { display: flex; align-items: center; gap: 14px; }
body.gp .gp-metric__row .gp-donut b { font-size: 16px; }
body.gp .gp-metric .gp-note { margin: 0; }
body.gp .gp-duo--compact { flex: 1; margin: 0; min-width: 0; }
body.gp .gp-duo--compact .gp-duo__row { grid-template-columns: 54px minmax(0, 1fr) 42px; }
body.gp .gp-duo__t--lg { height: 10px; }
body.gp .gp-stack { display: flex; height: 12px; border-radius: 99px; overflow: hidden; gap: 2px; }
body.gp .gp-stack i { display: block; }
body.gp .gp-legend { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--gp-text-2); align-items: center; }
body.gp .gp-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
body.gp .gp-legend--inline { gap: 8px 16px; }
body.gp .gp-legend--mb { margin: 8px 0 20px; }
body.gp .gp-inline-form { display: flex; gap: 8px; margin-top: 4px; }
body.gp .gp-inline-form .form-control { min-height: 34px; padding: 5px 10px; }

/* Indicadores */
body.gp .gp-ind { border: 1px solid var(--gp-line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
body.gp .gp-ind__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
body.gp .gp-ind__name { font-weight: 600; color: var(--gp-ink); line-height: 1.3; font-size: 14px; }
body.gp .gp-ind__chart { display: flex; gap: 10px; height: 96px; align-items: stretch; padding-top: 4px; border-bottom: 1px solid var(--gp-line); }
body.gp .gp-ind__col { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
body.gp .gp-ind__bars { flex: 1; width: 100%; display: flex; justify-content: center; align-items: flex-end; gap: 3px; }
body.gp .gp-ind__bars i { width: 40%; max-width: 18px; border-radius: 3px 3px 0 0; min-height: 2px; display: block; }
body.gp .gp-ind__bars i.obj { background: #c9d6e8; }
body.gp .gp-ind__bars i.val { background: var(--gp-primary); }
body.gp .gp-ind__col small { font-size: 11px; color: var(--gp-muted); margin: 4px 0 -20px; }
body.gp .gp-ind__col.is-current small { color: var(--gp-ink); font-weight: 700; }
body.gp .gp-ind { padding-bottom: 26px; }

/* Mapa de peso */
body.gp .gp-wmap { display: flex; gap: 3px; height: 50px; border-radius: 10px; overflow: hidden; }
body.gp .gp-wmap a { display: flex; align-items: flex-end; padding: 6px 7px; color: #fff; font-size: 12px; font-weight: 600; position: relative; min-width: 4px; overflow: hidden; white-space: nowrap; text-decoration: none; }
body.gp .gp-wmap a:hover { filter: brightness(1.08); }
body.gp .gp-wmap .fill { position: absolute; top: 0; bottom: 0; left: 0; background: rgba(255, 255, 255, .28); }
body.gp .gp-wmap .txt { position: relative; }

/* Cronograma de actividades */
body.gp .gp-gantt { border-top: 1px solid var(--gp-line); }
body.gp .gp-gantt__head, body.gp .gp-act__row { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 16px; align-items: center; }
body.gp .gp-gantt__head { font-size: 12px; color: var(--gp-muted); padding: 10px 0; border-bottom: 1px solid var(--gp-line); }
body.gp .gp-gantt__scale { position: relative; height: 16px; }
body.gp .gp-gantt__scale span { position: absolute; top: 0; white-space: nowrap; font-size: 11px; }
body.gp .gp-act { border-bottom: 1px solid var(--gp-line); }
body.gp .gp-act__row { padding: 12px 6px 12px 0; cursor: pointer; border-radius: 8px; }
body.gp .gp-act__row:hover { background: #f7f9fc; }
body.gp .gp-act__row:focus-visible { outline: 2px solid var(--gp-primary); outline-offset: -2px; }
body.gp .gp-act__name { display: flex; gap: 10px; align-items: flex-start; min-width: 0; padding-left: 6px; }
body.gp .gp-act__name b { display: block; font-size: 14px; color: var(--gp-ink); font-weight: 600; line-height: 1.3; }
body.gp .gp-act__name small { display: block; font-size: 12px; color: var(--gp-muted); margin-top: 2px; }
body.gp .gp-act__pill { margin-top: 6px; font-size: 11.5px; padding: 2px 9px; }
body.gp .gp-act__chev { color: var(--gp-muted); margin-top: 3px; transition: transform .2s; width: 12px !important; flex-shrink: 0; }
body.gp .gp-act.is-open .gp-act__chev { transform: rotate(90deg); }
body.gp .gp-pill--plan { color: #4a6590; background: #e7ecf4; }
body.gp .gp-pill--off { color: var(--gp-muted); background: #eef0f3; }
body.gp .gp-gantt__track { position: relative; height: 26px; }
body.gp .gp-gantt__grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--gp-line); }
body.gp .gp-gantt__today { position: absolute; top: -8px; bottom: -8px; width: 2px; background: var(--gp-ink); z-index: 2; }
body.gp .gp-gantt__today::after { content: "Hoy"; position: absolute; top: -14px; left: -9px; font-size: 10px; font-weight: 700; color: var(--gp-ink); }
body.gp .gp-gantt__today.no-label::after { display: none; }
body.gp .gp-gantt__bar { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; background: var(--c-soft); overflow: hidden; display: flex; align-items: center; z-index: 1; }
body.gp .gp-gantt__bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c); }
body.gp .gp-gantt__bar span { position: relative; font-size: 11px; font-weight: 700; color: #fff; padding-left: 7px; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); white-space: nowrap; }

/* Detalle de actividad */
body.gp .gp-act__detail { padding: 6px 12px 18px 28px; }
body.gp .gp-kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; margin: 0 0 6px; padding: 12px 14px; background: #f7f9fc; border-radius: 10px; }
body.gp .gp-kv dt { font-size: 12px; color: var(--gp-muted); font-weight: 500; }
body.gp .gp-kv dd { margin: 2px 0 0; font-weight: 600; color: var(--gp-ink); font-size: 14px; }
body.gp .gp-kv dd.is-changed { color: var(--gp-warn); }
body.gp .gp-deliverable { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--gp-line); border-radius: 10px; }
body.gp .gp-deliverable__txt { flex: 1; min-width: 0; }
body.gp .gp-deliverable__txt b { display: block; color: var(--gp-ink); font-weight: 600; font-size: 14px; }
body.gp .gp-deliverable__txt small { color: var(--gp-muted); font-size: 12.5px; }
body.gp .gp-file-ic { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: #eef0f3; color: var(--gp-muted); flex-shrink: 0; }
body.gp .gp-file-ic.is-done { background: var(--gp-ok-soft); color: var(--gp-ok); }
body.gp .gp-tasks { border: 1px solid var(--gp-line); border-radius: 10px; }
body.gp .gp-task { display: grid; grid-template-columns: minmax(0, 1fr) 170px minmax(0, 200px); gap: 14px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--gp-line); }
body.gp .gp-task:first-child { border-top: 0; }
body.gp .gp-task__name { font-size: 14px; font-weight: 500; color: var(--gp-ink); min-width: 0; }
body.gp .gp-task__name small { display: block; font-size: 12px; color: var(--gp-muted); font-weight: 400; }
body.gp .gp-task__avance { padding: 0; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--gp-primary); }
body.gp .gp-task__bar { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
body.gp .gp-task__bar b { color: var(--gp-ink); min-width: 38px; text-align: right; }
body.gp .gp-progress-thin { flex: 1; height: 6px; border-radius: 99px; background: #e8ebf0; overflow: hidden; }
body.gp .gp-progress-thin i { display: block; height: 100%; background: var(--gp-primary); border-radius: 99px; }
body.gp .gp-progress-thin i.is-done { background: var(--gp-ok); }
body.gp .gp-task__del { text-align: right; min-width: 0; }
body.gp .gp-chip-ok, body.gp .gp-chip-pend { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gp .gp-chip-ok { background: var(--gp-ok-soft); color: #17703f; }
body.gp a.gp-chip-ok:hover { text-decoration: none; background: #cfeedd; }
body.gp .gp-chip-pend { background: #eef0f3; color: var(--gp-text-2); }
body.gp .gp-act__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Resumen */
body.gp .gp-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 28px; }
body.gp .gp-text-block h4 { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gp-slate); margin: 0 0 6px; }
body.gp .gp-text-block p { margin: 0; color: var(--gp-text-2); font-size: 14px; }
body.gp .gp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
body.gp .gp-chip { font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 99px; background: var(--gp-primary-50); color: var(--gp-primary); }
body.gp a.gp-chip--link:hover { background: var(--gp-primary-100); text-decoration: none; }

/* Pie de ficha */
body.gp .gp-plan-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
body.gp .gp-plan-footer__state, body.gp .gp-plan-footer__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.gp .gp-state-badge { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 6px; letter-spacing: .04em; text-transform: uppercase; }
body.gp .gp-state-badge--0 { background: var(--gp-ok-soft); color: #17703f; }
body.gp .gp-state-badge--1 { background: var(--gp-warn-soft); color: #9a6200; }
body.gp .gp-state-badge--2 { background: #eef0f3; color: var(--gp-text-2); }

@media (max-width: 1200px) {
    body.gp .gp-grid--3, body.gp .gp-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    body.gp .card-banner .card-body.gp-plan-hero { flex-wrap: wrap; }
    body.gp .card-banner .card-body > div.gp-plan-hero__text { flex: 1 1 calc(100% - 70px); }
    body.gp .card-banner .card-body > div.gp-plan-hero__actions { flex-basis: 100%; justify-content: flex-start; }
    body.gp .gp-gantt__head { display: none; }
    body.gp .gp-act__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    body.gp .gp-gantt__track { margin-left: 28px; }
    body.gp .gp-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.gp .gp-task { grid-template-columns: minmax(0, 1fr) 150px; }
    body.gp .gp-task__del { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 640px) {
    body.gp .gp-grid--3, body.gp .gp-summary { grid-template-columns: minmax(0, 1fr); }
    body.gp #content .gp-plan-hero .page-header { font-size: 20px; }
    body.gp .gp-tl--big { width: 34px; padding: 5px; gap: 5px; }
    body.gp .gp-tl--big i { width: 22px; height: 22px; }
    body.gp .gp-act__detail { padding-left: 6px; padding-right: 0; }
    body.gp .gp-task { grid-template-columns: minmax(0, 1fr); }
    body.gp .gp-deliverable { flex-wrap: wrap; }
}

/* =========================================================================
   Lista de planes de un cliente (x-plan)
   ========================================================================= */
body.gp .gp-plans { padding: 4px 0; overflow: hidden; }
body.gp .gp-plans-grid {
    display: grid; align-items: center; gap: 14px;
    grid-template-columns: 14px minmax(0, 2.4fr) 170px 92px minmax(0, 1fr) minmax(0, 1fr) 84px 24px;
    padding: 0 20px;
}
body.gp .gp-plans__head { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gp-muted); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--gp-line); }
body.gp .gp-plan-item { border-bottom: 1px solid var(--gp-line); }
body.gp .gp-plan-item:last-child { border-bottom: 0; }
body.gp .gp-plan-item__row { padding-top: 14px; padding-bottom: 14px; }
body.gp .gp-plan-item:hover .gp-plan-item__row { background: #f7f9fc; }
body.gp .gp-plan-item.is-inactive .gp-plan-item__title a, body.gp .gp-plan-item.is-inactive .gp-plan-item__cell { color: var(--gp-muted); }
body.gp .gp-plan-item__light { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gp-line); }
body.gp .gp-plan-item__light--ok { background: var(--gp-ok); }
body.gp .gp-plan-item__light--warn { background: var(--gp-warn); }
body.gp .gp-plan-item__light--risk { background: var(--gp-risk); }
body.gp .gp-plan-item__name { display: flex; gap: 10px; align-items: center; min-width: 0; }
body.gp .gp-plan-item__num { width: 64px; flex-shrink: 0; min-height: 32px; }
body.gp .gp-plan-item__title { min-width: 0; }
body.gp .gp-plan-item__title a { font-weight: 600; font-size: 14.5px; color: var(--gp-ink); line-height: 1.3; }
body.gp .gp-plan-item__title a:hover { color: var(--gp-primary); text-decoration: none; }
body.gp .gp-plan-item__badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 5px; }
body.gp .gp-plan-item__badges .gp-pill { font-size: 11.5px; padding: 2px 9px; }
body.gp .gp-plan-item__badges .gp-state-badge { font-size: 10.5px; padding: 2px 7px; }
body.gp .gp-plan-item__mobile-meta { display: none; font-size: 12px; color: var(--gp-muted); }
body.gp .gp-plan-item__avance { display: flex; align-items: center; gap: 8px; font-size: 13px; }
body.gp .gp-plan-item__avance b { color: var(--gp-ink); min-width: 44px; text-align: right; }
body.gp .gp-plan-item__cell { font-size: 13.5px; color: var(--gp-text-2); min-width: 0; overflow-wrap: anywhere; }
body.gp .gp-plan-item__actions { display: flex; gap: 6px; justify-content: flex-end; }
body.gp .gp-plan-item__check { display: flex; justify-content: center; }
body.gp .gp-icon-btn {
    height: 32px; min-width: 32px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--gp-line-strong); background: #fff;
    color: var(--gp-text-2); display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
body.gp .gp-icon-btn:hover { background: var(--gp-bg); color: var(--gp-ink); }
body.gp .gp-icon-btn svg { transition: transform .2s; }
body.gp .gp-icon-btn--risk { background: var(--gp-risk-soft); border-color: var(--gp-risk-soft); color: var(--gp-risk); }
body.gp .gp-icon-btn--risk:hover { background: #f7d2d2; color: #b62f2f; }
body.gp .gp-plan-item.is-open .gp-plan-item__actions .gp-icon-btn:last-child svg { transform: rotate(180deg); }
body.gp .gp-check { width: 18px; height: 18px; accent-color: var(--gp-primary); cursor: pointer; }
body.gp .gp-plan-item__info .gp-text-block p { font-size: 12.5px; line-height: 1.5; }
body.gp .gp-plan-item__info { display: grid; grid-template-columns: 160px repeat(3, minmax(0, 1fr)); gap: 18px 24px; padding: 4px 20px 18px 48px; }

/* Paneles de reordenar / imprimir */
body.gp .gp-tool-panel { background: #fff; border: 1px solid var(--gp-primary-100); border-left: 4px solid var(--gp-primary); border-radius: var(--gp-radius); padding: 16px 20px; margin-bottom: 16px; box-shadow: var(--gp-shadow); }
body.gp .gp-tool-panel__txt { margin: 0 0 12px; color: var(--gp-text-2); font-size: 14px; }
body.gp .gp-tool-panel__txt b { color: var(--gp-ink); }
body.gp .gp-tool-panel form { margin: 0 !important; }
body.gp .gp-tool-panel .form-group.row { margin-left: 0; margin-right: 0; row-gap: 14px; }
body.gp .gp-tool-panel [class*="offset-md-"] { margin-left: 0; }
body.gp .gp-tool-panel .switcher-option { font-size: 13px; font-weight: 600; color: var(--gp-text-2); }
body.gp .gp-tool-panel small { color: var(--gp-muted); font-size: 12px; }
body.gp .gp-tool-panel .form-group.m-b-0.text-right { border-top: 1px solid var(--gp-line); padding-top: 12px; margin-top: 4px; }

@media (max-width: 1100px) {
    body.gp .gp-plans-grid { grid-template-columns: 14px minmax(0, 1fr) 150px 84px 24px; }
    body.gp .gp-hide-md { display: none; }
    body.gp .gp-plan-item__mobile-meta { display: inline; }
    body.gp .gp-plan-item__info { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 48px; }
}
@media (max-width: 640px) {
    body.gp .gp-plans-grid { grid-template-columns: 12px minmax(0, 1fr) 24px; gap: 8px 12px; padding: 0 14px; }
    body.gp .gp-plans__head > span:nth-child(3), body.gp .gp-plans__head > span:nth-child(7) { display: none; }
    body.gp .gp-plan-item__row .gp-plan-item__avance { grid-column: 2 / 3; grid-row: 2; }
    body.gp .gp-plan-item__row .gp-plan-item__actions { grid-column: 2 / 4; grid-row: 3; justify-content: flex-start; }
    body.gp .gp-plan-item__row .gp-plan-item__check { grid-column: 3; grid-row: 1; }
    body.gp .gp-plan-item__info { grid-template-columns: minmax(0, 1fr); padding: 4px 14px 16px; }
}

/* =========================================================================
   Revisiones (pestañas de la ficha de plan)
   ========================================================================= */
body.gp #revisiones .panel-with-tabs { overflow: hidden; }
body.gp #revisiones .panel-body.tab-content { padding: 0; }
body.gp .gp-rev { padding: 20px 22px 22px; }
body.gp .gp-rev__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
body.gp .gp-rev__title { font-size: 20px; margin: 2px 0 0; }
body.gp .gp-rev__head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
body.gp .gp-kv--auto { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 16px; }
body.gp .gp-rev__texts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; padding-bottom: 6px; }
body.gp .gp-rev-acts { border: 1px solid var(--gp-line); border-radius: 12px; }
body.gp .gp-rev-act { border-top: 1px solid var(--gp-line); }
body.gp .gp-rev-act:first-child { border-top: 0; }
body.gp .gp-rev-act__row { display: grid; grid-template-columns: 14px minmax(0, 1fr) 120px 190px; gap: 14px; align-items: center; padding: 12px 16px; }
body.gp .gp-rev-act__name b { display: block; font-size: 14px; font-weight: 600; color: var(--gp-ink); line-height: 1.3; }
body.gp .gp-rev-act__name small { display: block; font-size: 12px; color: var(--gp-muted); margin-top: 2px; }
body.gp .gp-rev-act__del { text-align: right; }
body.gp .gp-rev-act__tasks { margin: 0 16px 12px 44px; border-left: 2px solid var(--gp-line); padding-left: 14px; }
body.gp .gp-rev-task { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 14px; align-items: center; padding: 6px 0; font-size: 13.5px; color: var(--gp-text-2); }
body.gp .gp-rev-task__name small { color: var(--gp-muted); }

@media (max-width: 900px) {
    body.gp .gp-rev__texts { grid-template-columns: minmax(0, 1fr); }
    body.gp .gp-rev-act__row { grid-template-columns: 14px minmax(0, 1fr) 150px; }
    body.gp .gp-rev-act__del { grid-column: 2; grid-row: 2; text-align: left; }
}
@media (max-width: 640px) {
    body.gp .gp-rev { padding: 16px 14px; }
    body.gp .gp-rev-act__row { grid-template-columns: 12px minmax(0, 1fr); gap: 6px 10px; padding: 12px; }
    body.gp .gp-rev-act__bar { grid-column: 2; }
    body.gp .gp-rev-act__del { grid-row: auto; }
    body.gp .gp-rev-act__tasks { margin-left: 22px; }
    body.gp .gp-rev-task { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* =========================================================================
   Formulario de revisión compacto (M10)
   ========================================================================= */
body.gp .gp-mb { margin-bottom: 18px; }
body.gp .gp-form-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 4px 0 16px; }
body.gp .gp-form-head__title { font-size: 20px; margin: 4px 0 0; }
body.gp .gp-form-head__title a { color: var(--gp-ink); }
body.gp .gp-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 18px; }
body.gp .gp-note--warn { background: var(--gp-warn-soft); color: #8a5a00; display: inline-flex; gap: 8px; align-items: center; }

/* Selector de semáforo del plan */
body.gp .gp-seg-smf { display: flex; border: 1px solid var(--gp-line-strong); border-radius: var(--gp-radius-sm); overflow: hidden; background: #fff; }
body.gp .gp-seg-smf__opt { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; background: none; padding: 9px 8px; font: inherit; font-size: 13px; font-weight: 600; color: var(--gp-text-2); cursor: pointer; border-right: 1px solid var(--gp-line); white-space: nowrap; }
body.gp .gp-seg-smf__opt:last-child { border-right: 0; }
body.gp .gp-seg-smf__opt:disabled { cursor: not-allowed; opacity: .7; }
body.gp .gp-seg-smf__dot { width: 10px; height: 10px; border-radius: 50%; }
body.gp .gp-seg-smf__opt--ok .gp-seg-smf__dot { background: var(--gp-ok); }
body.gp .gp-seg-smf__opt--warn .gp-seg-smf__dot { background: var(--gp-warn); }
body.gp .gp-seg-smf__opt--risk .gp-seg-smf__dot { background: var(--gp-risk); }
body.gp .gp-seg-smf__opt--ok.is-on { background: var(--gp-ok-soft); color: #17703f; }
body.gp .gp-seg-smf__opt--warn.is-on { background: var(--gp-warn-soft); color: #8a5a00; }
body.gp .gp-seg-smf__opt--risk.is-on { background: var(--gp-risk-soft); color: #a52a2a; }

/* Indicadores */
body.gp .gp-table-scroll { overflow-x: auto; }
body.gp .gp-ind-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px; }
body.gp .gp-ind-table th, body.gp .gp-ind-table td { padding: 8px 10px; border-bottom: 1px solid var(--gp-line); vertical-align: middle; }
body.gp .gp-ind-table thead th { background: #f7f9fc; }
body.gp .gp-ind-table thead th:first-child, body.gp .gp-ind-table tbody th { width: 70px; font-size: 13px; color: var(--gp-ink); font-weight: 700; }
body.gp .gp-ind-table tr.is-current th, body.gp .gp-ind-table tr.is-current td { background: var(--gp-primary-50); }
body.gp .gp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body.gp .gp-pair label { margin: 0; display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 600; color: var(--gp-muted); text-transform: uppercase; letter-spacing: .06em; }

/* Filas de actividades */
body.gp .form-control-sm { min-height: 34px; padding: 5px 9px; font-size: 13.5px; }
body.gp .input-group-sm .input-group-text { font-size: 12.5px; padding: 0 8px; }
body.gp .gp-rf-acts { border: 1px solid var(--gp-line); border-radius: 12px; }
body.gp .gp-rf-grid { display: grid; grid-template-columns: 130px minmax(0, 1fr) 100px 120px 112px 112px 190px; gap: 10px; align-items: center; }
body.gp .gp-rf-head { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gp-muted); padding: 10px 14px; background: #f7f9fc; border-bottom: 1px solid var(--gp-line); border-radius: 12px 12px 0 0; }
body.gp .gp-rf-act { border-top: 1px solid var(--gp-line); }
body.gp .gp-rf-head + .gp-rf-act { border-top: 0; }
body.gp .gp-rf-row { padding: 10px 14px; }
body.gp .gp-rf-name { min-width: 0; }
body.gp .gp-rf-name b { display: block; font-size: 14px; font-weight: 600; color: var(--gp-ink); line-height: 1.3; }
body.gp .gp-rf-name span { display: block; font-size: 13.5px; color: var(--gp-text-2); line-height: 1.3; }
body.gp .gp-rf-name small { display: block; font-size: 12px; color: var(--gp-muted); margin-top: 2px; }
body.gp .gp-rf-tasks { background: #fafbfd; border-top: 1px dashed var(--gp-line); padding: 4px 0; }
body.gp .gp-rf-task { padding-top: 6px; padding-bottom: 6px; }
body.gp .gp-rf-task .gp-rf-name { padding-left: 14px; border-left: 2px solid var(--gp-line); }
body.gp .gp-rf-del { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
body.gp .gp-rf-del .form-control { flex: 1 1 100%; }
body.gp .gp-smf-select { position: relative; }
body.gp .gp-smf-select .gp-smf-dot { position: absolute; left: 9px; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translateY(-50%); pointer-events: none; }
body.gp .gp-smf-select select { padding-left: 26px; }
body.gp .gp-file-btn {
    display: inline-flex; align-items: center; gap: 6px; max-width: 130px; height: 32px; padding: 0 10px; margin: 0;
    border: 1px dashed var(--gp-line-strong); border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--gp-text-2); cursor: pointer; background: #fff;
}
body.gp .gp-file-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gp .gp-file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
body.gp .gp-file-btn:hover { border-color: var(--gp-primary); color: var(--gp-primary); }
body.gp .gp-file-btn:focus-within { outline: 2px solid var(--gp-primary); outline-offset: 2px; }
body.gp .gp-file-btn.has-file { border-style: solid; border-color: var(--gp-ok); color: #17703f; background: var(--gp-ok-soft); }
body.gp .gp-check-label { display: inline-flex; align-items: center; gap: 5px; margin: 0; font-size: 12.5px; font-weight: 600; color: var(--gp-text-2); cursor: pointer; }
body.gp .gp-check-label .gp-check { width: 16px; height: 16px; }

/* Barra de acciones fija */
body.gp .gp-form-actions {
    position: sticky; bottom: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
    margin: 18px calc(50% - 50vw) -48px; padding: 12px max(28px, calc(50vw - var(--gp-max) / 2 + 28px));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--gp-line); box-shadow: 0 -6px 20px rgba(6, 20, 49, .06); backdrop-filter: blur(6px);
}
body.gp .gp-form-actions__right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

@media (max-width: 1200px) {
    body.gp .gp-rf-grid { grid-template-columns: 130px minmax(0, 1fr) 100px 120px 112px 112px; }
    body.gp .gp-rf-grid > .gp-rf-del { grid-column: 2 / -1; }
    body.gp .gp-rf-head > span:last-child { display: none; }
}
@media (max-width: 900px) {
    body.gp .gp-rf-head { display: none; }
    body.gp .gp-rf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
    body.gp .gp-rf-grid > .gp-rf-name { grid-column: 1 / -1; order: -1; }
    body.gp .gp-rf-grid > .gp-rf-del { grid-column: 1 / -1; }
    body.gp .gp-rf-cell[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; color: var(--gp-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
    body.gp .gp-rf-task > div:first-child, body.gp .gp-rf-empty { display: none; }
    body.gp .gp-form-actions { padding: 12px 16px; margin-bottom: -32px; }
}
body.gp .gp-form-row > .gp-form-row__full { grid-column: 1 / -1; }

/* Correspondencia de responsables (M01) */
body.gp .gp-intro-text { max-width: 820px; }
body.gp .gp-intro-text p { margin: 0 0 6px; color: var(--gp-text-2); }
body.gp .gp-resp-table { min-width: 720px; margin: 0; }
body.gp .gp-resp-table td:nth-child(3) { width: 300px; }
body.gp .gp-resp-table td:nth-child(4) { width: 120px; }
body.gp .gp-resp-table tr.is-pending td { background: #fffdf7; }

/* Mi trabajo (M01) */
body.gp .gp-text-warn { color: #b9760c !important; }
body.gp .gp-type { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gp-slate); background: var(--gp-primary-50); padding: 2px 7px; border-radius: 4px; }
body.gp .gp-work-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 14px; }
body.gp .gp-work-filters__right { margin-left: auto; }
body.gp .gp-work-filters input[type=date] { width: auto; }
body.gp .gp-seg { display: inline-flex; border: 1px solid var(--gp-line-strong); border-radius: var(--gp-radius-sm); overflow: hidden; background: #fff; }
body.gp .gp-seg a { padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--gp-text-2); border-right: 1px solid var(--gp-line); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
body.gp .gp-seg a:last-child { border-right: 0; }
body.gp .gp-seg a:hover { background: var(--gp-bg); }
body.gp .gp-seg a.is-on { background: var(--gp-navy); color: #fff; }
body.gp .gp-seg__n { font-size: 11px; background: rgba(0, 0, 0, .07); border-radius: 99px; padding: 0 7px; }
body.gp .gp-seg a.is-on .gp-seg__n { background: rgba(255, 255, 255, .2); }
body.gp .gp-chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
body.gp .gp-filter-chip { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--gp-line-strong); background: #fff; color: var(--gp-text-2); text-decoration: none !important; }
body.gp .gp-filter-chip:hover { border-color: var(--gp-primary); color: var(--gp-primary); }
body.gp .gp-filter-chip.is-on { background: var(--gp-primary); border-color: var(--gp-primary); color: #fff; }
body.gp .gp-work-list { border: 1px solid var(--gp-line); border-radius: 12px; overflow: hidden; }
body.gp .gp-work-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px 130px 120px 170px; gap: 14px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--gp-line); color: inherit; text-decoration: none !important; }
body.gp a.gp-work-row:hover { background: #f7f9fc; }
body.gp .gp-work-row--head { border-top: 0; background: #f7f9fc; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gp-muted); }
body.gp .gp-work-row__main { min-width: 0; }
body.gp .gp-work-row__main b { display: block; font-size: 14px; color: var(--gp-ink); font-weight: 600; line-height: 1.3; margin-top: 3px; }
body.gp .gp-work-row__main small { display: block; font-size: 12px; color: var(--gp-muted); margin-top: 2px; }
body.gp .gp-work-row__who { font-size: 13px; color: var(--gp-text-2); overflow-wrap: anywhere; }
body.gp .gp-work-row__date { font-size: 13.5px; font-weight: 600; color: var(--gp-ink); }
body.gp .gp-work-row__date small { display: block; font-size: 11.5px; font-weight: 500; color: inherit; opacity: .8; }
body.gp .gp-empty { text-align: center; padding: 26px 16px; color: var(--gp-text-2); border: 1px dashed var(--gp-line-strong); border-radius: 12px; }
body.gp .gp-empty small { display: block; color: var(--gp-muted); margin-top: 6px; }
@media (max-width: 1000px) {
    body.gp .gp-work-filters__right { margin-left: 0; }
    body.gp .gp-work-row { grid-template-columns: minmax(0, 1fr) 120px 150px; }
    body.gp .gp-work-row > :nth-child(2), body.gp .gp-work-row > :nth-child(4) { display: none; }
}
@media (max-width: 640px) {
    body.gp .gp-work-row--head { display: none; }
    body.gp .gp-work-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
    body.gp .gp-work-row > :nth-child(4) { display: block; text-align: right; }
    body.gp .gp-work-row > :nth-child(5) { grid-column: 1 / -1; }
    body.gp .gp-seg { width: 100%; overflow-x: auto; }
}

/* Selector de responsables (M01) */
body.gp .gp-resp-field { display: flex; flex-direction: column; gap: 6px; }
body.gp .gp-resp-otros { font-size: 13px; }
body.gp .select2-container--default .select2-selection--multiple { padding: 3px 6px; }
body.gp .select2-container--default .select2-selection--multiple .select2-selection__choice { margin-top: 4px; padding: 2px 8px; }
body.gp .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { color: var(--gp-primary); margin-right: 4px; }
body.gp .select2-dropdown { border-color: var(--gp-line-strong); border-radius: 8px; overflow: hidden; }
body.gp .select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--gp-primary); }
body.gp .select2-container--default .select2-selection--multiple .select2-selection__choice { background: var(--gp-primary-50) !important; border: 0 !important; color: var(--gp-primary) !important; border-radius: 6px !important; font-weight: 500; }

/* ===================== INDICADORES (M03) ===================== */
body.gp .gp-indc { border: 1px solid var(--gp-line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #fff; border-top: 3px solid var(--gp-line); min-width: 0; }
body.gp .gp-indc--ok { border-top-color: var(--gp-ok); }
body.gp .gp-indc--warn { border-top-color: var(--gp-warn); }
body.gp .gp-indc--risk { border-top-color: var(--gp-risk); }
body.gp .gp-indc__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
body.gp .gp-indc__name { font-weight: 600; color: var(--gp-ink); line-height: 1.3; font-size: 14.5px; }
body.gp .gp-indc__star { color: var(--gp-warn); font-size: 12px; margin-right: 2px; }
body.gp .gp-indc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
body.gp .gp-indc__tags span { font-size: 11px; color: var(--gp-slate); background: var(--gp-primary-50); border-radius: 99px; padding: 1px 8px; }
body.gp .gp-indc__val { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
body.gp .gp-indc__val b { font-size: 26px; line-height: 1; color: var(--gp-ink); font-weight: 700; }
body.gp .gp-indc__val span { color: var(--gp-muted); font-size: 13px; }
body.gp .gp-indc__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; border-top: 1px solid var(--gp-line); padding-top: 10px; }
body.gp .gp-indc__actions { display: flex; gap: 6px; align-items: center; }
body.gp .gp-indc__det { display: grid; gap: 12px; }
body.gp .gp-indt { width: 100%; font-size: 13px; border-collapse: collapse; }
body.gp .gp-indt th, body.gp .gp-indt td { padding: 5px 8px; border-bottom: 1px solid var(--gp-line); text-align: right; }
body.gp .gp-indt th:first-child { text-align: left; }
body.gp .gp-indt thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--gp-muted); font-weight: 600; text-align: right; }
body.gp .gp-indt thead th:first-child { text-align: left; color: var(--gp-ink); }
body.gp .gp-indt tr.is-current th, body.gp .gp-indt tr.is-current td { background: var(--gp-primary-50); }
body.gp .gp-indg { width: 100%; }
body.gp .gp-indg__plot { position: relative; height: 120px; }
body.gp .gp-indg__plot svg { width: 100%; height: 100%; display: block; overflow: visible; }
body.gp .gp-indg__axis { stroke: var(--gp-line); stroke-width: 1; }
body.gp .gp-indg__goal { stroke: var(--gp-slate); stroke-width: 1; stroke-dasharray: 4 3; }
body.gp .gp-indg__goal-lbl { position: absolute; right: 0; transform: translateY(-115%); font-size: 11px; color: var(--gp-slate); background: rgba(255,255,255,.85); padding: 0 3px; line-height: 1.2; }
body.gp .gp-indg__bar, body.gp .gp-indg__obj { fill: #c9d6e8; }
body.gp .gp-indg__line { fill: none; stroke-width: 2; stroke-linejoin: round; }
body.gp .gp-indg__dot { stroke-width: 7; stroke-linecap: round; }
body.gp .gp-indg__now { fill: var(--gp-primary-50); }
body.gp .gp-indg__x { display: grid; margin-top: 4px; }
body.gp .gp-indg__x span { text-align: center; font-size: 11px; color: var(--gp-muted); white-space: nowrap; overflow: hidden; }
body.gp .gp-indg__x span.is-on { color: var(--gp-ink); font-weight: 700; }
body.gp .gp-indg__x span.is-future { color: #c3c8d0; }
@media (max-width: 575px) { body.gp .gp-indg__x span { font-size: 9.5px; } body.gp .gp-indg__plot { height: 100px; } }
body.gp .gp-inds--compact .gp-indc { padding: 12px; }
body.gp .gp-inds--compact .gp-indc__val b { font-size: 20px; }
/* Formulario de indicador */
body.gp .gp-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
body.gp .gp-choice__opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--gp-line); border-radius: 10px; padding: 10px 12px; cursor: pointer; margin: 0; font-weight: 400; }
body.gp .gp-choice__opt:has(input:checked) { border-color: var(--gp-primary); background: var(--gp-primary-50); }
body.gp .gp-choice__opt input { margin-top: 4px; }
body.gp .gp-choice__opt b { display: block; color: var(--gp-ink); font-size: 13.5px; }
body.gp .gp-choice__opt small { display: block; color: var(--gp-muted); font-size: 12px; line-height: 1.35; margin-top: 2px; }
body.gp .gp-check-line { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 6px 0 0; }
body.gp .gp-obj-years { display: grid; gap: 8px; }
body.gp .gp-obj-years__row { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; }
body.gp .gp-obj-years__row label { margin: 0; font-weight: 700; color: var(--gp-ink); }
body.gp .gp-danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding: 12px 16px; border: 1px dashed #f3c0c0; border-radius: 10px; }
body.gp .gp-inds-sub { font-size: 12.5px; font-weight: 600; color: var(--gp-slate); margin: 12px 0 6px; }
body.gp .gp-task__ind { margin-left: 6px; font-size: 12px; color: var(--gp-muted); }
body.gp .gp-task__ind:hover { color: var(--gp-primary); }
body.gp .gp-act__detail .gp-inds { margin-bottom: 8px; }
body.gp .gp-rev-ind { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13.5px; }
body.gp .gp-rev-ind th, body.gp .gp-rev-ind td { padding: 8px 10px; border-bottom: 1px solid var(--gp-line); vertical-align: middle; }
body.gp .gp-rev-ind thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--gp-muted); font-weight: 600; background: #f7f9fc; }
body.gp .gp-rev-ind tbody th { font-weight: 600; color: var(--gp-ink); }
body.gp .gp-rev-ind tbody th small { display: block; font-weight: 400; color: var(--gp-muted); font-size: 12px; }
body.gp .gp-rev-ind td:nth-child(2) { width: 150px; }
body.gp .gp-rev-ind td:nth-child(3) { width: 170px; }
/* Semáforo manual de la actividad (M04) */
body.gp .gp-act__smf { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; margin-left: 6px; font-size: 12.5px; }
body.gp dd .gp-act__smf { margin-left: 0; }
body.gp .gp-act__smf-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,.08); }
body.gp .gp-act__smf-dot--ok { background: var(--gp-ok); }
body.gp .gp-act__smf-dot--warn { background: var(--gp-warn); }
body.gp .gp-act__smf-dot--risk { background: var(--gp-risk); }
body.gp .gp-legend-note { font-size: 12px; margin: -6px 0 12px; }
/* Acerca de (M05) */
body.gp .gp-about__brand { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
body.gp .gp-about__brand img { width: 120px; height: auto; flex: none; }
body.gp .gp-about__kv { margin-bottom: 14px; }
@media (max-width: 575px) { body.gp .gp-about__brand { flex-direction: column; align-items: flex-start; } }
/* Excel (M07) */
body.gp .gp-grid--6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { body.gp .gp-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575px) { body.gp .gp-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.gp .gp-xls-sum .card { padding: 12px 14px; margin: 0; }
body.gp .gp-xls-sum__n { display: grid; gap: 2px; margin-top: 6px; font-size: 12.5px; color: var(--gp-muted); }
body.gp .gp-xls-sum__n b { font-size: 18px; margin-right: 4px; color: var(--gp-ink); }
body.gp .gp-xls-sum__n .is-new b { color: var(--gp-ok); }
body.gp .gp-xls-sum__n .is-mod b { color: var(--gp-primary); }
body.gp .gp-xls-err { border-left: 4px solid var(--gp-risk); }
body.gp .gp-xls-err h2 { color: var(--gp-risk); }
body.gp .gp-xls-warn { border-left: 4px solid var(--gp-warn); font-size: 13px; }
body.gp .gp-xls-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
body.gp .gp-xls-table th, body.gp .gp-xls-table td { padding: 7px 10px; border-bottom: 1px solid var(--gp-line); vertical-align: top; text-align: left; }
body.gp .gp-xls-table thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--gp-muted); background: #f7f9fc; }
body.gp .gp-xls-det summary { cursor: pointer; list-style: revert; }
body.gp .gp-xls-det summary h2 { font-size: 17px; }
body.gp .gp-xls-det[open] summary { margin-bottom: 10px; }
body.gp .gp-xls-chg { line-height: 1.5; }
body.gp .gp-xls-chg span { color: var(--gp-muted); }
body.gp .gp-xls-chg del { color: var(--gp-risk); text-decoration: line-through; }
body.gp .gp-xls-chg ins { color: var(--gp-ok); text-decoration: none; font-weight: 600; }
body.gp .gp-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 16px; border: 2px dashed var(--gp-line-strong, #c9d0db); border-radius: 12px; text-align: center; cursor: pointer; margin: 0; font-weight: 400; transition: border-color .15s, background .15s; }
body.gp .gp-drop i { font-size: 34px; color: #1d7a45; }
body.gp .gp-drop b { color: var(--gp-ink); }
body.gp .gp-drop small { color: var(--gp-muted); }
body.gp .gp-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
body.gp .gp-drop.is-over, body.gp .gp-drop.has-file { border-color: var(--gp-primary); background: var(--gp-primary-50); }
body.gp .gp-form-actions--inline { position: static; margin: 14px 0 0; padding: 0; box-shadow: none; background: none; }
body.gp .gp-steps { padding-left: 18px; margin: 0 0 10px; }
body.gp .gp-steps li { margin-bottom: 6px; }
body.gp .gp-form-actions--inline { border-top: 0; backdrop-filter: none; }

/* ================= M09 · Entregables ================= */
body.gp .gp-deliverable__desc { margin: 4px 0 2px; font-size: 13px; color: var(--gp-text-2); line-height: 1.45; }
body.gp .gp-versions { margin-top: 4px; font-size: 12.5px; }
body.gp .gp-versions summary { cursor: pointer; color: var(--gp-primary); font-weight: 500; list-style: revert; }
body.gp .gp-versions ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
body.gp .gp-versions li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
body.gp .gp-versions__link { color: var(--gp-text-2); text-decoration: underline; word-break: break-all; }
body.gp .gp-versions__link i { font-size: 11px; margin-right: 2px; }
body.gp .gp-versions small { color: var(--gp-muted); }
body.gp .gp-ent-list { display: grid; }
body.gp .gp-ent-row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.1fr) 92px 104px minmax(0, 1.5fr); gap: 12px; align-items: start; padding: 10px 4px; border-bottom: 1px solid var(--gp-line); font-size: 13.5px; }
body.gp .gp-ent-row--head { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gp-muted); padding-top: 4px; padding-bottom: 6px; }
body.gp .gp-ent-row__main { display: grid; gap: 3px; min-width: 0; }
body.gp .gp-ent-row__main .gp-type { justify-self: start; }
body.gp .gp-ent-row__main b { color: var(--gp-ink); font-weight: 600; }
body.gp .gp-ent-row__main small { color: var(--gp-muted); font-size: 12.5px; }
body.gp .gp-ent-row__desc { color: var(--gp-text-2); font-size: 13px; line-height: 1.45; }
body.gp .gp-ent-row__file { display: grid; gap: 3px; min-width: 0; justify-items: start; }
body.gp .gp-ent-row__file small { color: var(--gp-muted); font-size: 12px; }
@media (max-width: 991px) {
    body.gp .gp-ent-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.gp .gp-ent-row--head { display: none; }
    body.gp .gp-ent-row__main, body.gp .gp-ent-row__file { grid-column: 1 / -1; }
    body.gp .gp-ent-row > span[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--gp-muted); text-transform: uppercase; letter-spacing: .05em; }
}
body.gp .gp-ent-row__file .gp-chip-ok { display: inline-block; max-width: 100%; }
body.gp .gp-ent-search input { min-width: 260px; }
@media (max-width: 575px) {
    body.gp .gp-seg--wrap { flex-wrap: wrap; }
    body.gp .gp-seg--wrap a { flex: 1 1 auto; justify-content: center; border-bottom: 1px solid var(--gp-line); }
    body.gp .gp-ent-search { width: 100%; }
    body.gp .gp-ent-search input { min-width: 0; width: 100%; }
}
body.gp .gp-versions { max-width: 100%; min-width: 0; }
body.gp .gp-versions li { max-width: 100%; }
body.gp .gp-versions .gp-chip-pend { white-space: normal; word-break: break-word; }
body.gp .gp-versions__link { min-width: 0; overflow-wrap: anywhere; }
body.gp .gp-ent-row__file .gp-chip-pend { white-space: normal; overflow-wrap: anywhere; }

/* ================= M11 · Modificaciones ================= */
body.gp .gp-mods__help { font-size: 13px; margin: -4px 0 12px; }
body.gp .gp-mods__list { display: grid; gap: 10px; margin-bottom: 8px; }
body.gp .gp-mods__grupo { border: 1px solid var(--gp-line); border-radius: 10px; padding: 10px 12px; }
body.gp .gp-mods__meta { font-size: 12.5px; color: var(--gp-muted); margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
body.gp .gp-mods__meta b { color: var(--gp-ink); font-weight: 600; }
body.gp .gp-mods__grupo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
body.gp .gp-mods__grupo li { font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
body.gp .gp-mods__elem { font-weight: 600; color: var(--gp-ink); overflow-wrap: anywhere; }
body.gp .gp-mods__campo { color: var(--gp-text-2); }
body.gp .gp-mods__grupo del { color: var(--gp-muted); text-decoration: line-through; overflow-wrap: anywhere; }
body.gp .gp-mods__grupo ins { color: var(--gp-ink); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
body.gp .gp-mods__coment { margin-top: 6px; font-size: 13px; color: var(--gp-text-2); background: #f7f9fc; border-radius: 6px; padding: 6px 9px; }
body.gp .gp-mods__rev { border-top: 1px solid var(--gp-line); padding: 8px 0; }
body.gp .gp-mods__rev summary { cursor: pointer; font-weight: 600; color: var(--gp-ink); list-style: revert; }
body.gp .gp-mods__rev[open] summary { margin-bottom: 10px; }
/* Cambios automáticos ocultos salvo que se pidan */
body.gp .gp-mods li.is-auto, body.gp .gp-mods .gp-mods__grupo.is-auto { display: none; }
body.gp .gp-mods.gp-mods--auto li.is-auto { display: flex; opacity: .75; }
body.gp .gp-mods.gp-mods--auto .gp-mods__grupo.is-auto { display: block; opacity: .75; }

/* ================= M12 · Comparativo con la revisión anterior ================= */
body.gp .gp-cmp-help { font-size: 12.5px; margin: -2px 0 8px; }
body.gp .gp-cmp { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 5px; }
body.gp .gp-cmp__item { font-size: 12px; color: var(--gp-text-2); background: #f1f4f8; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
body.gp .gp-cmp__item del { color: var(--gp-muted); }
body.gp .gp-cmp__item b { color: var(--gp-ink); font-weight: 600; }
body.gp .gp-cmp__item em { font-style: normal; font-weight: 600; margin-left: 2px; }
body.gp .gp-cmp__item.is-ok { background: var(--gp-ok-soft); }
body.gp .gp-cmp__item.is-ok em { color: #17703f; }
body.gp .gp-cmp__item.is-warn { background: var(--gp-warn-soft); }
body.gp .gp-cmp__item.is-warn em { color: #8a5a00; }
body.gp .gp-rev-task__name .gp-cmp { margin-top: 3px; }
body.gp .gp-cmp-quitadas { list-style: none; margin: 0; padding: 0 16px; display: grid; gap: 6px; font-size: 13.5px; }
body.gp .gp-cmp-quitadas li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
@media (max-width: 575px) { body.gp .gp-cmp__item { white-space: normal; } }
body.gp .gp-rev-act__name .gp-cmp__item b { display: inline; font-size: inherit; }

/* ================= M13 · Gantt multi-plan ================= */
body.gp .gp-gt-filtros { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
body.gp .gp-gt-filtros__campo { display: grid; gap: 3px; min-width: 150px; }
body.gp .gp-gt-filtros__campo--ancho { min-width: 260px; flex: 1 1 260px; }
body.gp .gp-gt-filtros__campo label { font-size: 12px; color: var(--gp-muted); margin: 0; }
body.gp .gp-gt-filtros__check { margin: 0 0 6px; }
body.gp .gp-gt-filtros__botones { display: flex; gap: 6px; margin-left: auto; }
body.gp .gp-gt-leyenda { margin-bottom: 10px; }
body.gp .gp-gt-leyenda__base::before { width: 16px !important; height: 3px !important; border-radius: 2px !important; background: #9aa3b2 !important; }
body.gp .gp-gt-leyenda__hoy::before { width: 2px !important; height: 12px !important; border-radius: 0 !important; background: var(--gp-ink) !important; }
body.gp .gp-gt-ayuda { font-size: 12.5px; margin: 8px 0 0; }

body.gp .gp-gt { --gt-nombre: 320px; overflow: auto; max-height: 75vh; border: 1px solid var(--gp-line); border-radius: 10px; }
body.gp .gp-gt__lienzo { position: relative; width: calc(var(--gt-nombre) + var(--gt-ancho)); }
body.gp .gp-gt__fila { position: relative; z-index: 1; display: flex; min-height: 40px; border-bottom: 1px solid var(--gp-line); }
body.gp .gp-gt__fila.is-oculta { display: none; }
body.gp .gp-gt__nombre { position: sticky; left: 0; z-index: 3; flex: 0 0 var(--gt-nombre); width: var(--gt-nombre); display: flex; align-items: center; gap: 4px; padding: 4px 10px 4px 6px; background: #fff; border-right: 1px solid var(--gp-line); min-width: 0; }
body.gp .gp-gt__pista { position: relative; flex: 0 0 var(--gt-ancho); width: var(--gt-ancho); }
body.gp .gp-gt__texto { display: grid; min-width: 0; color: var(--gp-ink); text-decoration: none !important; line-height: 1.25; }
body.gp .gp-gt__texto > b, body.gp .gp-gt__texto > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
body.gp .gp-gt__texto > b { font-weight: 700; }
body.gp .gp-gt__texto small { font-size: 11.5px; color: var(--gp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.gp .gp-gt__texto:hover > b, body.gp .gp-gt__texto:hover > span { color: var(--gp-primary); }
body.gp .gp-gt__toggle, body.gp .gp-gt__toggle-vacio { flex: 0 0 22px; width: 22px; height: 22px; }
body.gp .gp-gt__toggle { border: 0; background: none; padding: 0; color: var(--gp-muted); cursor: pointer; border-radius: 4px; }
body.gp .gp-gt__toggle:hover { background: var(--gp-bg); color: var(--gp-ink); }
body.gp .gp-gt__toggle svg, body.gp .gp-gt__toggle i { transition: transform .15s; font-size: 11px; }
body.gp .gp-gt__toggle.is-open svg, body.gp .gp-gt__toggle.is-open i { transform: rotate(90deg); }
body.gp .gp-gt__fila--plan .gp-gt__nombre, body.gp .gp-gt__fila--plan .gp-gt__pista { background: #f7f9fc; }
body.gp .gp-gt__fila--act .gp-gt__nombre { padding-left: 20px; }
body.gp .gp-gt__fila--tarea { min-height: 34px; }
body.gp .gp-gt__fila--tarea .gp-gt__nombre { padding-left: 40px; }
body.gp .gp-gt__fila--tarea .gp-gt__texto > span { font-size: 12.5px; color: var(--gp-text-2); }
body.gp .gp-gt__fila.is-contexto .gp-gt__texto, body.gp .gp-gt__fila.is-contexto .gp-gt__barra { opacity: .5; }

/* Cabecera fija */
body.gp .gp-gt__fila--cab { position: sticky; top: 0; z-index: 4; min-height: 46px; background: #fff; }
body.gp .gp-gt__fila--cab .gp-gt__nombre { z-index: 5; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gp-muted); }
body.gp .gp-gt__fila--cab .gp-gt__pista { background: #fff; }
body.gp .gp-gt__grupo, body.gp .gp-gt__marca { position: absolute; overflow: hidden; white-space: nowrap; font-size: 11px; padding: 0 4px; border-left: 1px solid var(--gp-line); }
body.gp .gp-gt__grupo { top: 0; height: 22px; line-height: 22px; font-weight: 700; color: var(--gp-ink); }
body.gp .gp-gt__marca { top: 22px; height: 24px; line-height: 24px; color: var(--gp-muted); }

/* Fondo: líneas de la escala y "hoy" */
body.gp .gp-gt__fondo { position: absolute; top: 46px; bottom: 0; left: var(--gt-nombre); width: var(--gt-ancho); z-index: 2; pointer-events: none; }
body.gp .gp-gt__fondo i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(15, 39, 80, .06); }
body.gp .gp-gt__hoy { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--gp-ink); opacity: .8; }

/* Barras */
body.gp .gp-gt__barra { position: absolute; top: 11px; height: 14px; border-radius: 4px; background: var(--c-soft); overflow: hidden; z-index: 1; }
body.gp .gp-gt__barra i { display: block; height: 100%; background: var(--c); }
body.gp .gp-gt__barra:hover { box-shadow: 0 0 0 2px rgba(5, 73, 147, .35); }
body.gp .gp-gt__barra--plan { top: 15px; height: 10px; }
body.gp .gp-gt__barra--tarea { top: 10px; height: 12px; }
body.gp .gp-gt__base { position: absolute; top: 29px; height: 3px; border-radius: 2px; background: #9aa3b2; opacity: .8; }
@media (max-width: 767px) {
    body.gp .gp-gt { --gt-nombre: 170px; max-height: 70vh; }
    body.gp .gp-gt__texto small { display: none; }
    body.gp .gp-gt-filtros__campo, body.gp .gp-gt-filtros__campo--ancho { min-width: 0; flex: 1 1 140px; }
    body.gp .gp-gt-filtros__botones { margin-left: 0; }
}

/* ================= M15/M16 · Plan Estratégico y ponderación ================= */
body.gp .gp-pe-franja { padding: 14px 18px; margin: 0 0 14px; display: grid; gap: 8px; }
body.gp .gp-pe-franja__titulo { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
body.gp .gp-pe-franja__titulo b { font-size: 22px; color: var(--gp-ink); }
body.gp .gp-pe-franja__duo { max-width: 520px; }
body.gp .gp-pe-franja__aviso { margin: 0; font-size: 13px; }
body.gp .gp-pond__tabla { display: grid; margin-bottom: 10px; }
body.gp .gp-pond__fila { display: grid; grid-template-columns: minmax(0, 3fr) 110px 90px 120px; gap: 12px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--gp-line); font-size: 13.5px; }
body.gp .gp-pond__fila--cab { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gp-muted); }
body.gp .gp-pond__fila.is-off { color: var(--gp-muted); }
body.gp .gp-pond__nombre { font-weight: 600; color: var(--gp-ink); overflow-wrap: anywhere; }
body.gp .gp-pond__input { text-align: right; max-width: 110px; }
body.gp .gp-pond__pie { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
body.gp .gp-pond__suma { margin-right: auto; font-weight: 600; color: var(--gp-text-2); }
body.gp .gp-pond__suma.is-ok { color: #17703f; }
body.gp .gp-pond__suma.is-aviso { color: #a52a2a; }
@media (max-width: 575px) {
    body.gp .gp-pond__fila { grid-template-columns: 1fr 1fr; }
    body.gp .gp-pond__fila--cab { display: none; }
    body.gp .gp-pond__nombre { grid-column: 1 / -1; }
    body.gp .gp-pond__fila > span[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--gp-muted); text-transform: uppercase; letter-spacing: .05em; }
}

/* ================= M17 · Papelera de planes ================= */
body.gp .gp-trash { display: grid; }
body.gp .gp-trash__fila { display: grid; grid-template-columns: minmax(0, 2.4fr) 170px minmax(0, 1.6fr) 330px; gap: 14px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--gp-line); font-size: 13.5px; }
body.gp .gp-trash__fila--cab { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gp-muted); padding-top: 2px; padding-bottom: 6px; }
body.gp .gp-trash__plan { display: grid; gap: 2px; min-width: 0; }
body.gp .gp-trash__plan b { color: var(--gp-ink); font-weight: 700; overflow-wrap: anywhere; }
body.gp .gp-trash__plan small { color: var(--gp-muted); font-size: 12.5px; }
body.gp .gp-trash__cont { color: var(--gp-text-2); line-height: 1.5; }
body.gp .gp-trash__acc { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 991px) {
    body.gp .gp-trash__fila { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.gp .gp-trash__fila--cab { display: none; }
    body.gp .gp-trash__plan, body.gp .gp-trash__acc { grid-column: 1 / -1; }
    body.gp .gp-trash__acc { justify-content: flex-start; }
    body.gp .gp-trash__fila > span[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--gp-muted); text-transform: uppercase; letter-spacing: .05em; }
}

/* ================= M18 · Archivo de planes cerrados ================= */
body.gp .gp-archivo { margin-top: 14px; }
body.gp .gp-archivo__titulo { cursor: pointer; padding: 13px 18px; font-weight: 700; color: var(--gp-ink); list-style: none; display: flex; align-items: center; gap: 8px; }
body.gp .gp-archivo__titulo::-webkit-details-marker { display: none; }
body.gp .gp-archivo__chev { margin-left: auto; font-size: 12px; color: var(--gp-muted); transition: transform .15s; }
body.gp .gp-archivo[open] .gp-archivo__chev { transform: rotate(180deg); }
body.gp .gp-archivo[open] .gp-archivo__titulo { border-bottom: 1px solid var(--gp-line); }
body.gp .gp-archivo .gp-plan-item { opacity: .92; }
/* Mi trabajo: "Ordenar" y "Ver" juntos en la cabecera */
body.gp .gp-work-head-tools { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: flex-end; }
@media (max-width: 575px) { body.gp .gp-work-head-tools { justify-content: flex-start; width: 100%; } }
/* Mi trabajo: mientras se recarga la sección */
body.gp #mi-trabajo.is-cargando { opacity: .55; pointer-events: none; transition: opacity .15s; }
/* Gantt: mientras se recargan los filtros y el diagrama */
body.gp #gantt-zona.is-cargando { opacity: .55; pointer-events: none; transition: opacity .15s; }

/* ================= M20 · Notificaciones ================= */
.gp-bell + .gp-topbar__tools { margin-left: 4px; }
.gp-bell__btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff !important; text-decoration: none !important; font-size: 18px; }
.gp-bell__btn::after { display: none !important; }
.gp-bell__btn:hover { background: rgba(255, 255, 255, .12); }
.gp-bell__n { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; }
body.gp .gp-bell__menu { width: 360px; max-width: calc(100vw - 24px); padding: 0; max-height: 70vh; overflow-y: auto; }
body.gp .gp-bell__cab { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--gp-line); }
body.gp .dropdown-menu.gp-bell__menu .gp-bell__item { white-space: normal; display: grid !important; grid-template-columns: 1fr; gap: 2px; padding: 9px 14px; border-bottom: 1px solid var(--gp-line); }
body.gp .gp-bell__item b { font-size: 13px; font-weight: 600; color: var(--gp-ink); line-height: 1.3; }
body.gp .gp-bell__item small { font-size: 12px; color: var(--gp-text-2); line-height: 1.35; }
body.gp .gp-bell__item .gp-bell__fecha { color: var(--gp-muted); font-size: 11px; }
body.gp .gp-bell__item.is-nuevo { background: var(--gp-primary-50); }
body.gp .gp-bell__vacio { padding: 16px 14px; color: var(--gp-muted); font-size: 13px; }
body.gp .gp-avisos { display: grid; }
body.gp .gp-aviso { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 6px; border-bottom: 1px solid var(--gp-line); color: inherit; text-decoration: none !important; }
body.gp .gp-aviso:hover { background: #f7f9fc; }
body.gp .gp-aviso.is-nuevo { background: var(--gp-primary-50); }
body.gp .gp-aviso__ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #eef0f3; color: var(--gp-primary); }
body.gp .gp-aviso__txt { display: grid; gap: 2px; min-width: 0; }
body.gp .gp-aviso__txt b { color: var(--gp-ink); font-weight: 600; font-size: 14px; }
body.gp .gp-aviso__txt small { color: var(--gp-text-2); font-size: 12.5px; }
body.gp .gp-aviso__meta { display: grid; justify-items: end; gap: 3px; }
body.gp .gp-aviso__meta small { color: var(--gp-muted); font-size: 12px; white-space: nowrap; }
body.gp .gp-ajustes .gp-check-label { margin-bottom: 6px; font-weight: 400; }
@media (max-width: 575px) {
    body.gp .gp-aviso { grid-template-columns: 34px minmax(0, 1fr); }
    body.gp .gp-aviso__meta { grid-column: 2; justify-items: start; }
}

/* ================= M22 · Suspendidos y finalizados ================= */
body.gp .gp-archivo--suspenso { margin-top: 14px; }
body.gp .gp-plan-item__estado { display: block; width: 100%; font-size: 12px; color: var(--gp-muted); margin-top: 2px; }
body.gp .gp-estado-motivo { font-size: 13px; }

/* ================= M23 · Deshacer ================= */
.gp-deshacer { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 1060; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 10px; background: #0F2750; color: #fff; box-shadow: 0 10px 30px rgba(6, 20, 49, .3); font-size: 14px; transition: opacity .35s, transform .35s; }
.gp-deshacer.is-saliendo { opacity: 0; transform: translate(-50%, 12px); }
.gp-deshacer .btn-light { font-weight: 600; }
.gp-deshacer__cerrar { background: none; border: 0; color: rgba(255, 255, 255, .7); font-size: 20px; line-height: 1; padding: 0 2px; cursor: pointer; }
body.gp .gp-mods__deshacer { margin-left: auto; padding: 0; font-size: 12.5px; }
@media (max-width: 575px) { .gp-deshacer { left: 12px; right: 12px; transform: none; justify-content: space-between; } .gp-deshacer.is-saliendo { transform: translateY(12px); } }

/* ================= M21/M24 · Asistente IA ================= */
body.gp .gp-ia-concl__cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; margin-bottom: 6px; }
/* Inicio: Pendientes en dos columnas (atrasados | próximos) */
body.gp .gp-pendientes { gap: 8px 32px; }
body.gp .gp-pendientes .gp-list-label { margin-top: 0; }

/* Anotar avance de una actividad: avance de cada tarea */
body.gp .gp-aa-tareas { display: grid; gap: 8px; margin-bottom: 6px; }
body.gp .gp-aa-tarea { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 12px; align-items: center; }
body.gp .gp-aa-tarea label { margin: 0; font-size: 13px; line-height: 1.35; }

/* Tarea: avance comparado con la última revisión y "Anotar avance" a la derecha */
body.gp .gp-task__rev { margin-top: 3px; font-size: 11.5px; color: var(--gp-muted); white-space: nowrap; }
body.gp .gp-task__dif { margin-left: 4px; font-weight: 600; }
body.gp .gp-task__dif.is-up { color: var(--gp-ok, #22A05A); }
body.gp .gp-task__dif.is-down { color: var(--gp-risk, #DD3F3F); }
body.gp .gp-task__del { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
body.gp .gp-task__del .gp-task__avance { margin-top: 0; }
@media (max-width: 900px) {
    body.gp .gp-task__del { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
}
