/* ===========================================================================
   Módulo GIA — Gobernanza de la Inteligencia Artificial
   Estilos del nuevo estándar de UI (escaparate). Acento corporativo #4c3cc9.
   =========================================================================== */

/* ── Badges (categoría de riesgo, estado, licenciamiento) ── */
.gia-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: 2px 10px; border-radius: 999px;
    font-size: .78rem; font-weight: 600; line-height: 1.5;
    border: 1px solid transparent; white-space: nowrap;
}
.gia-badge .rzi { font-size: .95rem; }

/* Pastilla de alerta Shadow AI */
.gia-shadow {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: 2px 9px; border-radius: 999px;
    background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa;
    font-size: .75rem; font-weight: 700;
}
.gia-shadow .rzi { font-size: .9rem; }

/* ── Celda de sistema en el grid (avatar + nombre + código) ── */
.gia-cell { display: flex; gap: .65rem; align-items: center; }
.gia-cell__avatar {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .95rem; flex-shrink: 0; color: #fff;
}
.gia-cell__name { font-weight: 600; color: #0f172a; line-height: 1.2; }
.gia-cell__sub { display: flex; gap: .75rem; font-size: .75rem; color: #64748b; margin-top: .15rem; flex-wrap: wrap; }
.gia-cell__sub .rzi { font-size: .85rem; vertical-align: middle; }

/* ── Hero card del detalle ── */
.gia-hero {
    display: flex; gap: 1rem; align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
    border: 1px solid #e0e7ff; border-radius: 14px;
    box-shadow: 0 1px 3px rgba(76, 60, 201, .06);
}
.gia-hero__avatar {
    width: 64px; height: 64px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.65rem; font-weight: 700; flex-shrink: 0; color: #fff;
}
.gia-hero__body { flex: 1; min-width: 0; }
.gia-hero__top { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.gia-hero__name { margin: 0; font-size: 1.45rem; font-weight: 700; color: #1e1b4b; }
.gia-hero__meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .45rem; }
.gia-hero__chip {
    display: inline-flex; align-items: center; gap: .25rem;
    padding: 2px 9px; border-radius: 999px;
    background: #ffffffcc; color: #475569; font-size: .78rem; font-weight: 500;
    border: 1px solid #e2e8f0;
}
.gia-hero__chip .rzi { font-size: .95rem; }

@media (max-width: 880px) { .gia-hero { flex-direction: column; align-items: flex-start; } }

/* ── Secciones de detalle: tarjetas con borde sutil + cabecera con divisor ── */
.gia-section {
    background: #fff;
    border: 1px solid #e8eaf2;
    border-radius: 12px;
    padding: 1.05rem 1.3rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.gia-section:last-child { margin-bottom: 0; }
.gia-section__title {
    display: flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: #6d28d9; margin: 0 0 .95rem 0; padding-bottom: .65rem;
    border-bottom: 1px solid #eef0f5;
}
.gia-section__title .rzi { font-size: 1.05rem; }
.gia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem 1.5rem;
}

/* Barra de cumplimiento (KPI dashboard) */
.gia-progress { height: 8px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.gia-progress__fill { height: 100%; border-radius: 999px; transition: width .5s ease; }

/* Anillo de progreso reutilizable */
.gia-ring { width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: inset 0 0 0 9px #fff; }
.gia-ring span { font-size: 1.35rem; font-weight: 800; color: #1e1b4b; }
.gia-ring small { font-size: .8rem; font-weight: 600; }

/* Celdas de campo (reutiliza el look de FieldCell, compartido con el módulo Trace) */
.supp-cell { display: flex; flex-direction: column; gap: .2rem; }
.supp-cell__label { font-size: .7rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.supp-cell__value { font-size: .92rem; color: #0f172a; }
.supp-cell--span2 { grid-column: span 2; }
