/* ===== SIDEBAR OVERLAY ===== */
.sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 105;
}
.sidebar-overlay.show { display: block; }

/* ===== PROJECT PAGES ===== */
.project-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 24px;
}
.project-icon {
    width: 48px; height: 48px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800;
}
.project-icon.sg { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.project-icon.expert { background: rgba(99, 102, 241, 0.12); color: var(--indigo); }
.project-icon.metodo { background: rgba(0, 212, 255, 0.12); color: var(--accent); }

.project-meta { flex: 1; }
.project-meta h1 { font-size: 20px; font-weight: 700; }
.project-meta p { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.product-card {
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex; flex-direction: column; gap: 6px;
}
.product-card .product-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.product-card .product-desc { font-size: 11px; color: var(--text-secondary); }
.product-card .product-price { font-size: 13px; font-weight: 700; color: var(--success); }

.team-member {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}
.team-member:last-child { border-bottom: none; }
.team-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--indigo));
    flex-shrink: 0;
}
.team-info .team-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.team-info .team-role { font-size: 11px; color: var(--text-secondary); }

/* ===== DEPLOY STATUS ===== */
.deploy-status {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600;
}
.deploy-dot {
    width: 8px; height: 8px; border-radius: 50%;
}
.deploy-dot.online { background: var(--success); box-shadow: 0 0 6px rgba(16,185,129,0.5); }
.deploy-dot.pending { background: var(--warning); box-shadow: 0 0 6px rgba(245,158,11,0.5); }
.deploy-dot.offline { background: var(--danger); box-shadow: 0 0 6px rgba(239,68,68,0.5); }

/* ===== PIPELINE COLS (fallback) ===== */
.pipeline-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.pipeline-col {
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    min-height: 200px;
}
.pipeline-col-header {
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex; align-items: center; justify-content: space-between;
}
.pipeline-col-count {
    background: var(--bg-hover); border-radius: 10px;
    padding: 1px 7px; font-size: 11px;
}
.pipeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.15s;
}
.pipeline-card:hover { border-color: rgba(0, 212, 255, 0.3); }
.pipeline-card .pc-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.pipeline-card .pc-company { font-size: 11px; color: var(--text-secondary); }
.pipeline-card .pc-value { font-size: 12px; font-weight: 700; color: var(--success); margin-top: 4px; }

/* ===== CADENCIA TIMELINE ===== */
.cad-timeline {
    position: relative;
    padding-left: 24px;
}
.cad-timeline::before {
    content: '';
    position: absolute; left: 8px; top: 0; bottom: 0;
    width: 2px; background: var(--border);
}
.cad-step {
    position: relative;
    padding: 12px 0 12px 16px;
}
.cad-step::before {
    content: '';
    position: absolute; left: -20px; top: 18px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--border); border: 2px solid var(--bg-main);
}
.cad-step.active::before { background: var(--accent); }
.cad-step.done::before { background: var(--success); }
.cad-step-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.cad-step-desc { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.cad-step-day { font-size: 10px; color: var(--text-muted); margin-top: 1px; }

/* ===== CALCULADORA ===== */
.calc-input-group {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-bottom: 16px;
}
.calc-field label {
    display: block; font-size: 11px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px;
}
.calc-field input, .calc-field select {
    width: 100%; padding: 9px 12px; border-radius: var(--radius-xs);
    border: 1px solid var(--border); background: var(--bg-input); color: var(--text-primary);
    font-size: 13px; font-family: inherit;
}
.calc-field input:focus, .calc-field select:focus {
    outline: none; border-color: var(--accent);
}
.calc-result {
    background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-sm); padding: 16px;
    text-align: center;
}
.calc-result .calc-total {
    font-size: 28px; font-weight: 800; color: var(--success);
}
.calc-result .calc-label {
    font-size: 12px; color: var(--text-secondary); margin-top: 4px;
}

/* ===== SCRIPTS ===== */
.script-card {
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.15s;
}
.script-card:hover { border-color: rgba(0, 212, 255, 0.3); }
.script-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.script-card p { font-size: 11px; color: var(--text-secondary); }
.script-content {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 16px;
    font-size: 12px;
    line-height: 1.7;
    white-space: pre-wrap;
    color: var(--text-secondary);
    max-height: 400px;
    overflow-y: auto;
}

/* ===== LINKS ROW ===== */
.links-row {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px;
}
.link-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 12px; border-radius: var(--radius-xs);
    background: var(--bg-hover); color: var(--text-secondary);
    font-size: 11px; font-weight: 600;
    cursor: pointer; transition: all 0.15s;
}
.link-chip:hover { background: rgba(0, 212, 255, 0.08); color: var(--accent); }

/* ===== PLACEHOLDER ===== */
.placeholder-section {
    text-align: center; padding: 60px 20px;
    color: var(--text-muted);
}
.placeholder-section .placeholder-icon {
    font-size: 48px; margin-bottom: 12px; opacity: 0.5;
}
.placeholder-section h3 {
    font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px;
}

/* ===== PERMISSIONS ===== */
.perm-list { display: flex; flex-wrap: wrap; gap: 4px; }

/* ===== RESPONSIVE (pages) ===== */
@media (max-width: 768px) {
    .pipeline-cols { grid-template-columns: 1fr 1fr; }
    .calc-input-group { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .pipeline-cols { grid-template-columns: 1fr; }
}
