.gg-card,
.gg-panel {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.74);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
}

.gg-panel {
    padding: 0;
    overflow: hidden;
}

.gg-panel-title {
    padding: 1rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.75);
    font-weight: 700;
    color: rgb(226, 232, 240);
}

.gg-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: rgb(148, 163, 184);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gg-value,
.gg-stat {
    margin-top: 0.55rem;
    font-size: 1.85rem;
    line-height: 1;
    font-weight: 800;
}

.gg-subtext {
    margin-top: 0.4rem;
    font-size: 0.72rem;
    color: rgb(100, 116, 139);
}

.gg-input {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(100, 116, 139, 0.8);
    background: rgba(2, 6, 23, 0.92);
    color: rgb(226, 232, 240);
    padding: 0.6rem 0.8rem;
    font-size: 0.875rem;
}

.gg-btn-primary,
.gg-btn-secondary {
    border-radius: 0.75rem;
    padding: 0.65rem 1rem;
    font-weight: 700;
    font-size: 0.875rem;
    transition: 0.18s ease;
    border: 1px solid transparent;
}

.gg-btn-primary {
    background: rgb(8, 145, 178);
    color: white;
}

.gg-btn-primary:hover {
    background: rgb(6, 182, 212);
}

.gg-btn-secondary {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(100, 116, 139, 0.55);
    color: rgb(203, 213, 225);
}

.gg-btn-secondary:hover {
    background: rgba(30, 41, 59, 0.95);
}

.gg-table-wrap {
    overflow-x: auto;
}

.gg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    color: rgb(203, 213, 225);
}

.gg-table thead {
    background: rgba(15, 23, 42, 0.95);
    color: rgb(226, 232, 240);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gg-table th,
.gg-table td {
    padding: 0.72rem;
    text-align: left;
    border-bottom: 1px solid rgba(51, 65, 85, 0.55);
    vertical-align: top;
}

.gg-table tbody tr:hover {
    background: rgba(30, 41, 59, 0.44);
}

.gg-empty {
    color: rgb(100, 116, 139);
    text-align: center;
    padding: 1.2rem;
}

.gg-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 800;
    border: 1px solid rgba(148, 163, 184, 0.18);
    white-space: nowrap;
}

.gg-badge-ok { background: rgba(16, 185, 129, 0.13); color: rgb(110, 231, 183); border-color: rgba(16, 185, 129, 0.25); }
.gg-badge-warn { background: rgba(245, 158, 11, 0.13); color: rgb(252, 211, 77); border-color: rgba(245, 158, 11, 0.25); }
.gg-badge-danger { background: rgba(244, 63, 94, 0.13); color: rgb(253, 164, 175); border-color: rgba(244, 63, 94, 0.25); }
.gg-badge-muted { background: rgba(100, 116, 139, 0.14); color: rgb(203, 213, 225); border-color: rgba(100, 116, 139, 0.25); }

.gg-alert {
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.65);
    padding: 0.75rem;
}

.gg-alert-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: rgb(226, 232, 240);
}

.gg-alert-text {
    margin-top: 0.2rem;
    font-size: 0.74rem;
    color: rgb(148, 163, 184);
}

.gg-chart-box {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.gg-bar-row {
    display: grid;
    grid-template-columns: 82px 1fr 90px;
    gap: 0.6rem;
    align-items: center;
    font-size: 0.75rem;
    color: rgb(203, 213, 225);
}

.gg-bar-track {
    height: 0.7rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.8);
}

.gg-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.65), rgba(129, 140, 248, 0.85));
}

/* v2.3.0-alpha.18 - Resumen ejecutivo legible y tarjetas KPI separadas */
.gg-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.72));
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.gg-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.gg-actions .gg-input {
    width: auto;
    min-width: 11rem;
}

.gg-summary-card {
    border: 1px solid rgba(14, 165, 233, 0.18);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.10), rgba(15, 23, 42, 0.82));
    border-radius: 1.25rem;
    padding: 1.15rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.gg-summary-body {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.8rem;
}

.gg-summary-text {
    margin: 0;
    color: rgb(203, 213, 225);
    font-size: 0.9rem;
    line-height: 1.75;
}

.gg-summary-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gg-summary-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: rgb(203, 213, 225);
    line-height: 1.55;
    font-size: 0.86rem;
}

.gg-summary-list li::before {
    content: '';
    flex: 0 0 0.48rem;
    width: 0.48rem;
    height: 0.48rem;
    margin-top: 0.48rem;
    border-radius: 999px;
    background: rgb(34, 211, 238);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.gg-summary-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.gg-summary-metric {
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.55);
    border-radius: 0.95rem;
    padding: 0.85rem;
}

.gg-summary-metric span {
    display: block;
    color: rgb(148, 163, 184);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gg-summary-metric strong {
    display: block;
    margin-top: 0.3rem;
    color: rgb(226, 232, 240);
    font-size: 1.35rem;
    line-height: 1.1;
}

.gg-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    gap: 1rem;
}

.gg-card {
    min-height: 6.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.65rem;
}

.gg-card .gg-label {
    display: block;
    line-height: 1.25;
    min-height: 2rem;
}

.gg-card strong,
.gg-card-value {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    color: rgb(248, 250, 252);
    font-size: clamp(1.65rem, 2vw, 2.1rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.03em;
    word-break: break-word;
}

.gg-card:nth-child(1) strong,
.gg-card:nth-child(5) strong,
.gg-card:nth-child(6) strong {
    color: rgb(110, 231, 183);
}

.gg-card:nth-child(2) strong,
.gg-card:nth-child(8) strong,
.gg-card:nth-child(9) strong,
.gg-card:nth-child(10) strong,
.gg-card:nth-child(11) strong,
.gg-card:nth-child(12) strong {
    color: rgb(251, 113, 133);
}

.gg-card:nth-child(3) strong {
    color: rgb(125, 211, 252);
}

.gg-card:nth-child(4) strong,
.gg-card:nth-child(7) strong {
    color: rgb(252, 211, 77);
}

.gg-list,
.gg-bars {
    padding: 1rem;
}

@media (max-width: 760px) {
    .gg-hero,
    .gg-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .gg-actions .gg-input,
    .gg-actions button {
        width: 100%;
    }

    .gg-grid-cards {
        grid-template-columns: 1fr;
    }
}

