/* ═══════════════════════════════════════════════ */
/* Desarrollo — Lifecycle Dashboard               */
/* ═══════════════════════════════════════════════ */

.lc-layout {
    padding: 1.5rem;
    max-width: 100%;
    font-family: 'DM Sans', 'Inter', sans-serif;
}

/* ── Header ── */
.lc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.lc-header-left {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.lc-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lc-title-icon {
    font-size: 1.2rem;
}

.lc-subtitle {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
}

.lc-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.lc-search-icon {
    position: absolute;
    left: 10px;
    color: #475569;
    pointer-events: none;
}

.lc-search {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 7px 12px 7px 30px;
    font-size: 0.78rem;
    color: #e2e8f0;
    width: 220px;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.lc-search:focus {
    border-color: rgba(167, 139, 250, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

/* ── KPI Cards ── */
.lc-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.lc-kpi-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.25s ease;
}

.lc-kpi-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.lc-kpi-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lc-kpi-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-feature-settings: 'tnum' 1;
    line-height: 1.2;
}

.lc-kpi-sub {
    font-size: 0.62rem;
    color: #475569;
    font-weight: 500;
}

.lc-kpi-launch .lc-kpi-value { color: #a78bfa; }
.lc-kpi-growth .lc-kpi-value { color: #60a5fa; }
.lc-kpi-mature .lc-kpi-value { color: #34d399; }
.lc-kpi-revenue .lc-kpi-value { color: #fbbf24; font-size: 1.2rem; }

/* ── Analysis Row (Dev Times + Goal) ── */
.lc-analysis-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .lc-analysis-row {
        grid-template-columns: 1fr;
    }
}

.lc-analysis-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px 18px;
}

/* ── Dev Times Bars ── */
.lc-devtimes-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #e2e8f0;
}

.lc-devtimes-hint {
    font-size: 0.68rem;
    font-weight: 500;
    color: #94a3b8;
}

.lc-devtimes-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lc-devtime-row {
    display: grid;
    grid-template-columns: 90px 1fr 42px;
    align-items: center;
    gap: 10px;
}

.lc-devtime-row--slow .lc-devtime-label {
    font-weight: 700 !important;
}

.lc-devtime-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-align: right;
}

.lc-devtime-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    overflow: hidden;
}

.lc-devtime-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 4px;
}

.lc-devtime-value {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
    text-align: right;
}

/* ── Goal Tracker ── */
.lc-goal-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    justify-content: center;
}

.lc-goal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.lc-goal-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #e2e8f0;
}

.lc-goal-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lc-goal-input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px 8px;
    width: 60px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #e2e8f0;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    transition: border-color 0.2s;
}

.lc-goal-input:focus {
    border-color: rgba(167, 139, 250, 0.5);
}

.lc-goal-label {
    font-size: 0.65rem;
    color: #64748b;
}

.lc-goal-bar-bg {
    height: 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    overflow: hidden;
}

.lc-goal-bar {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, #6366f1, #a78bfa);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 4px;
}

.lc-goal-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #94a3b8;
}

.lc-goal-pct {
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

/* ── Phase Filters ── */
.lc-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.lc-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.lc-pill:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
}

.lc-pill.active {
    background: rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.3);
    color: #a78bfa;
}

/* ── Table ── */
.lc-table-container {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.lc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.lc-table thead th {
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 14px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.lc-table thead th:hover {
    color: #e2e8f0;
}

.lc-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.lc-row {
    transition: background 0.15s;
}

.lc-row:hover {
    background: rgba(167, 139, 250, 0.04);
}

.lc-product-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lc-product-name {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.lc-product-sku {
    font-size: 0.65rem;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
}

/* Badges */
.lc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
}

.lc-badge-launch {
    background: rgba(167, 139, 250, 0.12);
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.lc-badge-growth {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.lc-badge-mature {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.lc-badge-established {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Value cells */
.lc-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #cbd5e1;
    font-feature-settings: 'tnum' 1;
}

.lc-money {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #fbbf24;
    font-weight: 600;
    font-feature-settings: 'tnum' 1;
}

.lc-plats {
    font-size: 0.68rem;
    color: #64748b;
}
