/* =============================================================
   CENTRO DE CRECIMIENTO
   ============================================================= */

.growth-page { max-width: 72rem; }

/* Share bar */
.growth-share-bar { border: 1.5px solid #e4e4e7; }
.growth-share-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #059669;
    display: flex; align-items: center; justify-content: center;
}
.growth-share-input {
    width: 100%;
    margin-top: .25rem;
    padding: .5rem .75rem;
    font-size: .8125rem;
    font-family: ui-monospace, monospace;
    background: #fafafa;
    border: 1px solid #e4e4e7;
    border-radius: .5rem;
    color: #52525b;
}

.growth-badge-closed {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .75rem; font-weight: 700;
    background: #fef2f2; color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Score ring */
.growth-score-ring { transition: stroke-dasharray .6s ease; }

/* Dimension bars */
.growth-dim-bar {
    height: 5px;
    border-radius: 999px;
    background: #f4f4f5;
    overflow: hidden;
}
.growth-dim-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #10B981, #A3E635);
    transition: width .4s ease;
}

.kpi-card-compact { padding: .75rem 1rem; }

/* Chart */
.growth-chart {
    display: flex;
    align-items: flex-end;
    gap: .5rem;
    height: 100px;
    padding-top: .5rem;
}
.growth-chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-width: 0;
}
.growth-chart-bar {
    width: 100%;
    max-width: 36px;
    margin-top: auto;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #A3E635 0%, #10B981 100%);
    opacity: .85;
    transition: opacity .15s ease;
}
.growth-chart-col:hover .growth-chart-bar { opacity: 1; }
.growth-chart-label {
    font-size: .625rem;
    font-weight: 700;
    color: #a1a1aa;
    margin-top: .25rem;
}
.growth-chart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border: 1.5px dashed #e4e4e7;
    border-radius: .75rem;
    text-align: center;
}

/* Playbook */
.growth-playbook-ring {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: conic-gradient(#10B981 calc(var(--pct) * 1%), #f4f4f5 0);
    position: relative;
}
.growth-playbook-ring::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: #fff;
}
.growth-playbook-ring span {
    position: relative;
    z-index: 1;
}
.growth-playbook-list {
    display: grid;
    gap: .5rem;
}
@media (min-width: 640px) {
    .growth-playbook-list { grid-template-columns: 1fr 1fr; }
}
.growth-playbook-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .85rem;
    border-radius: .75rem;
    border: 1.5px solid #f4f4f5;
    background: #fafafa;
}
.growth-playbook-item.is-done {
    background: #ecfdf5;
    border-color: #a7f3d0;
}
.growth-playbook-check {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    color: #d4d4d8;
    flex-shrink: 0;
}
.growth-playbook-item.is-done .growth-playbook-check {
    background: #d1fae5;
    color: #059669;
}
.growth-playbook-link {
    display: inline-flex; align-items: center; gap: .2rem;
    font-size: .75rem; font-weight: 700;
    color: #059669;
    white-space: nowrap;
}
.growth-playbook-link:hover { text-decoration: underline; }

/* Template chips */
.growth-templates-row {
    display: grid;
    gap: .75rem;
}
@media (min-width: 640px) {
    .growth-templates-row { grid-template-columns: repeat(3, 1fr); }
}
.growth-template-chip {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border-radius: .85rem;
    border: 1.5px solid #e4e4e7;
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    text-decoration: none;
    color: inherit;
}
.growth-template-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px rgba(0,0,0,.12);
    border-color: #a7f3d0;
}
.growth-template-disc {
    margin-left: auto;
    font-size: .875rem;
    font-weight: 800;
    color: #059669;
    white-space: nowrap;
}

/* Filters */
.growth-filters .pill-filter { font-size: .75rem; padding: .35rem .75rem; }
.growth-filters .filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 .25rem;
    margin-left: .25rem;
    border-radius: 999px;
    font-size: .625rem;
    font-weight: 800;
    background: rgba(0,0,0,.08);
}

/* Cards grid */
.growth-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.growth-card {
    position: relative;
    padding: 1.25rem;
    border-radius: 1rem;
    background: #fff;
    border: 1.5px solid #e4e4e7;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.growth-card.hidden { display: none; }
.growth-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -16px rgba(0, 0, 0, .14);
    border-color: #d4d4d8;
}

.growth-card-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: #f4f4f5;
    color: #52525b;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: .25rem;
}

.growth-card-tag {
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #71717a;
}

.growth-card-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    color: #18181b;
}

.growth-card-desc {
    font-size: .8125rem;
    color: #52525b;
    line-height: 1.45;
}
.growth-card-bullets {
    font-size: .75rem;
    color: #71717a;
    list-style: none;
    padding: 0;
    margin: 0;
}
.growth-card-bullets li::before { content: '• '; }

.growth-card-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem .9rem;
    border-radius: .75rem;
    font-size: .8125rem;
    font-weight: 700;
    background: #18181b;
    color: #fff;
    transition: background .15s ease;
    text-decoration: none;
}
.growth-card-cta:hover { background: #27272a; }
.growth-card-cta--ghost {
    background: transparent;
    color: #18181b;
    border: 1.5px solid #e4e4e7;
}
.growth-card-cta--ghost:hover { background: #f4f4f5; }

/* Variantes */
.growth-card--warning { border-color: #fcd34d; background: linear-gradient(180deg, #fffbeb 0%, #fff 60%); }
.growth-card--warning .growth-card-icon { background: #fef3c7; color: #b45309; }
.growth-card--warning .growth-card-cta:not(.growth-card-cta--ghost) { background: #f59e0b; }
.growth-card--warning .growth-card-cta:not(.growth-card-cta--ghost):hover { background: #d97706; }

.growth-card--brand { border-color: #a7f3d0; background: linear-gradient(180deg, #ecfdf5 0%, #fff 60%); }
.growth-card--brand .growth-card-icon { background: #d1fae5; color: #047857; }
.growth-card--brand .growth-card-cta:not(.growth-card-cta--ghost) { background: #10b981; }
.growth-card--brand .growth-card-cta:not(.growth-card-cta--ghost):hover { background: #059669; }

.growth-card--info { border-color: #93c5fd; background: linear-gradient(180deg, #eff6ff 0%, #fff 60%); }
.growth-card--info .growth-card-icon { background: #dbeafe; color: #1d4ed8; }
.growth-card--info .growth-card-cta:not(.growth-card-cta--ghost) { background: #3b82f6; }
.growth-card--info .growth-card-cta:not(.growth-card-cta--ghost):hover { background: #2563eb; }

.growth-card--danger { border-color: #fca5a5; background: linear-gradient(180deg, #fef2f2 0%, #fff 60%); }
.growth-card--danger .growth-card-icon { background: #fee2e2; color: #b91c1c; }
.growth-card--danger .growth-card-cta:not(.growth-card-cta--ghost) { background: #ef4444; }
.growth-card--danger .growth-card-cta:not(.growth-card-cta--ghost):hover { background: #dc2626; }

.growth-card--success { border-color: #6ee7b7; background: linear-gradient(180deg, #ecfdf5 0%, #fff 60%); }
.growth-card--success .growth-card-icon { background: #d1fae5; color: #047857; }
.growth-card--success .growth-card-cta:not(.growth-card-cta--ghost) { background: #059669; }
.growth-card--success .growth-card-cta:not(.growth-card-cta--ghost):hover { background: #047857; }

.growth-card--neutral .growth-card-icon { background: #f4f4f5; color: #52525b; }

.growth-card--brand-soft { border-color: #d4d4d8; background: linear-gradient(135deg, #fafafa 0%, #fff 100%); }
.growth-card--brand-soft .growth-card-icon { background: #18181b; color: #fff; }

/* Dark mode */
html.dark .growth-share-bar { border-color: #27272a; background: #18181b; }
html.dark .growth-share-input { background: #27272a; border-color: #3f3f46; color: #d4d4d8; }
html.dark .growth-dim-bar { background: #27272a; }
html.dark .growth-playbook-item { background: #27272a; border-color: #3f3f46; }
html.dark .growth-playbook-item.is-done { background: #052e16; border-color: #065f46; }
html.dark .growth-playbook-ring::after { background: #18181b; }
html.dark .growth-template-chip { background: #18181b; border-color: #27272a; }
html.dark .growth-chart-empty { border-color: #27272a; }
html.dark .growth-card { background: #18181b; border-color: #27272a; color: #fafafa; }
html.dark .growth-card-title { color: #fafafa; }
html.dark .growth-card-desc { color: #a1a1aa; }
html.dark .growth-card-icon { background: #27272a; color: #d4d4d8; }
html.dark .growth-card--warning,
html.dark .growth-card--brand,
html.dark .growth-card--info,
html.dark .growth-card--danger,
html.dark .growth-card--success { background: #18181b; }
