/*
 * Estilos para el Menú Horizontal Unificado
 * Sistema de navegación principal
 */

/* Header Container */
.header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 12px 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 20px;
}

/* Logo y Empresa */
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 250px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    width: auto;
    background: white;
    padding: 4px;
    border-radius: 8px;
    object-fit: contain;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

.company-info {
    font-size: 11px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

/* Navegación Principal */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-1px);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-item i {
    font-size: 16px;
}

/* Información de Usuario */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    justify-content: flex-end;
}

.user-details {
    text-align: right;
    line-height: 1.3;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.user-role {
    font-size: 12px;
    opacity: 0.85;
    color: rgba(255, 255, 255, 0.85);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-logout:hover {
    background: white;
    color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 1400px) {
    .nav-item span {
        display: none;
    }

    .nav-item {
        padding: 8px 12px;
    }

    .nav-item i {
        font-size: 18px;
    }
}

@media (max-width: 1024px) {
    .header {
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: space-around;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .user-details {
        display: none;
    }
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 18px;
    }

    .company-info {
        font-size: 10px;
    }

    .nav-item {
        padding: 6px 10px;
    }

    .btn-logout span {
        display: none;
    }
}
