/* ============================================================
   GoodCold — Balance Térmico  v1.1
   Brand: navy #0a2540, accent blue #1e6fff
   ============================================================ */
:root {
    --gcb-navy:      #0a2540;
    --gcb-blue:      #1e6fff;
    --gcb-blue-hover:#1558d6;
    --gcb-blue-pale: #e8f1ff;
    --gcb-white:     #ffffff;
    --gcb-gray-50:   #f8fafd;
    --gcb-gray-100:  #f0f4fb;
    --gcb-gray-200:  #dde5f0;
    --gcb-gray-400:  #9aacbf;
    --gcb-gray-600:  #5c7087;
    --gcb-gray-800:  #253545;
    --gcb-green:     #17b06b;
    --gcb-red:       #e84545;
    --gcb-orange:    #f59e0b;
    --gcb-radius:    12px;
    --gcb-radius-sm: 8px;
    --gcb-shadow:    0 2px 16px rgba(10,37,64,.09);
    --gcb-shadow-md: 0 6px 28px rgba(10,37,64,.14);
    --gcb-font:      'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}
/* ── Base ────────────────────────────────────────────────────────────────── */
.gcb-app {
    font-family: var(--gcb-font);
    font-size: 15px;
    color: var(--gcb-gray-800);
    max-width: 980px;
    margin: 0 auto;
    position: relative;
}
.gcb-app *, .gcb-app *::before, .gcb-app *::after { box-sizing: border-box; }
/* ── Login notice ─────────────────────────────────────────────────────────── */
.gcb-login-notice {
    background: var(--gcb-gray-100);
    border: 1px solid var(--gcb-gray-200);
    border-radius: var(--gcb-radius);
    padding: 48px 32px;
    text-align: center;
}
.gcb-login-notice p   { font-size: 1.05em; color: var(--gcb-gray-600); margin: 0 0 20px; }
.gcb-login-notice a   { display: inline-block; }
/* ── Header ───────────────────────────────────────────────────────────────── */
.gcb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.gcb-header h2 {
    margin: 0;
    font-size: 1.9em;
    font-weight: 800;
    color: var(--gcb-navy);
    letter-spacing: -.02em;
}
/* Mode toggle */
.gcb-mode-toggle {
    display: flex;
    background: var(--gcb-gray-100);
    border: 1.5px solid var(--gcb-gray-200);
    border-radius: 40px;
    padding: 4px;
    gap: 4px;
}
.gcb-mode-btn {
    padding: 8px 22px;
    border: none;
    border-radius: 36px;
    background: transparent;
    color: var(--gcb-gray-600);
    font-size: .85em;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.gcb-mode-btn.active {
    background: var(--gcb-navy);
    color: #fff;
    box-shadow: 0 2px 10px rgba(10,37,64,.25);
}
/* ── Step indicators ──────────────────────────────────────────────────────── */
.gcb-steps {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}
.gcb-step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: .4;
    transition: opacity .3s;
}
.gcb-step.active, .gcb-step.done { opacity: 1; }
.gcb-step-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--gcb-gray-200);
    color: var(--gcb-gray-600);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .88em;
    transition: all .3s;
    flex-shrink: 0;
}
.gcb-step.active .gcb-step-num {
    background: var(--gcb-blue);
    color: #fff;
    box-shadow: 0 0 0 4px var(--gcb-blue-pale);
}
.gcb-step.done .gcb-step-num {
    background: var(--gcb-green);
    color: #fff;
}
.gcb-step-label { font-size: .85em; font-weight: 600; color: var(--gcb-gray-800); }
.gcb-step-sep {
    flex: 1;
    height: 2px;
    background: var(--gcb-gray-200);
    margin: 0 12px;
    min-width: 20px;
}
/* ── Cards (sections) ─────────────────────────────────────────────────────── */
.gcb-card {
    background: var(--gcb-white);
    border: 1px solid var(--gcb-gray-200);
    border-radius: var(--gcb-radius);
    box-shadow: var(--gcb-shadow);
    padding: 24px 28px;
    margin-bottom: 16px;
}
.gcb-card-title {
    font-size: .95em;
    font-weight: 700;
    color: var(--gcb-navy);
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--gcb-gray-100);
}
.gcb-info-box {
    background: var(--gcb-gray-50);
    border-color: var(--gcb-blue-pale);
    color: var(--gcb-gray-600);
    font-size: .9em;
}
.gcb-info-box p { margin: 0; }
/* ── Grid ─────────────────────────────────────────────────────────────────── */
.gcb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px 18px;
}
.gcb-grid-dims { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gcb-col-full { grid-column: 1 / -1; }
@media (max-width: 640px) { .gcb-grid-dims { grid-template-columns: 1fr; } }
/* ── Fields ───────────────────────────────────────────────────────────────── */
.gcb-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.gcb-field label {
    font-size: .75em;
    font-weight: 700;
    color: var(--gcb-gray-600);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.gcb-field input,
.gcb-field select {
    padding: 9px 13px;
    border: 1.5px solid var(--gcb-gray-200);
    border-radius: var(--gcb-radius-sm);
    font-size: .93em;
    color: var(--gcb-gray-800);
    background: var(--gcb-white);
    transition: border-color .18s, box-shadow .18s;
    width: 100%;
}
.gcb-field input:focus,
.gcb-field select:focus {
    outline: none;
    border-color: var(--gcb-blue);
    box-shadow: 0 0 0 3px rgba(30,111,255,.12);
}
.gcb-field input[readonly] { background: var(--gcb-gray-100); color: var(--gcb-gray-600); cursor: default; }
.gcb-field small { font-size: .72em; color: var(--gcb-gray-400); }
/* Input + unit inline */
.gcb-input-group {
    display: flex; gap: 7px;
}
.gcb-input-group input { flex: 1; }
.gcb-input-group select { width: 88px; flex-shrink: 0; }
.gcb-unit-tag {
    display: flex; align-items: center;
    padding: 0 12px;
    background: var(--gcb-gray-100);
    border: 1.5px solid var(--gcb-gray-200);
    border-radius: var(--gcb-radius-sm);
    font-size: .82em;
    color: var(--gcb-gray-600);
    white-space: nowrap;
    flex-shrink: 0;
}
/* Checkbox */
.gcb-field-check { justify-content: flex-end; padding-bottom: 2px; }
.gcb-check-label {
    display: flex; align-items: center; gap: 9px;
    cursor: pointer; font-size: .9em;
    font-weight: 500; color: var(--gcb-gray-800);
    user-select: none;
}
.gcb-check-label input[type="checkbox"] {
    width: 17px; height: 17px;
    accent-color: var(--gcb-blue);
    cursor: pointer;
    border-radius: 4px;
}
/* Radio group */
.gcb-radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.gcb-radio-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 18px;
    border: 1.5px solid var(--gcb-gray-200);
    border-radius: var(--gcb-radius-sm);
    cursor: pointer;
    font-size: .9em;
    font-weight: 500;
    transition: all .18s;
    background: var(--gcb-white);
}
.gcb-radio-btn:has(input:checked) {
    border-color: var(--gcb-blue);
    background: var(--gcb-blue-pale);
    color: var(--gcb-navy);
    font-weight: 600;
}
.gcb-radio-btn input { accent-color: var(--gcb-blue); }
/* ── Form footer ──────────────────────────────────────────────────────────── */
.gcb-form-footer {
    display: flex;
    justify-content: center;
    padding: 28px 0 8px;
}
/* ── Buttons ──────────────────────────────────────────────────────────────── */
.gcb-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--gcb-blue);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--gcb-radius-sm);
    font-size: .92em;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .18s, transform .15s, box-shadow .15s;
}
.gcb-btn-primary:hover {
    background: var(--gcb-blue-hover);
    box-shadow: var(--gcb-shadow-md);
    transform: translateY(-1px);
    color: #fff;
}
.gcb-btn-xl { padding: 14px 44px; font-size: 1em; }
.gcb-btn-primary:disabled,
.gcb-btn-primary[disabled] {
    background: #b9c4d1;
    color: #f2f5f9;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    pointer-events: none;
}
.gcb-req { color: var(--gcb-red); font-weight: 700; margin-left: 2px; }
.gcb-preview-card { border: 1px dashed var(--gcb-blue); }
.gcb-preview-tag { font-size: .6em; font-weight: 700; color: var(--gcb-blue); background: #fff; border: 1px solid var(--gcb-blue); border-radius: 10px; padding: 2px 8px; vertical-align: middle; margin-left: 6px; text-transform: uppercase; letter-spacing: .04em; }
.gcb-preview-note { margin-top: 10px; font-size: .82em; color: var(--gcb-gray-600); }
.gcb-option-sist { color: var(--gcb-blue); font-weight: 600; }
.gcb-btn-outline {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent;
    color: var(--gcb-blue);
    border: 1.5px solid var(--gcb-blue);
    padding: 10px 22px;
    border-radius: var(--gcb-radius-sm);
    font-size: .9em; font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .18s;
}
.gcb-btn-outline:hover { background: var(--gcb-blue-pale); }
.gcb-btn-sm { padding: 7px 16px; font-size: .82em; }
.gcb-btn-text {
    background: none; border: none;
    color: var(--gcb-blue);
    font-size: .88em; font-weight: 600;
    cursor: pointer; padding: 0;
    display: inline-block;
}
.gcb-btn-text:hover { text-decoration: underline; }
/* Step nav */
.gcb-step-nav {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 0;
    flex-wrap: wrap;
}
/* ── Results heading ─────────────────────────────────────────────────────── */
.gcb-results-heading {
    text-align: center;
    font-size: 1.25em;
    font-weight: 700;
    color: var(--gcb-navy);
    margin: 0 0 24px;
}
/* ── Results layout: table + donut ───────────────────────────────────────── */
.gcb-results-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.gcb-results-table-wrap { flex: 1; min-width: 280px; }
.gcb-donut-wrap {
    flex: 0 0 300px;
    height: 280px;
    position: relative;
}
@media (max-width: 700px) {
    .gcb-donut-wrap { flex: 1 1 100%; height: 240px; }
}
/* Results table */
.gcb-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .91em;
}
.gcb-results-table td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--gcb-gray-100);
    vertical-align: middle;
}
.gcb-results-table .gcb-tr-group-label td {
    background: var(--gcb-gray-100);
    font-size: .78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--gcb-blue);
    padding: 6px 12px;
}
.gcb-results-table .gcb-td-sub {
    padding-left: 22px;
    color: var(--gcb-gray-600);
}
.gcb-results-table .gcb-td-val {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
    color: var(--gcb-navy);
    min-width: 120px;
}
.gcb-results-table .gcb-tr-total td {
    font-weight: 700;
    color: var(--gcb-navy);
    border-top: 2px solid var(--gcb-gray-200);
    font-size: 1em;
}
.gcb-results-table .gcb-tr-requerida td {
    font-weight: 700;
    color: var(--gcb-blue);
    font-size: 1.05em;
}
/* ── Equipment card ───────────────────────────────────────────────────────── */
.gcb-equip-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.gcb-equip-table-wrap { flex: 1; min-width: 260px; }
.gcb-equip-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .91em;
}
.gcb-equip-detail-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--gcb-gray-100);
    vertical-align: middle;
}
.gcb-equip-detail-table td:first-child {
    color: var(--gcb-gray-600);
    width: 50%;
}
.gcb-equip-detail-table td:last-child {
    font-weight: 700;
    color: var(--gcb-navy);
    text-align: right;
}
.gcb-equip-summary {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.gcb-equip-summary p {
    font-size: .95em;
    line-height: 1.6;
    color: var(--gcb-gray-800);
    margin: 0;
}
.gcb-equip-ctas { display: flex; flex-direction: column; gap: 10px; }
.gcb-equip-link-secondary {
    color: var(--gcb-blue);
    font-size: .88em;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 4px;
}
.gcb-equip-link-secondary:hover { text-decoration: underline; }
.gcb-equip-link-secondary::before { content: '↩ '; }
/* Other options */
.gcb-otras-opciones-wrap { margin-top: 4px; }
.gcb-option-row {
    display: flex; gap: 14px; align-items: center;
    padding: 9px 12px;
    border-radius: var(--gcb-radius-sm);
    font-size: .86em;
    border: 1px solid var(--gcb-gray-200);
    margin-top: 6px;
    flex-wrap: wrap;
}
.gcb-option-top {
    background: var(--gcb-blue-pale);
    border-color: var(--gcb-blue);
}
.gcb-option-code { font-weight: 700; color: var(--gcb-navy); }
.gcb-option-fs   { color: var(--gcb-blue); font-weight: 600; margin-left: auto; }
/* ── Save section ─────────────────────────────────────────────────────────── */
#gcb-save-msg {
    padding: 12px 16px;
    border-radius: var(--gcb-radius-sm);
    font-size: .9em;
    font-weight: 500;
}
#gcb-save-msg.success {
    background: #e6f9f1; color: #0a7a4a;
    border: 1px solid #9de0c2;
}
#gcb-save-msg.error {
    background: #fef0f0; color: #c0392b;
    border: 1px solid #f5b7b1;
}
/* ── History section ──────────────────────────────────────────────────────── */
.gcb-history-section {
    background: var(--gcb-white);
    border: 1px solid var(--gcb-gray-200);
    border-radius: var(--gcb-radius);
    box-shadow: var(--gcb-shadow);
    padding: 24px 28px;
    margin-top: 20px;
}
.gcb-history-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
}
.gcb-history-header h3 {
    margin: 0;
    font-size: 1em; font-weight: 700;
    color: var(--gcb-navy);
}
.gcb-history-table { width: 100%; border-collapse: collapse; font-size: .88em; }
.gcb-history-table th {
    text-align: left; padding: 9px 12px;
    border-bottom: 2px solid var(--gcb-gray-200);
    color: var(--gcb-gray-400);
    font-size: .72em; text-transform: uppercase; letter-spacing: .06em;
    white-space: nowrap;
}
.gcb-history-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--gcb-gray-100);
    vertical-align: middle;
}
.gcb-history-table tr:hover td { background: var(--gcb-gray-50); }
.gcb-tbl-actions { display: flex; gap: 8px; }
.gcb-btn-icon {
    background: none; border: none; cursor: pointer;
    color: var(--gcb-blue); font-size: .82em;
    padding: 5px 10px; border-radius: 5px;
    font-weight: 600;
}
.gcb-btn-icon:hover { background: var(--gcb-blue-pale); }
.gcb-btn-icon.danger { color: var(--gcb-red); }
.gcb-btn-icon.danger:hover { background: #fef0f0; }
.gcb-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .72em;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.gcb-badge-basic    { background: var(--gcb-blue-pale); color: var(--gcb-blue); }
.gcb-badge-advanced { background: #e8f5ee; color: #0a7a4a; }
.gcb-loading { padding: 28px; text-align: center; color: var(--gcb-gray-400); font-size: .9em; }
.gcb-empty   { padding: 28px; text-align: center; color: var(--gcb-gray-400); font-size: .9em; }
/* ── Loading overlay ──────────────────────────────────────────────────────── */
.gcb-overlay {
    position: fixed; inset: 0;
    background: rgba(10,37,64,.55);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 99999;
    color: #fff; gap: 16px;
    backdrop-filter: blur(2px);
}
.gcb-overlay p { font-size: .95em; font-weight: 500; margin: 0; }
.gcb-spinner {
    width: 46px; height: 46px;
    border: 4px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gcb-spin .75s linear infinite;
}
@keyframes gcb-spin { to { transform: rotate(360deg); } }
/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .gcb-card { padding: 18px 14px; }
    .gcb-header { flex-direction: column; align-items: flex-start; }
    .gcb-header h2 { font-size: 1.5em; }
    .gcb-steps { gap: 4px; }
    .gcb-step-label { display: none; }
    .gcb-step-sep { margin: 0 6px; }
    .gcb-form-footer { flex-direction: column; align-items: stretch; }
    .gcb-btn-xl { text-align: center; justify-content: center; }
    .gcb-equip-layout { flex-direction: column; }
    .gcb-history-table th:nth-child(3),
    .gcb-history-table td:nth-child(3) { display: none; }
    .gcb-step-nav { justify-content: stretch; }
    .gcb-step-nav > * { flex: 1; text-align: center; justify-content: center; }
}
/* ── Mode-based visibility (CSS-level, strongest specificity) ─────────────── */
/* ── Panel (results wrapper) ──────────────────────────────────────────────── */
.gcb-panel {
    background: var(--gcb-white);
    border: 1px solid var(--gcb-gray-200);
    border-radius: var(--gcb-radius);
    box-shadow: var(--gcb-shadow);
    padding: 28px 32px;
    margin-bottom: 20px;
}
.gcb-info-panel {
    background: var(--gcb-gray-50);
    border-color: var(--gcb-blue-pale);
    color: var(--gcb-gray-600);
    font-size: .9em;
}
.gcb-info-panel p { margin: 0; line-height: 1.6; }
/* ── Results title ────────────────────────────────────────────────────────── */
.gcb-results-title {
    text-align: center;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--gcb-navy);
    margin: 0 0 22px;
}
/* ── Hero capacity card ───────────────────────────────────────────────────── */
.gcb-hero-card {
    background: linear-gradient(135deg, var(--gcb-navy) 0%, #1a3a5c 100%);
    border-radius: var(--gcb-radius);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    color: #fff;
}
.gcb-hero-label { font-size: .88em; opacity: .75; flex: 1; min-width: 160px; }
.gcb-hero-value { font-size: 3em; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.gcb-hero-unit  { font-size: 1.1em; opacity: .7; font-weight: 600; }
/* ── Results body: charges + donut ───────────────────────────────────────── */
.gcb-res-body {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.gcb-charges-section { flex: 1; min-width: 260px; }
.gcb-charges-title {
    font-size: .75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--gcb-blue);
    margin: 0 0 12px;
}
.gcb-charges-list {
    border: 1px solid var(--gcb-gray-200);
    border-radius: var(--gcb-radius-sm);
    overflow: hidden;
}
.gcb-charge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--gcb-gray-100);
    font-size: .9em;
    gap: 12px;
}
.gcb-charge-row:last-child { border-bottom: none; }
.gcb-charge-row span { color: var(--gcb-gray-600); }
.gcb-charge-row strong { color: var(--gcb-navy); font-weight: 600; white-space: nowrap; }
.gcb-charge-total {
    background: var(--gcb-gray-50);
    font-weight: 700;
}
.gcb-charge-total span  { color: var(--gcb-navy); font-weight: 700; }
.gcb-charge-total strong { font-size: 1.05em; }
.gcb-charge-requerida {
    background: var(--gcb-blue-pale);
}
.gcb-charge-requerida span  { color: var(--gcb-blue); font-weight: 700; }
.gcb-charge-requerida strong { color: var(--gcb-blue); font-size: 1.1em; }
/* Donut */
.gcb-donut-wrap {
    flex: 0 0 280px;
    height: 260px;
}
@media (max-width: 680px) {
    .gcb-donut-wrap { flex: 1 1 100%; height: 220px; }
}
/* ── Equipment detail table ───────────────────────────────────────────────── */
.gcb-equip-layout {
    display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap;
}
.gcb-equip-table-wrap { flex: 1; min-width: 240px; }
.gcb-equip-detail-table {
    width: 100%; border-collapse: collapse; font-size: .9em;
}
.gcb-equip-detail-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--gcb-gray-100);
    vertical-align: middle;
}
.gcb-equip-detail-table td:first-child { color: var(--gcb-gray-600); width: 48%; }
.gcb-equip-detail-table td:last-child  { font-weight: 700; color: var(--gcb-navy); }
.gcb-equip-summary {
    flex: 1; min-width: 180px;
    display: flex; flex-direction: column; gap: 12px;
}
.gcb-equip-summary p { font-size: .95em; line-height: 1.65; color: var(--gcb-gray-800); margin: 0; }
.gcb-equip-ctas { display: flex; flex-direction: column; gap: 10px; }
.gcb-equip-back-link {
    color: var(--gcb-blue); font-size: .88em; font-weight: 600;
    text-decoration: none; display: inline-block;
}
.gcb-equip-back-link:hover { text-decoration: underline; }
.gcb-option-row {
    display: flex; gap: 12px; align-items: center;
    padding: 8px 12px; border-radius: 6px;
    font-size: .85em; border: 1px solid var(--gcb-gray-200);
    margin-top: 6px; flex-wrap: wrap;
    background: var(--gcb-white);
}
.gcb-option-top { background: var(--gcb-blue-pale); border-color: var(--gcb-blue); }
.gcb-option-code { font-weight: 700; color: var(--gcb-navy); }
.gcb-option-fs { color: var(--gcb-blue); font-weight: 600; margin-left: auto; }
@media (max-width: 640px) {
    .gcb-hero-value { font-size: 2.2em; }
    .gcb-panel { padding: 18px 14px; }
    .gcb-equip-layout { flex-direction: column; }
}
/* ============================================================================
   HOME VIEW - Mode selection (replicates legacy ?c=balance&v=home)
   Shown when [data-view="home"]; hidden once user picks a mode.
   ========================================================================== */
#gcb-app[data-view="home"] #gcb-step-1,
#gcb-app[data-view="home"] #gcb-step-2,
#gcb-app[data-view="home"] #gcb-step-3,
#gcb-app[data-view="home"] [data-hide-on-home],
#gcb-app[data-view="home"] #gcb-history {
    display: none !important;
}
#gcb-app:not([data-view="home"]) #gcb-home {
    display: none !important;
}
.gcb-home {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 0;
}
.gcb-home-title {
    font-size: 1.6rem;
    color: var(--gcb-navy);
    text-align: center;
    margin: 8px 0 4px;
    font-weight: 700;
}
.gcb-home-intro {
    text-align: center;
    color: var(--gcb-gray-500, #4b5563);
    margin: 0 0 28px;
    font-size: 1rem;
}
.gcb-home-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
@media (max-width: 720px) {
    .gcb-home-cards { grid-template-columns: 1fr; }
}
.gcb-home-card {
    background: #fff;
    border: 1px solid #E4E7EC;
    border-radius: 22px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.gcb-home-card:hover {
    border-color: var(--gcb-blue, #0B39F2);
    box-shadow: 0 6px 22px rgba(11, 57, 242, .08);
    transform: translateY(-2px);
}
.gcb-home-card-icon {
    font-size: 2.6rem;
    line-height: 1;
    margin-bottom: 14px;
    color: var(--gcb-blue, #0B39F2);
}
.gcb-home-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gcb-navy);
    margin: 0 0 12px;
}
.gcb-home-card-desc {
    color: var(--gcb-gray-500, #4b5563);
    font-size: .94rem;
    line-height: 1.55;
    margin: 0 0 24px;
    flex: 1;
}
.gcb-home-cta {
    min-width: 220px;
    width: auto;
}
/* ============================================================================
   BASIC MODE - Hides 7 fields/cards that the legacy auto-suggests.
   When data-mode="advanced", all fields are visible.
   ========================================================================== */
#gcb-app[data-mode="basic"] .gcb-basic-hidden {
    display: none !important;
}
/* Form header: back button + mode indicator */
.gcb-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.gcb-header h2 {
    margin: 0;
    flex: 1;
    min-width: 0;
}
.gcb-btn-back-home {
    background: transparent;
    border: 1px solid #E4E7EC;
    border-radius: 12px;
    padding: 8px 14px;
    cursor: pointer;
    color: var(--gcb-navy, #1a3040);
    font-size: .92rem;
    transition: background .15s ease, border-color .15s ease;
}
.gcb-btn-back-home:hover {
    background: #F5F7FA;
    border-color: var(--gcb-blue, #0B39F2);
}
.gcb-mode-indicator {
    font-size: .85rem;
    color: var(--gcb-gray-500, #6b7280);
    background: #F0F4FF;
    border: 1px solid #DDE6FF;
    border-radius: 999px;
    padding: 6px 14px;
    white-space: nowrap;
}
.gcb-mode-indicator strong {
    color: var(--gcb-blue, #0B39F2);
    font-weight: 600;
}
/* Show only the matching mode label */
.gcb-mode-indicator [data-show-mode] { display: none; }
#gcb-app[data-mode="basic"]    .gcb-mode-indicator [data-show-mode="basic"]    { display: inline; }
#gcb-app[data-mode="advanced"] .gcb-mode-indicator [data-show-mode="advanced"] { display: inline; }
/* ── USD/ARS dual price display (WooCommerce catalog) ─────────────────────── */
.gcb-price-usd {
    font-weight: 700;
    color: var(--gcb-navy);
    font-size: 1em;
}
.gcb-price-ars {
    font-size: .8em;
    color: var(--gcb-gray-400);
    display: block;
    margin-top: 2px;
}

/* 1.1.14 */
#gcb-app .gcb-hero-value {font-size:clamp(2.8rem,6vw,4.5rem);line-height:1.15;overflow-wrap:anywhere;}
#gcb-chart-legend {display:grid;gap:8px;margin-top:16px;font-size:13px;white-space:normal;}
#gcb-chart-legend span {display:inline-block;width:12px;height:12px;margin-right:8px;}

#gcb-app .gcb-donut-wrap {height:auto;min-width:0;}
.gcb-chart-canvas {position:relative;height:240px;}

.gcb-option-status {flex-basis:100%;font-size:13px;white-space:normal;}
.gcb-option-top .gcb-option-status {color:#155e38;}
.gcb-option-insufficient .gcb-option-status {color:#8a3b12;}

/* Result actions stay above the equipment recommendations. */
.gcb-results-nav { margin-bottom: 24px; }
