/* ==========================================================================
   eRAsolar Suite - Barra de Navegación Unificada & Suite Switcher
   Diseño Premium: Simetría, Dark Glassmorphism, Micro-interacciones & Cero Solapamiento
   ========================================================================== */

.era-suite-nav-container {
    width: 100%;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 40;
}

.era-suite-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.92));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(253, 184, 19, 0.08);
    border-radius: 16px;
    padding: 0.6rem 1rem;
    gap: 1rem;
    flex-wrap: nowrap;
}

/* Brand Section in Nav */
.era-suite-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    text-decoration: none;
}

.era-suite-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.era-suite-brand-text {
    display: flex;
    flex-direction: column;
}

.era-suite-title {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.era-suite-title small {
    background: #fdb813;
    color: #0f172a;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.era-suite-sub {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Links & Pills Wrapper */
.era-suite-links {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
}

.era-suite-links::-webkit-scrollbar {
    display: none;
}

/* Base Pill Button */
.era-suite-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.8rem;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}

.era-suite-pill svg,
.era-suite-pill i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.era-suite-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.era-suite-pill:hover svg,
.era-suite-pill:hover i {
    transform: scale(1.1);
}

/* Active Module State */
.era-suite-pill.active {
    background: linear-gradient(135deg, #fdb813, #f59e0b) !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    border-color: #fdb813 !important;
    box-shadow: 0 4px 14px rgba(253, 184, 19, 0.35), 0 0 0 1px rgba(253, 184, 19, 0.5) !important;
}

.era-suite-pill.active svg,
.era-suite-pill.active i {
    color: #0f172a !important;
}

/* Backup Special Pill */
.era-suite-pill.backup-pill {
    background: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
    border-color: rgba(14, 165, 233, 0.3);
}

.era-suite-pill.backup-pill:hover {
    background: rgba(14, 165, 233, 0.22);
    color: #7dd3fc;
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.25);
}

/* Portal Special Pill */
.era-suite-pill.portal-pill {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.2);
}

.era-suite-pill.portal-pill:hover {
    background: rgba(148, 163, 184, 0.2);
    color: #f1f5f9;
    border-color: rgba(148, 163, 184, 0.4);
}

/* Separator divider */
.era-suite-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 0.2rem;
    flex-shrink: 0;
}

/* Mobile Responsive Tweaks */
@media (max-width: 900px) {
    .era-suite-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        padding: 0.6rem 0.75rem;
    }
    .era-suite-brand {
        justify-content: space-between;
    }
    .era-suite-links {
        width: 100%;
        padding-bottom: 4px;
    }
}
