/* Hub unidad — portal por unidad de negocio (UNI-AUTH-03) */
.unit-hub-body {
    background: #030408;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.unit-hub-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(3,4,8,0.9);
    flex-wrap: wrap;
    gap: 10px;
}
.unit-hub-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
}
.unit-hub-logo span { color: #34d399; font-weight: 600; font-size: 0.75rem; margin-left: 8px; }

/* Botones premium — icono + etiqueta visible */
.suite-hdr-premium {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.suite-unit-select {
    display: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 7px 28px 7px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    cursor: pointer;
    max-width: min(240px, 42vw);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.suite-unit-select:hover {
    border-color: rgba(52, 211, 153, 0.45);
    color: #34d399;
}
.suite-unit-select:focus {
    outline: none;
    border-color: rgba(52, 211, 153, 0.55);
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.15);
}
.suite-unit-select option {
    background: #12141c;
    color: #e2e8f0;
}
.suite-premium-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    white-space: nowrap;
}
.suite-premium-btn i, .suite-premium-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.suite-premium-btn:hover:not(:disabled) {
    border-color: rgba(52, 211, 153, 0.5);
    color: #34d399;
    background: rgba(52, 211, 153, 0.08);
}
.suite-premium-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.suite-premium-btn-ghost {
    border-color: rgba(52, 211, 153, 0.25);
    color: #34d399;
}
.suite-premium-btn-warn {
    border-color: rgba(251, 191, 36, 0.35);
    color: #fbbf24;
}
.suite-premium-btn-warn:hover:not(:disabled) {
    border-color: rgba(251, 191, 36, 0.55);
    color: #fcd34d;
    background: rgba(251, 191, 36, 0.1);
}
.suite-premium-btn-ok {
    border-color: rgba(52, 211, 153, 0.35);
    color: #34d399;
}
.suite-premium-btn-icon {
    padding: 8px 10px;
    min-width: 36px;
    justify-content: center;
}
.suite-premium-btn-icon > span { display: none; }
.suite-premium-btn-notas {
    border-color: rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
}
.suite-premium-btn-notas:hover:not(:disabled) {
    border-color: rgba(56, 189, 248, 0.5);
    color: #bae6fd;
    background: rgba(56, 189, 248, 0.1);
}
.suite-premium-btn-logout {
    border-color: rgba(251, 113, 133, 0.35);
    background: rgba(251, 113, 133, 0.08);
    color: #fda4af;
}
.suite-premium-btn-logout:hover:not(:disabled) {
    background: rgba(251, 113, 133, 0.16);
    color: #fecdd3;
    border-color: rgba(251, 113, 133, 0.55);
}
.form-access-denied {
    margin: 40px auto;
    max-width: 480px;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(251, 113, 133, 0.35);
    background: rgba(251, 113, 133, 0.08);
    color: #fecdd3;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.5;
}
.form-access-denied strong { color: #fb7185; }
.unit-hub-main {
    flex: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 20px 48px;
    width: 100%;
}
.unit-hub-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 6px;
}
.unit-hub-hero p { color: #94a3b8; font-size: 0.85rem; line-height: 1.5; margin-bottom: 24px; }
.unit-hub-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.unit-hub-card {
    background: rgba(18,20,28,0.85);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s, transform 0.15s;
}
.unit-hub-card:hover:not(.disabled) {
    border-color: rgba(52,211,153,0.45);
    transform: translateY(-2px);
}
.unit-hub-card.disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}
.unit-hub-card .num {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #34d399;
    letter-spacing: 0.08em;
}
.unit-hub-card h2 { font-size: 1rem; font-weight: 700; }
.unit-hub-card p { font-size: 0.78rem; color: #94a3b8; line-height: 1.45; flex: 1; }
.unit-hub-card .cta {
    font-size: 0.72rem;
    font-weight: 700;
    color: #34d399;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.unit-report-state {
    padding: 10px 16px;
    font-size: 0.78rem;
    line-height: 1.45;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: baseline;
}
.unit-report-state strong {
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 6px;
}
.unit-state-proceso { background: rgba(250,204,21,0.08); color: #fde68a; }
.unit-state-proceso strong { background: rgba(250,204,21,0.2); color: #fbbf24; }
.unit-state-congelado { background: rgba(56,189,248,0.08); color: #bae6fd; }
.unit-state-congelado strong { background: rgba(56,189,248,0.2); color: #38bdf8; }
.unit-state-publicado { background: rgba(52,211,153,0.08); color: #a7f3d0; }
.unit-state-publicado strong { background: rgba(52,211,153,0.2); color: #34d399; }
