/* Guía Construcción · Identidad y temas del panel 6.9.32 */
.gcd-sidebar__brand{min-height:54px;padding:0 8px}.gcd-sidebar__brand-link{position:relative;display:flex;align-items:center;justify-content:flex-start;flex:0 0 45px;width:45px;height:48px;text-decoration:none}.gcd-sidebar__brand-logo{display:block;width:45px!important;max-width:45px!important;height:auto!important;max-height:48px;object-fit:contain;object-position:left center}.gcd-sidebar__brand-logo--dark{display:none}.gcd[data-gcd-theme="dark"] .gcd-sidebar__brand-logo--light{display:none}.gcd[data-gcd-theme="dark"] .gcd-sidebar__brand-logo--dark{display:block}.gcd-sidebar__close{flex:0 0 auto}
.gcd-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:111px;height:40px;margin:0;padding:0 8px 0 12px;border:1px solid var(--gcd-border);border-radius:12px;background:#fff;color:#3a3f47;font:inherit;font-size:12px;font-weight:700;line-height:1;cursor:pointer;box-shadow:0 2px 8px rgba(28,35,45,.05);transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease}.gcd-theme-toggle:hover{border-color:#ff9b71;background:#fff8f4;color:#d95016;box-shadow:0 4px 12px rgba(255,116,56,.12)}.gcd-theme-toggle:focus-visible{outline:3px solid rgba(255,116,56,.3);outline-offset:2px}.gcd-theme-toggle__label{min-width:42px;text-align:left}.gcd-theme-toggle__track{position:relative;display:block;flex:0 0 52px;width:52px;height:28px;border:1px solid #d9dee5;border-radius:999px;background:#edf0f4;box-shadow:inset 0 1px 2px rgba(28,35,45,.08);transition:background-color .18s ease,border-color .18s ease}.gcd-theme-toggle__track :is(i,svg){position:absolute;top:7px;width:13px;height:13px;z-index:1;pointer-events:none}.gcd-theme-toggle__sun{left:7px;color:#f26c2f}.gcd-theme-toggle__moon{right:7px;color:#66707d}.gcd-theme-toggle__thumb{position:absolute;top:2px;left:2px;z-index:2;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(23,29,37,.26);transition:transform .2s ease,background-color .18s ease}.gcd[data-gcd-theme="dark"] .gcd-theme-toggle__track{border-color:#5a6573;background:#343e4b}.gcd[data-gcd-theme="dark"] .gcd-theme-toggle__thumb{transform:translateX(24px);background:#ff8552}.gcd[data-gcd-theme="dark"] .gcd-theme-toggle__sun{color:#929aa5}.gcd[data-gcd-theme="dark"] .gcd-theme-toggle__moon{color:#fff}
.gcd-theme-toggle__track :is(i,svg){z-index:3}
.gcd-personal-welcome{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;padding:28px}.gcd-personal-welcome__icon{display:grid;width:54px;height:54px;place-items:center;border-radius:15px;background:#fff0e8;color:var(--gcd-brand)}.gcd-personal-welcome__icon :is(i,svg){width:25px;height:25px}.gcd-personal-welcome h2{margin:3px 0 6px}.gcd-personal-welcome p{max-width:720px;margin:0;color:var(--gcd-muted)}.gcd-personal-welcome .gcd-cta{margin:0;white-space:nowrap}

/* Variables: permiten que los componentes que ya usan tokens cambien sin duplicar reglas. */
.gcd[data-gcd-theme="dark"]{
	--gcd-brand:#ff8552;--gcd-dark:#f4f6f8;--gcd-border:#343d4a;--gcd-muted:#a8b0bc;--gcd-soft:#252d38;
	--gc-primary:#ff8552;--gc-primary-dark:#ff7438;--gc-primary-soft:#35251f;--gc-dark:#f4f6f8;--gc-dark-2:#e6e9ed;--gc-white:#1a2029;
	--gc-light-bg:#252d38;--gc-border:#343d4a;--gc-border-strong:#4b5666;--gc-text:#e8ebef;--gc-text-soft:#a8b0bc;--gc-soft:#252d38;--gc-muted:#a8b0bc;
	--gc-surface:#1a2029;--gc-bg:#11161d;--gc-success-bg:#17372d;--gc-info-bg:#172d4a;--gc-danger-bg:#431f26;--gc-warning-bg:#432f18;
	background:#11161d;color:#e8ebef;color-scheme:dark
}
.gcd[data-gcd-theme="dark"] .gcd-main{background:#11161d}.gcd[data-gcd-theme="dark"] .gcd-sidebar{background:#171d25;border-color:#303946}.gcd[data-gcd-theme="dark"] .gcd-topbar{background:rgba(23,29,37,.96);border-color:#303946}.gcd[data-gcd-theme="dark"] .gcd-sidebar__nav-area:before{background:linear-gradient(#171d25,rgba(23,29,37,0))}.gcd[data-gcd-theme="dark"] .gcd-sidebar__nav-area:after{background:linear-gradient(rgba(23,29,37,0),#171d25)}.gcd[data-gcd-theme="dark"] .gcd-sidebar__nav::-webkit-scrollbar-thumb{border-color:#171d25;background:#46515f}.gcd[data-gcd-theme="dark"] .gcd-sidebar__user{background:#222a35}.gcd[data-gcd-theme="dark"] .gcd-sidebar__link{color:#cbd1d9}.gcd[data-gcd-theme="dark"] .gcd-sidebar__link:hover{background:#252e3a}.gcd[data-gcd-theme="dark"] .gcd-sidebar__link.is-active{background:rgba(255,133,82,.15);color:#ff9b71}.gcd[data-gcd-theme="dark"] .gcd-sidebar__close,.gcd[data-gcd-theme="dark"] .gcd-sidebar__scroll-cue{background:#212934;border-color:#3a4655;color:#f2f4f7}.gcd[data-gcd-theme="dark"] .gcd-theme-toggle,.gcd[data-gcd-theme="dark"] .gcd-topbar__action{background:#202833;border-color:#3a4655;color:#e8ebef}.gcd[data-gcd-theme="dark"] :is(.gcd-theme-toggle,.gcd-topbar__action):hover{background:#2a3441;color:#ff9b71}

/* Superficies generales del panel. */
.gcd[data-gcd-theme="dark"] :is(
	.gcd-kpi,.gcd-panel,.gcd-kanban__card,.gcd-gallery__item,.gcd-plantilla,.gcd-pager,.gcd-empleo-card,.gcd-postu-filtros,.gcd-postu-card,.gcd-work-card,.gcd-work-card-v2,.gcd-credential,.gcd-proposal,.gcd-proposal-form,.gcd-portfolio-stat,.gcd-work-editor,.gcd-work-pane,.gcd-upload-preview,.gcd-existing-photo,
	.gc-card,.gc-form,.gc-section,.gc-stat,.gc-chart-card,.gc-table-card,.gc-membership-card,.gc-plan-card,.gc-company-team-card,.gc-branches__editor,.gc-branches__help,.gc-branches__stat,.gc-branch-row,.gc-boost-card,.gc-boost__purchase-main,.gc-boost__help,.gc-boost__history,.gc3-step,.gc3-summary-grid article,
	.gcopp-card,.gcopp-kpis article,.gcopp-detail__request,.gcopp-proposal,.gcopp-proposal-form,.gcopp-proposal-detail__grid>div,.gcopp-price-breakdown>div,.gcopp-proposal-detail__conditions,.gcopp-empty-inline,
	.gc-conversation-list,.gc-conversation-row,.gc-thread-message,.gcd-modal__box
){background:#1a2029!important;border-color:#343d4a!important;box-shadow:0 8px 24px rgba(0,0,0,.16)!important}
.gcd[data-gcd-theme="dark"] :is(.gcd-kanban__col,.gc-quote-card__grid,.gcd-proposal__amounts span,.gc-branches__form-section,.gcopp-comparison th:first-child,.gcopp-card>footer,.gcopp-cancel,.gcd-existing-photo,.gcd-portada-preview){background:#222a35!important;border-color:#343d4a!important}
.gcd[data-gcd-theme="dark"] :is(.gcd-panel,.gc-card,.gc-form,.gc-section,.gcd-modal__box,.gcopp-card,.gcopp-proposal){color:#dfe3e8}

/* Texto y divisores. Se excluyen botones y badges para mantener sus contrastes. */
.gcd[data-gcd-theme="dark"] :is(h1,h2,h3,h4,h5,h6,legend,label,summary,.gcd-kpi__value,.gcd-lead__name,.gcd-kanban__card strong,.gcd-table td,.gc-data-table td,.gc-table td,.gc-membership__title,.gc-plan-card__price,.gcopp-card h3,.gcopp-proposal strong){color:#f4f6f8}
.gcd[data-gcd-theme="dark"] :is(p,small,.gc-field__help,.gcd-hint,.gcd-kpi__label,.gcd-kpi__sub,.gcd-lead__asunto,.gcd-lead__fecha,.gcd-plantilla__body,.gcd-postu-card__meta,.gcd-postu-card__mensaje,.gcd-work-card p,.gc-conversation-row__body small,.gc-conversation-row__meta){color:#a8b0bc}
.gcd[data-gcd-theme="dark"] :is(.gcd-table th,.gcd-table td,.gc-table th,.gc-table td,.gc-data-table th,.gc-data-table td,.gcd-modal__head,.gcd-plantilla-mini,.gcd-review-form,.gc-quote-card__detail,.gc-quote-inline){border-color:#343d4a!important}
.gcd[data-gcd-theme="dark"] a:not(.gc-button):not(.gcd-locked__cta):not(.gcd-cta):not(.button){color:#ff9b71}.gcd[data-gcd-theme="dark"] a:not(.gc-button):not(.gcd-locked__cta):not(.gcd-cta):not(.button):hover{color:#ffb391}

/* Formularios, búsquedas y controles. */
.gcd[data-gcd-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),select,textarea){background-color:#202833!important;border-color:#3a4655!important;color:#eef1f4!important;box-shadow:none!important}.gcd[data-gcd-theme="dark"] :is(input,textarea)::placeholder{color:#818b98!important}.gcd[data-gcd-theme="dark"] select option{background:#202833;color:#eef1f4}.gcd[data-gcd-theme="dark"] :is(input,select,textarea):focus{border-color:#ff8552!important;box-shadow:0 0 0 3px rgba(255,133,82,.16)!important}.gcd[data-gcd-theme="dark"] :is(.gc-btn-outline,.gc-btn-ghost,.gcd-modal__close){background:#202833!important;border-color:#3a4655!important;color:#e8ebef!important}.gcd[data-gcd-theme="dark"] :is(.gc-btn-outline,.gc-btn-ghost,.gcd-modal__close):hover{background:#2a3441!important;color:#ff9b71!important}

/* Estados especiales mantienen significado sin deslumbrar. */
.gcd[data-gcd-theme="dark"] .gcd-kpi.is-locked{background:repeating-linear-gradient(45deg,#1a2029,#1a2029 10px,#202833 10px,#202833 20px)!important}.gcd[data-gcd-theme="dark"] .gcd-locked{background:linear-gradient(135deg,#30231e 0%,#1a2029 65%);border-color:#875037}.gcd[data-gcd-theme="dark"] .gc-conversation-row:hover{background:#222a35!important}.gcd[data-gcd-theme="dark"] .gc-conversation-row.is-unread{background:#2c231f!important}.gcd[data-gcd-theme="dark"] .gc-thread-message{background:#252d38!important}.gcd[data-gcd-theme="dark"] .gc-thread-message.is-mine{background:#35251f!important}.gcd[data-gcd-theme="dark"] .gc-message-tabs a{background:#202833;border-color:#3a4655;color:#dfe3e8}.gcd[data-gcd-theme="dark"] .gc-message-tabs a.is-active{background:#ff8552;border-color:#ff8552;color:#161a20}.gcd[data-gcd-theme="dark"] .gcopp-comparison thead th{background:#35251f;color:#f4f6f8}.gcd[data-gcd-theme="dark"] .gcopp-proposal-detail__notice{background:#34291d;color:#e7c98a}.gcd[data-gcd-theme="dark"] .gcopp-proposal__contact{background:#30231e;border-color:#68402f}.gcd[data-gcd-theme="dark"] .gcopp-proposal-detail>summary{background:#30231e;color:#ffab84}.gcd[data-gcd-theme="dark"] .gcd-upload-zone{background:#171d25;border-color:#46515f}.gcd[data-gcd-theme="dark"] .gcd-upload-zone.is-dragging{background:#30231e;border-color:#ff8552}
.gcd[data-gcd-theme="dark"] .gcd-personal-welcome__icon{background:#35251f;color:#ff9b71}

/* Popups de fecha/hora se insertan fuera de .gcd; la clase de body los limita a la página del panel. */
body.gcd-theme-dark .flatpickr-calendar,body.gcd-theme-dark .gc-time-panel{background:#1a2029!important;border-color:#3a4655!important;color:#e8ebef!important;box-shadow:0 18px 48px rgba(0,0,0,.42)!important}body.gcd-theme-dark .flatpickr-months,body.gcd-theme-dark .gc-time-panel__head,body.gcd-theme-dark .gc-time-panel__actions{background:#222a35!important;border-color:#3a4655!important}body.gcd-theme-dark :is(.flatpickr-day,.flatpickr-current-month,.flatpickr-weekday,.numInputWrapper input,.gc-time-option){color:#e8ebef!important}body.gcd-theme-dark :is(.flatpickr-day:hover,.gc-time-option:hover){background:#2a3441!important;border-color:#46515f!important}body.gcd-theme-dark .flatpickr-day.selected{background:#ff8552!important;border-color:#ff8552!important;color:#15191f!important}

@media(max-width:640px){.gcd-theme-toggle{min-width:58px;width:58px;padding:0 3px;border-color:transparent;background:transparent;box-shadow:none}.gcd-theme-toggle__label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.gcd-sidebar__brand-link{flex-basis:45px;width:45px;height:46px}.gcd-sidebar__brand-logo{width:45px!important;max-width:45px!important;max-height:46px}.gcd-personal-welcome{grid-template-columns:1fr;padding:22px}.gcd-personal-welcome .gcd-cta{width:100%;text-align:center}}
@media(prefers-reduced-motion:reduce){.gcd-theme-toggle,.gcd-theme-toggle__track,.gcd-theme-toggle__thumb{transition:none}}
