/* ============================================================
   CssHub.css - Super Admin Hub
   Diseno: Dark navy + acento dorado (premium ejecutivo)
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    font-family: 'Calibri', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.hub-body {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    min-height: 100vh;
    padding: 20px 12px 80px;
    color: white;
    position: relative;
    overflow-x: hidden;
}

/* Blobs decorativos dorados */
.hub-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}
.hub-blob-1 {
    top: -120px;
    left: -120px;
    width: 380px;
    height: 380px;
    background: rgba(245, 158, 11, 0.08);
}
.hub-blob-2 {
    bottom: -120px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: rgba(252, 211, 77, 0.06);
}

/* ============================================================
   LOGIN
   ============================================================ */
.hub-login-wrap {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.hub-login-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(252, 211, 77, 0.25);
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    padding: 44px 38px;
    max-width: 460px;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.hub-login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F59E0B, #FCD34D, #F59E0B);
}

.hub-login-icon {
    width: 78px;
    height: 78px;
    background: linear-gradient(135deg, #F59E0B 0%, #FCD34D 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #0F172A;
    margin: 0 auto 22px;
    box-shadow: 0 14px 32px rgba(245, 158, 11, 0.5);
    transform: rotate(-3deg);
}

.hub-login-title {
    text-align: center;
    color: #FCD34D;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hub-login-h2 {
    text-align: center;
    color: white;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.4px;
}

.hub-login-sub {
    text-align: center;
    color: #94A3B8;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 26px;
}

.hub-flash {
    display: none;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    align-items: center;
    gap: 9px;
}
.hub-flash-show {
    display: flex;
}
.hub-flash-error {
    background: rgba(220, 38, 38, 0.18);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #FCA5A5;
}
.hub-flash-success {
    background: rgba(22, 163, 74, 0.18);
    border: 1px solid rgba(22, 163, 74, 0.4);
    color: #86EFAC;
}

.hub-field {
    margin-bottom: 16px;
}

.hub-label {
    font-size: 12px;
    font-weight: 800;
    color: #FCD34D;
    margin-bottom: 7px;
    display: block;
    letter-spacing: 1.5px;
}

.hub-input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid rgba(252, 211, 77, 0.3);
    border-radius: 10px;
    font-size: 15px;
    color: white;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.3);
    font-family: 'Calibri', sans-serif;
    transition: all 0.2s ease;
}
.hub-input::placeholder {
    color: #64748B;
}
.hub-input:focus {
    outline: none;
    border-color: #FCD34D;
    box-shadow: 0 0 0 3px rgba(252, 211, 77, 0.15);
    background: rgba(0, 0, 0, 0.5);
}

.hub-login-btn {
    width: 100%;
    margin-top: 12px;
    background: linear-gradient(135deg, #F59E0B, #FCD34D);
    color: #0F172A;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1.5px;
    cursor: pointer;
    font-family: 'Calibri', sans-serif;
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.4);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.hub-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.55);
}
.hub-login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   HUB
   ============================================================ */
.hub-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 12px;
    position: relative;
    z-index: 2;
}

.hub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    padding: 22px 32px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(252, 211, 77, 0.2);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    flex-wrap: wrap;
    gap: 14px;
}
.hub-header-title {
    display: flex;
    align-items: center;
    gap: 16px;
}
.hub-header-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #F59E0B, #FCD34D);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #0F172A;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}
.hub-eyebrow {
    color: #FCD34D;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 2px;
}
.hub-h1 {
    color: white;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.4px;
}
.hub-user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hub-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    background: rgba(252, 211, 77, 0.12);
    border: 1px solid rgba(252, 211, 77, 0.3);
    border-radius: 22px;
    color: #FCD34D;
    font-size: 13px;
    font-weight: 700;
}
.hub-logout {
    background: rgba(220, 38, 38, 0.15);
    color: #FCA5A5;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid rgba(220, 38, 38, 0.3);
    font-family: 'Calibri', sans-serif;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.hub-logout:hover {
    background: #DC2626;
    color: white;
}

/* Welcome */
.hub-welcome {
    text-align: center;
    margin-bottom: 28px;
}
.hub-welcome-eyebrow {
    color: #FCD34D;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.hub-welcome-title {
    color: white;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.hub-welcome-sub {
    color: #94A3B8;
    font-size: 15px;
    font-weight: 600;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards grid */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.hub-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(252, 211, 77, 0.15);
    border-radius: 16px;
    padding: 28px 26px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    color: inherit;
}
.hub-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--accent);
}
.hub-card:hover {
    transform: translateY(-4px);
    border-color: rgba(252, 211, 77, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.hub-card:hover .hub-card-icon {
    transform: rotate(-5deg) scale(1.08);
}
.hub-card:hover .hub-card-arrow {
    transform: translateX(8px);
    color: #FCD34D;
}

.hub-card-1 { --accent: linear-gradient(90deg, #1E40AF, #3B82F6); }
.hub-card-2 { --accent: linear-gradient(90deg, #DC2626, #EF4444); }
.hub-card-3 { --accent: linear-gradient(90deg, #7C3AED, #A855F7); }
.hub-card-4 { --accent: linear-gradient(90deg, #0F766E, #14B8A6); }

.hub-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}
.hub-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    transition: all 0.3s ease;
}
.hub-card-1 .hub-card-icon { background: linear-gradient(135deg, #1E40AF, #3B82F6); }
.hub-card-2 .hub-card-icon { background: linear-gradient(135deg, #DC2626, #EF4444); }
.hub-card-3 .hub-card-icon { background: linear-gradient(135deg, #7C3AED, #A855F7); }
.hub-card-4 .hub-card-icon { background: linear-gradient(135deg, #0F766E, #14B8A6); }

.hub-card-badge {
    padding: 4px 11px;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.hub-card-1 .hub-card-badge { background: rgba(59, 130, 246, 0.18); color: #93C5FD; }
.hub-card-2 .hub-card-badge { background: rgba(239, 68, 68, 0.18); color: #FCA5A5; }
.hub-card-3 .hub-card-badge { background: rgba(168, 85, 247, 0.18); color: #C4B5FD; }
.hub-card-4 .hub-card-badge { background: rgba(20, 184, 166, 0.18); color: #5EEAD4; }

.hub-card-title {
    color: white;
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}
.hub-card-desc {
    color: #94A3B8;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 16px;
    min-height: 42px;
}

.hub-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(252, 211, 77, 0.1);
}
.hub-card-link {
    color: #94A3B8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.hub-card-arrow {
    color: #94A3B8;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* ============================================================
   FOOTER
   ============================================================ */
.hub-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: #94A3B8;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    border-top: 1px solid rgba(252, 211, 77, 0.1);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
    .hub-grid {
        grid-template-columns: 1fr;
    }
    .hub-welcome-title {
        font-size: 24px;
    }
    .hub-header {
        padding: 18px 22px;
    }
    .hub-h1 {
        font-size: 22px;
    }
}
